tx · 3k5mcbxkMgBLAmJ8ADmseSKeoGV3LiHCy1rCNr7wvxEr 3MrfG1u5zL5XrFLjBMK8wsbDjs5WPhZoEV3: -0.03100000 Waves 2024.10.03 13:02 [3310523] smart account 3MrfG1u5zL5XrFLjBMK8wsbDjs5WPhZoEV3 > SELF 0.00000000 Waves
{ "type": 13, "id": "3k5mcbxkMgBLAmJ8ADmseSKeoGV3LiHCy1rCNr7wvxEr", "fee": 3100000, "feeAssetId": null, "timestamp": 1727949785126, "version": 2, "chainId": 84, "sender": "3MrfG1u5zL5XrFLjBMK8wsbDjs5WPhZoEV3", "senderPublicKey": "939Lb5B2Z7CNzPKMFvQni9fWhmhqWdhHR5sm54NHaHPe", "proofs": [ "2LPWzQDW1NuSPUzVbF1Z3ncxP6ULX1jfFRVF7cduqEzPYf1GKu57r31cBe9xsGeMTQomRp63V1iLCx4NeidYvac1" ], "script": "base64:BgJECAISAwoBCBIICgYCAQEBCAESAwoBCBIDCgEIEgUKAwIIARIDCgEIEgMKAQgSBAoCCAgSBQoDCAEBEgMKAQgSBAoCCAhOABBkZWxheUZvckhhdGNoaW5nAAIAD0hhdGNoaW5nU3RhcnRlZAIQQlJFRURJTkdfU1RBUlRFRAAQSGF0Y2hpbmdGaW5pc2hlZAIRQlJFRURJTkdfRklOSVNIRUQBFHRyeUdldFN0cmluZ0V4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAnQgCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBQFhAgABFXRyeUdldEludGVnZXJFeHRlcm5hbAIHYWRkcmVzcwNrZXkEByRtYXRjaDAJAJoIAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYgUHJG1hdGNoMAUBYgAAAQx0cnlHZXRTdHJpbmcBA2tleQkBFHRyeUdldFN0cmluZ0V4dGVybmFsAgUEdGhpcwUDa2V5ARdzdGF0aWNLZXlfb3JhY2xlQ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wBQJ0eAkAZwIFD3NpZ25hdHVyZXNDb3VudAACT+R8+A==", "height": 3310523, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G8Rnw5eKgWxtCFnxhzWBsyXDMhy6joas9hToCJpHMUtB Next: DobkNLKCTyiz3CgXrbgzd5LsoFYEwz9hKBBQjJicq3Gc Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let delayForHatching = 2 | |
5 | 5 | ||
6 | 6 | let HatchingStarted = "BREEDING_STARTED" | |
7 | 7 | ||
8 | 8 | let HatchingFinished = "BREEDING_FINISHED" | |
9 | 9 | ||
10 | 10 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
11 | 11 | case a: String => | |
12 | 12 | a | |
13 | 13 | case _ => | |
14 | 14 | "" | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func tryGetIntegerExternal (address,key) = match getInteger(address, key) { | |
19 | 19 | case b: Int => | |
20 | 20 | b | |
21 | 21 | case _ => | |
22 | 22 | 0 | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func tryGetString (key) = tryGetStringExternal(this, key) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func staticKey_oracleAddress () = "static_oracleAddress" | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func staticKey_incubatorAddress () = "static_incubatorAddress" | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func staticKey_rebirthAddress () = "static_rebirthAddress" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func staticKey_itemsAddress () = "static_itemsAddress" | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func staticKey_eggAssetId () = "static_eggAssetId" | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func staticKey_babyDuckBreedingAddress () = "static_babyDuckBreedingAddress" | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func staticKey_ducklingPrice () = "static_ducklingPrice" | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func staticKey_couponsAddress () = "static_couponsAddress" | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func staticKey_burnAddress () = "static_burnAddress" | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func staticKey_refContractAddress () = "static_refContractAddress" | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func staticKey_extraFee () = "static_extraFee" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func staticKey_feeAggregator () = "static_feeAggregator" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func staticKey_spiceAssetId () = "static_spiceAssetId" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func staticKey_turtleStakingAddress () = "static_turtleStakingAddress" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_incubatorAddress()))) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func getRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_rebirthAddress()))) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress()))) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getBabyDuckBreedingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_babyDuckBreedingAddress()))) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getDucklingPrice () = tryGetIntegerExternal(getOracle(), staticKey_ducklingPrice()) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress()))) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress()))) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress()))) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getSpiceAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_spiceAssetId())) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func getTurtleStakingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleStakingAddress()))) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
111 | 111 | then throw("BCAP: Please attach waves") | |
112 | 112 | else { | |
113 | 113 | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
114 | 114 | if ((payment.amount != feeAmount)) | |
115 | 115 | then throw((("BCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
116 | 116 | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | let MaxGeneration = 7 | |
121 | 121 | ||
122 | 122 | let Generations = ["G", "H", "I", "K", "L", "M", "N", "O"] | |
123 | 123 | ||
124 | 124 | func getProcessStatusKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_status") | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getDucklingKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_duckling") | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func getProcessFinishHeightKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_fh") | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func getDuckParentKey (txId,parentNum) = ((("inittx_" + toBase58String(txId)) + "_parent") + toString(parentNum)) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func getDuckIdKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_di") | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getDuckStatsKey (genString) = (("stats_" + genString) + "_amount") | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func tryGetBoolean (key) = match getBoolean(key) { | |
143 | 143 | case b: Boolean => | |
144 | 144 | b | |
145 | 145 | case _ => | |
146 | 146 | false | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func tryGetInteger (key) = { | |
151 | 151 | let val = match getInteger(this, key) { | |
152 | 152 | case b: Int => | |
153 | 153 | b | |
154 | 154 | case _ => | |
155 | 155 | 0 | |
156 | 156 | } | |
157 | 157 | val | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func determineGeneration (g1,g2) = { | |
162 | 162 | let gIndex = max([value(indexOf(Generations, g1)), value(indexOf(Generations, g2))]) | |
163 | 163 | Generations[(gIndex + 1)] | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func getRandomNumber (variants,txId,hatchingFinishHeight,offset) = { | |
168 | 168 | let randomSeedBlock = value(blockInfoByHeight((hatchingFinishHeight - 1))) | |
169 | 169 | let randomHash = sha256_16Kb((txId + value(randomSeedBlock.vrf))) | |
170 | 170 | (toInt(randomHash, offset) % variants) | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func getRandomGen (gen1,gen2,step,txId,hatchingFinishHeight,geneFromParent,genePostion,specifiqueGene,specifiqueGenePosition) = if (if ((geneFromParent != 0)) | |
175 | 175 | then (genePostion == step) | |
176 | 176 | else false) | |
177 | 177 | then if ((geneFromParent == 1)) | |
178 | 178 | then gen1 | |
179 | 179 | else if ((geneFromParent == 2)) | |
180 | 180 | then gen2 | |
181 | 181 | else throw("Parent either needs to be 1 or 2") | |
182 | 182 | else if (if ((specifiqueGene != "")) | |
183 | 183 | then (specifiqueGenePosition == step) | |
184 | 184 | else false) | |
185 | 185 | then specifiqueGene | |
186 | 186 | else { | |
187 | 187 | let randomNum = getRandomNumber(2, txId, hatchingFinishHeight, step) | |
188 | 188 | let gen = if ((randomNum == 0)) | |
189 | 189 | then gen1 | |
190 | 190 | else gen2 | |
191 | 191 | gen | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func checkAssetInIncubator (assetId) = { | |
196 | 196 | let result = match getString(getIncubatorAddress(), assetId) { | |
197 | 197 | case b: String => | |
198 | 198 | true | |
199 | 199 | case _ => | |
200 | 200 | false | |
201 | 201 | } | |
202 | 202 | let result2 = match getString(this, assetId) { | |
203 | 203 | case c: String => | |
204 | 204 | true | |
205 | 205 | case _ => | |
206 | 206 | false | |
207 | 207 | } | |
208 | 208 | if (result) | |
209 | 209 | then true | |
210 | 210 | else result2 | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func canBeBreeded (asset1Id,asset2Id) = { | |
215 | 215 | let asset1Gen = split(value(assetInfo(asset1Id)).name, "") | |
216 | 216 | let asset2Gen = split(value(assetInfo(asset2Id)).name, "") | |
217 | 217 | if ((value(indexOf(Generations, asset1Gen[14])) >= MaxGeneration)) | |
218 | 218 | then (("you can only breed ducks with generation " + Generations[MaxGeneration]) + " and lower") | |
219 | 219 | else if ((value(indexOf(Generations, asset2Gen[14])) >= MaxGeneration)) | |
220 | 220 | then (("you can only breed ducks with generation " + Generations[MaxGeneration]) + " and lower") | |
221 | 221 | else "true" | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func isSymbolA (accumulated,sym) = if ((sym == "A")) | |
226 | 226 | then (accumulated + 1) | |
227 | 227 | else (accumulated + 0) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func isSymbolB (accumulated,sym) = if ((sym == "B")) | |
231 | 231 | then (accumulated + 1) | |
232 | 232 | else (accumulated + 0) | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func isSymbolC (accumulated,sym) = if ((sym == "C")) | |
236 | 236 | then (accumulated + 1) | |
237 | 237 | else (accumulated + 0) | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func isSymbolD (accumulated,sym) = if ((sym == "D")) | |
241 | 241 | then (accumulated + 1) | |
242 | 242 | else (accumulated + 0) | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func isSymbolE (accumulated,sym) = if ((sym == "E")) | |
246 | 246 | then (accumulated + 1) | |
247 | 247 | else (accumulated + 0) | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func isSymbolF (accumulated,sym) = if ((sym == "F")) | |
251 | 251 | then (accumulated + 1) | |
252 | 252 | else (accumulated + 0) | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func isSymbolG (accumulated,sym) = if ((sym == "G")) | |
256 | 256 | then (accumulated + 1) | |
257 | 257 | else (accumulated + 0) | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func isSymbolH (accumulated,sym) = if ((sym == "H")) | |
261 | 261 | then (accumulated + 1) | |
262 | 262 | else (accumulated + 0) | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func isSymbolI (accumulated,sym) = if ((sym == "I")) | |
266 | 266 | then (accumulated + 1) | |
267 | 267 | else (accumulated + 0) | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func isSymbolK (accumulated,sym) = if ((sym == "K")) | |
271 | 271 | then (accumulated + 1) | |
272 | 272 | else (accumulated + 0) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func isSymbolL (accumulated,sym) = if ((sym == "L")) | |
276 | 276 | then (accumulated + 1) | |
277 | 277 | else (accumulated + 0) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func isSymbolM (accumulated,sym) = if ((sym == "M")) | |
281 | 281 | then (accumulated + 1) | |
282 | 282 | else (accumulated + 0) | |
283 | 283 | ||
284 | 284 | ||
285 | 285 | func isSymbolN (accumulated,sym) = if ((sym == "N")) | |
286 | 286 | then (accumulated + 1) | |
287 | 287 | else (accumulated + 0) | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func isSymbolO (accumulated,sym) = if ((sym == "O")) | |
291 | 291 | then (accumulated + 1) | |
292 | 292 | else (accumulated + 0) | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func isSymbolP (accumulated,sym) = if ((sym == "P")) | |
296 | 296 | then (accumulated + 1) | |
297 | 297 | else (accumulated + 0) | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | func isSymbolS (accumulated,sym) = if ((sym == "S")) | |
301 | 301 | then (accumulated + 1) | |
302 | 302 | else (accumulated + 0) | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func isSymbolT (accumulated,sym) = if ((sym == "T")) | |
306 | 306 | then (accumulated + 1) | |
307 | 307 | else (accumulated + 0) | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func isSymbolZ (accumulated,sym) = if ((sym == "Z")) | |
311 | 311 | then (accumulated + 1) | |
312 | 312 | else (accumulated + 0) | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | func getAmountOrClear (amount) = if (contains(amount, "0")) | |
316 | 316 | then "" | |
317 | 317 | else amount | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func asString (value) = match value { | |
321 | 321 | case string: String => | |
322 | 322 | string | |
323 | 323 | case _ => | |
324 | 324 | throw("wrong type, expected: String") | |
325 | 325 | } | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func asInt (value) = match value { | |
329 | 329 | case int: Int => | |
330 | 330 | int | |
331 | 331 | case _ => | |
332 | 332 | throw("wrong type, expected: Int") | |
333 | 333 | } | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | func asBoolean (value) = match value { | |
337 | 337 | case boolean: Boolean => | |
338 | 338 | boolean | |
339 | 339 | case _ => | |
340 | 340 | throw("BDA: wrong type, expected: Boolean") | |
341 | 341 | } | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func composeGenericData (duckGen,duckIdKey,assetId,asset) = { | |
345 | 345 | let farmGen = asString(invoke(this, "getGenFromName", [duckGen], nil)) | |
346 | 346 | if ((farmGen == farmGen)) | |
347 | 347 | then { | |
348 | 348 | let amount = tryGetInteger(getDuckStatsKey(duckGen)) | |
349 | 349 | let quantity = tryGetInteger((("stats_" + farmGen) + "_quantity")) | |
350 | 350 | [StringEntry(duckIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), duckIdKey), IntegerEntry(getDuckStatsKey(duckGen), (amount + 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (quantity + 1)), asset] | |
351 | 351 | } | |
352 | 352 | else throw("Strict value is not equal to itself.") | |
353 | 353 | } | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | func finishDuckHatch (txIdStr,owner,duckGenesString) = { | |
357 | 357 | let txId = fromBase58String(txIdStr) | |
358 | 358 | let processStatusKey = getProcessStatusKey(owner, txId) | |
359 | 359 | let duckIdKey = getDuckIdKey(owner, txId) | |
360 | 360 | let processTxStatus = getStringValue(this, processStatusKey) | |
361 | 361 | let finishHeightKey = getProcessFinishHeightKey(owner, txId) | |
362 | 362 | let processFinishHeight = getIntegerValue(this, finishHeightKey) | |
363 | 363 | if ((processTxStatus == HatchingFinished)) | |
364 | 364 | then { | |
365 | 365 | let duckId = getStringValue(this, getDuckIdKey(owner, txId)) | |
366 | 366 | throw(("The duck was breeded and claimed already, here is the folowing: " + duckId)) | |
367 | 367 | } | |
368 | 368 | else if ((processFinishHeight > height)) | |
369 | 369 | then throw((((("Breeding is not finished yet " + toString((processFinishHeight - height))) + " blocks remaining, it will take around ") + toString((processFinishHeight - height))) + " minutes")) | |
370 | 370 | else { | |
371 | 371 | let duckGen = if ((duckGenesString == "")) | |
372 | 372 | then asString(invoke(this, "generateDuck", [txId, processFinishHeight, 0, 0, "", 0], nil)) | |
373 | 373 | else duckGenesString | |
374 | 374 | if ((duckGen == duckGen)) | |
375 | 375 | then { | |
376 | 376 | let description = (("{\"genotype\": \"" + duckGen) + "\", \"crossbreeding\": true}") | |
377 | 377 | let asset = Issue(duckGen, description, 1, 0, false, unit, processFinishHeight) | |
378 | 378 | let assetId = calculateAssetId(asset) | |
379 | 379 | (composeGenericData(duckGen, duckIdKey, assetId, asset) ++ [StringEntry(processStatusKey, HatchingFinished), ScriptTransfer(addressFromStringValue(owner), 1, assetId)]) | |
380 | 380 | } | |
381 | 381 | else throw("Strict value is not equal to itself.") | |
382 | 382 | } | |
383 | 383 | } | |
384 | 384 | ||
385 | 385 | ||
386 | 386 | func getBool (key) = match getBoolean(this, key) { | |
387 | 387 | case b: Boolean => | |
388 | 388 | b | |
389 | 389 | case _ => | |
390 | 390 | false | |
391 | 391 | } | |
392 | 392 | ||
393 | 393 | ||
394 | 394 | func isTestEnv () = getBool("TESTENV") | |
395 | 395 | ||
396 | 396 | ||
397 | 397 | let freeGenes = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "K", "L"] | |
398 | 398 | ||
399 | 399 | func getRandomGenes (txId,h) = { | |
400 | 400 | let randomNumber = getRandomNumber(size(freeGenes), txId, h, 2) | |
401 | 401 | freeGenes[randomNumber] | |
402 | 402 | } | |
403 | 403 | ||
404 | 404 | ||
405 | 405 | func finishDuckHatchingItems (txIdStr,duckGenesString,payment1,payment2,owner) = { | |
406 | 406 | let instantPaid = tryGetBoolean(("instantPaid_" + txIdStr)) | |
407 | 407 | if (instantPaid) | |
408 | 408 | then finishDuckHatch(txIdStr, owner, duckGenesString) | |
409 | 409 | else { | |
410 | 410 | let ducklingFinish = asString(invoke(getBabyDuckBreedingAddress(), "turnDucklingIntoDuck", nil, [payment1, payment2])) | |
411 | 411 | if ((ducklingFinish == ducklingFinish)) | |
412 | 412 | then { | |
413 | 413 | let ducklingLinked = tryGetString(getDucklingKey(owner, fromBase58String(txIdStr))) | |
414 | 414 | if ((ducklingLinked != ducklingFinish)) | |
415 | 415 | then throw("Please attach the correct duckling!") | |
416 | 416 | else finishDuckHatch(txIdStr, owner, duckGenesString) | |
417 | 417 | } | |
418 | 418 | else throw("Strict value is not equal to itself.") | |
419 | 419 | } | |
420 | 420 | } | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | @Callable(i) | |
424 | 424 | func configureOracle (oracle) = if ((i.caller != this)) | |
425 | 425 | then throw("admin only") | |
426 | 426 | else [StringEntry("static_oracleAddress", oracle)] | |
427 | 427 | ||
428 | 428 | ||
429 | 429 | ||
430 | 430 | @Callable(i) | |
431 | 431 | func generateDuck (txId,hatchingFinishHeight,geneFromParent,genePostion,specifiqueGene,specifiqueGenePosition) = { | |
432 | 432 | let colorRandom = getRandomNumber(4, txId, hatchingFinishHeight, 11) | |
433 | 433 | let color = if ((colorRandom == 0)) | |
434 | 434 | then "Y" | |
435 | 435 | else if ((colorRandom == 1)) | |
436 | 436 | then "G" | |
437 | 437 | else if ((colorRandom == 2)) | |
438 | 438 | then "B" | |
439 | 439 | else "R" | |
440 | 440 | let parent1Id = fromBase58String(tryGetString(getDuckParentKey(txId, 1))) | |
441 | 441 | let parent2Id = fromBase58String(tryGetString(getDuckParentKey(txId, 2))) | |
442 | 442 | let parent1Gen = split(value(assetInfo(parent1Id)).name, "") | |
443 | 443 | let parent2Gen = split(value(assetInfo(parent2Id)).name, "") | |
444 | 444 | let gen = ((((((((((("DUCK-" + getRandomGen(parent1Gen[5], parent2Gen[5], 0, txId, hatchingFinishHeight, geneFromParent, genePostion, specifiqueGene, specifiqueGenePosition)) + getRandomGen(parent1Gen[6], parent2Gen[6], 1, txId, hatchingFinishHeight, geneFromParent, genePostion, specifiqueGene, specifiqueGenePosition)) + getRandomGen(parent1Gen[7], parent2Gen[7], 2, txId, hatchingFinishHeight, geneFromParent, genePostion, specifiqueGene, specifiqueGenePosition)) + getRandomGen(parent1Gen[8], parent2Gen[8], 3, txId, hatchingFinishHeight, geneFromParent, genePostion, specifiqueGene, specifiqueGenePosition)) + getRandomGen(parent1Gen[9], parent2Gen[9], 4, txId, hatchingFinishHeight, geneFromParent, genePostion, specifiqueGene, specifiqueGenePosition)) + getRandomGen(parent1Gen[10], parent2Gen[10], 5, txId, hatchingFinishHeight, geneFromParent, genePostion, specifiqueGene, specifiqueGenePosition)) + getRandomGen(parent1Gen[11], parent2Gen[11], 6, txId, hatchingFinishHeight, geneFromParent, genePostion, specifiqueGene, specifiqueGenePosition)) + getRandomGen(parent1Gen[12], parent2Gen[12], 7, txId, hatchingFinishHeight, geneFromParent, genePostion, specifiqueGene, specifiqueGenePosition)) + "-") + determineGeneration(parent1Gen[14], parent2Gen[14])) + color) | |
445 | 445 | $Tuple2(nil, gen) | |
446 | 446 | } | |
447 | 447 | ||
448 | 448 | ||
449 | 449 | ||
450 | 450 | @Callable(i) | |
451 | 451 | func getGenFromName (assetName) = { | |
452 | 452 | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
453 | 453 | let generation = split(assetName, "")[14] | |
454 | 454 | let gen = (((((((((((((((((((getAmountOrClear((toString({ | |
455 | 455 | let $l = genotype | |
456 | 456 | let $s = size($l) | |
457 | 457 | let $acc0 = 0 | |
458 | 458 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
459 | 459 | then $a | |
460 | 460 | else isSymbolA($a, $l[$i]) | |
461 | 461 | ||
462 | 462 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
463 | 463 | then $a | |
464 | 464 | else throw("List size exceeds 8") | |
465 | 465 | ||
466 | 466 | $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) | |
467 | 467 | }) + "A")) + getAmountOrClear((toString({ | |
468 | 468 | let $l = genotype | |
469 | 469 | let $s = size($l) | |
470 | 470 | let $acc0 = 0 | |
471 | 471 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
472 | 472 | then $a | |
473 | 473 | else isSymbolB($a, $l[$i]) | |
474 | 474 | ||
475 | 475 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
476 | 476 | then $a | |
477 | 477 | else throw("List size exceeds 8") | |
478 | 478 | ||
479 | 479 | $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) | |
480 | 480 | }) + "B"))) + getAmountOrClear((toString({ | |
481 | 481 | let $l = genotype | |
482 | 482 | let $s = size($l) | |
483 | 483 | let $acc0 = 0 | |
484 | 484 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
485 | 485 | then $a | |
486 | 486 | else isSymbolC($a, $l[$i]) | |
487 | 487 | ||
488 | 488 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
489 | 489 | then $a | |
490 | 490 | else throw("List size exceeds 8") | |
491 | 491 | ||
492 | 492 | $f2_2($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) | |
493 | 493 | }) + "C"))) + getAmountOrClear((toString({ | |
494 | 494 | let $l = genotype | |
495 | 495 | let $s = size($l) | |
496 | 496 | let $acc0 = 0 | |
497 | 497 | func $f3_1 ($a,$i) = if (($i >= $s)) | |
498 | 498 | then $a | |
499 | 499 | else isSymbolD($a, $l[$i]) | |
500 | 500 | ||
501 | 501 | func $f3_2 ($a,$i) = if (($i >= $s)) | |
502 | 502 | then $a | |
503 | 503 | else throw("List size exceeds 8") | |
504 | 504 | ||
505 | 505 | $f3_2($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) | |
506 | 506 | }) + "D"))) + getAmountOrClear((toString({ | |
507 | 507 | let $l = genotype | |
508 | 508 | let $s = size($l) | |
509 | 509 | let $acc0 = 0 | |
510 | 510 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
511 | 511 | then $a | |
512 | 512 | else isSymbolE($a, $l[$i]) | |
513 | 513 | ||
514 | 514 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
515 | 515 | then $a | |
516 | 516 | else throw("List size exceeds 8") | |
517 | 517 | ||
518 | 518 | $f4_2($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) | |
519 | 519 | }) + "E"))) + getAmountOrClear((toString({ | |
520 | 520 | let $l = genotype | |
521 | 521 | let $s = size($l) | |
522 | 522 | let $acc0 = 0 | |
523 | 523 | func $f5_1 ($a,$i) = if (($i >= $s)) | |
524 | 524 | then $a | |
525 | 525 | else isSymbolF($a, $l[$i]) | |
526 | 526 | ||
527 | 527 | func $f5_2 ($a,$i) = if (($i >= $s)) | |
528 | 528 | then $a | |
529 | 529 | else throw("List size exceeds 8") | |
530 | 530 | ||
531 | 531 | $f5_2($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
532 | 532 | }) + "F"))) + getAmountOrClear((toString({ | |
533 | 533 | let $l = genotype | |
534 | 534 | let $s = size($l) | |
535 | 535 | let $acc0 = 0 | |
536 | 536 | func $f6_1 ($a,$i) = if (($i >= $s)) | |
537 | 537 | then $a | |
538 | 538 | else isSymbolG($a, $l[$i]) | |
539 | 539 | ||
540 | 540 | func $f6_2 ($a,$i) = if (($i >= $s)) | |
541 | 541 | then $a | |
542 | 542 | else throw("List size exceeds 8") | |
543 | 543 | ||
544 | 544 | $f6_2($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
545 | 545 | }) + "G"))) + getAmountOrClear((toString({ | |
546 | 546 | let $l = genotype | |
547 | 547 | let $s = size($l) | |
548 | 548 | let $acc0 = 0 | |
549 | 549 | func $f7_1 ($a,$i) = if (($i >= $s)) | |
550 | 550 | then $a | |
551 | 551 | else isSymbolH($a, $l[$i]) | |
552 | 552 | ||
553 | 553 | func $f7_2 ($a,$i) = if (($i >= $s)) | |
554 | 554 | then $a | |
555 | 555 | else throw("List size exceeds 8") | |
556 | 556 | ||
557 | 557 | $f7_2($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
558 | 558 | }) + "H"))) + getAmountOrClear((toString({ | |
559 | 559 | let $l = genotype | |
560 | 560 | let $s = size($l) | |
561 | 561 | let $acc0 = 0 | |
562 | 562 | func $f8_1 ($a,$i) = if (($i >= $s)) | |
563 | 563 | then $a | |
564 | 564 | else isSymbolI($a, $l[$i]) | |
565 | 565 | ||
566 | 566 | func $f8_2 ($a,$i) = if (($i >= $s)) | |
567 | 567 | then $a | |
568 | 568 | else throw("List size exceeds 8") | |
569 | 569 | ||
570 | 570 | $f8_2($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
571 | 571 | }) + "I"))) + getAmountOrClear((toString({ | |
572 | 572 | let $l = genotype | |
573 | 573 | let $s = size($l) | |
574 | 574 | let $acc0 = 0 | |
575 | 575 | func $f9_1 ($a,$i) = if (($i >= $s)) | |
576 | 576 | then $a | |
577 | 577 | else isSymbolK($a, $l[$i]) | |
578 | 578 | ||
579 | 579 | func $f9_2 ($a,$i) = if (($i >= $s)) | |
580 | 580 | then $a | |
581 | 581 | else throw("List size exceeds 8") | |
582 | 582 | ||
583 | 583 | $f9_2($f9_1($f9_1($f9_1($f9_1($f9_1($f9_1($f9_1($f9_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
584 | 584 | }) + "K"))) + getAmountOrClear((toString({ | |
585 | 585 | let $l = genotype | |
586 | 586 | let $s = size($l) | |
587 | 587 | let $acc0 = 0 | |
588 | 588 | func $f10_1 ($a,$i) = if (($i >= $s)) | |
589 | 589 | then $a | |
590 | 590 | else isSymbolL($a, $l[$i]) | |
591 | 591 | ||
592 | 592 | func $f10_2 ($a,$i) = if (($i >= $s)) | |
593 | 593 | then $a | |
594 | 594 | else throw("List size exceeds 8") | |
595 | 595 | ||
596 | 596 | $f10_2($f10_1($f10_1($f10_1($f10_1($f10_1($f10_1($f10_1($f10_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
597 | 597 | }) + "L"))) + getAmountOrClear((toString({ | |
598 | 598 | let $l = genotype | |
599 | 599 | let $s = size($l) | |
600 | 600 | let $acc0 = 0 | |
601 | 601 | func $f11_1 ($a,$i) = if (($i >= $s)) | |
602 | 602 | then $a | |
603 | 603 | else isSymbolM($a, $l[$i]) | |
604 | 604 | ||
605 | 605 | func $f11_2 ($a,$i) = if (($i >= $s)) | |
606 | 606 | then $a | |
607 | 607 | else throw("List size exceeds 8") | |
608 | 608 | ||
609 | 609 | $f11_2($f11_1($f11_1($f11_1($f11_1($f11_1($f11_1($f11_1($f11_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
610 | 610 | }) + "M"))) + getAmountOrClear((toString({ | |
611 | 611 | let $l = genotype | |
612 | 612 | let $s = size($l) | |
613 | 613 | let $acc0 = 0 | |
614 | 614 | func $f12_1 ($a,$i) = if (($i >= $s)) | |
615 | 615 | then $a | |
616 | 616 | else isSymbolN($a, $l[$i]) | |
617 | 617 | ||
618 | 618 | func $f12_2 ($a,$i) = if (($i >= $s)) | |
619 | 619 | then $a | |
620 | 620 | else throw("List size exceeds 8") | |
621 | 621 | ||
622 | 622 | $f12_2($f12_1($f12_1($f12_1($f12_1($f12_1($f12_1($f12_1($f12_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
623 | 623 | }) + "N"))) + getAmountOrClear((toString({ | |
624 | 624 | let $l = genotype | |
625 | 625 | let $s = size($l) | |
626 | 626 | let $acc0 = 0 | |
627 | 627 | func $f13_1 ($a,$i) = if (($i >= $s)) | |
628 | 628 | then $a | |
629 | 629 | else isSymbolO($a, $l[$i]) | |
630 | 630 | ||
631 | 631 | func $f13_2 ($a,$i) = if (($i >= $s)) | |
632 | 632 | then $a | |
633 | 633 | else throw("List size exceeds 8") | |
634 | 634 | ||
635 | 635 | $f13_2($f13_1($f13_1($f13_1($f13_1($f13_1($f13_1($f13_1($f13_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
636 | 636 | }) + "O"))) + getAmountOrClear((toString({ | |
637 | 637 | let $l = genotype | |
638 | 638 | let $s = size($l) | |
639 | 639 | let $acc0 = 0 | |
640 | 640 | func $f14_1 ($a,$i) = if (($i >= $s)) | |
641 | 641 | then $a | |
642 | 642 | else isSymbolP($a, $l[$i]) | |
643 | 643 | ||
644 | 644 | func $f14_2 ($a,$i) = if (($i >= $s)) | |
645 | 645 | then $a | |
646 | 646 | else throw("List size exceeds 8") | |
647 | 647 | ||
648 | 648 | $f14_2($f14_1($f14_1($f14_1($f14_1($f14_1($f14_1($f14_1($f14_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
649 | 649 | }) + "P"))) + getAmountOrClear((toString({ | |
650 | 650 | let $l = genotype | |
651 | 651 | let $s = size($l) | |
652 | 652 | let $acc0 = 0 | |
653 | 653 | func $f15_1 ($a,$i) = if (($i >= $s)) | |
654 | 654 | then $a | |
655 | 655 | else isSymbolS($a, $l[$i]) | |
656 | 656 | ||
657 | 657 | func $f15_2 ($a,$i) = if (($i >= $s)) | |
658 | 658 | then $a | |
659 | 659 | else throw("List size exceeds 8") | |
660 | 660 | ||
661 | 661 | $f15_2($f15_1($f15_1($f15_1($f15_1($f15_1($f15_1($f15_1($f15_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
662 | 662 | }) + "S"))) + getAmountOrClear((toString({ | |
663 | 663 | let $l = genotype | |
664 | 664 | let $s = size($l) | |
665 | 665 | let $acc0 = 0 | |
666 | 666 | func $f16_1 ($a,$i) = if (($i >= $s)) | |
667 | 667 | then $a | |
668 | 668 | else isSymbolT($a, $l[$i]) | |
669 | 669 | ||
670 | 670 | func $f16_2 ($a,$i) = if (($i >= $s)) | |
671 | 671 | then $a | |
672 | 672 | else throw("List size exceeds 8") | |
673 | 673 | ||
674 | 674 | $f16_2($f16_1($f16_1($f16_1($f16_1($f16_1($f16_1($f16_1($f16_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
675 | 675 | }) + "T"))) + getAmountOrClear((toString({ | |
676 | 676 | let $l = genotype | |
677 | 677 | let $s = size($l) | |
678 | 678 | let $acc0 = 0 | |
679 | 679 | func $f17_1 ($a,$i) = if (($i >= $s)) | |
680 | 680 | then $a | |
681 | 681 | else isSymbolZ($a, $l[$i]) | |
682 | 682 | ||
683 | 683 | func $f17_2 ($a,$i) = if (($i >= $s)) | |
684 | 684 | then $a | |
685 | 685 | else throw("List size exceeds 8") | |
686 | 686 | ||
687 | 687 | $f17_2($f17_1($f17_1($f17_1($f17_1($f17_1($f17_1($f17_1($f17_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
688 | 688 | }) + "Z"))) + "-") + generation) | |
689 | 689 | $Tuple2(nil, gen) | |
690 | 690 | } | |
691 | 691 | ||
692 | 692 | ||
693 | 693 | ||
694 | 694 | @Callable(i) | |
695 | 695 | func validateAndGetChildren (assetId) = if (!(checkAssetInIncubator(assetId))) | |
696 | 696 | then throw((("You need to attach a valid NFT-duck. " + assetId) + " is invalid!")) | |
697 | 697 | else { | |
698 | 698 | let children = tryGetInteger((("asset_" + assetId) + "_children")) | |
699 | 699 | $Tuple2(nil, children) | |
700 | 700 | } | |
701 | 701 | ||
702 | 702 | ||
703 | 703 | ||
704 | 704 | @Callable(i) | |
705 | 705 | func createDuckSpecialGenes (address,duckGen,children) = if (if ((i.caller != getItemsAddress())) | |
706 | 706 | then (i.caller != this) | |
707 | 707 | else false) | |
708 | 708 | then throw("admin or items only") | |
709 | 709 | else { | |
710 | 710 | let txId = i.transactionId | |
711 | 711 | let description = (("{\"genotype\": \"" + duckGen) + "\", \"crossbreeding\": true}") | |
712 | 712 | let asset = Issue(duckGen, description, 1, 0, false) | |
713 | 713 | let assetId = calculateAssetId(asset) | |
714 | 714 | let duckIdKey = getDuckIdKey(toString(i.caller), txId) | |
715 | 715 | let farmGen = asString(invoke(this, "getGenFromName", [duckGen], nil)) | |
716 | 716 | if ((farmGen == farmGen)) | |
717 | 717 | then (composeGenericData(duckGen, duckIdKey, assetId, asset) ++ [IntegerEntry((("asset_" + toBase58String(assetId)) + "_children"), children), ScriptTransfer(Address(address), 1, assetId)]) | |
718 | 718 | else throw("Strict value is not equal to itself.") | |
719 | 719 | } | |
720 | 720 | ||
721 | 721 | ||
722 | 722 | ||
723 | 723 | @Callable(i) | |
724 | 724 | func startDuckBreeding (refererAddress) = { | |
725 | 725 | let firstPayment = value(i.payments[0]) | |
726 | 726 | let secondPayment = value(i.payments[1]) | |
727 | 727 | let validPayment = checkAdditionalPayment(i.payments[2]) | |
728 | 728 | if ((validPayment == validPayment)) | |
729 | 729 | then { | |
730 | 730 | let instantPaid = if (if ((size(i.payments) >= 4)) | |
731 | 731 | then (i.payments[3].assetId == getSpiceAssetId()) | |
732 | 732 | else false) | |
733 | 733 | then true | |
734 | 734 | else false | |
735 | 735 | if ((instantPaid == instantPaid)) | |
736 | 736 | then { | |
737 | 737 | let firstAssetId = toBase58String(value(firstPayment.assetId)) | |
738 | 738 | let secondAssetId = toBase58String(value(secondPayment.assetId)) | |
739 | 739 | if (if ((firstPayment.amount != 1)) | |
740 | 740 | then true | |
741 | 741 | else (secondPayment.amount != 1)) | |
742 | 742 | then throw("NFT is not attached") | |
743 | 743 | else { | |
744 | 744 | let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [getDucklingPrice()], nil)) | |
745 | 745 | if ((amountPaidByCoupons == amountPaidByCoupons)) | |
746 | 746 | then { | |
747 | 747 | let leftToPay = (getDucklingPrice() - amountPaidByCoupons) | |
748 | 748 | let payment = if ((leftToPay != 0)) | |
749 | 749 | then { | |
750 | 750 | let thirdPayment = if (instantPaid) | |
751 | 751 | then value(i.payments[4]) | |
752 | 752 | else value(i.payments[3]) | |
753 | 753 | if ((thirdPayment.assetId != getEggAssetId())) | |
754 | 754 | then throw(("BSDB: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
755 | 755 | else if ((thirdPayment.amount != leftToPay)) | |
756 | 756 | then throw(("BSDB: To breed you currently need the following amount of EGGlets: " + toString(leftToPay))) | |
757 | 757 | else { | |
758 | 758 | let refererRewardForPerch = fraction(leftToPay, 5, 100) | |
759 | 759 | let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForPerch)])) | |
760 | 760 | if ((refCall == refCall)) | |
761 | 761 | then { | |
762 | 762 | let toBurn = if (refCall) | |
763 | 763 | then (leftToPay - refererRewardForPerch) | |
764 | 764 | else leftToPay | |
765 | 765 | let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)]) | |
766 | 766 | if ((burnCall == burnCall)) | |
767 | 767 | then leftToPay | |
768 | 768 | else throw("Strict value is not equal to itself.") | |
769 | 769 | } | |
770 | 770 | else throw("Strict value is not equal to itself.") | |
771 | 771 | } | |
772 | 772 | } | |
773 | 773 | else 0 | |
774 | 774 | if ((payment == payment)) | |
775 | 775 | then { | |
776 | 776 | let children1 = asInt(invoke(this, "validateAndGetChildren", [firstAssetId], nil)) | |
777 | 777 | if ((children1 == children1)) | |
778 | 778 | then { | |
779 | 779 | let children2 = asInt(invoke(this, "validateAndGetChildren", [secondAssetId], nil)) | |
780 | 780 | if ((children2 == children2)) | |
781 | 781 | then if (if ((children1 > 0)) | |
782 | 782 | then true | |
783 | 783 | else (children2 > 0)) | |
784 | 784 | then throw("One duck can be used for breeding only once in its lifetime.") | |
785 | 785 | else { | |
786 | 786 | let breededStatus = canBeBreeded(fromBase58String(firstAssetId), fromBase58String(secondAssetId)) | |
787 | 787 | if ((breededStatus != "true")) | |
788 | 788 | then throw(("These ducks cannot be breeded: " + breededStatus)) | |
789 | 789 | else { | |
790 | 790 | let parent1Gen = split(value(assetInfo(value(firstPayment.assetId))).name, "") | |
791 | 791 | let parent2Gen = split(value(assetInfo(value(secondPayment.assetId))).name, "") | |
792 | 792 | let newG = determineGeneration(parent1Gen[14], parent2Gen[14]) | |
793 | 793 | let spiceAmount = ((value(indexOf(Generations, newG)) + 1) * 1000000000) | |
794 | 794 | let result = if (instantPaid) | |
795 | 795 | then if (if ((i.payments[3].amount == spiceAmount)) | |
796 | 796 | then (i.payments[3].assetId == getSpiceAssetId()) | |
797 | 797 | else false) | |
798 | 798 | then { | |
799 | 799 | let topup = invoke(getTurtleStakingAddress(), "topUpReward", nil, [AttachedPayment(getSpiceAssetId(), (spiceAmount / 2))]) | |
800 | 800 | if ((topup == topup)) | |
801 | 801 | then [BooleanEntry(("instantPaid_" + toBase58String(i.transactionId)), true)] | |
802 | 802 | else throw("Strict value is not equal to itself.") | |
803 | 803 | } | |
804 | 804 | else throw("Please attach the correct amount of spice!") | |
805 | 805 | else { | |
806 | 806 | let res = asString(invoke(getBabyDuckBreedingAddress(), "issueDuckling", [toString(i.caller), toBase58String(i.transactionId), (spiceAmount / 100000000), newG], nil)) | |
807 | 807 | if ((res == res)) | |
808 | 808 | then [StringEntry(getDucklingKey(toString(i.caller), i.transactionId), res), BooleanEntry(("instantPaid_" + toBase58String(i.transactionId)), false)] | |
809 | 809 | else throw("Strict value is not equal to itself.") | |
810 | 810 | } | |
811 | 811 | if ((result == result)) | |
812 | 812 | then ((result ++ [StringEntry(getDuckParentKey(i.transactionId, 1), firstAssetId), StringEntry(getDuckParentKey(i.transactionId, 2), secondAssetId), StringEntry(getProcessStatusKey(toString(i.caller), i.transactionId), HatchingStarted), IntegerEntry(getProcessFinishHeightKey(toString(i.caller), i.transactionId), (height + delayForHatching)), IntegerEntry((("asset_" + firstAssetId) + "_children"), 1), IntegerEntry((("asset_" + secondAssetId) + "_children"), 1), ScriptTransfer(i.caller, 1, value(firstPayment.assetId)), ScriptTransfer(i.caller, 1, value(secondPayment.assetId))]) ++ validPayment) | |
813 | 813 | else throw("Strict value is not equal to itself.") | |
814 | 814 | } | |
815 | 815 | } | |
816 | 816 | else throw("Strict value is not equal to itself.") | |
817 | 817 | } | |
818 | 818 | else throw("Strict value is not equal to itself.") | |
819 | 819 | } | |
820 | 820 | else throw("Strict value is not equal to itself.") | |
821 | 821 | } | |
822 | 822 | else throw("Strict value is not equal to itself.") | |
823 | 823 | } | |
824 | 824 | } | |
825 | 825 | else throw("Strict value is not equal to itself.") | |
826 | 826 | } | |
827 | 827 | else throw("Strict value is not equal to itself.") | |
828 | 828 | } | |
829 | 829 | ||
830 | 830 | ||
831 | 831 | ||
832 | 832 | @Callable(i) | |
833 | 833 | func finishDuckHatching (txIdStr) = { | |
834 | 834 | let owner = toString(i.caller) | |
835 | 835 | let instantPaid = tryGetBoolean(("instantPaid_" + txIdStr)) | |
836 | 836 | let ducklingLinked = tryGetString(getDucklingKey(owner, fromBase58String(txIdStr))) | |
837 | 837 | if (instantPaid) | |
838 | 838 | then finishDuckHatch(txIdStr, owner, "") | |
839 | 839 | else { | |
840 | 840 | let ducklingFinish = asString(invoke(getBabyDuckBreedingAddress(), "turnDucklingIntoDuck", nil, i.payments)) | |
841 | 841 | if ((ducklingFinish == ducklingFinish)) | |
842 | 842 | then if ((ducklingLinked != ducklingFinish)) | |
843 | 843 | then throw("Please attach the correct duckling!") | |
844 | 844 | else finishDuckHatch(txIdStr, owner, "") | |
845 | 845 | else throw("Strict value is not equal to itself.") | |
846 | 846 | } | |
847 | 847 | } | |
848 | 848 | ||
849 | 849 | ||
850 | 850 | ||
851 | 851 | @Callable(i) | |
852 | 852 | func finishDuckHatchingAdmin (txIdStr,owner) = if ((i.caller != this)) | |
853 | 853 | then throw("BFDH: Only admins can run this!") | |
854 | 854 | else finishDuckHatch(txIdStr, owner, "") | |
855 | 855 | ||
856 | 856 | ||
857 | 857 | ||
858 | 858 | @Callable(i) | |
859 | 859 | func fixedGene (txIdStr,parentFixedGene,positionFixedGene) = if (if ((parentFixedGene != 1)) | |
860 | 860 | then (parentFixedGene != 2) | |
861 | 861 | else false) | |
862 | 862 | then throw("FG: Parent fixed gene can be only 1 or 2") | |
863 | 863 | else { | |
864 | 864 | let firstPayment = value(i.payments[0]) | |
865 | 865 | let firstAssetId = toBase58String(value(firstPayment.assetId)) | |
866 | 866 | if ((firstPayment.amount != 1)) | |
867 | 867 | then throw("NFT is not attached") | |
868 | 868 | else { | |
869 | 869 | let artefact = asString(invoke(getItemsAddress(), "checkArtefactDetails", [firstAssetId], nil)) | |
870 | 870 | if ((artefact == artefact)) | |
871 | 871 | then if ((artefact != "ART-FIXGENE")) | |
872 | 872 | then throw("You need to attach a ART-FIXGENE artefact") | |
873 | 873 | else { | |
874 | 874 | let txId = fromBase58String(txIdStr) | |
875 | 875 | let finishHeightKey = getProcessFinishHeightKey(toString(i.caller), txId) | |
876 | 876 | let processFinishHeight = getIntegerValue(this, finishHeightKey) | |
877 | 877 | let duckGenesString = asString(invoke(this, "generateDuck", [txId, processFinishHeight, parentFixedGene, positionFixedGene, "", 0], nil)) | |
878 | 878 | if ((duckGenesString == duckGenesString)) | |
879 | 879 | then { | |
880 | 880 | let strictFinish = finishDuckHatchingItems(txIdStr, duckGenesString, i.payments[1], i.payments[2], toString(i.originCaller)) | |
881 | 881 | ([Burn(value(firstPayment.assetId), 1)] ++ strictFinish) | |
882 | 882 | } | |
883 | 883 | else throw("Strict value is not equal to itself.") | |
884 | 884 | } | |
885 | 885 | else throw("Strict value is not equal to itself.") | |
886 | 886 | } | |
887 | 887 | } | |
888 | 888 | ||
889 | 889 | ||
890 | 890 | ||
891 | 891 | @Callable(i) | |
892 | 892 | func freeGene (txIdStr) = { | |
893 | 893 | let firstPayment = value(i.payments[0]) | |
894 | 894 | let firstAssetId = toBase58String(value(firstPayment.assetId)) | |
895 | 895 | if ((firstPayment.amount != 1)) | |
896 | 896 | then throw("NFT is not attached") | |
897 | 897 | else { | |
898 | 898 | let artefact = asString(invoke(getItemsAddress(), "checkArtefactDetails", [firstAssetId], nil)) | |
899 | 899 | if ((artefact == artefact)) | |
900 | 900 | then if ((artefact != "ART-FREEGENE")) | |
901 | 901 | then throw("You need to attach a ART-FREEGENE artefact") | |
902 | 902 | else { | |
903 | 903 | let txId = fromBase58String(txIdStr) | |
904 | 904 | let finishHeightKey = getProcessFinishHeightKey(toString(i.caller), txId) | |
905 | 905 | let processFinishHeight = getIntegerValue(this, finishHeightKey) | |
906 | 906 | let selectedGene = getRandomGenes(txId, processFinishHeight) | |
907 | 907 | let randomPosition = getRandomNumber(8, txId, processFinishHeight, 3) | |
908 | 908 | let duckGenesString = asString(invoke(this, "generateDuck", [txId, processFinishHeight, 0, 0, selectedGene, randomPosition], nil)) | |
909 | 909 | if ((duckGenesString == duckGenesString)) | |
910 | 910 | then { | |
911 | 911 | let strictFinish = finishDuckHatchingItems(txIdStr, duckGenesString, i.payments[1], i.payments[2], toString(i.originCaller)) | |
912 | 912 | ([Burn(value(firstPayment.assetId), 1)] ++ strictFinish) | |
913 | 913 | } | |
914 | 914 | else throw("Strict value is not equal to itself.") | |
915 | 915 | } | |
916 | 916 | else throw("Strict value is not equal to itself.") | |
917 | 917 | } | |
918 | 918 | } | |
919 | 919 | ||
920 | 920 | ||
921 | 921 | ||
922 | 922 | @Callable(i) | |
923 | 923 | func reduceRarity (assetId,farmGen) = { | |
924 | 924 | let asset = fromBase58String(assetId) | |
925 | 925 | if (if (if ((i.caller != getItemsAddress())) | |
926 | 926 | then (i.caller != getRebirthAddress()) | |
927 | 927 | else false) | |
928 | 928 | then (i.caller != this) | |
929 | 929 | else false) | |
930 | 930 | then throw("admin, items or rebirth only") | |
931 | 931 | else { | |
932 | 932 | let duckGen = value(assetInfo(asset)).name | |
933 | 933 | [IntegerEntry(getDuckStatsKey(duckGen), (tryGetInteger(getDuckStatsKey(duckGen)) - 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) - 1))] | |
934 | 934 | } | |
935 | 935 | } | |
936 | 936 | ||
937 | 937 | ||
938 | 938 | @Verifier(tx) | |
939 | 939 | func verify () = if (isTestEnv()) | |
940 | 940 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
941 | 941 | else { | |
942 | 942 | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
943 | 943 | let secondUser = base58'E23yUg8eun5nXB1nZRDf7RTyRADKxQhGNXdpTYonEvtU' | |
944 | 944 | let thirdUser = base58'Ga8WEBTPXbHuoXRD355mQ6ms8PsM2RFYKeA1mEP32CFe' | |
945 | 945 | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
946 | 946 | then 1 | |
947 | 947 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
948 | 948 | then 1 | |
949 | 949 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
950 | 950 | then 1 | |
951 | 951 | else 0 | |
952 | 952 | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
953 | 953 | then 1 | |
954 | 954 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
955 | 955 | then 1 | |
956 | 956 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
957 | 957 | then 1 | |
958 | 958 | else 0 | |
959 | 959 | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
960 | 960 | then 1 | |
961 | 961 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
962 | 962 | then 1 | |
963 | 963 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
964 | 964 | then 1 | |
965 | 965 | else 0 | |
966 | 966 | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
967 | 967 | match tx { | |
968 | 968 | case _ => | |
969 | 969 | (signaturesCount >= 2) | |
970 | 970 | } | |
971 | 971 | } | |
972 | 972 |
github/deemru/w8io/026f985 81.90 ms ◑