tx · E1PDUVGtGBEZHcXpw7EAcmTpNmuuUdZN5R9zfnchKhqY

3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos:  -0.01400000 Waves

2024.05.21 16:35 [3115833] smart account 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos > SELF 0.00000000 Waves

{ "type": 13, "id": "E1PDUVGtGBEZHcXpw7EAcmTpNmuuUdZN5R9zfnchKhqY", "fee": 1400000, "feeAssetId": null, "timestamp": 1716298551705, "version": 2, "chainId": 84, "sender": "3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos", "senderPublicKey": "F7SLwr7RYVQpyocmVScFC6ooaAwewaGq6wNRDYvyiPj1", "proofs": [ "5wRMUZJms6eEzhnKG3KFgmPsJrHeSruaeSGkDJN1DM3FLyJWRKkyhgivYwr59Lk2FThsD8xSrXuC2jHTN7b5JP2M" ], "script": "base64:AAIFAAAAAAAAABIIAhIGCgQIGAgIEgQKAggIEgAAAAAGAAAAABRwcmVkaWN0aW9uTWF4Q291bnRlcgAAAAAAAAAAAwAAAAAKbWF4Q291bnRlcgAAAAAAAAAABgAAAAANZGVmYXVsdFJhdGluZwAAAAAAAAAAZAEAAAARc2VhcmNoRm9yQ291bnRlcnMAAAACAAAABml0ZW1JZAAAAAdjb3VudGVyBAAAABFzZWFyY2hGb3JDb3VudGVycwQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAIJAAEsAAAAAgUAAAAGaXRlbUlkAgAAAAFfCQABpAAAAAEFAAAAB2NvdW50ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAUAAAABcwIAAAAHTm8gVXNlcgUAAAARc2VhcmNoRm9yQ291bnRlcnMBAAAAGXNlYXJjaEZvckFkcmVzc1ByZWRpY3Rpb24AAAACAAAABml0ZW1JZAAAAAZhZHJlc3MEAAAAE3NlYXJjaEZvclByZWRpY3Rpb24EAAAAByRtYXRjaDAJAAQiAAAAAQkAASw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JAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZIAIg4=", "height": 3115833, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 76x32X84mpxogaYxhwNrQ3EAowTjWANnnJWRbnez6MsE Next: 3aAfMSztm3AD95jQt92qQi43vj6uTAjsD42aCPCsZpPN Diff:
OldNewDifferences
140140 else [StringEntry(((e + "_") + toString(C)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), C), IntegerEntry((e + "_predictionCounter"), (z + 1)), BooleanEntry((e + "_final"), false), BooleanEntry((e + "_cancelled"), false)]
141141 else if ((C >= b))
142142 then [StringEntry(((e + "_") + toString(C)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), C), IntegerEntry((e + "_predictionCounter"), (z - 1)), BooleanEntry((e + "_cancelled"), true), BooleanEntry((e + "_final"), false)]
143- else [StringEntry(((e + "_") + toString(C)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), C), IntegerEntry((e + "_predictionCounter"), (z - 1)), BooleanEntry((e + "_cancelled"), false), BooleanEntry((e + "_final"), false), StringEntry("test", B), StringEntry("test2", m[0])]
143+ else [StringEntry(((e + "_") + toString(C)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), C), IntegerEntry((e + "_predictionCounter"), (z - 1)), BooleanEntry((e + "_cancelled"), false), BooleanEntry((e + "_final"), false), StringEntry("test", B), StringEntry("test2", m[1])]
144144 }
145145 }
146146 else {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 3
55
66 let b = 6
77
88 let c = 100
99
1010 func d (e,f) = {
1111 let d = {
1212 let g = getString(((e + "_") + toString(f)))
1313 if ($isInstanceOf(g, "String"))
1414 then {
1515 let h = g
1616 h
1717 }
1818 else "No User"
1919 }
2020 d
2121 }
2222
2323
2424 func i (e,j) = {
2525 let k = {
2626 let g = getString(((e + "_") + j))
2727 if ($isInstanceOf(g, "String"))
2828 then {
2929 let h = g
3030 h
3131 }
3232 else "Not Found"
3333 }
3434 k
3535 }
3636
3737
3838 func l (e,f) = {
3939 let m = nil
4040 if ((f >= 1))
4141 then {
4242 let n = d(e, 1)
4343 (m :+ n)
4444 }
4545 else if ((f >= 2))
4646 then {
4747 let n = d(e, 1)
4848 let o = d(e, 2)
4949 ((m :+ n) :+ o)
5050 }
5151 else if ((f >= 3))
5252 then {
5353 let n = d(e, 1)
5454 let o = d(e, 2)
5555 let p = d(e, 3)
5656 (((m :+ n) :+ o) :+ p)
5757 }
5858 else if ((f >= 4))
5959 then {
6060 let n = d(e, 1)
6161 let o = d(e, 2)
6262 let p = d(e, 3)
6363 let q = d(e, 4)
6464 ((((m :+ n) :+ o) :+ p) :+ q)
6565 }
6666 else {
6767 let n = d(e, 1)
6868 let o = d(e, 2)
6969 let p = d(e, 3)
7070 let q = d(e, 4)
7171 let r = d(e, 5)
7272 (((((m :+ n) :+ o) :+ p) :+ q) :+ r)
7373 }
7474 }
7575
7676
7777 @Callable(s)
7878 func adjustRatingsAndPayoutParticipants (e,m,t,u) = nil
7979
8080
8181
8282 @Callable(s)
8383 func savePrediction (e,v) = {
8484 let w = toString(s.caller)
8585 let x = {
8686 let g = getInteger(w)
8787 if ($isInstanceOf(g, "Int"))
8888 then {
8989 let h = g
9090 h
9191 }
9292 else "no User exists"
9393 }
9494 if ((x == "no User exists"))
9595 then throw("User does not exist")
9696 else {
9797 let y = {
9898 let g = getInteger((e + "_counter"))
9999 if ($isInstanceOf(g, "Int"))
100100 then {
101101 let h = g
102102 h
103103 }
104104 else -1
105105 }
106106 if ((y >= 1))
107107 then {
108108 let m = l(e, y)
109109 if (containsElement(m, w))
110110 then throw("This User already gave a Prediction")
111111 else {
112112 let z = {
113113 let g = getInteger((e + "_predictionCounter"))
114114 if ($isInstanceOf(g, "Int"))
115115 then {
116116 let h = g
117117 h
118118 }
119119 else -1
120120 }
121121 let A = m[(size(m) - 1)]
122122 let B = {
123123 let g = getString(((e + "_") + A))
124124 if ($isInstanceOf(g, "String"))
125125 then {
126126 let h = g
127127 h
128128 }
129129 else "no Prediction Found"
130130 }
131131 let C = (y + 1)
132132 if ((B == v))
133133 then if (((z + 1) == a))
134134 then {
135135 let D = invoke(this, "adjustRatingsAndPayoutParticipants", [e, m, w, v], nil)
136136 if ((D != D))
137137 then throw("Strict value is not equal to itself.")
138138 else [StringEntry(((e + "_") + toString(C)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), C), IntegerEntry((e + "_predictionCounter"), (z + 1)), BooleanEntry((e + "_final"), true), BooleanEntry((e + "_cancelled"), false)]
139139 }
140140 else [StringEntry(((e + "_") + toString(C)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), C), IntegerEntry((e + "_predictionCounter"), (z + 1)), BooleanEntry((e + "_final"), false), BooleanEntry((e + "_cancelled"), false)]
141141 else if ((C >= b))
142142 then [StringEntry(((e + "_") + toString(C)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), C), IntegerEntry((e + "_predictionCounter"), (z - 1)), BooleanEntry((e + "_cancelled"), true), BooleanEntry((e + "_final"), false)]
143- else [StringEntry(((e + "_") + toString(C)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), C), IntegerEntry((e + "_predictionCounter"), (z - 1)), BooleanEntry((e + "_cancelled"), false), BooleanEntry((e + "_final"), false), StringEntry("test", B), StringEntry("test2", m[0])]
143+ else [StringEntry(((e + "_") + toString(C)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), C), IntegerEntry((e + "_predictionCounter"), (z - 1)), BooleanEntry((e + "_cancelled"), false), BooleanEntry((e + "_final"), false), StringEntry("test", B), StringEntry("test2", m[1])]
144144 }
145145 }
146146 else {
147147 let E = {
148148 let g = getString(("new_" + e))
149149 if ($isInstanceOf(g, "String"))
150150 then {
151151 let h = g
152152 h
153153 }
154154 else "not Found"
155155 }
156156 if ((E != e))
157157 then throw("Item not Found")
158158 else [StringEntry(((e + "_") + toString(1)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), 1), IntegerEntry((e + "_predictionCounter"), 1), DeleteEntry(("new_" + e))]
159159 }
160160 }
161161 }
162162
163163
164164
165165 @Callable(s)
166166 func registerUser () = {
167167 let w = toString(s.caller)
168168 let x = {
169169 let g = getInteger(w)
170170 if ($isInstanceOf(g, "Int"))
171171 then {
172172 let h = g
173173 h
174174 }
175175 else "No user found"
176176 }
177177 if ((x == "No user Found"))
178178 then throw("User already exists")
179179 else [IntegerEntry(w, c)]
180180 }
181181
182182
183183 @Verifier(F)
184184 func G () = sigVerify(F.bodyBytes, F.proofs[0], F.senderPublicKey)
185185

github/deemru/w8io/026f985 
28.82 ms