tx · Bc65tasvqBzgZBNL53y671fxuN5akdtb5zW2qAXeyPgm

3N8CfHN33P1djFRuHuKpWqk1eD3fTcgLiNF:  -0.01100000 Waves

2022.07.27 22:39 [2158652] smart account 3N8CfHN33P1djFRuHuKpWqk1eD3fTcgLiNF > SELF 0.00000000 Waves

{ "type": 13, "id": "Bc65tasvqBzgZBNL53y671fxuN5akdtb5zW2qAXeyPgm", "fee": 1100000, "feeAssetId": null, "timestamp": 1658950772287, "version": 2, "chainId": 84, "sender": "3N8CfHN33P1djFRuHuKpWqk1eD3fTcgLiNF", "senderPublicKey": "9Cixf6Ljj2pDy8vDfre5oMaGkboXr7bkq3nPRXpAW3gE", "proofs": [ "3c1RpVGxkosB4DBEAzAZC2VYEei8CEFed4Rj3M4E3gmS12woGMASsPKGaLzV4WtAqhgrEcXuxvj7CTxbQrRUG9vV" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAIwAAAAAQbW9uc3Rlcklzc3VlRGFwcAEAAAAaAVSeLUQvwrYHvMWFMlJ5AaNU8Zc7GIeqh0IAAAAADGJhYnlEdWNrRGFwcAEAAAAaAVT/n71LNuFfsgEUCmUITMqZ8Wdc2XdwBU0AAAAAEWR1Y2tJbmN1YmF0b3JEYXBwAQAAABoBVG5118zCpG70l2iViI5nbSMXlmLdmNWQSQAAAAAPZHVja0JyZWVkZXJEYXBwAQAAABoBVMJL8Ud4mWLKzpYe/WncKIJl9WGWYXEeEwAAAAAXcG9pbnRzRm9yQmFieUR1Y2tFYXRpbmcAAAAAAAAAAAUAAAAAGHBvaW50c0ZvckFkdWx0RHVja0VhdGluZwAAAAAAAAAABQAAAAAVZXhpc3RpbmdEdWNrUHJlY2lzaW9uAAAAWvMQekAAAQAAABNnZXRNb25zdGVyUG9pbnRzS2V5AAAAAQAAAAltb25zdGVySWQJAAEsAAAAAgUAAAAJbW9uc3RlcklkAgAAAA5fbW9uc3RlclBvaW50cwEAAAAQZ2V0TW9uc3RlclBvaW50cwAAAAEAAA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AAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAAIAAAABAgAAAClCYWQgcGF5bWVudCBhdHRhY2hlZCAoYXNzZXRbc10gb3IgYW1vdW50KQQAAAADcG10CQEAAAAFdmFsdWUAAAABCQAD7AAAAAEJAQAAAAV2YWx1ZQAAAAEICQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQDCQEAAAAKaXNCYWJ5RHVjawAAAAEIBQAAAANwbXQAAAACaWQJAAROAAAAAgkABE4AAAACCQEAAAAQc2V0TW9uc3RlclBvaW50cwAAAAIFAAAACW1vbnN0ZXJJRAUAAAAXcG9pbnRzRm9yQmFieUR1Y2tFYXRpbmcJAQAAABVzZXRCYWJ5RHVja0VhdGluZ0RhdGEAAAADBQAAAAFpBQAAAAltb25zdGVySUQJAAJYAAAAAQgFAAAAA3BtdAAAAAJpZAkBAAAACGJ1cm5EdWNrAAAAAQgFAAAAA3BtdAAAAAJpZAMJAQAAAAtpc0FkdWx0RHVjawAAAAEIBQAAAANwbXQAAAACaWQJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAQAAABBzZXRNb25zdGVyUG9pbnRzAAAAAgUAAAAJbW9uc3RlcklEBQAAABhwb2ludHNGb3JBZHVsdER1Y2tFYXRpbmcJAQAAABZzZXRBZHVsdER1Y2tFYXRpbmdEYXRhAAAAAwUAAAABaQUAAAAJbW9uc3RlcklECQACWAAAAAEIBQAAAANwbXQAAAACaWQJAQAAABRzZXRNb25zdGVyUmFyaXR5RGF0YQAAAAIFAAAACW1vbnN0ZXJJRAkAAlgAAAABCAUAAAADcG10AAAAAmlkCQEAAAAIYnVybkR1Y2sAAAABCAUAAAADcG10AAAAAmlkCQAAAgAAAAECAAAAGE5vdCBhIGJhYnkgb3IgYWR1bHQgZHVjawAAAACB+9PS", "height": 2158652, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HWmWeM7tq2wUWJjtvi3G5yPt9ge2DgPsxjiST5UV2wFr Next: AekCPsomkJyroVWRfvRd2YN4i1wztgciLu4tX4NnQoMy Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let monsterIssueDapp = base58'3N4LSmPe4zjEW81X1ix6maibiT5HzXrWpTj'
55
6-let babyDuckDapp = base58'3N8CfHN33P1djFRuHuKpWqk1eD3fTcgLiNF'
6+let babyDuckDapp = base58'3NDDhSj9Ddd6P9W3s946zqCK41gaQVPGWSQ'
77
88 let duckIncubatorDapp = base58'3Myz9GtrZ8K6kbSPSDzd5G4wBjuEDVHLFQc'
99
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let monsterIssueDapp = base58'3N4LSmPe4zjEW81X1ix6maibiT5HzXrWpTj'
55
6-let babyDuckDapp = base58'3N8CfHN33P1djFRuHuKpWqk1eD3fTcgLiNF'
6+let babyDuckDapp = base58'3NDDhSj9Ddd6P9W3s946zqCK41gaQVPGWSQ'
77
88 let duckIncubatorDapp = base58'3Myz9GtrZ8K6kbSPSDzd5G4wBjuEDVHLFQc'
99
1010 let duckBreederDapp = base58'3N7dRqiJCdAB5AWqc6oKW3gH1SEhzzfMm3G'
1111
1212 let pointsForBabyDuckEating = 5
1313
1414 let pointsForAdultDuckEating = 5
1515
1616 let existingDuckPrecision = 100000000000000
1717
1818 func getMonsterPointsKey (monsterId) = (monsterId + "_monsterPoints")
1919
2020
2121 func getMonsterPoints (monsterId) = valueOrElse(getInteger(this, getMonsterPointsKey(monsterId)), 0)
2222
2323
2424 func isValidMonster (monsterId) = {
2525 let result = match assetInfo(fromBase58String(monsterId)) {
2626 case asset: Asset =>
2727 (asset.issuer.bytes == monsterIssueDapp)
2828 case _ =>
2929 false
3030 }
3131 result
3232 }
3333
3434
3535 func keyDucklingLevel (ducklingId) = (("duckling_" + ducklingId) + "_level")
3636
3737
3838 func getCurrentLevelBigInt (ducklingId) = {
3939 let kDuckLevel = keyDucklingLevel(ducklingId)
4040 match getString(Address(babyDuckDapp), kDuckLevel) {
4141 case s: String =>
4242 parseBigIntValue(s)
4343 case _ =>
4444 match getBoolean((("duckling_" + ducklingId) + "_issuedByFeedCall")) {
4545 case b: Boolean =>
4646 toBigInt(0)
4747 case _ =>
4848 toBigInt((20 * existingDuckPrecision))
4949 }
5050 }
5151 }
5252
5353
5454 func getRandomNumber (i) = {
5555 let randomSeedBlock = value(blockInfoByHeight(lastBlock.height))
5656 let randomHash = sha256_16Kb((i.transactionId + value(randomSeedBlock.vrf)))
5757 (toInt(randomHash, lastBlock.timestamp) % lastBlock.height)
5858 }
5959
6060
6161 func isGrownBaby (duckId) = {
6262 let currentLevet = getCurrentLevelBigInt(toBase58String(duckId))
6363 (currentLevet > toBigInt(20))
6464 }
6565
6666
6767 func isBabyDuck (duckId) = {
6868 let result = match assetInfo(duckId) {
6969 case asset: Asset =>
7070 (asset.issuer.bytes == babyDuckDapp)
7171 case _ =>
7272 false
7373 }
7474 if (result)
7575 then isGrownBaby(duckId)
7676 else false
7777 }
7878
7979
8080 func isAdultDuck (duckId) = {
8181 let result = match assetInfo(duckId) {
8282 case asset: Asset =>
8383 if ((asset.issuer.bytes == duckIncubatorDapp))
8484 then true
8585 else (asset.issuer.bytes == duckBreederDapp)
8686 case _ =>
8787 false
8888 }
8989 result
9090 }
9191
9292
9393 func isJackpotDuck (duckId) = {
9494 let result = match assetInfo(duckId) {
9595 case asset: Asset =>
9696 (asset.issuer.bytes == duckIncubatorDapp)
9797 case _ =>
9898 false
9999 }
100100 true
101101 }
102102
103103
104104 func setMonsterPoints (monsterId,points) = [IntegerEntry(getMonsterPointsKey(monsterId), (getMonsterPoints(monsterId) + points))]
105105
106106
107107 func setBabyDuckEatingData (i,monsterId,duckId) = [StringEntry((((toBase58String(i.transactionId) + "_") + monsterId) + "_BABYDUCK_EAT_BY"), duckId)]
108108
109109
110110 func setAdultDuckEatingData (i,monsterId,duckId) = [StringEntry((((toBase58String(i.transactionId) + "_") + monsterId) + "_ADULTDUCK_EAT_BY"), duckId)]
111111
112112
113113 func burnDuck (duckId) = [Burn(duckId, 1)]
114114
115115
116116 func setMonsterRarityData (monsterId,duckId) = {
117117 let a = 0
118118 [StringEntry((((duckId + "_") + monsterId) + "_GOT_ABILITY_BY_EATING"), "Ability-x")]
119119 }
120120
121121
122122 func getAmountOrClear (amount) = if (contains(amount, "0"))
123123 then ""
124124 else amount
125125
126126
127127 func isSymbolA (accumulated,sym) = if ((sym == "A"))
128128 then (accumulated + 1)
129129 else (accumulated + 0)
130130
131131
132132 func isSymbolB (accumulated,sym) = if ((sym == "B"))
133133 then (accumulated + 1)
134134 else (accumulated + 0)
135135
136136
137137 func isSymbolC (accumulated,sym) = if ((sym == "C"))
138138 then (accumulated + 1)
139139 else (accumulated + 0)
140140
141141
142142 func isSymbolD (accumulated,sym) = if ((sym == "D"))
143143 then (accumulated + 1)
144144 else (accumulated + 0)
145145
146146
147147 func isSymbolE (accumulated,sym) = if ((sym == "E"))
148148 then (accumulated + 1)
149149 else (accumulated + 0)
150150
151151
152152 func isSymbolF (accumulated,sym) = if ((sym == "F"))
153153 then (accumulated + 1)
154154 else (accumulated + 0)
155155
156156
157157 func isSymbolG (accumulated,sym) = if ((sym == "G"))
158158 then (accumulated + 1)
159159 else (accumulated + 0)
160160
161161
162162 func isSymbolH (accumulated,sym) = if ((sym == "H"))
163163 then (accumulated + 1)
164164 else (accumulated + 0)
165165
166166
167167 func isSymbolI (accumulated,sym) = if ((sym == "I"))
168168 then (accumulated + 1)
169169 else (accumulated + 0)
170170
171171
172172 func getGen (assetName) = {
173173 let genotype = split(dropRight(drop(assetName, 5), 3), "")
174174 ((((((((getAmountOrClear((toString({
175175 let $l = genotype
176176 let $s = size($l)
177177 let $acc0 = 0
178178 func $f0_1 ($a,$i) = if (($i >= $s))
179179 then $a
180180 else isSymbolA($a, $l[$i])
181181
182182 func $f0_2 ($a,$i) = if (($i >= $s))
183183 then $a
184184 else throw("List size exceeds 8")
185185
186186 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
187187 }) + "A")) + getAmountOrClear((toString({
188188 let $l = genotype
189189 let $s = size($l)
190190 let $acc0 = 0
191191 func $f1_1 ($a,$i) = if (($i >= $s))
192192 then $a
193193 else isSymbolB($a, $l[$i])
194194
195195 func $f1_2 ($a,$i) = if (($i >= $s))
196196 then $a
197197 else throw("List size exceeds 8")
198198
199199 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
200200 }) + "B"))) + getAmountOrClear((toString({
201201 let $l = genotype
202202 let $s = size($l)
203203 let $acc0 = 0
204204 func $f2_1 ($a,$i) = if (($i >= $s))
205205 then $a
206206 else isSymbolC($a, $l[$i])
207207
208208 func $f2_2 ($a,$i) = if (($i >= $s))
209209 then $a
210210 else throw("List size exceeds 8")
211211
212212 $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
213213 }) + "C"))) + getAmountOrClear((toString({
214214 let $l = genotype
215215 let $s = size($l)
216216 let $acc0 = 0
217217 func $f3_1 ($a,$i) = if (($i >= $s))
218218 then $a
219219 else isSymbolD($a, $l[$i])
220220
221221 func $f3_2 ($a,$i) = if (($i >= $s))
222222 then $a
223223 else throw("List size exceeds 8")
224224
225225 $f3_2($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
226226 }) + "D"))) + getAmountOrClear((toString({
227227 let $l = genotype
228228 let $s = size($l)
229229 let $acc0 = 0
230230 func $f4_1 ($a,$i) = if (($i >= $s))
231231 then $a
232232 else isSymbolE($a, $l[$i])
233233
234234 func $f4_2 ($a,$i) = if (($i >= $s))
235235 then $a
236236 else throw("List size exceeds 8")
237237
238238 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
239239 }) + "E"))) + getAmountOrClear((toString({
240240 let $l = genotype
241241 let $s = size($l)
242242 let $acc0 = 0
243243 func $f5_1 ($a,$i) = if (($i >= $s))
244244 then $a
245245 else isSymbolF($a, $l[$i])
246246
247247 func $f5_2 ($a,$i) = if (($i >= $s))
248248 then $a
249249 else throw("List size exceeds 8")
250250
251251 $f5_2($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
252252 }) + "F"))) + getAmountOrClear((toString({
253253 let $l = genotype
254254 let $s = size($l)
255255 let $acc0 = 0
256256 func $f6_1 ($a,$i) = if (($i >= $s))
257257 then $a
258258 else isSymbolG($a, $l[$i])
259259
260260 func $f6_2 ($a,$i) = if (($i >= $s))
261261 then $a
262262 else throw("List size exceeds 8")
263263
264264 $f6_2($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
265265 }) + "G"))) + getAmountOrClear((toString({
266266 let $l = genotype
267267 let $s = size($l)
268268 let $acc0 = 0
269269 func $f7_1 ($a,$i) = if (($i >= $s))
270270 then $a
271271 else isSymbolH($a, $l[$i])
272272
273273 func $f7_2 ($a,$i) = if (($i >= $s))
274274 then $a
275275 else throw("List size exceeds 8")
276276
277277 $f7_2($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
278278 }) + "H"))) + getAmountOrClear((toString({
279279 let $l = genotype
280280 let $s = size($l)
281281 let $acc0 = 0
282282 func $f8_1 ($a,$i) = if (($i >= $s))
283283 then $a
284284 else isSymbolI($a, $l[$i])
285285
286286 func $f8_2 ($a,$i) = if (($i >= $s))
287287 then $a
288288 else throw("List size exceeds 8")
289289
290290 $f8_2($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
291291 }) + "I")))
292292 }
293293
294294
295295 func getAssetOrigin (generation) = if ((generation == "G"))
296296 then duckIncubatorDapp
297297 else duckBreederDapp
298298
299299
300300 func getAssetRarity (genotype,generation) = {
301301 let quantity = getIntegerValue(Address(getAssetOrigin(generation)), (("stats_" + genotype) + "_quantity"))
302302 let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR)
303303 if ((power > 0))
304304 then power
305305 else 2
306306 }
307307
308308
309309 @Callable(i)
310310 func duckEating (monsterID) = if (!(isValidMonster(monsterID)))
311311 then throw("This is not a valid Monster")
312312 else if ((size(i.payments) != 1))
313313 then throw("Bad payment attached (asset[s] or amount)")
314314 else {
315315 let pmt = value(assetInfo(value(value(i.payments[0]).assetId)))
316316 if (isBabyDuck(pmt.id))
317317 then ((setMonsterPoints(monsterID, pointsForBabyDuckEating) ++ setBabyDuckEatingData(i, monsterID, toBase58String(pmt.id))) ++ burnDuck(pmt.id))
318318 else if (isAdultDuck(pmt.id))
319319 then (((setMonsterPoints(monsterID, pointsForAdultDuckEating) ++ setAdultDuckEatingData(i, monsterID, toBase58String(pmt.id))) ++ setMonsterRarityData(monsterID, toBase58String(pmt.id))) ++ burnDuck(pmt.id))
320320 else throw("Not a baby or adult duck")
321321 }
322322
323323

github/deemru/w8io/026f985 
51.50 ms