tx · HWmWeM7tq2wUWJjtvi3G5yPt9ge2DgPsxjiST5UV2wFr

3N8CfHN33P1djFRuHuKpWqk1eD3fTcgLiNF:  -0.01100000 Waves

2022.07.27 19:29 [2158460] smart account 3N8CfHN33P1djFRuHuKpWqk1eD3fTcgLiNF > SELF 0.00000000 Waves

{ "type": 13, "id": "HWmWeM7tq2wUWJjtvi3G5yPt9ge2DgPsxjiST5UV2wFr", "fee": 1100000, "feeAssetId": null, "timestamp": 1658939405750, "version": 2, "chainId": 84, "sender": "3N8CfHN33P1djFRuHuKpWqk1eD3fTcgLiNF", "senderPublicKey": "9Cixf6Ljj2pDy8vDfre5oMaGkboXr7bkq3nPRXpAW3gE", "proofs": [ "3PjKeSArQTE3ah7y9kQ7GsXGSq3ndMsRBkMrzzdwyJod5YsqXu2hj98VsfQJAcRz3mg8T8taAGuKJ1ZmGwTpPUjN" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAIwAAAAAQbW9uc3Rlcklzc3VlRGFwcAEAAAAaAVSeLUQvwrYHvMWFMlJ5AaNU8Zc7GIeqh0IAAAAADGJhYnlEdWNrRGFwcAEAAAAaAVTIlOPoTmMYkBllqxFxOaM0z7RuDpFqslwAAAAAEWR1Y2tJbmN1YmF0b3JEYXBwAQAAABoBVG5118zCpG70l2iViI5nbSMXlmLdmNWQSQAAAAAPZHVja0JyZWVkZXJEYXBwAQAAABoBVMJL8Ud4mWLKzpYe/WncKIJl9WGWYXEeEwAAAAAXcG9pbnRzRm9yQmFieUR1Y2tFYXRpbmcAAAAAAAAAAAUAAAAAGHBvaW50c0ZvckFkdWx0RHVja0VhdGluZwAAAAAAAAAABQAAAAAVZXhpc3RpbmdEdWNrUHJlY2lzaW9uAAAAWvMQekAAAQAAABNnZXRNb25zdGVyUG9pbnRzS2V5AAAAAQAAAAltb25zdGVySWQJAAEsAAAAAgUAAAAJbW9uc3RlcklkAgAAAA5fbW9uc3RlclBvaW50cwEAAAAQZ2V0TW9uc3RlclBvaW50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ZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAAIAAAABAgAAAClCYWQgcGF5bWVudCBhdHRhY2hlZCAoYXNzZXRbc10gb3IgYW1vdW50KQQAAAADcG10CQEAAAAFdmFsdWUAAAABCQAD7AAAAAEJAQAAAAV2YWx1ZQAAAAEICQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQDCQEAAAAKaXNCYWJ5RHVjawAAAAEIBQAAAANwbXQAAAACaWQJAAROAAAAAgkABE4AAAACCQEAAAAQc2V0TW9uc3RlclBvaW50cwAAAAIFAAAACW1vbnN0ZXJJRAUAAAAXcG9pbnRzRm9yQmFieUR1Y2tFYXRpbmcJAQAAABVzZXRCYWJ5RHVja0VhdGluZ0RhdGEAAAADBQAAAAFpBQAAAAltb25zdGVySUQJAAJYAAAAAQgFAAAAA3BtdAAAAAJpZAkBAAAACGJ1cm5EdWNrAAAAAQgFAAAAA3BtdAAAAAJpZAMJAQAAAAtpc0FkdWx0RHVjawAAAAEIBQAAAANwbXQAAAACaWQJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAQAAABBzZXRNb25zdGVyUG9pbnRzAAAAAgUAAAAJbW9uc3RlcklEBQAAABhwb2ludHNGb3JBZHVsdER1Y2tFYXRpbmcJAQAAABZzZXRBZHVsdER1Y2tFYXRpbmdEYXRhAAAAAwUAAAABaQUAAAAJbW9uc3RlcklECQACWAAAAAEIBQAAAANwbXQAAAACaWQJAQAAABRzZXRNb25zdGVyUmFyaXR5RGF0YQAAAAIFAAAACW1vbnN0ZXJJRAkAAlgAAAABCAUAAAADcG10AAAAAmlkCQEAAAAIYnVybkR1Y2sAAAABCAUAAAADcG10AAAAAmlkCQAAAgAAAAECAAAAGE5vdCBhIGJhYnkgb3IgYWR1bHQgZHVjawAAAADqWQnB", "height": 2158460, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: Bc65tasvqBzgZBNL53y671fxuN5akdtb5zW2qAXeyPgm Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let monsterIssueDapp = base58'3N4LSmPe4zjEW81X1ix6maibiT5HzXrWpTj'
5+
6+let babyDuckDapp = base58'3N8CfHN33P1djFRuHuKpWqk1eD3fTcgLiNF'
7+
8+let duckIncubatorDapp = base58'3Myz9GtrZ8K6kbSPSDzd5G4wBjuEDVHLFQc'
9+
10+let duckBreederDapp = base58'3N7dRqiJCdAB5AWqc6oKW3gH1SEhzzfMm3G'
11+
12+let pointsForBabyDuckEating = 5
13+
14+let pointsForAdultDuckEating = 5
15+
16+let existingDuckPrecision = 100000000000000
17+
18+func getMonsterPointsKey (monsterId) = (monsterId + "_monsterPoints")
19+
20+
21+func getMonsterPoints (monsterId) = valueOrElse(getInteger(this, getMonsterPointsKey(monsterId)), 0)
22+
23+
24+func isValidMonster (monsterId) = {
25+ let result = match assetInfo(fromBase58String(monsterId)) {
26+ case asset: Asset =>
27+ (asset.issuer.bytes == monsterIssueDapp)
28+ case _ =>
29+ false
30+ }
31+ result
32+ }
33+
34+
35+func keyDucklingLevel (ducklingId) = (("duckling_" + ducklingId) + "_level")
36+
37+
38+func getCurrentLevelBigInt (ducklingId) = {
39+ let kDuckLevel = keyDucklingLevel(ducklingId)
40+ match getString(Address(babyDuckDapp), kDuckLevel) {
41+ case s: String =>
42+ parseBigIntValue(s)
43+ case _ =>
44+ match getBoolean((("duckling_" + ducklingId) + "_issuedByFeedCall")) {
45+ case b: Boolean =>
46+ toBigInt(0)
47+ case _ =>
48+ toBigInt((20 * existingDuckPrecision))
49+ }
50+ }
51+ }
52+
53+
54+func getRandomNumber (i) = {
55+ let randomSeedBlock = value(blockInfoByHeight(lastBlock.height))
56+ let randomHash = sha256_16Kb((i.transactionId + value(randomSeedBlock.vrf)))
57+ (toInt(randomHash, lastBlock.timestamp) % lastBlock.height)
58+ }
59+
60+
61+func isGrownBaby (duckId) = {
62+ let currentLevet = getCurrentLevelBigInt(toBase58String(duckId))
63+ (currentLevet > toBigInt(20))
64+ }
65+
66+
67+func isBabyDuck (duckId) = {
68+ let result = match assetInfo(duckId) {
69+ case asset: Asset =>
70+ (asset.issuer.bytes == babyDuckDapp)
71+ case _ =>
72+ false
73+ }
74+ if (result)
75+ then isGrownBaby(duckId)
76+ else false
77+ }
78+
79+
80+func isAdultDuck (duckId) = {
81+ let result = match assetInfo(duckId) {
82+ case asset: Asset =>
83+ if ((asset.issuer.bytes == duckIncubatorDapp))
84+ then true
85+ else (asset.issuer.bytes == duckBreederDapp)
86+ case _ =>
87+ false
88+ }
89+ result
90+ }
91+
92+
93+func isJackpotDuck (duckId) = {
94+ let result = match assetInfo(duckId) {
95+ case asset: Asset =>
96+ (asset.issuer.bytes == duckIncubatorDapp)
97+ case _ =>
98+ false
99+ }
100+ true
101+ }
102+
103+
104+func setMonsterPoints (monsterId,points) = [IntegerEntry(getMonsterPointsKey(monsterId), (getMonsterPoints(monsterId) + points))]
105+
106+
107+func setBabyDuckEatingData (i,monsterId,duckId) = [StringEntry((((toBase58String(i.transactionId) + "_") + monsterId) + "_BABYDUCK_EAT_BY"), duckId)]
108+
109+
110+func setAdultDuckEatingData (i,monsterId,duckId) = [StringEntry((((toBase58String(i.transactionId) + "_") + monsterId) + "_ADULTDUCK_EAT_BY"), duckId)]
111+
112+
113+func burnDuck (duckId) = [Burn(duckId, 1)]
114+
115+
116+func setMonsterRarityData (monsterId,duckId) = {
117+ let a = 0
118+[StringEntry((((duckId + "_") + monsterId) + "_GOT_ABILITY_BY_EATING"), "Ability-x")]
119+ }
120+
121+
122+func getAmountOrClear (amount) = if (contains(amount, "0"))
123+ then ""
124+ else amount
125+
126+
127+func isSymbolA (accumulated,sym) = if ((sym == "A"))
128+ then (accumulated + 1)
129+ else (accumulated + 0)
130+
131+
132+func isSymbolB (accumulated,sym) = if ((sym == "B"))
133+ then (accumulated + 1)
134+ else (accumulated + 0)
135+
136+
137+func isSymbolC (accumulated,sym) = if ((sym == "C"))
138+ then (accumulated + 1)
139+ else (accumulated + 0)
140+
141+
142+func isSymbolD (accumulated,sym) = if ((sym == "D"))
143+ then (accumulated + 1)
144+ else (accumulated + 0)
145+
146+
147+func isSymbolE (accumulated,sym) = if ((sym == "E"))
148+ then (accumulated + 1)
149+ else (accumulated + 0)
150+
151+
152+func isSymbolF (accumulated,sym) = if ((sym == "F"))
153+ then (accumulated + 1)
154+ else (accumulated + 0)
155+
156+
157+func isSymbolG (accumulated,sym) = if ((sym == "G"))
158+ then (accumulated + 1)
159+ else (accumulated + 0)
160+
161+
162+func isSymbolH (accumulated,sym) = if ((sym == "H"))
163+ then (accumulated + 1)
164+ else (accumulated + 0)
165+
166+
167+func isSymbolI (accumulated,sym) = if ((sym == "I"))
168+ then (accumulated + 1)
169+ else (accumulated + 0)
170+
171+
172+func getGen (assetName) = {
173+ let genotype = split(dropRight(drop(assetName, 5), 3), "")
174+ ((((((((getAmountOrClear((toString({
175+ let $l = genotype
176+ let $s = size($l)
177+ let $acc0 = 0
178+ func $f0_1 ($a,$i) = if (($i >= $s))
179+ then $a
180+ else isSymbolA($a, $l[$i])
181+
182+ func $f0_2 ($a,$i) = if (($i >= $s))
183+ then $a
184+ else throw("List size exceeds 8")
185+
186+ $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)
187+ }) + "A")) + getAmountOrClear((toString({
188+ let $l = genotype
189+ let $s = size($l)
190+ let $acc0 = 0
191+ func $f1_1 ($a,$i) = if (($i >= $s))
192+ then $a
193+ else isSymbolB($a, $l[$i])
194+
195+ func $f1_2 ($a,$i) = if (($i >= $s))
196+ then $a
197+ else throw("List size exceeds 8")
198+
199+ $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)
200+ }) + "B"))) + getAmountOrClear((toString({
201+ let $l = genotype
202+ let $s = size($l)
203+ let $acc0 = 0
204+ func $f2_1 ($a,$i) = if (($i >= $s))
205+ then $a
206+ else isSymbolC($a, $l[$i])
207+
208+ func $f2_2 ($a,$i) = if (($i >= $s))
209+ then $a
210+ else throw("List size exceeds 8")
211+
212+ $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)
213+ }) + "C"))) + getAmountOrClear((toString({
214+ let $l = genotype
215+ let $s = size($l)
216+ let $acc0 = 0
217+ func $f3_1 ($a,$i) = if (($i >= $s))
218+ then $a
219+ else isSymbolD($a, $l[$i])
220+
221+ func $f3_2 ($a,$i) = if (($i >= $s))
222+ then $a
223+ else throw("List size exceeds 8")
224+
225+ $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)
226+ }) + "D"))) + getAmountOrClear((toString({
227+ let $l = genotype
228+ let $s = size($l)
229+ let $acc0 = 0
230+ func $f4_1 ($a,$i) = if (($i >= $s))
231+ then $a
232+ else isSymbolE($a, $l[$i])
233+
234+ func $f4_2 ($a,$i) = if (($i >= $s))
235+ then $a
236+ else throw("List size exceeds 8")
237+
238+ $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)
239+ }) + "E"))) + getAmountOrClear((toString({
240+ let $l = genotype
241+ let $s = size($l)
242+ let $acc0 = 0
243+ func $f5_1 ($a,$i) = if (($i >= $s))
244+ then $a
245+ else isSymbolF($a, $l[$i])
246+
247+ func $f5_2 ($a,$i) = if (($i >= $s))
248+ then $a
249+ else throw("List size exceeds 8")
250+
251+ $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)
252+ }) + "F"))) + getAmountOrClear((toString({
253+ let $l = genotype
254+ let $s = size($l)
255+ let $acc0 = 0
256+ func $f6_1 ($a,$i) = if (($i >= $s))
257+ then $a
258+ else isSymbolG($a, $l[$i])
259+
260+ func $f6_2 ($a,$i) = if (($i >= $s))
261+ then $a
262+ else throw("List size exceeds 8")
263+
264+ $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)
265+ }) + "G"))) + getAmountOrClear((toString({
266+ let $l = genotype
267+ let $s = size($l)
268+ let $acc0 = 0
269+ func $f7_1 ($a,$i) = if (($i >= $s))
270+ then $a
271+ else isSymbolH($a, $l[$i])
272+
273+ func $f7_2 ($a,$i) = if (($i >= $s))
274+ then $a
275+ else throw("List size exceeds 8")
276+
277+ $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)
278+ }) + "H"))) + getAmountOrClear((toString({
279+ let $l = genotype
280+ let $s = size($l)
281+ let $acc0 = 0
282+ func $f8_1 ($a,$i) = if (($i >= $s))
283+ then $a
284+ else isSymbolI($a, $l[$i])
285+
286+ func $f8_2 ($a,$i) = if (($i >= $s))
287+ then $a
288+ else throw("List size exceeds 8")
289+
290+ $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)
291+ }) + "I")))
292+ }
293+
294+
295+func getAssetOrigin (generation) = if ((generation == "G"))
296+ then duckIncubatorDapp
297+ else duckBreederDapp
298+
299+
300+func getAssetRarity (genotype,generation) = {
301+ let quantity = getIntegerValue(Address(getAssetOrigin(generation)), (("stats_" + genotype) + "_quantity"))
302+ let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR)
303+ if ((power > 0))
304+ then power
305+ else 2
306+ }
307+
308+
309+@Callable(i)
310+func duckEating (monsterID) = if (!(isValidMonster(monsterID)))
311+ then throw("This is not a valid Monster")
312+ else if ((size(i.payments) != 1))
313+ then throw("Bad payment attached (asset[s] or amount)")
314+ else {
315+ let pmt = value(assetInfo(value(value(i.payments[0]).assetId)))
316+ if (isBabyDuck(pmt.id))
317+ then ((setMonsterPoints(monsterID, pointsForBabyDuckEating) ++ setBabyDuckEatingData(i, monsterID, toBase58String(pmt.id))) ++ burnDuck(pmt.id))
318+ else if (isAdultDuck(pmt.id))
319+ then (((setMonsterPoints(monsterID, pointsForAdultDuckEating) ++ setAdultDuckEatingData(i, monsterID, toBase58String(pmt.id))) ++ setMonsterRarityData(monsterID, toBase58String(pmt.id))) ++ burnDuck(pmt.id))
320+ else throw("Not a baby or adult duck")
321+ }
322+
323+

github/deemru/w8io/026f985 
22.15 ms