tx · Bift3TMMhu22PKqJFuiSfj9Xz161i7zEwH6uCSA93Y9N 3N6PvAL6whpaLE48xjeZbmU7vRWQmuz8AA5: -0.01900000 Waves 2024.10.07 20:22 [3316717] smart account 3N6PvAL6whpaLE48xjeZbmU7vRWQmuz8AA5 > SELF 0.00000000 Waves
{ "type": 13, "id": "Bift3TMMhu22PKqJFuiSfj9Xz161i7zEwH6uCSA93Y9N", "fee": 1900000, "feeAssetId": null, "timestamp": 1728321730680, "version": 2, "chainId": 84, "sender": "3N6PvAL6whpaLE48xjeZbmU7vRWQmuz8AA5", "senderPublicKey": "3ZB9kd3fTB7j5xvuxZe67A7aT4cNTs2gUk1tyFaCdWJ6", "proofs": [ "4v9CimVhqaA3dRno99pabWxK4j6KBD8oUEuToQPEAD54kc8PDMZW3nYuLTYvV65dZ1Cu5XGJ1tr6sz3mDUYG2wMn" ], "script": "base64:BgIWCAISAwoBCBIDCgEIEgMKAQgSAwoBCDABFHRyeUdldFN0cmluZ0V4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAnQgCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBQFhAgABEXRyeUdldEludEV4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAmggCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFhBQckbWF0Y2gwBQFhCQACAQIbUlRHSUU6IFNvbWV0aGluZyB3ZW50IHdyb25nAQlhc0Jvb2xlYW4BBXZhbHVlBAckbWF0Y2gwBQV2YWx1ZQMJAAECBQckbWF0Y2gwAgdCb29sZWFuBAdib29sZWFuBQckbWF0Y2gwBQdib29sZWFuCQACAQIiRkFCOiB3cm9uZyB0eXBlLCBleHBlY3RlZDogQm9vbGVhbgEMdHJ5R2V0U3RyaW5nAQNrZXkJARR0cnlHZXRTdHJpbmdFeHRlcm5hbAIFBHRoaXMFA2tleQAQZGVsYXlGb3JIYX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XNlclNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCWZpcnN0VXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUJZmlyc3RVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQlmaXJzdFVzZXIAAQAABBBzZWNvbmRVc2VyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUKc2Vjb25kVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUKc2Vjb25kVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUKc2Vjb25kVXNlcgABAAAED3RoaXJkVXNlclNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCXRoaXJkVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQl0aGlyZFVzZXIAAQAABA9zaWduYXR1cmVzQ291bnQJAGQCCQBkAgUPZmlyc3RVc2VyU2lnbmVkBRBzZWNvbmRVc2VyU2lnbmVkBQ90aGlyZFVzZXJTaWduZWQEByRtYXRjaDAFAnR4CQBnAgUPc2lnbmF0dXJlc0NvdW50AAKnNaoQ", "height": 3316717, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: AjUbuc9yNo62LUB39MsGxKBZkHyfg3GtfuQuQWyTu7gV Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func tryGetStringExternal (address,key) = match getString(address, key) { | |
5 | + | case a: String => | |
6 | + | a | |
7 | + | case _ => | |
8 | + | "" | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | func tryGetIntExternal (address,key) = match getInteger(address, key) { | |
13 | + | case a: Int => | |
14 | + | a | |
15 | + | case _ => | |
16 | + | throw("RTGIE: Something went wrong") | |
17 | + | } | |
18 | + | ||
19 | + | ||
20 | + | func asBoolean (value) = match value { | |
21 | + | case boolean: Boolean => | |
22 | + | boolean | |
23 | + | case _ => | |
24 | + | throw("FAB: wrong type, expected: Boolean") | |
25 | + | } | |
26 | + | ||
27 | + | ||
28 | + | func tryGetString (key) = tryGetStringExternal(this, key) | |
29 | + | ||
30 | + | ||
31 | + | let delayForHatching = 2 | |
32 | + | ||
33 | + | func staticKey_oracleAddress () = "static_oracleAddress" | |
34 | + | ||
35 | + | ||
36 | + | func staticKey_eggAssetId () = "static_eggAssetId" | |
37 | + | ||
38 | + | ||
39 | + | func staticKey_incubatorAddress () = "static_incubatorAddress" | |
40 | + | ||
41 | + | ||
42 | + | func staticKey_breederAddress () = "static_breederAddress" | |
43 | + | ||
44 | + | ||
45 | + | func staticKey_farmingAddress () = "static_farmingAddressNew" | |
46 | + | ||
47 | + | ||
48 | + | func staticKey_babyDuckAddress () = "static_babyDuckAddress" | |
49 | + | ||
50 | + | ||
51 | + | func staticKey_gameDappAddress () = "static_gameDappAddress" | |
52 | + | ||
53 | + | ||
54 | + | func staticKey_itemsAddress () = "static_itemsAddress" | |
55 | + | ||
56 | + | ||
57 | + | func staticKey_couponsAddress () = "static_couponsAddress" | |
58 | + | ||
59 | + | ||
60 | + | func staticKey_huntAddress () = "static_huntAddress" | |
61 | + | ||
62 | + | ||
63 | + | func staticKey_burnAddress () = "static_burnAddress" | |
64 | + | ||
65 | + | ||
66 | + | func staticKey_refContractAddress () = "static_refContractAddress" | |
67 | + | ||
68 | + | ||
69 | + | func staticKey_extraFee () = "static_extraFee" | |
70 | + | ||
71 | + | ||
72 | + | func staticKey_feeAggregator () = "static_feeAggregator" | |
73 | + | ||
74 | + | ||
75 | + | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
76 | + | ||
77 | + | ||
78 | + | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
79 | + | ||
80 | + | ||
81 | + | func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_incubatorAddress()))) | |
82 | + | ||
83 | + | ||
84 | + | func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_breederAddress()))) | |
85 | + | ||
86 | + | ||
87 | + | func getFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_farmingAddress()))) | |
88 | + | ||
89 | + | ||
90 | + | func getBabyDuckAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_babyDuckAddress()))) | |
91 | + | ||
92 | + | ||
93 | + | func getGameDappAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_gameDappAddress()))) | |
94 | + | ||
95 | + | ||
96 | + | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress()))) | |
97 | + | ||
98 | + | ||
99 | + | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress()))) | |
100 | + | ||
101 | + | ||
102 | + | func getHuntAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_huntAddress()))) | |
103 | + | ||
104 | + | ||
105 | + | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress()))) | |
106 | + | ||
107 | + | ||
108 | + | func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress()))) | |
109 | + | ||
110 | + | ||
111 | + | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
112 | + | ||
113 | + | ||
114 | + | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
115 | + | then throw("RCAP: Please attach waves") | |
116 | + | else { | |
117 | + | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
118 | + | if ((payment.amount != feeAmount)) | |
119 | + | then throw((("RCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
120 | + | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
121 | + | } | |
122 | + | ||
123 | + | ||
124 | + | let PHOENIXBASEOPTIONS = 1000 | |
125 | + | ||
126 | + | func tryGetInteger (key) = match getInteger(this, key) { | |
127 | + | case b: Int => | |
128 | + | b | |
129 | + | case _ => | |
130 | + | 0 | |
131 | + | } | |
132 | + | ||
133 | + | ||
134 | + | func asString (value) = match value { | |
135 | + | case s: String => | |
136 | + | s | |
137 | + | case s: Int => | |
138 | + | throw("wrong type, expected: String, got: Int") | |
139 | + | case s: Unit => | |
140 | + | throw("wrong type, expected: String, got: Unit") | |
141 | + | case _ => | |
142 | + | throw("wrong type, expected: String") | |
143 | + | } | |
144 | + | ||
145 | + | ||
146 | + | let feeAmount = tryGetInteger("currentPrice") | |
147 | + | ||
148 | + | func getAmountOrClear (amount) = if (contains(amount, "0")) | |
149 | + | then "" | |
150 | + | else amount | |
151 | + | ||
152 | + | ||
153 | + | func getAssetOrigin (generation) = if ((generation == "G")) | |
154 | + | then getIncubatorAddress() | |
155 | + | else getBreederAddress() | |
156 | + | ||
157 | + | ||
158 | + | func getAssetRarity (genotype,generation) = { | |
159 | + | let quantity = getIntegerValue(getAssetOrigin(generation), (("stats_" + genotype) + "_quantity")) | |
160 | + | let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR) | |
161 | + | if ((power > 0)) | |
162 | + | then power | |
163 | + | else 2 | |
164 | + | } | |
165 | + | ||
166 | + | ||
167 | + | func getAssetFarmingPower (assetId) = if (if ((value(assetInfo(assetId)).issuer == getBreederAddress())) | |
168 | + | then true | |
169 | + | else (value(assetInfo(assetId)).issuer == getIncubatorAddress())) | |
170 | + | then { | |
171 | + | let assetName = value(assetInfo(assetId)).name | |
172 | + | let generation = take(takeRight(assetName, 2), 1) | |
173 | + | let farmGen = asString(invoke(getBreederAddress(), "getGenFromName", [assetName], nil)) | |
174 | + | if ((farmGen == farmGen)) | |
175 | + | then $Tuple2(farmGen, getAssetRarity(farmGen, generation)) | |
176 | + | else throw("Strict value is not equal to itself.") | |
177 | + | } | |
178 | + | else throw("not valid NFT") | |
179 | + | ||
180 | + | ||
181 | + | func getRandomNumber (options,txId,hatchingFinishHeight,offset) = { | |
182 | + | let randomSeedBlock = value(blockInfoByHeight((hatchingFinishHeight - 1))) | |
183 | + | let randomHash = sha256((txId + value(randomSeedBlock.vrf))) | |
184 | + | (toInt(randomHash, (offset * 8)) % options) | |
185 | + | } | |
186 | + | ||
187 | + | ||
188 | + | func getRandomWin (tx,finishHeight,assetRarity) = { | |
189 | + | let phoenixOptions = (PHOENIXBASEOPTIONS - fraction((PHOENIXBASEOPTIONS / 2), assetRarity, 100)) | |
190 | + | let jackpotRandom = getRandomNumber(phoenixOptions, tx, finishHeight, 1) | |
191 | + | if ((jackpotRandom == 1)) | |
192 | + | then "phoenix" | |
193 | + | else { | |
194 | + | let n = getRandomNumber(1000, tx, finishHeight, 0) | |
195 | + | if ((10 > n)) | |
196 | + | then "item!ART-FREEGENE" | |
197 | + | else if ((126 > n)) | |
198 | + | then "ar" | |
199 | + | else if ((186 > n)) | |
200 | + | then "item!ART-FIRE_ARMOUR" | |
201 | + | else if ((206 > n)) | |
202 | + | then "item!ART-FEED5" | |
203 | + | else if ((226 > n)) | |
204 | + | then "item!ART-FEED10" | |
205 | + | else if ((246 > n)) | |
206 | + | then "item!ART-FEED15" | |
207 | + | else if ((266 > n)) | |
208 | + | then "item!ART-FEED20" | |
209 | + | else if ((286 > n)) | |
210 | + | then "item!ART-FEED25" | |
211 | + | else if ((296 > n)) | |
212 | + | then "item!ART-FEED50" | |
213 | + | else if ((300 > n)) | |
214 | + | then "item!ART-FEED100" | |
215 | + | else if ((310 > n)) | |
216 | + | then "item!ART-CROWN" | |
217 | + | else if ((350 > n)) | |
218 | + | then "incubator" | |
219 | + | else if ((460 > n)) | |
220 | + | then if ((50 > assetRarity)) | |
221 | + | then "item!ART-BUILTBODY" | |
222 | + | else "item!ART-MUTARIUM-D" | |
223 | + | else if ((480 > n)) | |
224 | + | then "item!ART-SNAKE" | |
225 | + | else if ((510 > n)) | |
226 | + | then "item!ART-ROBODUCK" | |
227 | + | else if ((600 > n)) | |
228 | + | then "item!ART-KATANA" | |
229 | + | else if ((650 > n)) | |
230 | + | then if ((50 > assetRarity)) | |
231 | + | then "item!ART-SCEPTER" | |
232 | + | else "item!ART-MUTARIUM-D" | |
233 | + | else if ((710 > n)) | |
234 | + | then "item!ART-MUTARIUM-D" | |
235 | + | else if ((720 > n)) | |
236 | + | then "item!ART-MUTARIUM-G" | |
237 | + | else if ((890 > n)) | |
238 | + | then "duckling_10" | |
239 | + | else if ((960 > n)) | |
240 | + | then "duckling_20" | |
241 | + | else "duckling_40" | |
242 | + | } | |
243 | + | } | |
244 | + | ||
245 | + | ||
246 | + | func getOrigin (assetId) = { | |
247 | + | let assetName = value(assetInfo(assetId)).name | |
248 | + | let generation = take(takeRight(assetName, 2), 1) | |
249 | + | if (if ((generation == "G")) | |
250 | + | then true | |
251 | + | else (generation == "J")) | |
252 | + | then getIncubatorAddress() | |
253 | + | else getBreederAddress() | |
254 | + | } | |
255 | + | ||
256 | + | ||
257 | + | func asInt (value) = match value { | |
258 | + | case int: Int => | |
259 | + | int | |
260 | + | case string: String => | |
261 | + | throw(("RAI: wrong type, expected: Int, but got: " + string)) | |
262 | + | case _ => | |
263 | + | throw("RAI: wrong type, expected: Int") | |
264 | + | } | |
265 | + | ||
266 | + | ||
267 | + | func getBool (key) = match getBoolean(this, key) { | |
268 | + | case b: Boolean => | |
269 | + | b | |
270 | + | case _ => | |
271 | + | false | |
272 | + | } | |
273 | + | ||
274 | + | ||
275 | + | func isTestEnv () = getBool("TESTENV") | |
276 | + | ||
277 | + | ||
278 | + | func finishRebirthInternal (initTx,address,payment,double) = { | |
279 | + | let finishBlock = tryGetInteger((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock")) | |
280 | + | let assetRarity = tryGetInteger((((("address_" + address) + "_initTx_") + initTx) + "_assetRarity")) | |
281 | + | let status = tryGetString((((("address_" + address) + "_initTx_") + initTx) + "_status")) | |
282 | + | let validPayment = checkAdditionalPayment(payment) | |
283 | + | if ((validPayment == validPayment)) | |
284 | + | then { | |
285 | + | let recordAction = invoke(getCouponsAddress(), "recordAction", ["REBIRTH"], nil) | |
286 | + | if ((recordAction == recordAction)) | |
287 | + | then { | |
288 | + | func getAccessItemAssetId (address) = fromBase58String(tryGetStringExternal(address, "static_accessItemAssetId")) | |
289 | + | ||
290 | + | func getAccessItemPrice (address) = tryGetIntExternal(address, "static_accessItemPrice") | |
291 | + | ||
292 | + | if ((status != "open")) | |
293 | + | then throw("rebirth is finished or not open") | |
294 | + | else if ((finishBlock > height)) | |
295 | + | then throw("you cannot finish rebirth, yet") | |
296 | + | else { | |
297 | + | let win = getRandomWin(fromBase58String(initTx), finishBlock, assetRarity) | |
298 | + | let txId = initTx | |
299 | + | let result = if ((indexOf(win, "perch") != unit)) | |
300 | + | then { | |
301 | + | let color = takeRight(win, 1) | |
302 | + | let result = if (!(double)) | |
303 | + | then { | |
304 | + | let first = invoke(getFarmingAddress(), "addFreePerch", [address, color, 1], nil) | |
305 | + | if ((first == first)) | |
306 | + | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))] | |
307 | + | else throw("Strict value is not equal to itself.") | |
308 | + | } | |
309 | + | else { | |
310 | + | let first = invoke(getFarmingAddress(), "addFreePerch", [address, color, 2], nil) | |
311 | + | if ((first == first)) | |
312 | + | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result1"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), win)] | |
313 | + | else throw("Strict value is not equal to itself.") | |
314 | + | } | |
315 | + | if ((result == result)) | |
316 | + | then result | |
317 | + | else throw("Strict value is not equal to itself.") | |
318 | + | } | |
319 | + | else if ((win == "incubator")) | |
320 | + | then { | |
321 | + | let result = if (!(double)) | |
322 | + | then { | |
323 | + | let first = invoke(getIncubatorAddress(), "issueFreeDuck", [address, txId], nil) | |
324 | + | if ((first == first)) | |
325 | + | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))] | |
326 | + | else throw("Strict value is not equal to itself.") | |
327 | + | } | |
328 | + | else { | |
329 | + | let first = invoke(getIncubatorAddress(), "issueFreeDuck", [address, txId], nil) | |
330 | + | if ((first == first)) | |
331 | + | then { | |
332 | + | let second = invoke(getBabyDuckAddress(), "issueFreeDuckling", [address, txId, 100], nil) | |
333 | + | if ((second == second)) | |
334 | + | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result1"), asString(second)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), "duckling_100")] | |
335 | + | else throw("Strict value is not equal to itself.") | |
336 | + | } | |
337 | + | else throw("Strict value is not equal to itself.") | |
338 | + | } | |
339 | + | if ((result == result)) | |
340 | + | then result | |
341 | + | else throw("Strict value is not equal to itself.") | |
342 | + | } | |
343 | + | else if ((win == "ar")) | |
344 | + | then { | |
345 | + | let assetId = getAccessItemAssetId(getHuntAddress()) | |
346 | + | let price = getAccessItemPrice(getHuntAddress()) | |
347 | + | let call = invoke(getHuntAddress(), "buyAccessItemOther", [address], [AttachedPayment(assetId, price)]) | |
348 | + | if ((call == call)) | |
349 | + | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(call))] | |
350 | + | else throw("Strict value is not equal to itself.") | |
351 | + | } | |
352 | + | else if ((win == "phoenix")) | |
353 | + | then { | |
354 | + | let call = invoke(getIncubatorAddress(), "issueJackpot", [address, txId, valueOrElse(getString("JACKPOT_NAME"), "WWWWWWWP")], nil) | |
355 | + | if ((call == call)) | |
356 | + | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(call))] | |
357 | + | else throw("Strict value is not equal to itself.") | |
358 | + | } | |
359 | + | else if ((indexOf(win, "duckling") != unit)) | |
360 | + | then { | |
361 | + | let level = parseIntValue(split(win, "_")[1]) | |
362 | + | let levelFinal = if (double) | |
363 | + | then (2 * level) | |
364 | + | else level | |
365 | + | let call = invoke(getBabyDuckAddress(), "issueFreeDuckling", [address, txId, levelFinal], nil) | |
366 | + | if ((call == call)) | |
367 | + | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(call))] | |
368 | + | else throw("Strict value is not equal to itself.") | |
369 | + | } | |
370 | + | else if ((indexOf(win, "item") != unit)) | |
371 | + | then { | |
372 | + | let itemName = split(win, "!")[1] | |
373 | + | let result = if (!(double)) | |
374 | + | then { | |
375 | + | let first = invoke(getItemsAddress(), "issueArtefactIndex", [itemName, address, 0], nil) | |
376 | + | if ((first == first)) | |
377 | + | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))] | |
378 | + | else throw("Strict value is not equal to itself.") | |
379 | + | } | |
380 | + | else { | |
381 | + | let first = invoke(getItemsAddress(), "issueArtefactIndex", [itemName, address, 0], nil) | |
382 | + | if ((first == first)) | |
383 | + | then { | |
384 | + | let second = invoke(getItemsAddress(), "issueArtefactIndex", [itemName, address, 1], nil) | |
385 | + | if ((second == second)) | |
386 | + | then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(second)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), win)] | |
387 | + | else throw("Strict value is not equal to itself.") | |
388 | + | } | |
389 | + | else throw("Strict value is not equal to itself.") | |
390 | + | } | |
391 | + | if ((result == result)) | |
392 | + | then result | |
393 | + | else throw("Strict value is not equal to itself.") | |
394 | + | } | |
395 | + | else throw("RFB: Some error occured, please contact the admins!") | |
396 | + | ((result ++ [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win"), win), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "finish")]) ++ validPayment) | |
397 | + | } | |
398 | + | } | |
399 | + | else throw("Strict value is not equal to itself.") | |
400 | + | } | |
401 | + | else throw("Strict value is not equal to itself.") | |
402 | + | } | |
403 | + | ||
404 | + | ||
405 | + | @Callable(i) | |
406 | + | func configureOracle (oracle) = if ((i.caller != this)) | |
407 | + | then throw("RCU: admin only") | |
408 | + | else [StringEntry("static_oracleAddress", oracle)] | |
409 | + | ||
410 | + | ||
411 | + | ||
412 | + | @Callable(i) | |
413 | + | func initRebirth (refererAddress) = { | |
414 | + | let pmt = i.payments[0] | |
415 | + | let assetId = value(pmt.assetId) | |
416 | + | let initTx = toBase58String(i.transactionId) | |
417 | + | let address = toString(i.caller) | |
418 | + | if ((pmt.amount != 1)) | |
419 | + | then throw("NFT is not attached") | |
420 | + | else { | |
421 | + | let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [feeAmount], nil)) | |
422 | + | if ((amountPaidByCoupons == amountPaidByCoupons)) | |
423 | + | then { | |
424 | + | let leftToPay = (feeAmount - amountPaidByCoupons) | |
425 | + | let validPayment = checkAdditionalPayment(i.payments[1]) | |
426 | + | if ((validPayment == validPayment)) | |
427 | + | then { | |
428 | + | let payment = if ((leftToPay != 0)) | |
429 | + | then { | |
430 | + | let feePayment = value(i.payments[2]) | |
431 | + | if ((feePayment.assetId != getEggAssetId())) | |
432 | + | then throw("You need to attach EGG tokens as fee") | |
433 | + | else if ((leftToPay > feePayment.amount)) | |
434 | + | then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString(leftToPay))) | |
435 | + | else { | |
436 | + | let refererRewardForPerch = fraction(leftToPay, 5, 100) | |
437 | + | let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForPerch)])) | |
438 | + | if ((refCall == refCall)) | |
439 | + | then { | |
440 | + | let toBurn = if (refCall) | |
441 | + | then (leftToPay - refererRewardForPerch) | |
442 | + | else leftToPay | |
443 | + | let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)]) | |
444 | + | if ((burnCall == burnCall)) | |
445 | + | then leftToPay | |
446 | + | else throw("Strict value is not equal to itself.") | |
447 | + | } | |
448 | + | else throw("Strict value is not equal to itself.") | |
449 | + | } | |
450 | + | } | |
451 | + | else 0 | |
452 | + | if ((payment == payment)) | |
453 | + | then { | |
454 | + | let $t01378413833 = getAssetFarmingPower(assetId) | |
455 | + | let gen = $t01378413833._1 | |
456 | + | let rarity = $t01378413833._2 | |
457 | + | let call = invoke(getOrigin(assetId), "reduceRarity", [toBase58String(assetId), gen], nil) | |
458 | + | if ((call == call)) | |
459 | + | then ([IntegerEntry((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock"), (height + delayForHatching)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "open"), IntegerEntry((((("address_" + address) + "_initTx_") + initTx) + "_assetRarity"), rarity), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_assetId"), toBase58String(assetId))] ++ validPayment) | |
460 | + | else throw("Strict value is not equal to itself.") | |
461 | + | } | |
462 | + | else throw("Strict value is not equal to itself.") | |
463 | + | } | |
464 | + | else throw("Strict value is not equal to itself.") | |
465 | + | } | |
466 | + | else throw("Strict value is not equal to itself.") | |
467 | + | } | |
468 | + | } | |
469 | + | ||
470 | + | ||
471 | + | ||
472 | + | @Callable(i) | |
473 | + | func finishRebirth (initTx) = finishRebirthInternal(initTx, toString(i.caller), i.payments[0], false) | |
474 | + | ||
475 | + | ||
476 | + | ||
477 | + | @Callable(i) | |
478 | + | func finishRebirthDouble (initTx) = if (!(if ((size(i.payments) == 2)) | |
479 | + | then (i.payments[0].amount == 1) | |
480 | + | else false)) | |
481 | + | then throw("Invalid payment") | |
482 | + | else { | |
483 | + | let assetId = value(i.payments[0].assetId) | |
484 | + | let boosterType = asString(invoke(getItemsAddress(), "checkArtefactDetails", [toBase58String(assetId)], nil)) | |
485 | + | if ((boosterType == boosterType)) | |
486 | + | then if ((boosterType == "ART-GIFT_DOUBL")) | |
487 | + | then ([Burn(assetId, 1)] ++ finishRebirthInternal(initTx, toString(i.caller), i.payments[1], true)) | |
488 | + | else throw("Error! Wrong item attached to double rewards!") | |
489 | + | else throw("Strict value is not equal to itself.") | |
490 | + | } | |
491 | + | ||
492 | + | ||
493 | + | @Verifier(tx) | |
494 | + | func verify () = if (isTestEnv()) | |
495 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
496 | + | else { | |
497 | + | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
498 | + | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
499 | + | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
500 | + | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
501 | + | then 1 | |
502 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
503 | + | then 1 | |
504 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
505 | + | then 1 | |
506 | + | else 0 | |
507 | + | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
508 | + | then 1 | |
509 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
510 | + | then 1 | |
511 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
512 | + | then 1 | |
513 | + | else 0 | |
514 | + | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
515 | + | then 1 | |
516 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
517 | + | then 1 | |
518 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
519 | + | then 1 | |
520 | + | else 0 | |
521 | + | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
522 | + | match tx { | |
523 | + | case _ => | |
524 | + | (signaturesCount >= 2) | |
525 | + | } | |
526 | + | } | |
527 | + |
github/deemru/w8io/169f3d6 147.68 ms ◑