tx · 4eNK2nKeRnFW6PuNpn6GrwLa73KAcy2gcjJ4RdouAyZv 3N1Nb8gVFi3S4Cvt2sBZj7XPkPiWYqKdTfp: -0.01900000 Waves 2024.10.03 12:23 [3310484] smart account 3N1Nb8gVFi3S4Cvt2sBZj7XPkPiWYqKdTfp > SELF 0.00000000 Waves
{ "type": 13, "id": "4eNK2nKeRnFW6PuNpn6GrwLa73KAcy2gcjJ4RdouAyZv", "fee": 1900000, "feeAssetId": null, "timestamp": 1727947450929, "version": 2, "chainId": 84, "sender": "3N1Nb8gVFi3S4Cvt2sBZj7XPkPiWYqKdTfp", "senderPublicKey": "8FVyd1UAAKDWDWsLPFgQp4THUXha3DRBmZ9ceTQMMzFk", "proofs": [ "58umFFd358pzZJFfYqvEXPhS5n3ULBfmUoC4X7otziacypa2vuCzWTQatyENk9m7UKjyzX7ndjyJ88ccM9cWTnZn" ], "script": "base64:BgIWCAISAwoBCBIDCgEIEgMKAQgSAwoBCC8BFHRyeUdldFN0cmluZ0V4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAnQgCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBQFhAgABDXRyeUdldEludGVnZXIBA2tleQQHJG1hdGNoMAkAmggCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAABDHRyeUdldFN0cmluZwEDa2V5CQEUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwCBQR0aGlzBQNrZXkBBWFzSW50AQV2YWx1ZQQHJG1hdGNoMAUFdmFsdWUDCQABAgUHJG1hdGNoMAIDSW50BANpbnQFByRtYXRjaDAFA2ludAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEBnN0cmluZwUHJG1hdGNoMAkAAgEJAKwCAgIpUkFJOiB3cm9uZyB0eXBlLCBleHBlY3RlZDogSW50LCBidXQgZ290OiAFBnN0cmluZwkAAgECHlJBSTogd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XMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQENZmluaXNoUmViaXJ0aAEGaW5pdFR4CQEVZmluaXNoUmViaXJ0aEludGVybmFsBAUGaW5pdFR4CQClCAEIBQFpBmNhbGxlcgkAkQMCCAUBaQhwYXltZW50cwAABwFpARNmaW5pc2hSZWJpcnRoRG91YmxlAQZpbml0VHgDCQEBIQEDCQAAAgkAkAMBCAUBaQhwYXltZW50cwACCQAAAggJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQAAQcJAAIBAg9JbnZhbGlkIHBheW1lbnQEB2Fzc2V0SWQJAQV2YWx1ZQEICQCRAwIIBQFpCHBheW1lbnRzAAAHYXNzZXRJZAQLYm9vc3RlclR5cGUJAQhhc1N0cmluZwEJAPwHBAkBD2dldEl0ZW1zQWRkcmVzcwACFGNoZWNrQXJ0ZWZhY3REZXRhaWxzCQDMCAIJANgEAQUHYXNzZXRJZAUDbmlsBQNuaWwDCQAAAgULYm9vc3RlclR5cGUFC2Jvb3N0ZXJUeXBlAwkAAAIFC2Jvb3N0ZXJUeXBlAg5BUlQtR0lGVF9ET1VCTAkAzggCCQDMCAIJAQRCdXJuAgUHYXNzZXRJZAABBQNuaWwJARVmaW5pc2hSZWJpcnRoSW50ZXJuYWwEBQZpbml0VHgJAKUIAQgFAWkGY2FsbGVyCQCRAwIIBQFpCHBheW1lbnRzAAEGCQACAQItRXJyb3IhIFdyb25nIGl0ZW0gYXR0YWNoZWQgdG8gZG91YmxlIHJld2FyZHMhCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAGNbbyk=", "height": 3310484, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9WBRPJvwWwNXTBp9k8ANYTRaxSxxiTmz3SyUeLW8kaZ3 Next: BKEj7jdrrE3NuCrEhHNewzpuoUR1Uo3jr1oxoBv8hkwv Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = { | |
5 | 5 | let d = getString(b, c) | |
6 | 6 | if ($isInstanceOf(d, "String")) | |
7 | 7 | then { | |
8 | 8 | let e = d | |
9 | 9 | e | |
10 | 10 | } | |
11 | 11 | else "" | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f (c) = { | |
16 | 16 | let d = getInteger(this, c) | |
17 | 17 | if ($isInstanceOf(d, "Int")) | |
18 | 18 | then { | |
19 | 19 | let g = d | |
20 | 20 | g | |
21 | 21 | } | |
22 | 22 | else 0 | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func h (c) = a(this, c) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func i (j) = { | |
30 | 30 | let d = j | |
31 | 31 | if ($isInstanceOf(d, "Int")) | |
32 | 32 | then { | |
33 | 33 | let k = d | |
34 | 34 | k | |
35 | 35 | } | |
36 | 36 | else if ($isInstanceOf(d, "String")) | |
37 | 37 | then { | |
38 | 38 | let l = d | |
39 | 39 | throw(("RAI: wrong type, expected: Int, but got: " + l)) | |
40 | 40 | } | |
41 | 41 | else throw("RAI: wrong type, expected: Int") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func m (j) = { | |
46 | 46 | let d = j | |
47 | 47 | if ($isInstanceOf(d, "Boolean")) | |
48 | 48 | then { | |
49 | 49 | let n = d | |
50 | 50 | n | |
51 | 51 | } | |
52 | 52 | else throw("FAB: wrong type, expected: Boolean") | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func o (j) = { | |
57 | 57 | let d = j | |
58 | 58 | if ($isInstanceOf(d, "String")) | |
59 | 59 | then { | |
60 | 60 | let p = d | |
61 | 61 | p | |
62 | 62 | } | |
63 | 63 | else if ($isInstanceOf(d, "Int")) | |
64 | 64 | then { | |
65 | 65 | let p = d | |
66 | 66 | throw("wrong type, expected: String, got: Int") | |
67 | 67 | } | |
68 | 68 | else if ($isInstanceOf(d, "Unit")) | |
69 | 69 | then { | |
70 | 70 | let p = d | |
71 | 71 | throw("wrong type, expected: String, got: Unit") | |
72 | 72 | } | |
73 | 73 | else throw("wrong type, expected: String") | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func q () = "static_oracleAddress" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func r () = "static_eggAssetId" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func s () = "static_burnAddress" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func t () = "static_extraFee" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func u () = "static_feeAggregator" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func v () = "static_turtleIncubatorAddress" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func w () = "static_turtleBreederAddress" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func x () = "static_spiceAssetId" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func y () = "static_refContractAddress" | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func z () = "static_couponsAddress" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func A () = "static_turtleStakingAddress" | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func B () = "static_farmingAddressNew" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func C () = "static_incubatorAddress" | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func D () = "static_itemsAddress" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func E () = "static_turtleSpiceRebirthPrice" | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func F () = "static_turtleWavesRebirthPrice" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func G () = "static_turtleEggRebirthPrice" | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func H () = Address(fromBase58String(h(q()))) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func I () = fromBase58String(a(H(), r())) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func J () = Address(fromBase58String(a(H(), s()))) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func K () = Address(fromBase58String(a(H(), u()))) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func L () = Address(fromBase58String(a(H(), w()))) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func M () = Address(fromBase58String(a(H(), v()))) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func N () = fromBase58String(a(H(), x())) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func O () = Address(fromBase58String(a(H(), y()))) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func P () = Address(fromBase58String(a(H(), z()))) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func Q () = Address(fromBase58String(a(H(), A()))) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func R () = Address(fromBase58String(a(H(), B()))) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func S () = Address(fromBase58String(a(H(), C()))) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func T () = Address(fromBase58String(a(H(), D()))) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func U (b,c) = { | |
168 | 168 | let d = getInteger(b, c) | |
169 | 169 | if ($isInstanceOf(d, "Int")) | |
170 | 170 | then { | |
171 | 171 | let g = d | |
172 | 172 | g | |
173 | 173 | } | |
174 | 174 | else throw("TR: Value not found in sc!") | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | let V = U(H(), E()) | |
179 | 179 | ||
180 | 180 | let W = U(H(), G()) | |
181 | 181 | ||
182 | 182 | let X = U(H(), F()) | |
183 | 183 | ||
184 | 184 | let Y = 2 | |
185 | 185 | ||
186 | 186 | func Z (aa) = if (if ((value(assetInfo(aa)).issuer == L())) | |
187 | 187 | then true | |
188 | 188 | else (value(assetInfo(aa)).issuer == M())) | |
189 | 189 | then true | |
190 | 190 | else throw("not valid NFT") | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func ab (ac) = if (isDefined(ac.assetId)) | |
194 | 194 | then throw("RCAP: Please attach waves") | |
195 | 195 | else { | |
196 | 196 | let ad = getIntegerValue(H(), t()) | |
197 | 197 | if ((ac.amount != ad)) | |
198 | 198 | then throw((("RCAP: Please attach exactly " + toString(ad)) + " amount of wavelets")) | |
199 | 199 | else [ScriptTransfer(K(), ad, unit)] | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func ae (af,ag,ah,ai) = { | |
204 | 204 | let aj = value(blockInfoByHeight((ah - 1))) | |
205 | 205 | let ak = sha256((ag + value(aj.vrf))) | |
206 | 206 | (toInt(ak, (ai * 8)) % af) | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func al (c) = { | |
211 | 211 | let d = getBoolean(c) | |
212 | 212 | if ($isInstanceOf(d, "Boolean")) | |
213 | 213 | then { | |
214 | 214 | let g = d | |
215 | 215 | g | |
216 | 216 | } | |
217 | 217 | else false | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func am (an,ao) = { | |
222 | 222 | let ap = al("JACKPOT_ENABLED") | |
223 | 223 | let aq = ae(300, an, ao, 1) | |
224 | 224 | if (if ((aq == 1)) | |
225 | 225 | then ap | |
226 | 226 | else false) | |
227 | 227 | then $Tuple2(aq, "jackpot") | |
228 | 228 | else { | |
229 | 229 | let ar = ae(1000, an, ao, 0) | |
230 | 230 | let as = if ((40 > ar)) | |
231 | 231 | then "item!ART-FIRE_SHIELD" | |
232 | 232 | else if ((80 > ar)) | |
233 | 233 | then "item!ART-FIRE_TAIL" | |
234 | 234 | else if ((100 > ar)) | |
235 | 235 | then "item!ART-FREEGENE" | |
236 | 236 | else if ((150 > ar)) | |
237 | 237 | then "beach_R" | |
238 | 238 | else if ((200 > ar)) | |
239 | 239 | then "beach_S" | |
240 | 240 | else if ((250 > ar)) | |
241 | 241 | then "beach_G" | |
242 | 242 | else if ((300 > ar)) | |
243 | 243 | then "beach_D" | |
244 | 244 | else if ((380 > ar)) | |
245 | 245 | then "item!ART-MUTARIUM-G" | |
246 | 246 | else if ((400 > ar)) | |
247 | 247 | then "item!ART-FEED5" | |
248 | 248 | else if ((600 > ar)) | |
249 | 249 | then "item!ART-FEED10" | |
250 | 250 | else if ((620 > ar)) | |
251 | 251 | then "item!ART-FEED15" | |
252 | 252 | else if ((640 > ar)) | |
253 | 253 | then "item!ART-FEED20" | |
254 | 254 | else if ((660 > ar)) | |
255 | 255 | then "item!ART-FEED25" | |
256 | 256 | else if ((680 > ar)) | |
257 | 257 | then "item!ART-FEED50" | |
258 | 258 | else if ((760 > ar)) | |
259 | 259 | then "item!ART-FEED100" | |
260 | 260 | else if ((780 > ar)) | |
261 | 261 | then "perch_G" | |
262 | 262 | else if ((800 > ar)) | |
263 | 263 | then "perch_Y" | |
264 | 264 | else if ((820 > ar)) | |
265 | 265 | then "perch_R" | |
266 | 266 | else if ((840 > ar)) | |
267 | 267 | then "perch_B" | |
268 | 268 | else if ((880 > ar)) | |
269 | 269 | then "item!ART-MUTARIUM-D" | |
270 | 270 | else if ((940 > ar)) | |
271 | 271 | then "incubator" | |
272 | 272 | else "duck_incubator" | |
273 | 273 | $Tuple2(ar, as) | |
274 | 274 | } | |
275 | 275 | } | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func at (au,b,av,aw) = { | |
279 | 279 | let ax = f((((("address_" + b) + "_initTx_") + au) + "_finishBlock")) | |
280 | 280 | let ay = h((((("address_" + b) + "_initTx_") + au) + "_status")) | |
281 | 281 | let az = ab(av) | |
282 | 282 | if ((az == az)) | |
283 | 283 | then { | |
284 | 284 | let aA = invoke(P(), "recordAction", ["REBIRTHTURTLE"], nil) | |
285 | 285 | if ((aA == aA)) | |
286 | 286 | then if ((ay != "open")) | |
287 | 287 | then throw("rebirth is finished or not open") | |
288 | 288 | else if ((ax > height)) | |
289 | 289 | then throw("you cannot finish rebirth, yet") | |
290 | 290 | else { | |
291 | 291 | let aB = am(fromBase58String(au), ax) | |
292 | 292 | let aC = aB._2 | |
293 | 293 | let aD = aB._1 | |
294 | 294 | let ag = au | |
295 | 295 | let as = if ((indexOf(aC, "perch") != unit)) | |
296 | 296 | then { | |
297 | 297 | let aE = takeRight(aC, 1) | |
298 | 298 | let aF = if (!(aw)) | |
299 | 299 | then { | |
300 | 300 | let aG = invoke(R(), "addFreePerch", [b, aE, 1], nil) | |
301 | 301 | if ((aG == aG)) | |
302 | 302 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aG))] | |
303 | 303 | else throw("Strict value is not equal to itself.") | |
304 | 304 | } | |
305 | 305 | else { | |
306 | 306 | let aG = invoke(R(), "addFreePerch", [b, aE, 2], nil) | |
307 | 307 | if ((aG == aG)) | |
308 | 308 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aG)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_result1"), o(aG)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_win1"), aC)] | |
309 | 309 | else throw("Strict value is not equal to itself.") | |
310 | 310 | } | |
311 | 311 | if ((aF == aF)) | |
312 | 312 | then aF | |
313 | 313 | else throw("Strict value is not equal to itself.") | |
314 | 314 | } | |
315 | 315 | else if ((indexOf(aC, "beach") != unit)) | |
316 | 316 | then { | |
317 | 317 | let aE = takeRight(aC, 1) | |
318 | 318 | let aF = if (!(aw)) | |
319 | 319 | then { | |
320 | 320 | let aG = invoke(Q(), "addFreeBeach", [b, aE], nil) | |
321 | 321 | if ((aG == aG)) | |
322 | 322 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aG))] | |
323 | 323 | else throw("Strict value is not equal to itself.") | |
324 | 324 | } | |
325 | 325 | else { | |
326 | 326 | let aG = invoke(Q(), "addFreeBeach", [b, aE], nil) | |
327 | 327 | if ((aG == aG)) | |
328 | 328 | then { | |
329 | 329 | let aH = invoke(Q(), "addFreeBeach", [b, aE], nil) | |
330 | 330 | if ((aH == aH)) | |
331 | 331 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aG)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_result1"), o(aH)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_win1"), aC)] | |
332 | 332 | else throw("Strict value is not equal to itself.") | |
333 | 333 | } | |
334 | 334 | else throw("Strict value is not equal to itself.") | |
335 | 335 | } | |
336 | 336 | if ((aF == aF)) | |
337 | 337 | then aF | |
338 | 338 | else throw("Strict value is not equal to itself.") | |
339 | 339 | } | |
340 | 340 | else if ((aC == "jackpot")) | |
341 | 341 | then { | |
342 | 342 | let aF = invoke(M(), "issueJackpot", [b, ag, valueOrElse(getString("JACKPOT_NAME"), "WWWWXMAS")], nil) | |
343 | 343 | if ((aF == aF)) | |
344 | 344 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aF))] | |
345 | 345 | else throw("Strict value is not equal to itself.") | |
346 | 346 | } | |
347 | 347 | else if ((aC == "incubator")) | |
348 | 348 | then { | |
349 | 349 | let aF = if (!(aw)) | |
350 | 350 | then { | |
351 | 351 | let aG = invoke(M(), "issueFreeTurtle", [b, ag], nil) | |
352 | 352 | if ((aG == aG)) | |
353 | 353 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aG))] | |
354 | 354 | else throw("Strict value is not equal to itself.") | |
355 | 355 | } | |
356 | 356 | else { | |
357 | 357 | let aG = invoke(M(), "issueFreeTurtle", [b, ag], nil) | |
358 | 358 | if ((aG == aG)) | |
359 | 359 | then { | |
360 | 360 | let aH = invoke(S(), "issueFreeDuckDefinedGenes", [b, ag, "ZZZZZZZZ"], nil) | |
361 | 361 | if ((aH == aH)) | |
362 | 362 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aG)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_result1"), o(aH)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_win1"), "duck_incubator")] | |
363 | 363 | else throw("Strict value is not equal to itself.") | |
364 | 364 | } | |
365 | 365 | else throw("Strict value is not equal to itself.") | |
366 | 366 | } | |
367 | 367 | if ((aF == aF)) | |
368 | 368 | then aF | |
369 | 369 | else throw("Strict value is not equal to itself.") | |
370 | 370 | } | |
371 | 371 | else if ((aC == "duck_incubator")) | |
372 | 372 | then { | |
373 | 373 | let aF = if (!(aw)) | |
374 | 374 | then { | |
375 | 375 | let aG = invoke(S(), "issueFreeDuckDefinedGenes", [b, ag, "ZZZZZZZZ"], nil) | |
376 | 376 | if ((aG == aG)) | |
377 | 377 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aG))] | |
378 | 378 | else throw("Strict value is not equal to itself.") | |
379 | 379 | } | |
380 | 380 | else { | |
381 | 381 | let aG = invoke(S(), "issueFreeDuckDefinedGenes", [b, ag, "ZZZZZZZZ"], nil) | |
382 | 382 | if ((aG == aG)) | |
383 | 383 | then { | |
384 | 384 | let aH = invoke(M(), "issueFreeTurtle", [b, ag], nil) | |
385 | 385 | if ((aH == aH)) | |
386 | 386 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aG)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_result1"), o(aH)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_win1"), "incubator")] | |
387 | 387 | else throw("Strict value is not equal to itself.") | |
388 | 388 | } | |
389 | 389 | else throw("Strict value is not equal to itself.") | |
390 | 390 | } | |
391 | 391 | if ((aF == aF)) | |
392 | 392 | then aF | |
393 | 393 | else throw("Strict value is not equal to itself.") | |
394 | 394 | } | |
395 | 395 | else if ((indexOf(aC, "item") != unit)) | |
396 | 396 | then { | |
397 | 397 | let aI = split(aC, "!")[1] | |
398 | 398 | let aF = if (!(aw)) | |
399 | 399 | then { | |
400 | 400 | let aG = invoke(T(), "issueArtefactIndex", [aI, b, 0], nil) | |
401 | 401 | if ((aG == aG)) | |
402 | 402 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aG))] | |
403 | 403 | else throw("Strict value is not equal to itself.") | |
404 | 404 | } | |
405 | 405 | else { | |
406 | 406 | let aG = invoke(T(), "issueArtefactIndex", [aI, b, 0], nil) | |
407 | 407 | if ((aG == aG)) | |
408 | 408 | then { | |
409 | 409 | let aH = invoke(T(), "issueArtefactIndex", [aI, b, 1], nil) | |
410 | 410 | if ((aH == aH)) | |
411 | 411 | then [StringEntry((((("address_" + b) + "_initTx_") + au) + "_result"), o(aG)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_result1"), o(aH)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_win1"), aC)] | |
412 | 412 | else throw("Strict value is not equal to itself.") | |
413 | 413 | } | |
414 | 414 | else throw("Strict value is not equal to itself.") | |
415 | 415 | } | |
416 | 416 | if ((aF == aF)) | |
417 | 417 | then aF | |
418 | 418 | else throw("Strict value is not equal to itself.") | |
419 | 419 | } | |
420 | 420 | else throw("RFB: Some error occured, please contact the admins!") | |
421 | 421 | ((as ++ [StringEntry((((("address_" + b) + "_initTx_") + au) + "_win"), aC), StringEntry((((("address_" + b) + "_initTx_") + au) + "_status"), "finish"), IntegerEntry((((("address_" + b) + "_initTx_") + au) + "_random"), aD)]) ++ az) | |
422 | 422 | } | |
423 | 423 | else throw("Strict value is not equal to itself.") | |
424 | 424 | } | |
425 | 425 | else throw("Strict value is not equal to itself.") | |
426 | 426 | } | |
427 | 427 | ||
428 | 428 | ||
429 | 429 | @Callable(aJ) | |
430 | 430 | func configureOracle (aK) = if ((aJ.caller != this)) | |
431 | 431 | then throw("RCU: admin only") | |
432 | 432 | else [StringEntry("static_oracleAddress", aK)] | |
433 | 433 | ||
434 | 434 | ||
435 | 435 | ||
436 | 436 | @Callable(aJ) | |
437 | 437 | func initRebirth (aL) = { | |
438 | 438 | let aM = aJ.payments[0] | |
439 | 439 | let aN = aJ.payments[1] | |
440 | 440 | let aO = aJ.payments[2] | |
441 | 441 | let aa = value(aM.assetId) | |
442 | 442 | let au = toBase58String(aJ.transactionId) | |
443 | 443 | let b = toString(aJ.caller) | |
444 | 444 | if ((aM.amount != 1)) | |
445 | 445 | then throw("NFT is not attached") | |
446 | 446 | else if (if ((aN.amount != X)) | |
447 | 447 | then true | |
448 | 448 | else (aN.assetId != unit)) | |
449 | 449 | then throw("Wavespayment is not attached or wrong!") | |
450 | 450 | else if (if ((aO.amount != V)) | |
451 | 451 | then true | |
452 | 452 | else (aO.assetId != N())) | |
453 | 453 | then throw("SpicePayment is not attached or wrong!") | |
454 | 454 | else { | |
455 | 455 | let aP = i(invoke(P(), "useCoupons", [W], nil)) | |
456 | 456 | if ((aP == aP)) | |
457 | 457 | then { | |
458 | 458 | let aQ = (W - aP) | |
459 | 459 | let aR = invoke(Q(), "topUpReward", nil, [AttachedPayment(N(), aO.amount)]) | |
460 | 460 | if ((aR == aR)) | |
461 | 461 | then { | |
462 | 462 | let ac = if ((aQ != 0)) | |
463 | 463 | then { | |
464 | 464 | let aS = aJ.payments[3] | |
465 | 465 | let aT = value(aS) | |
466 | 466 | if ((aT.assetId != I())) | |
467 | 467 | then throw("You need to attach EGG tokens as fee") | |
468 | 468 | else if ((aT.amount != aQ)) | |
469 | 469 | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString(aQ))) | |
470 | 470 | else { | |
471 | 471 | let aU = fraction(aQ, 5, 100) | |
472 | 472 | let aV = m(invoke(O(), "refPayment", [aL], [AttachedPayment(I(), aU)])) | |
473 | 473 | if ((aV == aV)) | |
474 | 474 | then { | |
475 | 475 | let aW = if (aV) | |
476 | 476 | then (aQ - aU) | |
477 | 477 | else aQ | |
478 | 478 | let aX = invoke(J(), "burnAttachedPayments", nil, [AttachedPayment(I(), aW)]) | |
479 | 479 | if ((aX == aX)) | |
480 | 480 | then aQ | |
481 | 481 | else throw("Strict value is not equal to itself.") | |
482 | 482 | } | |
483 | 483 | else throw("Strict value is not equal to itself.") | |
484 | 484 | } | |
485 | 485 | } | |
486 | 486 | else 0 | |
487 | 487 | if ((ac == ac)) | |
488 | 488 | then { | |
489 | 489 | let aY = Z(aa) | |
490 | 490 | if ((aY == aY)) | |
491 | 491 | then [IntegerEntry((((("address_" + b) + "_initTx_") + au) + "_finishBlock"), (height + Y)), StringEntry((((("address_" + b) + "_initTx_") + au) + "_status"), "open"), StringEntry((((("address_" + b) + "_initTx_") + au) + "_assetId"), toBase58String(aa)), ScriptTransfer(K(), aN.amount, unit)] | |
492 | 492 | else throw("Strict value is not equal to itself.") | |
493 | 493 | } | |
494 | 494 | else throw("Strict value is not equal to itself.") | |
495 | 495 | } | |
496 | 496 | else throw("Strict value is not equal to itself.") | |
497 | 497 | } | |
498 | 498 | else throw("Strict value is not equal to itself.") | |
499 | 499 | } | |
500 | 500 | } | |
501 | 501 | ||
502 | 502 | ||
503 | 503 | ||
504 | 504 | @Callable(aJ) | |
505 | 505 | func finishRebirth (au) = at(au, toString(aJ.caller), aJ.payments[0], false) | |
506 | 506 | ||
507 | 507 | ||
508 | 508 | ||
509 | 509 | @Callable(aJ) | |
510 | 510 | func finishRebirthDouble (au) = if (!(if ((size(aJ.payments) == 2)) | |
511 | 511 | then (aJ.payments[0].amount == 1) | |
512 | 512 | else false)) | |
513 | 513 | then throw("Invalid payment") | |
514 | 514 | else { | |
515 | 515 | let aa = value(aJ.payments[0].assetId) | |
516 | 516 | let aZ = o(invoke(T(), "checkArtefactDetails", [toBase58String(aa)], nil)) | |
517 | 517 | if ((aZ == aZ)) | |
518 | 518 | then if ((aZ == "ART-GIFT_DOUBL")) | |
519 | 519 | then ([Burn(aa, 1)] ++ at(au, toString(aJ.caller), aJ.payments[1], true)) | |
520 | 520 | else throw("Error! Wrong item attached to double rewards!") | |
521 | 521 | else throw("Strict value is not equal to itself.") | |
522 | 522 | } | |
523 | 523 | ||
524 | 524 |
github/deemru/w8io/026f985 44.64 ms ◑