tx · 4qnvd5jc68qCzE3m3VbxDxJDGKqjQHAMhhnWi4P9KuXn 3Mrq917T9DgxmZHP2wBRURvA2jUseEGaMqW: -0.02000000 Waves 2024.11.27 20:34 [3390127] smart account 3Mrq917T9DgxmZHP2wBRURvA2jUseEGaMqW > SELF 0.00000000 Waves
{ "type": 13, "id": "4qnvd5jc68qCzE3m3VbxDxJDGKqjQHAMhhnWi4P9KuXn", "fee": 2000000, "feeAssetId": null, "timestamp": 1732728851451, "version": 2, "chainId": 84, "sender": "3Mrq917T9DgxmZHP2wBRURvA2jUseEGaMqW", "senderPublicKey": "GCo4ZuX1Rm35x7nEMaxmHnkUeRoPqRk9knR7Ga55tMkD", "proofs": [ "B1HfrX7m6rCXmLRBdcCkBuBucixPvgCLvU24qdCMmz7W55skY52sFaCzvVYxdrLwPeF6S56DGsw3wTr1uLdwp4o" ], "script": "base64:BgIWCAISAwoBCBIDCgEIEgMKAQgSAwoBCDABCWlzVGVzdEVudgAEB3Rlc3RlbnYEByRtYXRjaDAJAJsIAgUEdGhpcwIHVEVTVEVOVgMJAAECBQckbWF0Y2gwAgdCb29sZWFuBAF4BQckbWF0Y2gwBQF4BwUHdGVzdGVudgEUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCdCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWEFByRtYXRjaDAFAWECAAENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAEMdHJ5R2V0U3RyaW5nAQNrZXkJARR0cnlHZXRTdHJpbmdFeHRlcm5hbAIFBHRoaXMFA2tleQEFYXNJbnQBBXZhbHVlBAckbWF0Y2gwBQV2YWx1ZQMJAAECBQckbWF0Y2gwAgNJbnQEA2ludAUHJG1hdGNoMAUDaW50AwkAAQIFByRtYXR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25lZAUPdGhpcmRVc2VyU2lnbmVkBAckbWF0Y2gwBQJ0eAkAZwIFD3NpZ25hdHVyZXNDb3VudAAC/MrZ+g==", "height": 3390127, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DLZf1RDWNZGzGaokJ8jaq3DwUxdXVhf7ywoLT8r4yhbU Next: Ask62ZaThJG2MrccVRnR7n1ku45Lu4epyPNCBWBZVEZW Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func isTestEnv () = { | |
5 | 5 | let testenv = match getBoolean(this, "TESTENV") { | |
6 | 6 | case x: Boolean => | |
7 | 7 | x | |
8 | 8 | case _ => | |
9 | 9 | false | |
10 | 10 | } | |
11 | 11 | testenv | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
16 | 16 | case a: String => | |
17 | 17 | a | |
18 | 18 | case _ => | |
19 | 19 | "" | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func tryGetInteger (key) = match getInteger(this, key) { | |
24 | 24 | case b: Int => | |
25 | 25 | b | |
26 | 26 | case _ => | |
27 | 27 | 0 | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func tryGetString (key) = tryGetStringExternal(this, key) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func asInt (value) = match value { | |
35 | 35 | case int: Int => | |
36 | 36 | int | |
37 | 37 | case string: String => | |
38 | 38 | throw(("RAI: wrong type, expected: Int, but got: " + string)) | |
39 | 39 | case _ => | |
40 | 40 | throw("RAI: wrong type, expected: Int") | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func asBoolean (value) = match value { | |
45 | 45 | case boolean: Boolean => | |
46 | 46 | boolean | |
47 | 47 | case _ => | |
48 | 48 | throw("FAB: wrong type, expected: Boolean") | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func asString (value) = match value { | |
53 | 53 | case s: String => | |
54 | 54 | s | |
55 | 55 | case s: Int => | |
56 | 56 | throw("wrong type, expected: String, got: Int") | |
57 | 57 | case s: Unit => | |
58 | 58 | throw("wrong type, expected: String, got: Unit") | |
59 | 59 | case _ => | |
60 | 60 | throw("wrong type, expected: String") | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func staticKey_oracleAddress () = "static_oracleAddress" | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func staticKey_eggAssetId () = "static_eggAssetId" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func staticKey_burnAddress () = "static_burnAddress" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func staticKey_extraFee () = "static_extraFee" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func staticKey_feeAggregator () = "static_feeAggregator" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func staticKey_turtleIncubatorAddress () = "static_turtleIncubatorAddress" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func staticKey_turtleBreederAddress () = "static_turtleBreederAddress" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func staticKey_spiceAssetId () = "static_spiceAssetId" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func staticKey_refContractAddress () = "static_refContractAddress" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func staticKey_couponsAddress () = "static_couponsAddress" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func staticKey_turtleStakingAddress () = "static_turtleStakingAddress" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func staticKey_duckStakingAddress () = "static_farmingAddressNew" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func staticKey_duckIncubatorAddress () = "static_incubatorAddress" | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func staticKey_itemsAddress () = "static_itemsAddress" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func staticKey_turtleSpiceRebirthPrice () = "static_turtleSpiceRebirthPrice" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func staticKey_turtleWavesRebirthPrice () = "static_turtleWavesRebirthPrice" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func staticKey_turtleEggRebirthPrice () = "static_turtleEggRebirthPrice" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress()))) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getTurtleBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleBreederAddress()))) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func getTurtleIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleIncubatorAddress()))) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func getSpiceAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_spiceAssetId())) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress()))) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress()))) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getTurtleStakingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleStakingAddress()))) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func getDuckStakingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_duckStakingAddress()))) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func getDuckIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_duckIncubatorAddress()))) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress()))) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func tryGetIntegerExternal (address,key) = match getInteger(address, key) { | |
155 | 155 | case b: Int => | |
156 | 156 | b | |
157 | 157 | case _ => | |
158 | 158 | throw("TR: Value not found in sc!") | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | let spiceAmount = tryGetIntegerExternal(getOracle(), staticKey_turtleSpiceRebirthPrice()) | |
163 | 163 | ||
164 | 164 | let eggAmount = tryGetIntegerExternal(getOracle(), staticKey_turtleEggRebirthPrice()) | |
165 | 165 | ||
166 | 166 | let wavesAmount = tryGetIntegerExternal(getOracle(), staticKey_turtleWavesRebirthPrice()) | |
167 | 167 | ||
168 | 168 | let delayForHatching = 2 | |
169 | 169 | ||
170 | 170 | func checkRealTurtle (assetId) = if (if ((value(assetInfo(assetId)).issuer == getTurtleBreederAddress())) | |
171 | 171 | then true | |
172 | 172 | else (value(assetInfo(assetId)).issuer == getTurtleIncubatorAddress())) | |
173 | 173 | then true | |
174 | 174 | else throw("not valid NFT") | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
178 | 178 | then throw("RCAP: Please attach waves") | |
179 | 179 | else { | |
180 | 180 | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
181 | 181 | if ((payment.amount != feeAmount)) | |
182 | 182 | then throw((("RCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
183 | 183 | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
184 | 184 | } | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func getRandomNumber (options,txId,hatchingFinishHeight,offset) = { | |
188 | 188 | let randomSeedBlock = value(blockInfoByHeight((hatchingFinishHeight - 1))) | |
189 | 189 | let randomHash = sha256((txId + value(randomSeedBlock.vrf))) | |
190 | 190 | (toInt(randomHash, (offset * 8)) % options) | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func tryGetBoolean (key) = match getBoolean(key) { | |
195 | 195 | case b: Boolean => | |
196 | 196 | b | |
197 | 197 | case _ => | |
198 | 198 | false | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func getRandomWin (tx,finishHeight) = { | |
203 | 203 | let jackpotEnabled = tryGetBoolean("JACKPOT_ENABLED") | |
204 | 204 | let jackpotRandom = getRandomNumber(300, tx, finishHeight, 1) | |
205 | 205 | if (if ((jackpotRandom == 1)) | |
206 | 206 | then jackpotEnabled | |
207 | 207 | else false) | |
208 | 208 | then $Tuple2(jackpotRandom, "jackpot") | |
209 | 209 | else { | |
210 | 210 | let n = getRandomNumber(1000, tx, finishHeight, 0) | |
211 | 211 | let result = if ((40 > n)) | |
212 | 212 | then "item!ART-FIRE_SHIELD" | |
213 | 213 | else if ((80 > n)) | |
214 | 214 | then "item!ART-FIRE_TAIL" | |
215 | 215 | else if ((100 > n)) | |
216 | 216 | then "item!ART-FREEGENE" | |
217 | 217 | else if ((150 > n)) | |
218 | 218 | then "beach_R" | |
219 | 219 | else if ((200 > n)) | |
220 | 220 | then "beach_S" | |
221 | 221 | else if ((250 > n)) | |
222 | 222 | then "beach_G" | |
223 | 223 | else if ((300 > n)) | |
224 | 224 | then "beach_D" | |
225 | 225 | else if ((380 > n)) | |
226 | 226 | then "item!ART-MUTARIUM-G" | |
227 | 227 | else if ((400 > n)) | |
228 | 228 | then "item!ART-FEED5" | |
229 | 229 | else if ((600 > n)) | |
230 | 230 | then "item!ART-FEED10" | |
231 | 231 | else if ((620 > n)) | |
232 | 232 | then "item!ART-FEED15" | |
233 | 233 | else if ((640 > n)) | |
234 | 234 | then "item!ART-FEED20" | |
235 | 235 | else if ((660 > n)) | |
236 | 236 | then "item!ART-FEED25" | |
237 | 237 | else if ((680 > n)) | |
238 | 238 | then "item!ART-FEED50" | |
239 | 239 | else if ((760 > n)) | |
240 | 240 | then "item!ART-FEED100" | |
241 | 241 | else if ((780 > n)) | |
242 | 242 | then "perch_G" | |
243 | 243 | else if ((800 > n)) | |
244 | 244 | then "perch_Y" | |
245 | 245 | else if ((820 > n)) | |
246 | 246 | then "perch_R" | |
247 | 247 | else if ((840 > n)) | |
248 | 248 | then "perch_B" | |
249 | 249 | else if ((880 > n)) | |
250 | 250 | then "item!ART-MUTARIUM-D" | |
251 | 251 | else if ((940 > n)) | |
252 | 252 | then "incubator" | |
253 | 253 | else "duck_incubator" | |
254 | 254 | $Tuple2(n, result) | |
255 | 255 | } | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func finishRebirthInternal (initTx,address,additionalPayment,double) = { | |
260 | 260 | let finishBlock = tryGetInteger((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock")) | |
261 | 261 | let status = tryGetString((((("address_" + address) + "_initTx_") + initTx) + "_status")) | |
262 | 262 | let validPayment = checkAdditionalPayment(additionalPayment) | |
263 | 263 | if ((validPayment == validPayment)) | |
264 | 264 | then { | |
265 | 265 | let recordAction = invoke(getCouponsAddress(), "recordAction", ["REBIRTHTURTLE"], nil) | |
266 | 266 | if ((recordAction == recordAction)) | |
267 | 267 | then if ((status != "open")) | |
268 | 268 | then throw("rebirth is finished or not open") | |
269 | 269 | else if ((finishBlock > height)) | |
270 | 270 | then throw("you cannot finish rebirth, yet") | |
271 | 271 | else { | |
272 | 272 | let output = getRandomWin(fromBase58String(initTx), finishBlock) | |
273 | 273 | let win = output._2 | |
274 | 274 | let random = output._1 | |
275 | 275 | let txId = initTx | |
276 | 276 | let result = if ((indexOf(win, "perch") != unit)) | |
277 | 277 | then { | |
278 | 278 | let color = takeRight(win, 1) | |
279 | 279 | let call = if (!(double)) | |
280 | 280 | then { | |
281 | 281 | let first = invoke(getDuckStakingAddress(), "addFreePerch", [address, color, 1], nil) | |
282 | 282 | if ((first == first)) | |
283 | 283 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))] | |
284 | 284 | else throw("Strict value is not equal to itself.") | |
285 | 285 | } | |
286 | 286 | else { | |
287 | 287 | let first = invoke(getDuckStakingAddress(), "addFreePerch", [address, color, 2], nil) | |
288 | 288 | if ((first == first)) | |
289 | 289 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result1"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), win)] | |
290 | 290 | else throw("Strict value is not equal to itself.") | |
291 | 291 | } | |
292 | 292 | if ((call == call)) | |
293 | 293 | then call | |
294 | 294 | else throw("Strict value is not equal to itself.") | |
295 | 295 | } | |
296 | 296 | else if ((indexOf(win, "beach") != unit)) | |
297 | 297 | then { | |
298 | 298 | let color = takeRight(win, 1) | |
299 | 299 | let call = if (!(double)) | |
300 | 300 | then { | |
301 | 301 | let first = invoke(getTurtleStakingAddress(), "addFreeBeach", [address, color], nil) | |
302 | 302 | if ((first == first)) | |
303 | 303 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))] | |
304 | 304 | else throw("Strict value is not equal to itself.") | |
305 | 305 | } | |
306 | 306 | else { | |
307 | 307 | let first = invoke(getTurtleStakingAddress(), "addFreeBeach", [address, color], nil) | |
308 | 308 | if ((first == first)) | |
309 | 309 | then { | |
310 | 310 | let second = invoke(getTurtleStakingAddress(), "addFreeBeach", [address, color], nil) | |
311 | 311 | if ((second == second)) | |
312 | 312 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result1"), asString(second)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), win)] | |
313 | 313 | else throw("Strict value is not equal to itself.") | |
314 | 314 | } | |
315 | 315 | else throw("Strict value is not equal to itself.") | |
316 | 316 | } | |
317 | 317 | if ((call == call)) | |
318 | 318 | then call | |
319 | 319 | else throw("Strict value is not equal to itself.") | |
320 | 320 | } | |
321 | 321 | else if ((win == "jackpot")) | |
322 | 322 | then { | |
323 | 323 | let call = invoke(getTurtleIncubatorAddress(), "issueJackpot", [address, txId, valueOrElse(getString("JACKPOT_NAME"), "WWWWXMAS")], nil) | |
324 | 324 | if ((call == call)) | |
325 | 325 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(call))] | |
326 | 326 | else throw("Strict value is not equal to itself.") | |
327 | 327 | } | |
328 | 328 | else if ((win == "incubator")) | |
329 | 329 | then { | |
330 | 330 | let call = if (!(double)) | |
331 | 331 | then { | |
332 | 332 | let first = invoke(getTurtleIncubatorAddress(), "issueFreeTurtle", [address, txId], nil) | |
333 | 333 | if ((first == first)) | |
334 | 334 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))] | |
335 | 335 | else throw("Strict value is not equal to itself.") | |
336 | 336 | } | |
337 | 337 | else { | |
338 | 338 | let first = invoke(getTurtleIncubatorAddress(), "issueFreeTurtle", [address, txId], nil) | |
339 | 339 | if ((first == first)) | |
340 | 340 | then { | |
341 | 341 | let second = invoke(getDuckIncubatorAddress(), "issueFreeDuckDefinedGenes", [address, txId, "ZZZZZZZZ"], nil) | |
342 | 342 | if ((second == second)) | |
343 | 343 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result1"), asString(second)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), "duck_incubator")] | |
344 | 344 | else throw("Strict value is not equal to itself.") | |
345 | 345 | } | |
346 | 346 | else throw("Strict value is not equal to itself.") | |
347 | 347 | } | |
348 | 348 | if ((call == call)) | |
349 | 349 | then call | |
350 | 350 | else throw("Strict value is not equal to itself.") | |
351 | 351 | } | |
352 | 352 | else if ((win == "duck_incubator")) | |
353 | 353 | then { | |
354 | 354 | let call = if (!(double)) | |
355 | 355 | then { | |
356 | 356 | let first = invoke(getDuckIncubatorAddress(), "issueFreeDuckDefinedGenes", [address, txId, "ZZZZZZZZ"], nil) | |
357 | 357 | if ((first == first)) | |
358 | 358 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))] | |
359 | 359 | else throw("Strict value is not equal to itself.") | |
360 | 360 | } | |
361 | 361 | else { | |
362 | 362 | let first = invoke(getDuckIncubatorAddress(), "issueFreeDuckDefinedGenes", [address, txId, "ZZZZZZZZ"], nil) | |
363 | 363 | if ((first == first)) | |
364 | 364 | then { | |
365 | 365 | let second = invoke(getTurtleIncubatorAddress(), "issueFreeTurtle", [address, txId], nil) | |
366 | 366 | if ((second == second)) | |
367 | 367 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result1"), asString(second)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), "incubator")] | |
368 | 368 | else throw("Strict value is not equal to itself.") | |
369 | 369 | } | |
370 | 370 | else throw("Strict value is not equal to itself.") | |
371 | 371 | } | |
372 | 372 | if ((call == call)) | |
373 | 373 | then call | |
374 | 374 | else throw("Strict value is not equal to itself.") | |
375 | 375 | } | |
376 | 376 | else if ((indexOf(win, "item") != unit)) | |
377 | 377 | then { | |
378 | 378 | let itemName = split(win, "!")[1] | |
379 | 379 | let call = if (!(double)) | |
380 | 380 | then { | |
381 | 381 | let first = invoke(getItemsAddress(), "issueArtefactIndex", [itemName, address, 0], nil) | |
382 | 382 | if ((first == first)) | |
383 | 383 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))] | |
384 | 384 | else throw("Strict value is not equal to itself.") | |
385 | 385 | } | |
386 | 386 | else { | |
387 | 387 | let first = invoke(getItemsAddress(), "issueArtefactIndex", [itemName, address, 0], nil) | |
388 | 388 | if ((first == first)) | |
389 | 389 | then { | |
390 | 390 | let second = invoke(getItemsAddress(), "issueArtefactIndex", [itemName, address, 1], nil) | |
391 | 391 | if ((second == second)) | |
392 | 392 | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result1"), asString(second)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), win)] | |
393 | 393 | else throw("Strict value is not equal to itself.") | |
394 | 394 | } | |
395 | 395 | else throw("Strict value is not equal to itself.") | |
396 | 396 | } | |
397 | 397 | if ((call == call)) | |
398 | 398 | then call | |
399 | 399 | else throw("Strict value is not equal to itself.") | |
400 | 400 | } | |
401 | 401 | else throw("RFB: Some error occured, please contact the admins!") | |
402 | 402 | ((result ++ [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win"), win), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "finish"), IntegerEntry((((("address_" + address) + "_initTx_") + initTx) + "_random"), random)]) ++ validPayment) | |
403 | 403 | } | |
404 | 404 | else throw("Strict value is not equal to itself.") | |
405 | 405 | } | |
406 | 406 | else throw("Strict value is not equal to itself.") | |
407 | 407 | } | |
408 | 408 | ||
409 | 409 | ||
410 | 410 | @Callable(i) | |
411 | 411 | func configureOracle (oracle) = if ((i.caller != this)) | |
412 | 412 | then throw("RCU: admin only") | |
413 | 413 | else [StringEntry("static_oracleAddress", oracle)] | |
414 | 414 | ||
415 | 415 | ||
416 | 416 | ||
417 | 417 | @Callable(i) | |
418 | 418 | func initRebirth (refererAddress) = { | |
419 | 419 | let pmtTurtle = i.payments[0] | |
420 | 420 | let pmtWaves = i.payments[1] | |
421 | 421 | let pmtSpice = i.payments[2] | |
422 | 422 | let assetId = value(pmtTurtle.assetId) | |
423 | 423 | let initTx = toBase58String(i.transactionId) | |
424 | 424 | let address = toString(i.caller) | |
425 | 425 | if ((pmtTurtle.amount != 1)) | |
426 | 426 | then throw("NFT is not attached") | |
427 | 427 | else if (if ((pmtWaves.amount != wavesAmount)) | |
428 | 428 | then true | |
429 | 429 | else (pmtWaves.assetId != unit)) | |
430 | 430 | then throw("Wavespayment is not attached or wrong!") | |
431 | 431 | else if (if ((pmtSpice.amount != spiceAmount)) | |
432 | 432 | then true | |
433 | 433 | else (pmtSpice.assetId != getSpiceAssetId())) | |
434 | 434 | then throw("SpicePayment is not attached or wrong!") | |
435 | 435 | else { | |
436 | 436 | let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [eggAmount], nil)) | |
437 | 437 | if ((amountPaidByCoupons == amountPaidByCoupons)) | |
438 | 438 | then { | |
439 | 439 | let leftToPay = (eggAmount - amountPaidByCoupons) | |
440 | 440 | let topup = invoke(getTurtleStakingAddress(), "topUpReward", nil, [AttachedPayment(getSpiceAssetId(), pmtSpice.amount)]) | |
441 | 441 | if ((topup == topup)) | |
442 | 442 | then { | |
443 | 443 | let payment = if ((leftToPay != 0)) | |
444 | 444 | then { | |
445 | 445 | let pmtEgg = i.payments[3] | |
446 | 446 | let feePayment = value(pmtEgg) | |
447 | 447 | if ((feePayment.assetId != getEggAssetId())) | |
448 | 448 | then throw("You need to attach EGG tokens as fee") | |
449 | 449 | else if ((feePayment.amount != leftToPay)) | |
450 | 450 | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString(leftToPay))) | |
451 | 451 | else { | |
452 | 452 | let refererRewardForPerch = fraction(leftToPay, 5, 100) | |
453 | 453 | let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForPerch)])) | |
454 | 454 | if ((refCall == refCall)) | |
455 | 455 | then { | |
456 | 456 | let toBurn = if (refCall) | |
457 | 457 | then (leftToPay - refererRewardForPerch) | |
458 | 458 | else leftToPay | |
459 | 459 | let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)]) | |
460 | 460 | if ((burnCall == burnCall)) | |
461 | 461 | then leftToPay | |
462 | 462 | else throw("Strict value is not equal to itself.") | |
463 | 463 | } | |
464 | 464 | else throw("Strict value is not equal to itself.") | |
465 | 465 | } | |
466 | 466 | } | |
467 | 467 | else 0 | |
468 | 468 | if ((payment == payment)) | |
469 | 469 | then { | |
470 | 470 | let realTurtle = checkRealTurtle(assetId) | |
471 | 471 | if ((realTurtle == realTurtle)) | |
472 | 472 | then [IntegerEntry((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock"), (height + delayForHatching)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "open"), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_assetId"), toBase58String(assetId)), ScriptTransfer(getFeeAggregator(), pmtWaves.amount, unit)] | |
473 | 473 | else throw("Strict value is not equal to itself.") | |
474 | 474 | } | |
475 | 475 | else throw("Strict value is not equal to itself.") | |
476 | 476 | } | |
477 | 477 | else throw("Strict value is not equal to itself.") | |
478 | 478 | } | |
479 | 479 | else throw("Strict value is not equal to itself.") | |
480 | 480 | } | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | ||
485 | 485 | @Callable(i) | |
486 | 486 | func finishRebirth (initTx) = finishRebirthInternal(initTx, toString(i.caller), i.payments[0], false) | |
487 | 487 | ||
488 | 488 | ||
489 | 489 | ||
490 | 490 | @Callable(i) | |
491 | 491 | func finishRebirthDouble (initTx) = if (!(if ((size(i.payments) == 2)) | |
492 | 492 | then (i.payments[0].amount == 1) | |
493 | 493 | else false)) | |
494 | 494 | then throw("Invalid payment") | |
495 | 495 | else { | |
496 | 496 | let assetId = value(i.payments[0].assetId) | |
497 | 497 | let boosterType = asString(invoke(getItemsAddress(), "checkArtefactDetails", [toBase58String(assetId)], nil)) | |
498 | 498 | if ((boosterType == boosterType)) | |
499 | 499 | then if ((boosterType == "ART-GIFT_DOUBL")) | |
500 | 500 | then ([Burn(assetId, 1)] ++ finishRebirthInternal(initTx, toString(i.caller), i.payments[1], true)) | |
501 | 501 | else throw("Error! Wrong item attached to double rewards!") | |
502 | 502 | else throw("Strict value is not equal to itself.") | |
503 | 503 | } | |
504 | 504 | ||
505 | 505 | ||
506 | 506 | @Verifier(tx) | |
507 | 507 | func verify () = if (isTestEnv()) | |
508 | 508 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
509 | 509 | else { | |
510 | 510 | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
511 | 511 | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
512 | 512 | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
513 | 513 | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
514 | 514 | then 1 | |
515 | 515 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
516 | 516 | then 1 | |
517 | 517 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
518 | 518 | then 1 | |
519 | 519 | else 0 | |
520 | 520 | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
521 | 521 | then 1 | |
522 | 522 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
523 | 523 | then 1 | |
524 | 524 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
525 | 525 | then 1 | |
526 | 526 | else 0 | |
527 | 527 | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
528 | 528 | then 1 | |
529 | 529 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
530 | 530 | then 1 | |
531 | 531 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
532 | 532 | then 1 | |
533 | 533 | else 0 | |
534 | 534 | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
535 | 535 | match tx { | |
536 | 536 | case _ => | |
537 | 537 | (signaturesCount >= 2) | |
538 | 538 | } | |
539 | 539 | } | |
540 | 540 |
github/deemru/w8io/026f985 46.88 ms ◑