tx · 76x32X84mpxogaYxhwNrQ3EAowTjWANnnJWRbnez6MsE 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos: -0.01400000 Waves 2024.05.21 16:34 [3115832] smart account 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos > SELF 0.00000000 Waves
{ "type": 13, "id": "76x32X84mpxogaYxhwNrQ3EAowTjWANnnJWRbnez6MsE", "fee": 1400000, "feeAssetId": null, "timestamp": 1716298438822, "version": 2, "chainId": 84, "sender": "3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos", "senderPublicKey": "F7SLwr7RYVQpyocmVScFC6ooaAwewaGq6wNRDYvyiPj1", "proofs": [ "5bmdtcL6dBF7wXW5TuRHsttHTrs1q7rvVXfgsGDUSg7sj7oF8fGbhxAn8vAoHgwqXaRqNhgmPtZw4bnVZjVrMogB" ], "script": "base64:AAIFAAAAAAAAABIIAhIGCgQIGAgIEgQKAggIEgAAAAAGAAAAABRwcmVkaWN0aW9uTWF4Q291bnRlcgAAAAAAAAAAAwAAAAAKbWF4Q291bnRlcgAAAAAAAAAABgAAAAANZGVmYXVsdFJhdGluZwAAAAAAAAAAZAEAAAARc2VhcmNoRm9yQ291bnRlcnMAAAACAAAABml0ZW1JZAAAAAdjb3VudGVyBAAAABFzZWFyY2hGb3JDb3VudGVycwQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAIJAAEsAAAAAgUAAAAGaXRlbUlkAgAAAAFfCQABpAAAAAEFAAAAB2NvdW50ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAUAAAABcwIAAAAHTm8gVXNlcgUAAAARc2VhcmNoRm9yQ291bnRlcnMBAAAAGXNlYXJjaEZvckFkcmVzc1ByZWRpY3Rpb24AAAACAAAABml0ZW1JZAAAAAZhZHJlc3MEAAAAE3NlYXJjaEZvclByZWRpY3Rpb24EAAAAByRtYXRjaDAJAAQiAAAAAQkAASwAAAACCQABL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AAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleeqwNPU=", "height": 3115832, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HxNKxsgNGbQux9D7QJfjmTtfZ45fuVu8Qk4Hecd1aMBE Next: E1PDUVGtGBEZHcXpw7EAcmTpNmuuUdZN5R9zfnchKhqY Diff:
Old | New | Differences | |
---|---|---|---|
140 | 140 | 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)] | |
141 | 141 | else if ((C >= b)) | |
142 | 142 | 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)] | |
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])] | |
144 | 144 | } | |
145 | 145 | } | |
146 | 146 | else { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 3 | |
5 | 5 | ||
6 | 6 | let b = 6 | |
7 | 7 | ||
8 | 8 | let c = 100 | |
9 | 9 | ||
10 | 10 | func d (e,f) = { | |
11 | 11 | let d = { | |
12 | 12 | let g = getString(((e + "_") + toString(f))) | |
13 | 13 | if ($isInstanceOf(g, "String")) | |
14 | 14 | then { | |
15 | 15 | let h = g | |
16 | 16 | h | |
17 | 17 | } | |
18 | 18 | else "No User" | |
19 | 19 | } | |
20 | 20 | d | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func i (e,j) = { | |
25 | 25 | let k = { | |
26 | 26 | let g = getString(((e + "_") + j)) | |
27 | 27 | if ($isInstanceOf(g, "String")) | |
28 | 28 | then { | |
29 | 29 | let h = g | |
30 | 30 | h | |
31 | 31 | } | |
32 | 32 | else "Not Found" | |
33 | 33 | } | |
34 | 34 | k | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func l (e,f) = { | |
39 | 39 | let m = nil | |
40 | 40 | if ((f >= 1)) | |
41 | 41 | then { | |
42 | 42 | let n = d(e, 1) | |
43 | 43 | (m :+ n) | |
44 | 44 | } | |
45 | 45 | else if ((f >= 2)) | |
46 | 46 | then { | |
47 | 47 | let n = d(e, 1) | |
48 | 48 | let o = d(e, 2) | |
49 | 49 | ((m :+ n) :+ o) | |
50 | 50 | } | |
51 | 51 | else if ((f >= 3)) | |
52 | 52 | then { | |
53 | 53 | let n = d(e, 1) | |
54 | 54 | let o = d(e, 2) | |
55 | 55 | let p = d(e, 3) | |
56 | 56 | (((m :+ n) :+ o) :+ p) | |
57 | 57 | } | |
58 | 58 | else if ((f >= 4)) | |
59 | 59 | then { | |
60 | 60 | let n = d(e, 1) | |
61 | 61 | let o = d(e, 2) | |
62 | 62 | let p = d(e, 3) | |
63 | 63 | let q = d(e, 4) | |
64 | 64 | ((((m :+ n) :+ o) :+ p) :+ q) | |
65 | 65 | } | |
66 | 66 | else { | |
67 | 67 | let n = d(e, 1) | |
68 | 68 | let o = d(e, 2) | |
69 | 69 | let p = d(e, 3) | |
70 | 70 | let q = d(e, 4) | |
71 | 71 | let r = d(e, 5) | |
72 | 72 | (((((m :+ n) :+ o) :+ p) :+ q) :+ r) | |
73 | 73 | } | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | @Callable(s) | |
78 | 78 | func adjustRatingsAndPayoutParticipants (e,m,t,u) = nil | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | ||
82 | 82 | @Callable(s) | |
83 | 83 | func savePrediction (e,v) = { | |
84 | 84 | let w = toString(s.caller) | |
85 | 85 | let x = { | |
86 | 86 | let g = getInteger(w) | |
87 | 87 | if ($isInstanceOf(g, "Int")) | |
88 | 88 | then { | |
89 | 89 | let h = g | |
90 | 90 | h | |
91 | 91 | } | |
92 | 92 | else "no User exists" | |
93 | 93 | } | |
94 | 94 | if ((x == "no User exists")) | |
95 | 95 | then throw("User does not exist") | |
96 | 96 | else { | |
97 | 97 | let y = { | |
98 | 98 | let g = getInteger((e + "_counter")) | |
99 | 99 | if ($isInstanceOf(g, "Int")) | |
100 | 100 | then { | |
101 | 101 | let h = g | |
102 | 102 | h | |
103 | 103 | } | |
104 | 104 | else -1 | |
105 | 105 | } | |
106 | 106 | if ((y >= 1)) | |
107 | 107 | then { | |
108 | 108 | let m = l(e, y) | |
109 | 109 | if (containsElement(m, w)) | |
110 | 110 | then throw("This User already gave a Prediction") | |
111 | 111 | else { | |
112 | 112 | let z = { | |
113 | 113 | let g = getInteger((e + "_predictionCounter")) | |
114 | 114 | if ($isInstanceOf(g, "Int")) | |
115 | 115 | then { | |
116 | 116 | let h = g | |
117 | 117 | h | |
118 | 118 | } | |
119 | 119 | else -1 | |
120 | 120 | } | |
121 | 121 | let A = m[(size(m) - 1)] | |
122 | 122 | let B = { | |
123 | 123 | let g = getString(((e + "_") + A)) | |
124 | 124 | if ($isInstanceOf(g, "String")) | |
125 | 125 | then { | |
126 | 126 | let h = g | |
127 | 127 | h | |
128 | 128 | } | |
129 | 129 | else "no Prediction Found" | |
130 | 130 | } | |
131 | 131 | let C = (y + 1) | |
132 | 132 | if ((B == v)) | |
133 | 133 | then if (((z + 1) == a)) | |
134 | 134 | then { | |
135 | 135 | let D = invoke(this, "adjustRatingsAndPayoutParticipants", [e, m, w, v], nil) | |
136 | 136 | if ((D != D)) | |
137 | 137 | then throw("Strict value is not equal to itself.") | |
138 | 138 | 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)] | |
139 | 139 | } | |
140 | 140 | 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)] | |
141 | 141 | else if ((C >= b)) | |
142 | 142 | 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)] | |
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])] | |
144 | 144 | } | |
145 | 145 | } | |
146 | 146 | else { | |
147 | 147 | let E = { | |
148 | 148 | let g = getString(("new_" + e)) | |
149 | 149 | if ($isInstanceOf(g, "String")) | |
150 | 150 | then { | |
151 | 151 | let h = g | |
152 | 152 | h | |
153 | 153 | } | |
154 | 154 | else "not Found" | |
155 | 155 | } | |
156 | 156 | if ((E != e)) | |
157 | 157 | then throw("Item not Found") | |
158 | 158 | else [StringEntry(((e + "_") + toString(1)), w), StringEntry(((e + "_") + w), v), IntegerEntry((e + "_counter"), 1), IntegerEntry((e + "_predictionCounter"), 1), DeleteEntry(("new_" + e))] | |
159 | 159 | } | |
160 | 160 | } | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | ||
165 | 165 | @Callable(s) | |
166 | 166 | func registerUser () = { | |
167 | 167 | let w = toString(s.caller) | |
168 | 168 | let x = { | |
169 | 169 | let g = getInteger(w) | |
170 | 170 | if ($isInstanceOf(g, "Int")) | |
171 | 171 | then { | |
172 | 172 | let h = g | |
173 | 173 | h | |
174 | 174 | } | |
175 | 175 | else "No user found" | |
176 | 176 | } | |
177 | 177 | if ((x == "No user Found")) | |
178 | 178 | then throw("User already exists") | |
179 | 179 | else [IntegerEntry(w, c)] | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Verifier(F) | |
184 | 184 | func G () = sigVerify(F.bodyBytes, F.proofs[0], F.senderPublicKey) | |
185 | 185 |
github/deemru/w8io/026f985 30.24 ms ◑