tx · CfPFMxDkvxFr4BNcWpW6bPkg8vErv18DZzvLyPdKLwaA

3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos:  -0.01000000 Waves

2024.04.30 13:04 [3085452] smart account 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos > SELF 0.00000000 Waves

{ "type": 13, "id": "CfPFMxDkvxFr4BNcWpW6bPkg8vErv18DZzvLyPdKLwaA", "fee": 1000000, "feeAssetId": null, "timestamp": 1714471479899, "version": 2, "chainId": 84, "sender": "3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos", "senderPublicKey": "F7SLwr7RYVQpyocmVScFC6ooaAwewaGq6wNRDYvyiPj1", "proofs": [ "2paG5spzYZtKDhuoKVuxV3xFjk2qk2T2eaDSMdMXDRPUj191KSuL57GhVQS78uFtw4ckXyBgLrcstHbsPoDnVQTu" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAMAAAAACm1heENvdW50ZXIAAAAAAAAAAAMBAAAAFHNlYXJjaEZvclByZWRpY3Rpb25zAAAAAgAAAAZpdGVtSWQAAAAHY291bnRlcgQAAAANc2VhcmNoRm9yVXNlcgQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAIJAAEsAAAAAgUAAAAGaXRlbUlkAgAAAAFfCQABpAAAAAEFAAAAB2NvdW50ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAUAAAABcwIAAAAHTm8gVXNlcgUAAAANc2VhcmNoRm9yVXNlcgEAAAAWZmluZFByZWRpY3Rpb25BZHJlc3NlcwAAAAIAAAAGaXRlbUlkAAAAB2NvdW50ZXIEAAAACmFkcmVzc0xpc3QFAAAAA25pbAMJAABnAAAAAgUAAAAHY291bnRlcgAAAAAAAAAAAQQAAAAHYWRyZXNzMQkBAAAAFHNlYXJjaEZvclByZWRpY3Rpb25zAAAAAgUAAAAGaXRlbUlkAAAAAAAAAAABCQAETQAAAAIFAAAACm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YWwHBQAAAANuaWwJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAABml0ZW1JZAIAAAABXwkAAaQAAAABAAAAAAAAAAABBQAAAAxjbGllbnRBZHJlc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAABml0ZW1JZAIAAAABXwUAAAAMY2xpZW50QWRyZXNzBQAAAApwcmVkaWN0aW9uCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAABml0ZW1JZAIAAAAIX2NvdW50ZXIAAAAAAAAAAAEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgUAAAAGaXRlbUlkAgAAABJfcHJlZGljdGlvbkNvdW50ZXIAAAAAAAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5ZSIC8g==", "height": 3085452, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: DSgTqxw9vomsU4KfLjjYLMDUdJW3rkYPafHn4q1sR39k Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = 3
5+
6+func b (c,d) = {
7+ let e = {
8+ let f = getString(((c + "_") + toString(d)))
9+ if ($isInstanceOf(f, "String"))
10+ then {
11+ let g = f
12+ g
13+ }
14+ else "No User"
15+ }
16+ e
17+ }
18+
19+
20+func h (c,d) = {
21+ let i = nil
22+ if ((d >= 1))
23+ then {
24+ let j = b(c, 1)
25+ (i :+ j)
26+ }
27+ else if ((d >= 2))
28+ then {
29+ let j = b(c, 1)
30+ let k = b(c, 2)
31+ ((i :+ j) :+ k)
32+ }
33+ else if ((d >= 3))
34+ then {
35+ let j = b(c, 1)
36+ let k = b(c, 2)
37+ let l = b(c, 3)
38+ (((i :+ j) :+ k) :+ l)
39+ }
40+ else if ((d >= 4))
41+ then {
42+ let j = b(c, 1)
43+ let k = b(c, 2)
44+ let l = b(c, 3)
45+ let m = b(c, 4)
46+ ((((i :+ j) :+ k) :+ l) :+ m)
47+ }
48+ else {
49+ let j = b(c, 1)
50+ let k = b(c, 2)
51+ let l = b(c, 3)
52+ let m = b(c, 4)
53+ let n = b(c, 5)
54+ (((((i :+ j) :+ k) :+ l) :+ m) :+ n)
55+ }
56+ }
57+
58+
59+@Callable(o)
60+func savePrediction (c,p) = {
61+ let q = toString(o.caller)
62+ let r = {
63+ let f = getString(c)
64+ if ($isInstanceOf(f, "String"))
65+ then {
66+ let g = f
67+ g
68+ }
69+ else "no Data exists"
70+ }
71+ if ((r == "no Data exists"))
72+ then throw("This ItemID does not exist!")
73+ else {
74+ let e = {
75+ let f = getString(q)
76+ if ($isInstanceOf(f, "String"))
77+ then {
78+ let g = f
79+ g
80+ }
81+ else "no User exists"
82+ }
83+ if ((e == "no User exists"))
84+ then throw("User does not exist")
85+ else {
86+ let s = {
87+ let f = getInteger((c + "_counter"))
88+ if ($isInstanceOf(f, "Int"))
89+ then {
90+ let g = f
91+ g
92+ }
93+ else -1
94+ }
95+ let i = h(c, s)
96+ if (containsElement(i, q))
97+ then throw("This User already gave a Prediction")
98+ else if ((s >= 1))
99+ then {
100+ let t = {
101+ let f = getInteger((c + "_predictionCounter"))
102+ if ($isInstanceOf(f, "Int"))
103+ then {
104+ let g = f
105+ g
106+ }
107+ else -1
108+ }
109+ let u = i[(size(i) - 1)]
110+ let v = {
111+ let f = getString(((c + "_") + u))
112+ if ($isInstanceOf(f, "String"))
113+ then {
114+ let g = f
115+ g
116+ }
117+ else "no Prediction Found"
118+ }
119+ let w = (s + 1)
120+ if ((v == p))
121+ then if (((t + 1) == a))
122+ then [StringEntry(((c + "_") + toString(w)), q), StringEntry(((c + "_") + q), p), IntegerEntry((c + "_counter"), w), IntegerEntry((c + "_predictionCounter"), (t + 1)), BooleanEntry((c + "_final"), true), BooleanEntry((c + "_cancelled"), false)]
123+ else [StringEntry(((c + "_") + toString(w)), q), StringEntry(((c + "_") + q), p), IntegerEntry((c + "_counter"), w), IntegerEntry((c + "_predictionCounter"), (t + 1)), BooleanEntry((c + "_final"), false), BooleanEntry((c + "_cancelled"), false)]
124+ else if ((w >= 6))
125+ then [StringEntry(((c + "_") + toString(w)), q), StringEntry(((c + "_") + q), p), IntegerEntry((c + "_counter"), w), IntegerEntry((c + "_predictionCounter"), (t - 1)), BooleanEntry((c + "_cancelled"), true), BooleanEntry((c + "_final"), false)]
126+ else [StringEntry(((c + "_") + toString(w)), q), StringEntry(((c + "_") + q), p), IntegerEntry((c + "_counter"), w), IntegerEntry((c + "_predictionCounter"), (t - 1)), BooleanEntry((c + "_cancelled"), false), BooleanEntry((c + "_final"), false)]
127+ }
128+ else [StringEntry(((c + "_") + toString(1)), q), StringEntry(((c + "_") + q), p), IntegerEntry((c + "_counter"), 1), IntegerEntry((c + "_predictionCounter"), 1)]
129+ }
130+ }
131+ }
132+
133+
134+@Verifier(x)
135+func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
136+

github/deemru/w8io/026f985 
15.61 ms