tx · AdysQvGg9eoyZnb6cQffiMisNBgJVDczND1uaywn4Bvg

3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB:  -0.01400000 Waves

2021.05.26 13:00 [1542483] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves

{ "type": 13, "id": "AdysQvGg9eoyZnb6cQffiMisNBgJVDczND1uaywn4Bvg", "fee": 1400000, "feeAssetId": null, "timestamp": 1622023227141, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "6BEkPD6xDb14JwGzkkwwv7pYJahNgMz3KMYXxXyH9z1qpdQahLmSMACJE5AEAnYybjKrdPtrZB41TmezkVPEJZv" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAgAAAAAIa2l0dGVuSWQCAAAALDhMTHBqNnlRTFV1MzdLVXQzclZvMVM2OWoyZ1dNYmdiTTZxcWd0MmFjMVZiAQAAAApnZW5lcmF0aW9uAAAAAQAAAANudW0DAwkAAGYAAAACBQAAAANudW0AAAAAAAAAAAAGCQAAZwAAAAIAAAAAAAAAAGQFAAAAA251bQIAAAACRzEDAwkAAGYAAAACBQAAAANudW0AAAAAAAAAAGQGCQAAZwAAAAIAAAAAAAAAA4QFAAAAA251bQIAAAACRzICAAAAAkczAAAAAQAAAAFpAQAAAA9naXZlQmlydGhLaXR0ZW4AAAAABAAAAANwbXQJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABXBtdElkCQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAMJAQAAAAIhPQAAAAIFAAAABXBtdElkBQAAAAhraXR0ZW5JZAkAAAIAAAABAgAAABlQbGVhc2Ugc2VuZCBLaXR0ZW4gdG9rZW4uBAAAAAxraXR0ZW5BbW91b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", "height": 1542483, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D4Q7dT7KW8UKaJPskYFrH6FRRjmJ7ANkRv3GuP9DLaXJ Next: DthZSH1gMzDMG9Yxhj6MTyBbre7KqTpniNoYcQSVeW5P Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func a (b) = if (if ((b > 0))
4+let a = "8LLpj6yQLUu37KUt3rVo1S69j2gWMbgbM6qqgt2ac1Vb"
5+
6+func b (c) = if (if ((c > 0))
57 then true
6- else (100 >= b))
8+ else (100 >= c))
79 then "G1"
8- else if (if ((b > 100))
10+ else if (if ((c > 100))
911 then true
10- else (900 >= b))
12+ else (900 >= c))
1113 then "G2"
1214 else "G3"
1315
1416
15-@Callable(c)
17+@Callable(d)
1618 func giveBirthKitten () = {
17- let d = c.payments[0]
18- let e = d.amount
19- let f = toBase58String(value(d.assetId))
20- let g = {
21- let h = getInteger(this, "issueQuantity")
22- if ($isInstanceOf(h, "Int"))
23- then {
24- let i = h
25- i
19+ let e = d.payments[0]
20+ let f = toBase58String(value(e.assetId))
21+ if ((f != a))
22+ then throw("Please send Kitten token.")
23+ else {
24+ let g = e.amount
25+ let h = {
26+ let i = getInteger(this, "issueQuantity")
27+ if ($isInstanceOf(i, "Int"))
28+ then {
29+ let j = i
30+ j
31+ }
32+ else 0
2633 }
27- else 0
28- }
29- let j = (g + 1)
30- let k = a(j)
31- if ((e > 3))
32- then throw("Amount of Kitten tokens sent is 3 tokens.")
33- else if ((3 > e))
34- then throw("Amount of Kitten tokens sent is 3 tokens.")
35- else {
36- let l = Issue("Kitten(=^・^=)", ("generation:" + k), 1, 0, false)
37- let m = calculateAssetId(l)
38-[l, ScriptTransfer(c.caller, 1, m)]
39- }
34+ let k = (h + 1)
35+ let l = b(k)
36+ if ((g > 3))
37+ then throw("Amount of Kitten tokens sent is 3 tokens.")
38+ else if ((3 > g))
39+ then throw("Amount of Kitten tokens sent is 3 tokens.")
40+ else {
41+ let m = Issue("Kitten(=^・^=)", ("generation:" + l), 1, 0, false)
42+ let n = calculateAssetId(m)
43+[m, ScriptTransfer(d.caller, 1, n)]
44+ }
45+ }
4046 }
4147
4248
43-@Verifier(n)
44-func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey)
49+@Verifier(o)
50+func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)
4551

github/deemru/w8io/026f985 
29.49 ms