tx · BDRX4mrSt3PxsErP5H53fr5RVRuf4BgedeTSKmQWHhA

3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos:  -0.01400000 Waves

2024.05.28 11:05 [3125567] smart account 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos > SELF 0.00000000 Waves

{ "type": 13, "id": "BDRX4mrSt3PxsErP5H53fr5RVRuf4BgedeTSKmQWHhA", "fee": 1400000, "feeAssetId": null, "timestamp": 1716883557687, "version": 2, "chainId": 84, "sender": "3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos", "senderPublicKey": "F7SLwr7RYVQpyocmVScFC6ooaAwewaGq6wNRDYvyiPj1", "proofs": [ "52Ao5JSBnj7WegPca3ACWhHHHDV7PvfNhQjZX2Hv2KzJnEWANzauFBHYhFsTiBhy3ofccej9ztuoyKYFjBKg9JpC" ], "script": "base64:AAIFAAAAAAAAABIIAhIGCgQIGAgIEgQKAggIEgAAAAALAAAAABRwcmVkaWN0aW9uTWF4Q291bnRlcgAAAAAAAAAAAwAAAAAKbWF4Q291bnRlcgAAAAAAAAAABgAAAAANZGVmYXVsdFJhdGluZwAAAAAAAAAAZAAAAAAOcmF0ZUFkanVzdG1lbnQAAAAAAAAAABQAAAAAB3Rva2VuSWQBAAAAIG33eiemmz/8i1OVqeOeBVscIi9bTehRMFsBoQapAMYYAAAAAAxwYXlvdXRBbW91bnQAAAAAAAX14QAAAAAADHJhdGluZ0N1dG9mZgAAAAAAAAAAMgEAAAARc2VhcmNoRm9yQ291bnRlcnMAAAACAAAABml0ZW1JZAAAAAdjb3VudGVyBAAAABFzZWFyY2hGb3JDb3VudGVycwQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAIJAAEsAAAAAgUAAAAGaXRlbUlkAgAAAAFfCQABpAAAAAEFAAAAB2NvdW50ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAUAAAABcwIAAAAHTm8gVXNlcgU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lsAAAAAWkBAAAADHJlZ2lzdGVyVXNlcgAAAAAEAAAADGNsaWVudEFkcmVzcwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAADXNlYXJjaEZvclVzZXIEAAAAByRtYXRjaDAJAAQfAAAAAQUAAAAMY2xpZW50QWRyZXNzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMA//////////8DCQEAAAACIT0AAAACBQAAAA1zZWFyY2hGb3JVc2VyAP//////////CQAAAgAAAAECAAAAE1VzZXIgYWxyZWFkeSBleGlzdHMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAADGNsaWVudEFkcmVzcwUAAAANZGVmYXVsdFJhdGluZwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlYUatZ", "height": 3125567, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2w1WzjfYvBQKPaA4aiVcPiXmmzSLJXxVBGJzZ73R7gMX Next: BYDqHfWL2ZtbyAjDWSeji468h9XirGuDAtq2tgmKZBw2 Diff:
OldNewDifferences
142142 let l = k
143143 l
144144 }
145- else throw("User does not exist")
145+ else "User does not exist"
146146 }
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")
147+ if ((T == "User does not exist"))
148+ then throw("User does not exist")
158149 else {
159- let V = {
160- let k = getBoolean((i + "_cancelled"))
150+ let U = {
151+ let k = getBoolean((i + "_final"))
161152 if ($isInstanceOf(k, "Boolean"))
162153 then {
163154 let l = k
165156 }
166157 else false
167158 }
168- if (V)
159+ if (U)
169160 then throw("Final prediction already made")
170161 else {
171- let W = m(S)
172- if ((g >= W))
173- then throw("You are not allowed to participate anymore")
162+ let V = {
163+ let k = getBoolean((i + "_cancelled"))
164+ if ($isInstanceOf(k, "Boolean"))
165+ then {
166+ let l = k
167+ l
168+ }
169+ else false
170+ }
171+ if (V)
172+ then throw("Final prediction already made")
174173 else {
175- let X = {
176- let k = getInteger((i + "_counter"))
177- if ($isInstanceOf(k, "Int"))
178- then {
179- let l = k
180- l
174+ let W = m(S)
175+ if ((g >= W))
176+ then throw("You are not allowed to participate anymore")
177+ else {
178+ let X = {
179+ let k = getInteger((i + "_counter"))
180+ if ($isInstanceOf(k, "Int"))
181+ then {
182+ let l = k
183+ l
184+ }
185+ else -1
181186 }
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")
187+ if ((X >= 1))
188+ then {
189+ let u = t(i, X)
190+ if (containsElement(u, S))
191+ then throw("This User already gave a Prediction")
192+ else {
193+ let Y = {
194+ let k = getInteger((i + "_predictionCounter"))
195+ if ($isInstanceOf(k, "Int"))
196+ then {
197+ let l = k
198+ l
199+ }
200+ else -1
201+ }
202+ let Z = u[(size(u) - 1)]
203+ let aa = {
204+ let k = getString(((i + "_") + Z))
205+ if ($isInstanceOf(k, "String"))
206+ then {
207+ let l = k
208+ l
209+ }
210+ else "no Prediction Found"
211+ }
212+ let ab = (X + 1)
213+ if ((aa == G))
214+ then if (((Y + 1) == a))
215+ then {
216+ let ac = invoke(this, "adjustRatingsAndPayoutParticipants", [i, u, S, G], nil)
217+ if ((ac != ac))
218+ then throw("Strict value is not equal to itself.")
219+ 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))]
220+ }
221+ 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)]
222+ else if ((ab >= b))
223+ 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)]
224+ else if (((Y - 1) == -1))
225+ 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))]
226+ 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))]
227+ }
228+ }
189229 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))
230+ let ad = {
231+ let k = getString(("new_" + i))
202232 if ($isInstanceOf(k, "String"))
203233 then {
204234 let l = k
205235 l
206236 }
207- else "no Prediction Found"
237+ else "Item not Found"
208238 }
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))]
239+ if ((ad == "Item not Found"))
240+ then throw("Item not found")
241+ 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)]
224242 }
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)]
237243 }
238244 }
239245 }
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 let d = 20
1111
1212 let e = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH'
1313
1414 let f = 100000000
1515
1616 let g = 50
1717
1818 func h (i,j) = {
1919 let h = {
2020 let k = getString(((i + "_") + toString(j)))
2121 if ($isInstanceOf(k, "String"))
2222 then {
2323 let l = k
2424 l
2525 }
2626 else "No User"
2727 }
2828 h
2929 }
3030
3131
3232 func m (n) = {
3333 let o = {
3434 let k = getInteger(n)
3535 if ($isInstanceOf(k, "Int"))
3636 then {
3737 let p = k
3838 p
3939 }
4040 else c
4141 }
4242 o
4343 }
4444
4545
4646 func q (i,r) = {
4747 let s = {
4848 let k = getString(((i + "_") + r))
4949 if ($isInstanceOf(k, "String"))
5050 then {
5151 let l = k
5252 l
5353 }
5454 else "Not Found"
5555 }
5656 s
5757 }
5858
5959
6060 func t (i,j) = {
6161 let u = if ((j >= 5))
6262 then {
6363 let v = h(i, 1)
6464 let w = h(i, 2)
6565 let x = h(i, 3)
6666 let y = h(i, 4)
6767 let z = h(i, 5)
6868 (((((nil :+ v) :+ w) :+ x) :+ y) :+ z)
6969 }
7070 else if ((j >= 4))
7171 then {
7272 let v = h(i, 1)
7373 let w = h(i, 2)
7474 let x = h(i, 3)
7575 let y = h(i, 4)
7676 ((((nil :+ v) :+ w) :+ x) :+ y)
7777 }
7878 else if ((j >= 3))
7979 then {
8080 let v = h(i, 1)
8181 let w = h(i, 2)
8282 let x = h(i, 3)
8383 (((nil :+ v) :+ w) :+ x)
8484 }
8585 else if ((j >= 2))
8686 then {
8787 let v = h(i, 1)
8888 let w = h(i, 2)
8989 ((nil :+ v) :+ w)
9090 }
9191 else {
9292 let v = h(i, 1)
9393 (nil :+ v)
9494 }
9595 u
9696 }
9797
9898
9999 @Callable(A)
100100 func adjustRatingsAndPayoutParticipants (i,B,C,D) = {
101101 func E (F,n) = {
102102 let o = m(n)
103103 let G = q(i, n)
104104 let H = if ((G == D))
105105 then (o + d)
106106 else (o - d)
107107 let I = if ((G == D))
108108 then f
109109 else 0
110110 let J = (F :+ IntegerEntry(n, H))
111111 if ((I > 0))
112112 then (J :+ ScriptTransfer(Address(fromBase58String(n)), I, e))
113113 else J
114114 }
115115
116116 let K = {
117117 let L = B
118118 let M = size(L)
119119 let N = nil
120120 func O (P,Q) = if ((Q >= M))
121121 then P
122122 else E(P, L[Q])
123123
124124 func R (P,Q) = if ((Q >= M))
125125 then P
126126 else throw("List size exceeds 5")
127127
128128 R(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5)
129129 }
130130 (K :+ BooleanEntry((i + "_adjusted"), true))
131131 }
132132
133133
134134
135135 @Callable(A)
136136 func savePrediction (i,G) = {
137137 let S = toString(A.caller)
138138 let T = {
139139 let k = getInteger(S)
140140 if ($isInstanceOf(k, "Int"))
141141 then {
142142 let l = k
143143 l
144144 }
145- else throw("User does not exist")
145+ else "User does not exist"
146146 }
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")
147+ if ((T == "User does not exist"))
148+ then throw("User does not exist")
158149 else {
159- let V = {
160- let k = getBoolean((i + "_cancelled"))
150+ let U = {
151+ let k = getBoolean((i + "_final"))
161152 if ($isInstanceOf(k, "Boolean"))
162153 then {
163154 let l = k
164155 l
165156 }
166157 else false
167158 }
168- if (V)
159+ if (U)
169160 then throw("Final prediction already made")
170161 else {
171- let W = m(S)
172- if ((g >= W))
173- then throw("You are not allowed to participate anymore")
162+ let V = {
163+ let k = getBoolean((i + "_cancelled"))
164+ if ($isInstanceOf(k, "Boolean"))
165+ then {
166+ let l = k
167+ l
168+ }
169+ else false
170+ }
171+ if (V)
172+ then throw("Final prediction already made")
174173 else {
175- let X = {
176- let k = getInteger((i + "_counter"))
177- if ($isInstanceOf(k, "Int"))
178- then {
179- let l = k
180- l
174+ let W = m(S)
175+ if ((g >= W))
176+ then throw("You are not allowed to participate anymore")
177+ else {
178+ let X = {
179+ let k = getInteger((i + "_counter"))
180+ if ($isInstanceOf(k, "Int"))
181+ then {
182+ let l = k
183+ l
184+ }
185+ else -1
181186 }
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")
187+ if ((X >= 1))
188+ then {
189+ let u = t(i, X)
190+ if (containsElement(u, S))
191+ then throw("This User already gave a Prediction")
192+ else {
193+ let Y = {
194+ let k = getInteger((i + "_predictionCounter"))
195+ if ($isInstanceOf(k, "Int"))
196+ then {
197+ let l = k
198+ l
199+ }
200+ else -1
201+ }
202+ let Z = u[(size(u) - 1)]
203+ let aa = {
204+ let k = getString(((i + "_") + Z))
205+ if ($isInstanceOf(k, "String"))
206+ then {
207+ let l = k
208+ l
209+ }
210+ else "no Prediction Found"
211+ }
212+ let ab = (X + 1)
213+ if ((aa == G))
214+ then if (((Y + 1) == a))
215+ then {
216+ let ac = invoke(this, "adjustRatingsAndPayoutParticipants", [i, u, S, G], nil)
217+ if ((ac != ac))
218+ then throw("Strict value is not equal to itself.")
219+ 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))]
220+ }
221+ 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)]
222+ else if ((ab >= b))
223+ 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)]
224+ else if (((Y - 1) == -1))
225+ 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))]
226+ 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))]
227+ }
228+ }
189229 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))
230+ let ad = {
231+ let k = getString(("new_" + i))
202232 if ($isInstanceOf(k, "String"))
203233 then {
204234 let l = k
205235 l
206236 }
207- else "no Prediction Found"
237+ else "Item not Found"
208238 }
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))]
239+ if ((ad == "Item not Found"))
240+ then throw("Item not found")
241+ 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)]
224242 }
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)]
237243 }
238244 }
239245 }
240246 }
241247 }
242248
243249
244250
245251 @Callable(A)
246252 func registerUser () = {
247253 let S = toString(A.caller)
248254 let T = {
249255 let k = getInteger(S)
250256 if ($isInstanceOf(k, "Int"))
251257 then {
252258 let l = k
253259 l
254260 }
255261 else -1
256262 }
257263 if ((T != -1))
258264 then throw("User already exists")
259265 else [IntegerEntry(S, c)]
260266 }
261267
262268
263269 @Verifier(ae)
264270 func af () = sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey)
265271

github/deemru/w8io/169f3d6 
39.02 ms