tx · 2w1WzjfYvBQKPaA4aiVcPiXmmzSLJXxVBGJzZ73R7gMX 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos: -0.01400000 Waves 2024.05.28 10:58 [3125562] smart account 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos > SELF 0.00000000 Waves
{ "type": 13, "id": "2w1WzjfYvBQKPaA4aiVcPiXmmzSLJXxVBGJzZ73R7gMX", "fee": 1400000, "feeAssetId": null, "timestamp": 1716883149515, "version": 2, "chainId": 84, "sender": "3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos", "senderPublicKey": "F7SLwr7RYVQpyocmVScFC6ooaAwewaGq6wNRDYvyiPj1", "proofs": [ "fGqorMbY6Pt4WyHui2hNWp6h22huMF93tkL7AmY4WhYyaQydep1GGw99THv4UHZBMWXnY998y4xVUpwZvT6JL2b" ], "script": "base64:AAIFAAAAAAAAABIIAhIGCgQIGAgIEgQKAggIEgAAAAALAAAAABRwcmVkaWN0aW9uTWF4Q291bnRlcgAAAAAAAAAAAwAAAAAKbWF4Q291bnRlcgAAAAAAAAAABgAAAAANZGVmYXVsdFJhdGluZwAAAAAAAAAAZAAAAAAOcmF0ZUFkanVzdG1lbnQAAAAAAAAAABQAAAAAB3Rva2VuSWQBAAAAIG33eiemmz/8i1OVqeOeBVscIi9bTehRMFsBoQapAMYYAAAAAAxwYXlvdXRBbW91bnQAAAAAAAX14QAAAAAADHJhdGluZ0N1dG9mZgAAAAAAAAAAMgEAAAARc2VhcmNoRm9yQ291bnRlcnMAAAACAAAABml0ZW1JZAAAAAdjb3VudGVyBAAAABFzZWFyY2hGb3JDb3VudGVycwQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAIJAAEsAAAAAgUAAAAGaXRlbUlkAgAAAAFfCQABpAAAAAEFAAAAB2NvdW50ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAUAAAABcwIAAAAHTm8gVXNlc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AAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAP//////////AwkBAAAAAiE9AAAAAgUAAAANc2VhcmNoRm9yVXNlcgD//////////wkAAAIAAAABAgAAABNVc2VyIGFscmVhZHkgZXhpc3RzCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAxjbGllbnRBZHJlc3MFAAAADWRlZmF1bHRSYXRpbmcFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5aMLLeQ==", "height": 3125562, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AuWQBNTbpHNsfeXZ7JdsNzTq2TmW9ZgJqbocuevNvLpc Next: BDRX4mrSt3PxsErP5H53fr5RVRuf4BgedeTSKmQWHhA Diff:
Old | New | Differences | |
---|---|---|---|
142 | 142 | let l = k | |
143 | 143 | l | |
144 | 144 | } | |
145 | - | else " | |
145 | + | else throw("User does not exist") | |
146 | 146 | } | |
147 | - | let U = m(S) | |
148 | - | if ((g >= U)) | |
149 | - | then throw("You are not allowed to participate anymore") | |
150 | - | else if ((T == "no User exists")) | |
151 | - | then throw("User does not exist") | |
152 | - | else { | |
153 | - | let V = { | |
154 | - | let k = getInteger((i + "_counter")) | |
155 | - | if ($isInstanceOf(k, "Int")) | |
156 | - | then { | |
157 | - | let l = k | |
158 | - | l | |
147 | + | let U = { | |
148 | + | let k = getBoolean((i + "_final")) | |
149 | + | if ($isInstanceOf(k, "Boolean")) | |
150 | + | then { | |
151 | + | let l = k | |
152 | + | l | |
153 | + | } | |
154 | + | else false | |
155 | + | } | |
156 | + | if (U) | |
157 | + | then throw("Final prediction already made") | |
158 | + | else { | |
159 | + | let V = { | |
160 | + | let k = getBoolean((i + "_cancelled")) | |
161 | + | if ($isInstanceOf(k, "Boolean")) | |
162 | + | then { | |
163 | + | let l = k | |
164 | + | l | |
165 | + | } | |
166 | + | else false | |
167 | + | } | |
168 | + | if (V) | |
169 | + | then throw("Final prediction already made") | |
170 | + | else { | |
171 | + | let W = m(S) | |
172 | + | if ((g >= W)) | |
173 | + | then throw("You are not allowed to participate anymore") | |
174 | + | else { | |
175 | + | let X = { | |
176 | + | let k = getInteger((i + "_counter")) | |
177 | + | if ($isInstanceOf(k, "Int")) | |
178 | + | then { | |
179 | + | let l = k | |
180 | + | l | |
181 | + | } | |
182 | + | else -1 | |
183 | + | } | |
184 | + | if ((X >= 1)) | |
185 | + | then { | |
186 | + | let u = t(i, X) | |
187 | + | if (containsElement(u, S)) | |
188 | + | then throw("This User already gave a Prediction") | |
189 | + | else { | |
190 | + | let Y = { | |
191 | + | let k = getInteger((i + "_predictionCounter")) | |
192 | + | if ($isInstanceOf(k, "Int")) | |
193 | + | then { | |
194 | + | let l = k | |
195 | + | l | |
196 | + | } | |
197 | + | else -1 | |
198 | + | } | |
199 | + | let Z = u[(size(u) - 1)] | |
200 | + | let aa = { | |
201 | + | let k = getString(((i + "_") + Z)) | |
202 | + | if ($isInstanceOf(k, "String")) | |
203 | + | then { | |
204 | + | let l = k | |
205 | + | l | |
206 | + | } | |
207 | + | else "no Prediction Found" | |
208 | + | } | |
209 | + | let ab = (X + 1) | |
210 | + | if ((aa == G)) | |
211 | + | then if (((Y + 1) == a)) | |
212 | + | then { | |
213 | + | let ac = invoke(this, "adjustRatingsAndPayoutParticipants", [i, u, S, G], nil) | |
214 | + | if ((ac != ac)) | |
215 | + | then throw("Strict value is not equal to itself.") | |
216 | + | else [StringEntry(((i + "_") + toString(ab)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), ab), IntegerEntry((i + "_predictionCounter"), (Y + 1)), BooleanEntry((i + "_final"), true), BooleanEntry((i + "_cancelled"), false), ScriptTransfer(Address(fromBase58String(S)), f, e), IntegerEntry(S, (W + 20))] | |
217 | + | } | |
218 | + | else [StringEntry(((i + "_") + toString(ab)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), ab), IntegerEntry((i + "_predictionCounter"), (Y + 1)), BooleanEntry((i + "_final"), false), BooleanEntry((i + "_cancelled"), false)] | |
219 | + | else if ((ab >= b)) | |
220 | + | then [StringEntry(((i + "_") + toString(ab)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), ab), IntegerEntry((i + "_predictionCounter"), (Y - 1)), BooleanEntry((i + "_cancelled"), true), BooleanEntry((i + "_final"), false)] | |
221 | + | else if (((Y - 1) == -1)) | |
222 | + | then [StringEntry(((i + "_") + toString(ab)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), ab), IntegerEntry((i + "_predictionCounter"), 1), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", aa), IntegerEntry("test2", size(u))] | |
223 | + | else [StringEntry(((i + "_") + toString(ab)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), ab), IntegerEntry((i + "_predictionCounter"), (Y - 1)), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", aa), IntegerEntry("test2", size(u))] | |
224 | + | } | |
225 | + | } | |
226 | + | else { | |
227 | + | let ad = { | |
228 | + | let k = getString(("new_" + i)) | |
229 | + | if ($isInstanceOf(k, "String")) | |
230 | + | then { | |
231 | + | let l = k | |
232 | + | l | |
233 | + | } | |
234 | + | else throw("Item not Found") | |
235 | + | } | |
236 | + | [StringEntry(((i + "_") + toString(1)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), 1), IntegerEntry((i + "_predictionCounter"), 1), DeleteEntry(("new_" + i)), StringEntry(("updated_" + i), i)] | |
237 | + | } | |
159 | 238 | } | |
160 | - | else -1 | |
161 | 239 | } | |
162 | - | if ((V >= 1)) | |
163 | - | then { | |
164 | - | let u = t(i, V) | |
165 | - | if (containsElement(u, S)) | |
166 | - | then throw("This User already gave a Prediction") | |
167 | - | else { | |
168 | - | let W = { | |
169 | - | let k = getInteger((i + "_predictionCounter")) | |
170 | - | if ($isInstanceOf(k, "Int")) | |
171 | - | then { | |
172 | - | let l = k | |
173 | - | l | |
174 | - | } | |
175 | - | else -1 | |
176 | - | } | |
177 | - | let X = u[(size(u) - 1)] | |
178 | - | let Y = { | |
179 | - | let k = getString(((i + "_") + X)) | |
180 | - | if ($isInstanceOf(k, "String")) | |
181 | - | then { | |
182 | - | let l = k | |
183 | - | l | |
184 | - | } | |
185 | - | else "no Prediction Found" | |
186 | - | } | |
187 | - | let Z = (V + 1) | |
188 | - | if ((Y == G)) | |
189 | - | then if (((W + 1) == a)) | |
190 | - | then { | |
191 | - | let aa = invoke(this, "adjustRatingsAndPayoutParticipants", [i, u, S, G], nil) | |
192 | - | if ((aa != aa)) | |
193 | - | then throw("Strict value is not equal to itself.") | |
194 | - | else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W + 1)), BooleanEntry((i + "_final"), true), BooleanEntry((i + "_cancelled"), false), ScriptTransfer(Address(fromBase58String(S)), f, e), IntegerEntry(S, (U + 20))] | |
195 | - | } | |
196 | - | else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W + 1)), BooleanEntry((i + "_final"), false), BooleanEntry((i + "_cancelled"), false)] | |
197 | - | else if ((Z >= b)) | |
198 | - | then [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W - 1)), BooleanEntry((i + "_cancelled"), true), BooleanEntry((i + "_final"), false)] | |
199 | - | else if (((W - 1) == -1)) | |
200 | - | then [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), 1), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", Y), IntegerEntry("test2", size(u))] | |
201 | - | else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W - 1)), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", Y), IntegerEntry("test2", size(u))] | |
202 | - | } | |
203 | - | } | |
204 | - | else { | |
205 | - | let ab = { | |
206 | - | let k = getString(("new_" + i)) | |
207 | - | if ($isInstanceOf(k, "String")) | |
208 | - | then { | |
209 | - | let l = k | |
210 | - | l | |
211 | - | } | |
212 | - | else "not Found" | |
213 | - | } | |
214 | - | if ((ab != i)) | |
215 | - | then throw("Item not Found") | |
216 | - | else [StringEntry(((i + "_") + toString(1)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), 1), IntegerEntry((i + "_predictionCounter"), 1), DeleteEntry(("new_" + i)), StringEntry(("updated_" + i), i)] | |
217 | - | } | |
218 | - | } | |
240 | + | } | |
219 | 241 | } | |
220 | 242 | ||
221 | 243 | ||
238 | 260 | } | |
239 | 261 | ||
240 | 262 | ||
241 | - | @Verifier( | |
242 | - | func | |
263 | + | @Verifier(ae) | |
264 | + | func af () = sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey) | |
243 | 265 |
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 | let d = 20 | |
11 | 11 | ||
12 | 12 | let e = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH' | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
16 | 16 | let g = 50 | |
17 | 17 | ||
18 | 18 | func h (i,j) = { | |
19 | 19 | let h = { | |
20 | 20 | let k = getString(((i + "_") + toString(j))) | |
21 | 21 | if ($isInstanceOf(k, "String")) | |
22 | 22 | then { | |
23 | 23 | let l = k | |
24 | 24 | l | |
25 | 25 | } | |
26 | 26 | else "No User" | |
27 | 27 | } | |
28 | 28 | h | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func m (n) = { | |
33 | 33 | let o = { | |
34 | 34 | let k = getInteger(n) | |
35 | 35 | if ($isInstanceOf(k, "Int")) | |
36 | 36 | then { | |
37 | 37 | let p = k | |
38 | 38 | p | |
39 | 39 | } | |
40 | 40 | else c | |
41 | 41 | } | |
42 | 42 | o | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func q (i,r) = { | |
47 | 47 | let s = { | |
48 | 48 | let k = getString(((i + "_") + r)) | |
49 | 49 | if ($isInstanceOf(k, "String")) | |
50 | 50 | then { | |
51 | 51 | let l = k | |
52 | 52 | l | |
53 | 53 | } | |
54 | 54 | else "Not Found" | |
55 | 55 | } | |
56 | 56 | s | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func t (i,j) = { | |
61 | 61 | let u = if ((j >= 5)) | |
62 | 62 | then { | |
63 | 63 | let v = h(i, 1) | |
64 | 64 | let w = h(i, 2) | |
65 | 65 | let x = h(i, 3) | |
66 | 66 | let y = h(i, 4) | |
67 | 67 | let z = h(i, 5) | |
68 | 68 | (((((nil :+ v) :+ w) :+ x) :+ y) :+ z) | |
69 | 69 | } | |
70 | 70 | else if ((j >= 4)) | |
71 | 71 | then { | |
72 | 72 | let v = h(i, 1) | |
73 | 73 | let w = h(i, 2) | |
74 | 74 | let x = h(i, 3) | |
75 | 75 | let y = h(i, 4) | |
76 | 76 | ((((nil :+ v) :+ w) :+ x) :+ y) | |
77 | 77 | } | |
78 | 78 | else if ((j >= 3)) | |
79 | 79 | then { | |
80 | 80 | let v = h(i, 1) | |
81 | 81 | let w = h(i, 2) | |
82 | 82 | let x = h(i, 3) | |
83 | 83 | (((nil :+ v) :+ w) :+ x) | |
84 | 84 | } | |
85 | 85 | else if ((j >= 2)) | |
86 | 86 | then { | |
87 | 87 | let v = h(i, 1) | |
88 | 88 | let w = h(i, 2) | |
89 | 89 | ((nil :+ v) :+ w) | |
90 | 90 | } | |
91 | 91 | else { | |
92 | 92 | let v = h(i, 1) | |
93 | 93 | (nil :+ v) | |
94 | 94 | } | |
95 | 95 | u | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(A) | |
100 | 100 | func adjustRatingsAndPayoutParticipants (i,B,C,D) = { | |
101 | 101 | func E (F,n) = { | |
102 | 102 | let o = m(n) | |
103 | 103 | let G = q(i, n) | |
104 | 104 | let H = if ((G == D)) | |
105 | 105 | then (o + d) | |
106 | 106 | else (o - d) | |
107 | 107 | let I = if ((G == D)) | |
108 | 108 | then f | |
109 | 109 | else 0 | |
110 | 110 | let J = (F :+ IntegerEntry(n, H)) | |
111 | 111 | if ((I > 0)) | |
112 | 112 | then (J :+ ScriptTransfer(Address(fromBase58String(n)), I, e)) | |
113 | 113 | else J | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | let K = { | |
117 | 117 | let L = B | |
118 | 118 | let M = size(L) | |
119 | 119 | let N = nil | |
120 | 120 | func O (P,Q) = if ((Q >= M)) | |
121 | 121 | then P | |
122 | 122 | else E(P, L[Q]) | |
123 | 123 | ||
124 | 124 | func R (P,Q) = if ((Q >= M)) | |
125 | 125 | then P | |
126 | 126 | else throw("List size exceeds 5") | |
127 | 127 | ||
128 | 128 | R(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5) | |
129 | 129 | } | |
130 | 130 | (K :+ BooleanEntry((i + "_adjusted"), true)) | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
135 | 135 | @Callable(A) | |
136 | 136 | func savePrediction (i,G) = { | |
137 | 137 | let S = toString(A.caller) | |
138 | 138 | let T = { | |
139 | 139 | let k = getInteger(S) | |
140 | 140 | if ($isInstanceOf(k, "Int")) | |
141 | 141 | then { | |
142 | 142 | let l = k | |
143 | 143 | l | |
144 | 144 | } | |
145 | - | else " | |
145 | + | else throw("User does not exist") | |
146 | 146 | } | |
147 | - | let U = m(S) | |
148 | - | if ((g >= U)) | |
149 | - | then throw("You are not allowed to participate anymore") | |
150 | - | else if ((T == "no User exists")) | |
151 | - | then throw("User does not exist") | |
152 | - | else { | |
153 | - | let V = { | |
154 | - | let k = getInteger((i + "_counter")) | |
155 | - | if ($isInstanceOf(k, "Int")) | |
156 | - | then { | |
157 | - | let l = k | |
158 | - | l | |
147 | + | let U = { | |
148 | + | let k = getBoolean((i + "_final")) | |
149 | + | if ($isInstanceOf(k, "Boolean")) | |
150 | + | then { | |
151 | + | let l = k | |
152 | + | l | |
153 | + | } | |
154 | + | else false | |
155 | + | } | |
156 | + | if (U) | |
157 | + | then throw("Final prediction already made") | |
158 | + | else { | |
159 | + | let V = { | |
160 | + | let k = getBoolean((i + "_cancelled")) | |
161 | + | if ($isInstanceOf(k, "Boolean")) | |
162 | + | then { | |
163 | + | let l = k | |
164 | + | l | |
165 | + | } | |
166 | + | else false | |
167 | + | } | |
168 | + | if (V) | |
169 | + | then throw("Final prediction already made") | |
170 | + | else { | |
171 | + | let W = m(S) | |
172 | + | if ((g >= W)) | |
173 | + | then throw("You are not allowed to participate anymore") | |
174 | + | else { | |
175 | + | let X = { | |
176 | + | let k = getInteger((i + "_counter")) | |
177 | + | if ($isInstanceOf(k, "Int")) | |
178 | + | then { | |
179 | + | let l = k | |
180 | + | l | |
181 | + | } | |
182 | + | else -1 | |
183 | + | } | |
184 | + | if ((X >= 1)) | |
185 | + | then { | |
186 | + | let u = t(i, X) | |
187 | + | if (containsElement(u, S)) | |
188 | + | then throw("This User already gave a Prediction") | |
189 | + | else { | |
190 | + | let Y = { | |
191 | + | let k = getInteger((i + "_predictionCounter")) | |
192 | + | if ($isInstanceOf(k, "Int")) | |
193 | + | then { | |
194 | + | let l = k | |
195 | + | l | |
196 | + | } | |
197 | + | else -1 | |
198 | + | } | |
199 | + | let Z = u[(size(u) - 1)] | |
200 | + | let aa = { | |
201 | + | let k = getString(((i + "_") + Z)) | |
202 | + | if ($isInstanceOf(k, "String")) | |
203 | + | then { | |
204 | + | let l = k | |
205 | + | l | |
206 | + | } | |
207 | + | else "no Prediction Found" | |
208 | + | } | |
209 | + | let ab = (X + 1) | |
210 | + | if ((aa == G)) | |
211 | + | then if (((Y + 1) == a)) | |
212 | + | then { | |
213 | + | let ac = invoke(this, "adjustRatingsAndPayoutParticipants", [i, u, S, G], nil) | |
214 | + | if ((ac != ac)) | |
215 | + | then throw("Strict value is not equal to itself.") | |
216 | + | else [StringEntry(((i + "_") + toString(ab)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), ab), IntegerEntry((i + "_predictionCounter"), (Y + 1)), BooleanEntry((i + "_final"), true), BooleanEntry((i + "_cancelled"), false), ScriptTransfer(Address(fromBase58String(S)), f, e), IntegerEntry(S, (W + 20))] | |
217 | + | } | |
218 | + | else [StringEntry(((i + "_") + toString(ab)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), ab), IntegerEntry((i + "_predictionCounter"), (Y + 1)), BooleanEntry((i + "_final"), false), BooleanEntry((i + "_cancelled"), false)] | |
219 | + | else if ((ab >= b)) | |
220 | + | then [StringEntry(((i + "_") + toString(ab)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), ab), IntegerEntry((i + "_predictionCounter"), (Y - 1)), BooleanEntry((i + "_cancelled"), true), BooleanEntry((i + "_final"), false)] | |
221 | + | else if (((Y - 1) == -1)) | |
222 | + | then [StringEntry(((i + "_") + toString(ab)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), ab), IntegerEntry((i + "_predictionCounter"), 1), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", aa), IntegerEntry("test2", size(u))] | |
223 | + | else [StringEntry(((i + "_") + toString(ab)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), ab), IntegerEntry((i + "_predictionCounter"), (Y - 1)), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", aa), IntegerEntry("test2", size(u))] | |
224 | + | } | |
225 | + | } | |
226 | + | else { | |
227 | + | let ad = { | |
228 | + | let k = getString(("new_" + i)) | |
229 | + | if ($isInstanceOf(k, "String")) | |
230 | + | then { | |
231 | + | let l = k | |
232 | + | l | |
233 | + | } | |
234 | + | else throw("Item not Found") | |
235 | + | } | |
236 | + | [StringEntry(((i + "_") + toString(1)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), 1), IntegerEntry((i + "_predictionCounter"), 1), DeleteEntry(("new_" + i)), StringEntry(("updated_" + i), i)] | |
237 | + | } | |
159 | 238 | } | |
160 | - | else -1 | |
161 | 239 | } | |
162 | - | if ((V >= 1)) | |
163 | - | then { | |
164 | - | let u = t(i, V) | |
165 | - | if (containsElement(u, S)) | |
166 | - | then throw("This User already gave a Prediction") | |
167 | - | else { | |
168 | - | let W = { | |
169 | - | let k = getInteger((i + "_predictionCounter")) | |
170 | - | if ($isInstanceOf(k, "Int")) | |
171 | - | then { | |
172 | - | let l = k | |
173 | - | l | |
174 | - | } | |
175 | - | else -1 | |
176 | - | } | |
177 | - | let X = u[(size(u) - 1)] | |
178 | - | let Y = { | |
179 | - | let k = getString(((i + "_") + X)) | |
180 | - | if ($isInstanceOf(k, "String")) | |
181 | - | then { | |
182 | - | let l = k | |
183 | - | l | |
184 | - | } | |
185 | - | else "no Prediction Found" | |
186 | - | } | |
187 | - | let Z = (V + 1) | |
188 | - | if ((Y == G)) | |
189 | - | then if (((W + 1) == a)) | |
190 | - | then { | |
191 | - | let aa = invoke(this, "adjustRatingsAndPayoutParticipants", [i, u, S, G], nil) | |
192 | - | if ((aa != aa)) | |
193 | - | then throw("Strict value is not equal to itself.") | |
194 | - | else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W + 1)), BooleanEntry((i + "_final"), true), BooleanEntry((i + "_cancelled"), false), ScriptTransfer(Address(fromBase58String(S)), f, e), IntegerEntry(S, (U + 20))] | |
195 | - | } | |
196 | - | else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W + 1)), BooleanEntry((i + "_final"), false), BooleanEntry((i + "_cancelled"), false)] | |
197 | - | else if ((Z >= b)) | |
198 | - | then [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W - 1)), BooleanEntry((i + "_cancelled"), true), BooleanEntry((i + "_final"), false)] | |
199 | - | else if (((W - 1) == -1)) | |
200 | - | then [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), 1), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", Y), IntegerEntry("test2", size(u))] | |
201 | - | else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W - 1)), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", Y), IntegerEntry("test2", size(u))] | |
202 | - | } | |
203 | - | } | |
204 | - | else { | |
205 | - | let ab = { | |
206 | - | let k = getString(("new_" + i)) | |
207 | - | if ($isInstanceOf(k, "String")) | |
208 | - | then { | |
209 | - | let l = k | |
210 | - | l | |
211 | - | } | |
212 | - | else "not Found" | |
213 | - | } | |
214 | - | if ((ab != i)) | |
215 | - | then throw("Item not Found") | |
216 | - | else [StringEntry(((i + "_") + toString(1)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), 1), IntegerEntry((i + "_predictionCounter"), 1), DeleteEntry(("new_" + i)), StringEntry(("updated_" + i), i)] | |
217 | - | } | |
218 | - | } | |
240 | + | } | |
219 | 241 | } | |
220 | 242 | ||
221 | 243 | ||
222 | 244 | ||
223 | 245 | @Callable(A) | |
224 | 246 | func registerUser () = { | |
225 | 247 | let S = toString(A.caller) | |
226 | 248 | let T = { | |
227 | 249 | let k = getInteger(S) | |
228 | 250 | if ($isInstanceOf(k, "Int")) | |
229 | 251 | then { | |
230 | 252 | let l = k | |
231 | 253 | l | |
232 | 254 | } | |
233 | 255 | else -1 | |
234 | 256 | } | |
235 | 257 | if ((T != -1)) | |
236 | 258 | then throw("User already exists") | |
237 | 259 | else [IntegerEntry(S, c)] | |
238 | 260 | } | |
239 | 261 | ||
240 | 262 | ||
241 | - | @Verifier( | |
242 | - | func | |
263 | + | @Verifier(ae) | |
264 | + | func af () = sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey) | |
243 | 265 |
github/deemru/w8io/169f3d6 39.67 ms ◑