tx · 6o29o3F6Ua9zfeNsuzZwiNeCUndoMnKBQbR66kmkPKPs

3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB:  -0.01400000 Waves

2021.06.03 05:15 [1553562] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves

{ "type": 13, "id": "6o29o3F6Ua9zfeNsuzZwiNeCUndoMnKBQbR66kmkPKPs", "fee": 1400000, "feeAssetId": null, "timestamp": 1622686536147, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "4BDTqUBgeamw53guyCPfAAGc4uuKTB3bCLMtknYL8xcMyjiPuNBxhazjMSo8sLeds9vgRsxoRczZZWYL1Z9hgLpW" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAAQbGlzdFRvU3RyaW5nRnVuYwAAAAEAAAALSW50ZWdlckxpc3QKAQAAAAxsaXN0VG9TdHJpbmcAAAACAAAAA2FjYwAAAAFpCQAETQAAAAIFAAAAA2FjYwkAAaQAAAABCQABkQAAAAIFAAAAC0ludGVnZXJMaXN0BQAAAAFpBAAAAAskbGlzdDI0MjI4MAUAAAALSW50ZWdlckxpc3QEAAAACyRzaXplMjQyMjgwCQABkAAAAAEFAAAACyRsaXN0MjQyMjgwBAAAAAskYWNjMDI0MjI4MAUAAAADbmlsAwkAAAAAAAACBQAAAAskc2l6ZTI0MjI4MAAAAAAAAAAAAAUAAAALJGFjYzAyNDIyODAEAAAACyRhY2MxMjQyMjgwCQEAAAAMbGlzdFRvU3RyaW5nAAAAAgUAAAALJGFjYzAyNDIyODAJAAGRAAAAAgUAAAALJGxpc3QyNDIyODAAAAAAAAAAAAADCQAAAAAAAAIFAAAACyRzaXplMjQyMjgwAAAAAAAAAAABBQAAAAskYWNjMTI0MjI4MAQAAAALJGFjYzIyNDIyODAJAQ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AFYXNzZXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5S50QeQ==", "height": 1553562, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HkZSCRHNeGyFoAzcHkK4AdK4LRroo3pGVmcYysjuNv9T Next: 6gPQ9QHqFZtsojcrwfccHMAMahdVZm9mJ4Jvzp5UETvz Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "GuobcHvW9WqotnkGUj7JkpcbXtgVfB37TA4JkgSj9Qbb"
4+func a (b) = {
5+ func c (d,e) = (d :+ toString(b[e]))
56
6-func b (c,d,e,f) = {
7- let g = value(blockInfoByHeight((e - 1)))
8- let h = sha256((d + value(g.vrf)))
9- (toInt(h, (f * 8)) % c)
10- }
11-
12-
13-func i (j) = if (if ((j > 0))
14- then true
15- else (300 >= j))
16- then "G1"
17- else if (if ((j > 300))
18- then true
19- else (1000 >= j))
20- then "G2"
21- else "G3"
22-
23-
24-func k (j) = if ((j == 100))
25- then "II-II-II-II"
26- else if (if ((j >= 1))
27- then (3 >= j)
28- else false)
29- then "BB-BB-BB-BB"
30- else if (if ((j > 3))
31- then (8 >= j)
32- else false)
33- then "CC-CC-CC-CC"
34- else if (if ((j > 8))
35- then (15 >= j)
36- else false)
37- then "DD-DD-DD-DD"
38- else if (if ((j > 15))
39- then (24 >= j)
40- else false)
41- then "EE-EE-EE-EE"
42- else if (if ((j > 24))
43- then (35 >= j)
44- else false)
45- then "FF-FF-FF-FF"
46- else if (if ((j > 35))
47- then (48 >= j)
48- else false)
49- then "GG-GG-GG-GG"
50- else if (if ((j > 48))
51- then (51 >= j)
52- else false)
53- then "AA-AA-AA-AA"
54- else "HH-HH-HH-HH"
55-
56-
57-@Callable(l)
58-func giveBirthKitten () = {
59- let m = l.payments[0]
60- let n = toBase58String(value(m.assetId))
61- if ((n != a))
62- then throw("Please send Kitten token.")
7+ let f = b
8+ let g = size(f)
9+ let h = nil
10+ if ((g == 0))
11+ then h
6312 else {
64- let o = m.amount
65- if ((o > 300))
66- then throw("Amount of Kitten tokens sent is 3 tokens.")
67- else if ((300 > o))
68- then throw("Amount of Kitten tokens sent is 3 tokens.")
69- else {
70- let p = {
71- let q = getInteger(this, "issueQuantity")
72- if ($isInstanceOf(q, "Int"))
73- then {
74- let r = q
75- r
13+ let i = c(h, f[0])
14+ if ((g == 1))
15+ then i
16+ else {
17+ let j = c(i, f[1])
18+ if ((g == 2))
19+ then j
20+ else {
21+ let k = c(j, f[2])
22+ if ((g == 3))
23+ then k
24+ else {
25+ let l = c(k, f[3])
26+ throw("List size exceed 3")
7627 }
77- else 0
7828 }
79- let s = (p + 1)
80- let t = i(s)
81- let u = Issue("Kitten(=^・^=)", ("generation:" + t), 1, 0, false)
82- let v = calculateAssetId(u)
83- let w = lastBlock.height
84- let x = b(100, v, w, 0)
85- let y = k(x)
86-[u, ScriptTransfer(l.caller, 1, v), StringEntry(toBase58String(value(v)), y), IntegerEntry("issueQuantity", s)]
87- }
29+ }
8830 }
8931 }
9032
9133
92-@Verifier(z)
93-func A () = sigVerify(z.bodyBytes, z.proofs[0], z.senderPublicKey)
34+@Callable(e)
35+func call () = {
36+ let m = 1
37+ let n = Issue("Asset", "", 1, 0, true, unit, 0)
38+ let o = calculateAssetId(n)
39+ let c = a([2, 3, 4])
40+ if ((m == 1))
41+ then throw(((((c[0] + ",") + c[1]) + ",") + c[2]))
42+ else [n]
43+ }
44+
45+
46+@Verifier(p)
47+func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
9448

github/deemru/w8io/026f985 
27.95 ms