tx · 7BR1ha9p7xPprHfNta8erN3o281MozMUYxnv6Eev8PXy 3MrzBHoTCQZEyP5yUGbHw4n6mHz7TzJo49r: -0.02100000 Waves 2025.01.10 15:12 [3453051] smart account 3MrzBHoTCQZEyP5yUGbHw4n6mHz7TzJo49r > SELF 0.00000000 Waves
{ "type": 13, "id": "7BR1ha9p7xPprHfNta8erN3o281MozMUYxnv6Eev8PXy", "fee": 2100000, "feeAssetId": null, "timestamp": 1736511214573, "version": 2, "chainId": 84, "sender": "3MrzBHoTCQZEyP5yUGbHw4n6mHz7TzJo49r", "senderPublicKey": "6MVtbrRtyyap5cPj69TBD8W4H3Ln7cTPfMJSWd8VfvVB", "proofs": [ "2D7ZwmDs8Y46FHfaNnCn19Y7YWJJhg7drmrmkZqwsELvgd1j2h8rRdaibZfzMx4KL5a43ptPMDyDnsjmfuZBGdeV" ], "script": "base64:AAIFAAAAAAAAAC8IAhIECgIICBIECgIICBIDCgEIEgUKAwgICBIECgIICBIDCgEBEgMKAQgSAwoBCAAAACYBAAAAB2dldEJvb2wAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIHAQAAAAhhc1N0cmluZwAAAAEAAAAFdmFsdWUEAAAAByRtYXRjaDAFAAAABXZhbHVlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABcwUAAAAHJG1hdGNoMAkAAAIAAAABAgAAACZ3cm9uZyB0eXBlLCBleHBlY3RlZDogU3RyaW5nLCBnb3Q6IEludAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAQAAAABcwUAAAAHJG1hdGNoMAkAAAIAAAABAgAAACd3cm9uZyB0eXBlL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kBAAAAAckbWF0Y2gwBQAAAAJ0eAkAAGcAAAACBQAAAA9zaWduYXR1cmVzQ291bnQAAAAAAAAAAAEq1jLP", "height": 3453051, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 43u3ZWQGD7vp9t36AdCD73nK4ruxSAxvefLeW2caupkK Next: none Diff:
Old | New | Differences | |
---|---|---|---|
293 | 293 | else if ((leftToPay > firstPayment.amount)) | |
294 | 294 | then throw(((("TB: To breed a Canine you following amount of Puzzle: " + toString(leftToPay)) + " ") + toString(i.caller))) | |
295 | 295 | else { | |
296 | - | let addMore = invoke(getEaglFarmingAddress(), "addPuzzleAndStakeMore", nil, [AttachedPayment( | |
296 | + | let addMore = invoke(getEaglFarmingAddress(), "addPuzzleAndStakeMore", nil, [AttachedPayment(getMintAssetId(), leftToPay)]) | |
297 | 297 | if ((addMore == addMore)) | |
298 | 298 | then { | |
299 | 299 | let refund = if ((size(i.payments) == 2)) | |
328 | 328 | else if ((hatchingFinishHeight > height)) | |
329 | 329 | then throw((((("Hatching is not finished yet " + toString((hatchingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((hatchingFinishHeight - height))) + " minutes")) | |
330 | 330 | else { | |
331 | - | let $ | |
332 | - | let EAGLGen = $ | |
333 | - | let farmGen = $ | |
331 | + | let $t01271712790 = getRandomName(txId, hatchingFinishHeight, false) | |
332 | + | let EAGLGen = $t01271712790._1 | |
333 | + | let farmGen = $t01271712790._2 | |
334 | 334 | let description = (("{\"genotype\": \"" + EAGLGen) + "\", \"crossbreeding\": true}") | |
335 | 335 | let asset = Issue(EAGLGen, description, 1, 0, false, unit, hatchingFinishHeight) | |
336 | 336 | let assetId = calculateAssetId(asset) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getBool (key) = match getBoolean(this, key) { | |
5 | 5 | case b: Boolean => | |
6 | 6 | b | |
7 | 7 | case _ => | |
8 | 8 | false | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func asString (value) = match value { | |
13 | 13 | case s: String => | |
14 | 14 | s | |
15 | 15 | case s: Int => | |
16 | 16 | throw("wrong type, expected: String, got: Int") | |
17 | 17 | case s: Unit => | |
18 | 18 | throw("wrong type, expected: String, got: Unit") | |
19 | 19 | case _ => | |
20 | 20 | throw("wrong type, expected: String") | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func isTestEnv () = getBool("TESTENV") | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
28 | 28 | case a: String => | |
29 | 29 | a | |
30 | 30 | case _ => | |
31 | 31 | "" | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func tryGetString (key) = tryGetStringExternal(this, key) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func staticKey_oracleAddress () = "static_oracleAddress" | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func staticKey_extraFee () = "static_extraFee" | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func staticKey_feeAggregator () = "static_feeAggregator" | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func staticKey_refContractAddress () = "static_refContractAddress" | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func staticKey_eaglRebirthAddress () = "static_eaglRebirthAddress" | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func staticKey_eaglFarmingAddress () = "static_eaglStakingAddress" | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func staticKey_itemsAddress () = "static_itemsAddress" | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func staticKey_puzzleAssetId () = "static_puzzleAssetId" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func getMintAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_puzzleAssetId())) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_burnAddress"))) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress()))) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func getEaglRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_eaglRebirthAddress()))) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getEaglFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_eaglFarmingAddress()))) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress()))) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
87 | 87 | then throw("BDCAP: Please attach waves") | |
88 | 88 | else { | |
89 | 89 | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
90 | 90 | if ((payment.amount != feeAmount)) | |
91 | 91 | then throw((("BDCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
92 | 92 | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | let delayForHatching = 2 | |
97 | 97 | ||
98 | 98 | let HatchingStarted = "HATCHING_STARTED" | |
99 | 99 | ||
100 | 100 | let HatchingFinished = "HATCHING_FINISHED" | |
101 | 101 | ||
102 | 102 | func isLocked () = { | |
103 | 103 | let masterAddress = Address(base58'3PEPftf2kWZDmAaWBjs6BUJa9957kiA2PkU') | |
104 | 104 | match getInteger(masterAddress, "egglock") { | |
105 | 105 | case b: Int => | |
106 | 106 | b | |
107 | 107 | case _ => | |
108 | 108 | 0 | |
109 | 109 | } | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func getHatchingStatusKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_status") | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func getHatchingFinishHeightKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_fh") | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func getEAGLIdKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_di") | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func getEAGLStatsKey (genString) = (("stats_" + genString) + "_amount") | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func tryGetInteger (key) = { | |
126 | 126 | let val = match getInteger(this, key) { | |
127 | 127 | case b: Int => | |
128 | 128 | b | |
129 | 129 | case _ => | |
130 | 130 | 0 | |
131 | 131 | } | |
132 | 132 | val | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | let discountCoefficient = tryGetInteger("discountCoefficient") | |
137 | 137 | ||
138 | 138 | func getRandomNumber (variants,txId,hatchingFinishHeight,offset) = { | |
139 | 139 | let randomSeedBlock = value(blockInfoByHeight((hatchingFinishHeight - 1))) | |
140 | 140 | let randomHash = sha256((txId + value(randomSeedBlock.vrf))) | |
141 | 141 | (toInt(randomHash, (offset * 8)) % variants) | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func select (color) = { | |
146 | 146 | let oldGenes = nil | |
147 | 147 | let newGenes = [$Tuple2(("EAGL-AAAAAAAA-G" + color), "8A-G"), $Tuple2(("EAGL-CCCCCCCC-G" + color), "8C-G"), $Tuple2(("EAGL-DDDDDDDD-G" + color), "8D-G"), $Tuple2(("EAGL-EEEEEEEE-G" + color), "8E-G")] | |
148 | 148 | $Tuple2((oldGenes ++ newGenes), newGenes) | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func getRandomName (txId,hatchingFinishHeight,all) = { | |
153 | 153 | let colorRandom = getRandomNumber(4, txId, hatchingFinishHeight, 1) | |
154 | 154 | let color = ["A", "B", "C", "D"][colorRandom] | |
155 | 155 | let colorSelect = select(color) | |
156 | 156 | let toPickFrom = if (all) | |
157 | 157 | then colorSelect._1 | |
158 | 158 | else colorSelect._2 | |
159 | 159 | let typeRandom = getRandomNumber(size(toPickFrom), txId, hatchingFinishHeight, 0) | |
160 | 160 | toPickFrom[typeRandom] | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | let typesAmount = (size(select("R")._2) - 1) | |
165 | 165 | ||
166 | 166 | func countEggsNeededAmount (totalEAGLsAmount) = { | |
167 | 167 | let n = totalEAGLsAmount | |
168 | 168 | let g = discountCoefficient | |
169 | 169 | let t = typesAmount | |
170 | 170 | let price = (pow((100 + ((n * g) / (10 * t))), 2, 5, 1, 2, DOWN) + 120) | |
171 | 171 | (price * 1500000) | |
172 | 172 | } | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func asBoolean (value) = match value { | |
176 | 176 | case boolean: Boolean => | |
177 | 177 | boolean | |
178 | 178 | case _ => | |
179 | 179 | throw("TI: wrong type, expected: Boolean") | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Callable(i) | |
184 | 184 | func reduceRarity (assetId,fGen) = { | |
185 | 185 | let asset = fromBase58String(assetId) | |
186 | 186 | if (if ((i.caller != getEaglRebirthAddress())) | |
187 | 187 | then (i.caller != this) | |
188 | 188 | else false) | |
189 | 189 | then throw("IRR: admin or rebirth only") | |
190 | 190 | else { | |
191 | 191 | let duckGen = value(assetInfo(asset)).name | |
192 | 192 | let letter = takeRight(take(duckGen, 6), 1) | |
193 | 193 | let farmGen = (("8" + letter) + "-G") | |
194 | 194 | [IntegerEntry(getEAGLStatsKey(duckGen), (tryGetInteger(getEAGLStatsKey(duckGen)) - 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) - 1))] | |
195 | 195 | } | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(i) | |
201 | 201 | func increaseRarity (assetId,fGen) = { | |
202 | 202 | let asset = fromBase58String(assetId) | |
203 | 203 | if (if ((i.caller != getEaglRebirthAddress())) | |
204 | 204 | then (i.caller != this) | |
205 | 205 | else false) | |
206 | 206 | then throw("IRR: admin or rebirth only") | |
207 | 207 | else { | |
208 | 208 | let duckGen = value(assetInfo(asset)).name | |
209 | 209 | let letter = takeRight(take(duckGen, 6), 1) | |
210 | 210 | let farmGen = (("8" + letter) + "-G") | |
211 | 211 | [IntegerEntry(getEAGLStatsKey(duckGen), (tryGetInteger(getEAGLStatsKey(duckGen)) + 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1))] | |
212 | 212 | } | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | ||
217 | 217 | @Callable(i) | |
218 | 218 | func configureOracle (oracle) = if ((i.caller != this)) | |
219 | 219 | then throw("ICU: admin only") | |
220 | 220 | else [StringEntry("static_oracleAddress", oracle)] | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Callable(i) | |
225 | 225 | func issueJackpot (address,txIdStr,gen) = if (if ((i.caller != getEaglRebirthAddress())) | |
226 | 226 | then (i.caller != this) | |
227 | 227 | else false) | |
228 | 228 | then throw("ISJ: admin or rebirth only") | |
229 | 229 | else { | |
230 | 230 | let txId = fromBase58String(txIdStr) | |
231 | 231 | let hatchingStatusKey = getHatchingStatusKey(address, txId) | |
232 | 232 | let finishHeightKey = getHatchingFinishHeightKey(address, txId) | |
233 | 233 | let totalDucksAmount = tryGetInteger("eagl_amount") | |
234 | 234 | let eggsNeeded = countEggsNeededAmount(totalDucksAmount) | |
235 | 235 | let $t070637115 = $Tuple2((("EAGL-" + gen) + "-JU"), "8W-J") | |
236 | 236 | let duckGen = $t070637115._1 | |
237 | 237 | let farmGen = $t070637115._2 | |
238 | 238 | let description = (("{\"genotype\": \"" + duckGen) + "\", \"crossbreeding\": true}") | |
239 | 239 | let asset = Issue(duckGen, description, 1, 0, false, unit, height) | |
240 | 240 | let assetId = calculateAssetId(asset) | |
241 | 241 | let duckIdKey = getEAGLIdKey(address, txId) | |
242 | 242 | let valueDuckIdKeyExits = tryGetString(duckIdKey) | |
243 | 243 | if ((valueDuckIdKeyExits != "")) | |
244 | 244 | then throw((("ISJ: You will override following duckId :" + duckIdKey) + " make sure that your txId is unique!")) | |
245 | 245 | else $Tuple2([IntegerEntry(getHatchingFinishHeightKey(address, txId), height), IntegerEntry("eagl_amount", (totalDucksAmount + 1)), IntegerEntry("eagl_last_price", (eggsNeeded / 1500000)), StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(duckIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), duckIdKey), IntegerEntry(getEAGLStatsKey(duckGen), (tryGetInteger(getEAGLStatsKey(duckGen)) + 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], toBase58String(assetId)) | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | ||
250 | 250 | @Callable(i) | |
251 | 251 | func issueFree (address,txIdStr) = if ((i.caller != getEaglRebirthAddress())) | |
252 | 252 | then throw("CIF: rebirth only") | |
253 | 253 | else { | |
254 | 254 | let txId = fromBase58String(txIdStr) | |
255 | 255 | let hatchingStatusKey = getHatchingStatusKey(address, txId) | |
256 | 256 | let finishHeightKey = getHatchingFinishHeightKey(address, txId) | |
257 | 257 | let totalDucksAmount = tryGetInteger("eagl_amount") | |
258 | 258 | let eggsNeeded = countEggsNeededAmount(totalDucksAmount) | |
259 | 259 | let $t086978845 = getRandomName(txId, (valueOrErrorMessage(transactionHeightById(txId), ((txIdStr + " not found ") + toBase58String(txId))) + 1), true) | |
260 | 260 | let EAGLGen = $t086978845._1 | |
261 | 261 | let farmGen = $t086978845._2 | |
262 | 262 | let description = (("{\"genotype\": \"" + EAGLGen) + "\", \"crossbreeding\": true}") | |
263 | 263 | let asset = Issue(EAGLGen, description, 1, 0, false, unit, height) | |
264 | 264 | let assetId = calculateAssetId(asset) | |
265 | 265 | let amount = (tryGetInteger(getEAGLStatsKey(EAGLGen)) + 1) | |
266 | 266 | let duckIdKey = getEAGLIdKey(address, txId) | |
267 | 267 | $Tuple2([IntegerEntry(getHatchingFinishHeightKey(address, txId), height), IntegerEntry("eagl_amount", (totalDucksAmount + 1)), IntegerEntry("eagl_last_price", (eggsNeeded / 1500000)), StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(duckIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), duckIdKey), IntegerEntry(getEAGLStatsKey(EAGLGen), amount), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], toBase58String(assetId)) | |
268 | 268 | } | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | ||
272 | 272 | @Callable(i) | |
273 | 273 | func setDiscount (val) = if ((i.caller != this)) | |
274 | 274 | then throw("admin_only") | |
275 | 275 | else [IntegerEntry("discountCoefficient", val)] | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | ||
279 | 279 | @Callable(i) | |
280 | 280 | func startHatching (refererAddress) = { | |
281 | 281 | let feeValidate = checkAdditionalPayment(i.payments[0]) | |
282 | 282 | if ((feeValidate == feeValidate)) | |
283 | 283 | then if ((isLocked() > 0)) | |
284 | 284 | then throw("EGG operations are temporarily locked") | |
285 | 285 | else { | |
286 | 286 | let totalCaniAmount = tryGetInteger("eagl_amount") | |
287 | 287 | let eggsNeeded = countEggsNeededAmount(totalCaniAmount) | |
288 | 288 | let results = [StringEntry(getHatchingStatusKey(toString(i.originCaller), i.transactionId), HatchingStarted), IntegerEntry(getHatchingFinishHeightKey(toString(i.originCaller), i.transactionId), (height + delayForHatching)), IntegerEntry("eagl_amount", (totalCaniAmount + 1)), IntegerEntry("eagl_last_price", (eggsNeeded / 1500000))] | |
289 | 289 | let firstPayment = value(i.payments[1]) | |
290 | 290 | let leftToPay = eggsNeeded | |
291 | 291 | if ((firstPayment.assetId != getMintAssetId())) | |
292 | 292 | then throw("TB: You can attach only Puzzle") | |
293 | 293 | else if ((leftToPay > firstPayment.amount)) | |
294 | 294 | then throw(((("TB: To breed a Canine you following amount of Puzzle: " + toString(leftToPay)) + " ") + toString(i.caller))) | |
295 | 295 | else { | |
296 | - | let addMore = invoke(getEaglFarmingAddress(), "addPuzzleAndStakeMore", nil, [AttachedPayment( | |
296 | + | let addMore = invoke(getEaglFarmingAddress(), "addPuzzleAndStakeMore", nil, [AttachedPayment(getMintAssetId(), leftToPay)]) | |
297 | 297 | if ((addMore == addMore)) | |
298 | 298 | then { | |
299 | 299 | let refund = if ((size(i.payments) == 2)) | |
300 | 300 | then [ScriptTransfer(i.caller, (i.payments[1].amount - leftToPay), getMintAssetId())] | |
301 | 301 | else nil | |
302 | 302 | ((results ++ refund) ++ feeValidate) | |
303 | 303 | } | |
304 | 304 | else throw("Strict value is not equal to itself.") | |
305 | 305 | } | |
306 | 306 | } | |
307 | 307 | else throw("Strict value is not equal to itself.") | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | ||
312 | 312 | @Callable(i) | |
313 | 313 | func finishHatching (txIdStr) = { | |
314 | 314 | let feeValidate = checkAdditionalPayment(i.payments[0]) | |
315 | 315 | if ((feeValidate == feeValidate)) | |
316 | 316 | then { | |
317 | 317 | let txId = fromBase58String(txIdStr) | |
318 | 318 | let hatchingStatusKey = getHatchingStatusKey(toString(i.caller), txId) | |
319 | 319 | let finishHeightKey = getHatchingFinishHeightKey(toString(i.caller), txId) | |
320 | 320 | let EAGLIdKey = getEAGLIdKey(toString(i.caller), txId) | |
321 | 321 | let hatchingTxStatus = getStringValue(this, hatchingStatusKey) | |
322 | 322 | let hatchingFinishHeight = getIntegerValue(this, finishHeightKey) | |
323 | 323 | if ((hatchingTxStatus == HatchingFinished)) | |
324 | 324 | then { | |
325 | 325 | let EAGLId = getStringValue(this, getEAGLIdKey(toString(i.caller), txId)) | |
326 | 326 | throw(("The Eagle was hatched and claimed already, here is the folowing: " + EAGLId)) | |
327 | 327 | } | |
328 | 328 | else if ((hatchingFinishHeight > height)) | |
329 | 329 | then throw((((("Hatching is not finished yet " + toString((hatchingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((hatchingFinishHeight - height))) + " minutes")) | |
330 | 330 | else { | |
331 | - | let $ | |
332 | - | let EAGLGen = $ | |
333 | - | let farmGen = $ | |
331 | + | let $t01271712790 = getRandomName(txId, hatchingFinishHeight, false) | |
332 | + | let EAGLGen = $t01271712790._1 | |
333 | + | let farmGen = $t01271712790._2 | |
334 | 334 | let description = (("{\"genotype\": \"" + EAGLGen) + "\", \"crossbreeding\": true}") | |
335 | 335 | let asset = Issue(EAGLGen, description, 1, 0, false, unit, hatchingFinishHeight) | |
336 | 336 | let assetId = calculateAssetId(asset) | |
337 | 337 | let amount = (tryGetInteger(getEAGLStatsKey(EAGLGen)) + 1) | |
338 | 338 | ([StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(EAGLIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), EAGLIdKey), IntegerEntry(getEAGLStatsKey(EAGLGen), amount), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(i.caller, 1, assetId)] ++ feeValidate) | |
339 | 339 | } | |
340 | 340 | } | |
341 | 341 | else throw("Strict value is not equal to itself.") | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | @Verifier(tx) | |
346 | 346 | func verify () = if (isTestEnv()) | |
347 | 347 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
348 | 348 | else { | |
349 | 349 | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
350 | 350 | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
351 | 351 | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
352 | 352 | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
353 | 353 | then 1 | |
354 | 354 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
355 | 355 | then 1 | |
356 | 356 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
357 | 357 | then 1 | |
358 | 358 | else 0 | |
359 | 359 | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
360 | 360 | then 1 | |
361 | 361 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
362 | 362 | then 1 | |
363 | 363 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
364 | 364 | then 1 | |
365 | 365 | else 0 | |
366 | 366 | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
367 | 367 | then 1 | |
368 | 368 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
369 | 369 | then 1 | |
370 | 370 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
371 | 371 | then 1 | |
372 | 372 | else 0 | |
373 | 373 | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
374 | 374 | match tx { | |
375 | 375 | case _ => | |
376 | 376 | (signaturesCount >= 1) | |
377 | 377 | } | |
378 | 378 | } | |
379 | 379 |
github/deemru/w8io/169f3d6 71.33 ms ◑