tx · gxWzKTyYXqGujZb3SfDCjJfMytZNBe7oLm9DJGtSuTk 3MtKnDmJju2Y4dp9A2ACPr11jDZiW6gmKKK: -0.05000000 Waves 2022.01.16 22:20 [1881921] smart account 3MtKnDmJju2Y4dp9A2ACPr11jDZiW6gmKKK > SELF 0.00000000 Waves
{ "type": 13, "id": "gxWzKTyYXqGujZb3SfDCjJfMytZNBe7oLm9DJGtSuTk", "fee": 5000000, "feeAssetId": null, "timestamp": 1642360883250, "version": 2, "chainId": 84, "sender": "3MtKnDmJju2Y4dp9A2ACPr11jDZiW6gmKKK", "senderPublicKey": "3itc77jAZTQAcaPCyYEe4KD7h18CvqZZ2JRynZHsuJ61", "proofs": [ "3TAdqATyw2nyX2evyayuBtmrVtstRKhEhEi8MLLPWdrnGfSc14vJ8FsRkGpp1cw2jDHbThKNtkHwNhLeUPc6JT18" ], "script": "base64:AAIFAAAAAAAAACkIAhIFCgMICAgSABIAEgMKAQgSBAoCCAESBAoCCAgSBAoCCAESAwoBCAAAAA4AAAAADGFkbWluQWRkcmVzcwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAVhZG1pbgIAAAAAAAAAAAt0b3RhbFN1cHBseQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzAgAAAAt0b3RhbFN1cHBseQAAAAAAAAAAAAAAAAAOdm90aW5nRHVyYXRpb24JAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABBoAAAACBQAAAAR0aGlzAgAAAA52b3RpbmdEdXJhdGlvbgIAAAAfTm8ga2V5IHZvdGluZ0R1cmF0aW9uIHdhcyBmb3VuZAAAAAAIY3Rva2VuSWQJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAd0b2tlbklkAgAAABlObyBrZXkgZFRva2VuSWQgd2FzIGZvdW5kAQAAAAdpc0FkbWluAAAAAQAAAA1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d2l0aCBhZG1pbiBhZGRyZXNzIQAAAAFpAQAAABJ1cGRhdGVJbnRlZ2VyRW50cnkAAAACAAAAA2tleQAAAAxpbnRlZ2VyVmFsdWUDCQEAAAAHaXNBZG1pbgAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAARMAAAAAgkBAAAADHdyaXRlSW50ZWdlcgAAAAIFAAAAA2tleQUAAAAMaW50ZWdlclZhbHVlBQAAAANuaWwJAAACAAAAAQIAAAAqQWRkcmVzcyBkb2VzIG5vdCBtYXRjaCB3aXRoIGFkbWluIGFkZHJlc3MhAAAAAWkBAAAAEmRlbGV0ZVN0b3JhZ2VFbnRyeQAAAAEAAAADa2V5AwkBAAAAB2lzQWRtaW4AAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2tleQUAAAADbmlsCQAAAgAAAAECAAAAKkFkZHJlc3MgZG9lcyBub3QgbWF0Y2ggd2l0aCBhZG1pbiBhZGRyZXNzIQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5p9NGRw==", "height": 1881921, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FhsJ9AhqRBzqV1M5BSgTV8uUqDLYVzq8fDaMaA7nRKv4 Next: FAZA1F2ZLBNPs4VXBgxrsBN9jSUKkfxfzRErmy3ycfud Diff:
Old | New | Differences | |
---|---|---|---|
123 | 123 | func U (V) = makeString(V, ",") | |
124 | 124 | ||
125 | 125 | ||
126 | - | func W (X,Y,Z) = { | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
126 | + | func W (X,Y,Z,aa) = { | |
127 | + | let ab = getStringValue((Z + "_board")) | |
128 | + | let ac = split(ab, ",") | |
129 | + | let ad = if ((aa == "teamBlue")) | |
130 | 130 | then "B" | |
131 | 131 | else "Y" | |
132 | - | func | |
133 | - | let | |
134 | - | let | |
135 | - | let | |
136 | - | if (( | |
137 | - | then $Tuple2(( | |
138 | - | else $Tuple2(( | |
132 | + | func ae (p,af) = { | |
133 | + | let ag = p | |
134 | + | let ah = ag._1 | |
135 | + | let ai = ag._2 | |
136 | + | if ((ai == Y)) | |
137 | + | then $Tuple2((ah :+ "0"), (ai + 1)) | |
138 | + | else $Tuple2((ah :+ af), (ai + 1)) | |
139 | 139 | } | |
140 | 140 | ||
141 | - | let ai = { | |
142 | - | let u = ab | |
141 | + | func aj (p,af) = { | |
142 | + | let ak = p | |
143 | + | let ah = ak._1 | |
144 | + | let ai = ak._2 | |
145 | + | if ((ai == X)) | |
146 | + | then $Tuple2((ah :+ ad), (ai + 1)) | |
147 | + | else $Tuple2((ah :+ af), (ai + 1)) | |
148 | + | } | |
149 | + | ||
150 | + | let al = { | |
151 | + | let u = ac | |
143 | 152 | let v = size(u) | |
144 | 153 | let w = $Tuple2(nil, 0) | |
145 | 154 | func x (y,z) = if ((z >= v)) | |
146 | 155 | then y | |
147 | - | else | |
156 | + | else ae(y, u[z]) | |
148 | 157 | ||
149 | 158 | func A (y,z) = if ((z >= v)) | |
150 | 159 | then y | |
152 | 161 | ||
153 | 162 | A(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42) | |
154 | 163 | } | |
155 | - | U(ai._1) | |
164 | + | let am = { | |
165 | + | let u = al._1 | |
166 | + | let v = size(u) | |
167 | + | let w = $Tuple2(nil, 0) | |
168 | + | func an (y,z) = if ((z >= v)) | |
169 | + | then y | |
170 | + | else aj(y, u[z]) | |
171 | + | ||
172 | + | func ao (y,z) = if ((z >= v)) | |
173 | + | then y | |
174 | + | else throw("List size exceeds 42") | |
175 | + | ||
176 | + | ao(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(w, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42) | |
177 | + | } | |
178 | + | U(am._1) | |
156 | 179 | } | |
157 | 180 | ||
158 | 181 | ||
159 | - | func | |
160 | - | func | |
182 | + | func ap (aq) = { | |
183 | + | func ar (p,af) = (p :+ split(af, "_")[1]) | |
161 | 184 | ||
162 | - | let | |
163 | - | let u = | |
185 | + | let as = { | |
186 | + | let u = aq | |
164 | 187 | let v = size(u) | |
165 | 188 | let w = nil | |
166 | 189 | func x (y,z) = if ((z >= v)) | |
167 | 190 | then y | |
168 | - | else | |
191 | + | else ar(y, u[z]) | |
169 | 192 | ||
170 | 193 | func A (y,z) = if ((z >= v)) | |
171 | 194 | then y | |
173 | 196 | ||
174 | 197 | A(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5) | |
175 | 198 | } | |
176 | - | let m = B(ao) | |
177 | - | let K = l(m, ao) | |
178 | - | let ap = J(m, K) | |
179 | - | W(parseIntValue(ap), Y, al) | |
199 | + | let m = B(as) | |
200 | + | let K = l(m, as) | |
201 | + | J(m, K) | |
180 | 202 | } | |
181 | 203 | ||
182 | 204 | ||
183 | - | @Callable( | |
184 | - | func setup (a, | |
205 | + | @Callable(at) | |
206 | + | func setup (a,au,av) = if (!(isDefined(getString(this, "admin")))) | |
185 | 207 | then { | |
186 | - | let | |
187 | - | let | |
188 | - | [ | |
208 | + | let aw = Issue(au, av, 0, 8, true) | |
209 | + | let ax = calculateAssetId(aw) | |
210 | + | [aw, j("admin", a), g("votingDuration", 2), g("totalSupply", 0), j("tokenName", au), j("tokenId", toBase58String(ax)), g("tokenDecimals", 8)] | |
189 | 211 | } | |
190 | 212 | else throw("Pool already setup!") | |
191 | 213 | ||
192 | 214 | ||
193 | 215 | ||
194 | - | @Callable( | |
195 | - | func buyRound () = if ((size( | |
216 | + | @Callable(at) | |
217 | + | func buyRound () = if ((size(at.payments) > 0)) | |
196 | 218 | then { | |
197 | - | let | |
198 | - | if (( | |
219 | + | let ay = at.payments[0].amount | |
220 | + | if ((ay >= 1)) | |
199 | 221 | then { | |
200 | - | let | |
201 | - | let | |
202 | - | [g("totalSupply", | |
222 | + | let az = fraction(ay, 42, 1) | |
223 | + | let aA = (b + az) | |
224 | + | [g("totalSupply", aA), Reissue(fromBase58String(d), az, true), ScriptTransfer(at.caller, az, fromBase58String(d))] | |
203 | 225 | } | |
204 | 226 | else throw("Payment is to small!") | |
205 | 227 | } | |
207 | 229 | ||
208 | 230 | ||
209 | 231 | ||
210 | - | @Callable( | |
232 | + | @Callable(at) | |
211 | 233 | func createGame () = { | |
212 | 234 | let V = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" | |
213 | - | let | |
214 | - | [j(( | |
235 | + | let Z = toBase58String(at.transactionId) | |
236 | + | [j((Z + "_board"), V), j((Z + "_status"), "waiting for players"), j((Z + "_teamBlue"), toString(at.caller)), j((Z + "_teamYellow"), "")] | |
215 | 237 | } | |
216 | 238 | ||
217 | 239 | ||
218 | 240 | ||
219 | - | @Callable( | |
220 | - | func joinGame ( | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | if ((5 > size( | |
226 | - | then [j(( | |
227 | - | else if ((size( | |
228 | - | then [j(( | |
229 | - | else if ((size( | |
230 | - | then [j(( | |
231 | - | else if ((4 > size( | |
232 | - | then [j(( | |
241 | + | @Callable(at) | |
242 | + | func joinGame (Z) = { | |
243 | + | let aB = getStringValue((Z + "_teamBlue")) | |
244 | + | let aC = getStringValue((Z + "_teamYellow")) | |
245 | + | let aD = split(aB, ",") | |
246 | + | let aE = split(aC, ",") | |
247 | + | if ((5 > size(aD))) | |
248 | + | then [j((Z + "_teamBlue"), ((aB + ",") + toBase58String(at.caller.bytes)))] | |
249 | + | else if ((size(aE) == 4)) | |
250 | + | then [j((Z + "_status"), "round_1,turn_teamBlue"), j((Z + "_voting_1"), ""), g((Z + "_mostVoted"), -1), g((Z + "_storedHeight"), (height + c)), j((Z + "_teamYellow"), ((aC + ",") + toBase58String(at.caller.bytes)))] | |
251 | + | else if ((size(aE) == 0)) | |
252 | + | then [j((Z + "_teamYellow"), toBase58String(at.caller.bytes))] | |
253 | + | else if ((4 > size(aE))) | |
254 | + | then [j((Z + "_teamYellow"), ((aC + ",") + toBase58String(at.caller.bytes)))] | |
233 | 255 | else throw("Teams are full, cannot join.") | |
234 | 256 | } | |
235 | 257 | ||
236 | 258 | ||
237 | 259 | ||
238 | - | @Callable(aq) | |
239 | - | func vote (Y,aC) = { | |
240 | - | let aD = valueOrErrorMessage(getStringValue((Y + "_status")), "No status entry found under gameId!") | |
241 | - | let ak = parseIntValue(drop(split(aD, ",")[0], 6)) | |
242 | - | let al = drop(split(aD, ",")[1], 5) | |
243 | - | let aE = valueOrErrorMessage(getInteger((Y + "_storedHeight")), (("No status entry found under " + Y) + "_storedHeight!")) | |
244 | - | let aF = valueOrErrorMessage(getStringValue(((Y + "_voting_") + toString(ak))), "No votes found for this game id!") | |
245 | - | let aG = if ((size(aF) > 0)) | |
246 | - | then split(aF, ",") | |
260 | + | @Callable(at) | |
261 | + | func vote (Z,aF) = { | |
262 | + | let aG = valueOrErrorMessage(getStringValue((Z + "_status")), "No status entry found under gameId!") | |
263 | + | let aH = parseIntValue(drop(split(aG, ",")[0], 6)) | |
264 | + | let aI = drop(split(aG, ",")[1], 5) | |
265 | + | let aJ = valueOrErrorMessage(getInteger((Z + "_storedHeight")), (("No status entry found under " + Z) + "_storedHeight!")) | |
266 | + | let aK = valueOrErrorMessage(getIntegerValue((Z + "_mostVoted")), (("No status entry found under " + Z) + "_mostVoted!")) | |
267 | + | let aL = valueOrErrorMessage(getStringValue(((Z + "_voting_") + toString(aH))), "No votes found for this game id!") | |
268 | + | let aM = if ((size(aL) > 0)) | |
269 | + | then split(aL, ",") | |
247 | 270 | else nil | |
248 | - | let | |
271 | + | let aN = if ((aI == "teamBlue")) | |
249 | 272 | then { | |
250 | - | let | |
251 | - | let | |
252 | - | | |
273 | + | let aO = getStringValue((Z + "_teamBlue")) | |
274 | + | let aP = split(aO, ",") | |
275 | + | aP | |
253 | 276 | } | |
254 | 277 | else { | |
255 | - | let | |
256 | - | let | |
257 | - | | |
278 | + | let aQ = getStringValue((Z + "_teamYellow")) | |
279 | + | let aR = split(aQ, ",") | |
280 | + | aR | |
258 | 281 | } | |
259 | - | let | |
282 | + | let aS = if ((aI == "teamBlue")) | |
260 | 283 | then "teamYellow" | |
261 | 284 | else "teamBlue" | |
262 | - | let | |
285 | + | let aT = if ((aS == "teamBlue")) | |
263 | 286 | then { | |
264 | - | let | |
265 | - | let | |
266 | - | | |
287 | + | let aO = getStringValue((Z + "_teamBlue")) | |
288 | + | let aP = split(aO, ",") | |
289 | + | aP | |
267 | 290 | } | |
268 | 291 | else { | |
269 | - | let | |
270 | - | let | |
271 | - | | |
292 | + | let aQ = getStringValue((Z + "_teamYellow")) | |
293 | + | let aR = split(aQ, ",") | |
294 | + | aR | |
272 | 295 | } | |
273 | - | let f = toBase58String(aq.caller.bytes) | |
274 | - | if ((aE >= height)) | |
275 | - | then if (containsElement(aH, f)) | |
276 | - | then { | |
277 | - | func aO (p,ae) = (p :+ split(ae, "_")[0]) | |
296 | + | let f = toBase58String(at.caller.bytes) | |
297 | + | if ((size(at.payments) > 0)) | |
298 | + | then if ((fromBase58String(d) == at.payments[0].assetId)) | |
299 | + | then if ((at.payments[0].amount == 1)) | |
300 | + | then if ((aJ >= height)) | |
301 | + | then if (containsElement(aN, f)) | |
302 | + | then { | |
303 | + | func aU (p,af) = (p :+ split(af, "_")[0]) | |
278 | 304 | ||
279 | - | let | |
280 | - | let u = | |
281 | - | let v = size(u) | |
282 | - | let w = nil | |
283 | - | func x (y,z) = if ((z >= v)) | |
284 | - | then y | |
285 | - | else | |
305 | + | let aV = { | |
306 | + | let u = aM | |
307 | + | let v = size(u) | |
308 | + | let w = nil | |
309 | + | func x (y,z) = if ((z >= v)) | |
310 | + | then y | |
311 | + | else aU(y, u[z]) | |
286 | 312 | ||
287 | - | func A (y,z) = if ((z >= v)) | |
288 | - | then y | |
289 | - | else throw("List size exceeds 5") | |
313 | + | func A (y,z) = if ((z >= v)) | |
314 | + | then y | |
315 | + | else throw("List size exceeds 5") | |
290 | 316 | ||
291 | - | A(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5) | |
292 | - | } | |
293 | - | if ((containsElement(aP, f) == false)) | |
294 | - | then { | |
295 | - | let aQ = ((f + "_") + toString(aC)) | |
296 | - | let am = (aG :+ aQ) | |
297 | - | let aR = makeString(am, ",") | |
298 | - | let aS = aj(Y, ak, al, am) | |
299 | - | if ((5 > size(am))) | |
300 | - | then [j(((Y + "_voting_") + toString(ak)), aR)] | |
301 | - | else [j(((Y + "_voting_") + toString(ak)), aR), j((Y + "_board"), aS), g((Y + "_storedHeight"), (height + c)), j((Y + "_status"), ((("round_" + toString((ak + 1))) + ",turn_") + aM)), j(((Y + "_voting_") + toString((ak + 1))), "")] | |
302 | - | } | |
303 | - | else throw("Caller already voted!") | |
304 | - | } | |
305 | - | else throw((("Caller is not in " + al) + "!")) | |
306 | - | else if (containsElement(aN, f)) | |
307 | - | then if ((size(aG) > 0)) | |
308 | - | then { | |
309 | - | let aS = aj(Y, ak, al, aG) | |
310 | - | let aQ = ((f + "_") + toString(aC)) | |
311 | - | [j((Y + "_board"), aS), g((Y + "_storedHeight"), (height + c)), j((Y + "_status"), ((("round_" + toString((ak + 1))) + ",turn_") + aM)), j(((Y + "_voting_") + toString((ak + 1))), aQ)] | |
312 | - | } | |
313 | - | else { | |
314 | - | let aQ = ((f + "_") + toString(aC)) | |
315 | - | [g((Y + "_storedHeight"), (height + c)), j((Y + "_status"), ((("round_" + toString((ak + 1))) + ",turn_") + aM)), j(((Y + "_voting_") + toString((ak + 1))), aQ)] | |
316 | - | } | |
317 | - | else throw((("Caller is not in " + aM) + "!")) | |
317 | + | A(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5) | |
318 | + | } | |
319 | + | if ((containsElement(aV, f) == false)) | |
320 | + | then { | |
321 | + | let aW = ((f + "_") + toString(aF)) | |
322 | + | let aq = (aM :+ aW) | |
323 | + | let aX = makeString(aq, ",") | |
324 | + | let aY = parseIntValue(ap(aq)) | |
325 | + | let aZ = if ((aY != aK)) | |
326 | + | then aY | |
327 | + | else aK | |
328 | + | let ba = W(aZ, aK, Z, aI) | |
329 | + | if ((5 > size(aq))) | |
330 | + | then [j(((Z + "_voting_") + toString(aH)), aX), j((Z + "_board"), ba), g((Z + "_mostVoted"), aZ)] | |
331 | + | else [j(((Z + "_voting_") + toString(aH)), aX), j((Z + "_board"), ba), g((Z + "_mostVoted"), -1), g((Z + "_storedHeight"), (height + c)), j((Z + "_status"), ((("round_" + toString((aH + 1))) + ",turn_") + aS)), j(((Z + "_voting_") + toString((aH + 1))), "")] | |
332 | + | } | |
333 | + | else throw("Caller already voted!") | |
334 | + | } | |
335 | + | else throw((("Caller is not in " + aI) + "!")) | |
336 | + | else if (containsElement(aT, f)) | |
337 | + | then { | |
338 | + | let aW = ((f + "_") + toString(aF)) | |
339 | + | let aq = [aW] | |
340 | + | let aY = parseIntValue(ap(aq)) | |
341 | + | let ba = W(aY, -1, Z, aI) | |
342 | + | [j((Z + "_board"), ba), g((Z + "_storedHeight"), (height + c)), j((Z + "_status"), ((("round_" + toString((aH + 1))) + ",turn_") + aS)), j(((Z + "_voting_") + toString((aH + 1))), aW), g((Z + "_mostVoted"), aY)] | |
343 | + | } | |
344 | + | else throw((("Caller is not in " + aS) + "!")) | |
345 | + | else throw("Amount has to be 1!") | |
346 | + | else throw("Payment has to be a Connect four Token!") | |
347 | + | else throw("No Payment attached!") | |
318 | 348 | } | |
319 | 349 | ||
320 | 350 | ||
321 | 351 | ||
322 | - | @Callable( | |
323 | - | func updateStringEntry (h,k) = if (e( | |
352 | + | @Callable(at) | |
353 | + | func updateStringEntry (h,k) = if (e(at.caller.bytes)) | |
324 | 354 | then [j(h, k)] | |
325 | 355 | else throw("Address does not match with admin address!") | |
326 | 356 | ||
327 | 357 | ||
328 | 358 | ||
329 | - | @Callable( | |
330 | - | func updateIntegerEntry (h,i) = if (e( | |
359 | + | @Callable(at) | |
360 | + | func updateIntegerEntry (h,i) = if (e(at.caller.bytes)) | |
331 | 361 | then [g(h, i)] | |
332 | 362 | else throw("Address does not match with admin address!") | |
333 | 363 | ||
334 | 364 | ||
335 | 365 | ||
336 | - | @Callable( | |
337 | - | func deleteStorageEntry (h) = if (e( | |
366 | + | @Callable(at) | |
367 | + | func deleteStorageEntry (h) = if (e(at.caller.bytes)) | |
338 | 368 | then [DeleteEntry(h)] | |
339 | 369 | else throw("Address does not match with admin address!") | |
340 | 370 | ||
341 | 371 | ||
342 | - | @Verifier( | |
343 | - | func | |
372 | + | @Verifier(bb) | |
373 | + | func bc () = sigVerify(bb.bodyBytes, bb.proofs[0], bb.senderPublicKey) | |
344 | 374 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = valueOrElse(getString(this, "admin"), "") | |
5 | 5 | ||
6 | 6 | let b = valueOrElse(getInteger(this, "totalSupply"), 0) | |
7 | 7 | ||
8 | 8 | let c = valueOrErrorMessage(getInteger(this, "votingDuration"), "No key votingDuration was found") | |
9 | 9 | ||
10 | 10 | let d = valueOrErrorMessage(getString(this, "tokenId"), "No key dTokenId was found") | |
11 | 11 | ||
12 | 12 | func e (f) = if ((f == fromBase58String(a))) | |
13 | 13 | then true | |
14 | 14 | else false | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func g (h,i) = IntegerEntry(h, i) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func j (h,k) = StringEntry(h, k) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func l (m,n) = { | |
24 | 24 | func o (p,q) = { | |
25 | 25 | func r (s,t) = if ((q == t)) | |
26 | 26 | then (s + 1) | |
27 | 27 | else s | |
28 | 28 | ||
29 | 29 | (p :+ { | |
30 | 30 | let u = n | |
31 | 31 | let v = size(u) | |
32 | 32 | let w = 0 | |
33 | 33 | func x (y,z) = if ((z >= v)) | |
34 | 34 | then y | |
35 | 35 | else r(y, u[z]) | |
36 | 36 | ||
37 | 37 | func A (y,z) = if ((z >= v)) | |
38 | 38 | then y | |
39 | 39 | else throw("List size exceeds 5") | |
40 | 40 | ||
41 | 41 | A(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5) | |
42 | 42 | }) | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | let u = m | |
46 | 46 | let v = size(u) | |
47 | 47 | let w = nil | |
48 | 48 | func x (y,z) = if ((z >= v)) | |
49 | 49 | then y | |
50 | 50 | else o(y, u[z]) | |
51 | 51 | ||
52 | 52 | func A (y,z) = if ((z >= v)) | |
53 | 53 | then y | |
54 | 54 | else throw("List size exceeds 5") | |
55 | 55 | ||
56 | 56 | A(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5) | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func B (C) = { | |
61 | 61 | func D (p,q) = if ((containsElement(p, q) == false)) | |
62 | 62 | then (p :+ q) | |
63 | 63 | else p | |
64 | 64 | ||
65 | 65 | let u = C | |
66 | 66 | let v = size(u) | |
67 | 67 | let w = nil | |
68 | 68 | func x (y,z) = if ((z >= v)) | |
69 | 69 | then y | |
70 | 70 | else D(y, u[z]) | |
71 | 71 | ||
72 | 72 | func A (y,z) = if ((z >= v)) | |
73 | 73 | then y | |
74 | 74 | else throw("List size exceeds 5") | |
75 | 75 | ||
76 | 76 | A(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5) | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func E (F,G) = { | |
81 | 81 | let H = (size(G) - 1) | |
82 | 82 | let I = G[H] | |
83 | 83 | if ((F > I)) | |
84 | 84 | then true | |
85 | 85 | else false | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func J (m,K) = { | |
90 | 90 | func L (M,N) = if ((size(M) == 0)) | |
91 | 91 | then (M :+ N) | |
92 | 92 | else if (E(N, M)) | |
93 | 93 | then (M :+ N) | |
94 | 94 | else M | |
95 | 95 | ||
96 | 96 | let O = { | |
97 | 97 | let u = K | |
98 | 98 | let v = size(u) | |
99 | 99 | let w = nil | |
100 | 100 | func x (y,z) = if ((z >= v)) | |
101 | 101 | then y | |
102 | 102 | else L(y, u[z]) | |
103 | 103 | ||
104 | 104 | func A (y,z) = if ((z >= v)) | |
105 | 105 | then y | |
106 | 106 | else throw("List size exceeds 5") | |
107 | 107 | ||
108 | 108 | A(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5) | |
109 | 109 | } | |
110 | 110 | let P = (size(O) - 1) | |
111 | 111 | let Q = O[P] | |
112 | 112 | let R = indexOf(K, Q) | |
113 | 113 | let S = R | |
114 | 114 | if ($isInstanceOf(S, "Int")) | |
115 | 115 | then { | |
116 | 116 | let T = S | |
117 | 117 | m[T] | |
118 | 118 | } | |
119 | 119 | else throw("Type does not match! Function: findHighestVote") | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func U (V) = makeString(V, ",") | |
124 | 124 | ||
125 | 125 | ||
126 | - | func W (X,Y,Z) = { | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
126 | + | func W (X,Y,Z,aa) = { | |
127 | + | let ab = getStringValue((Z + "_board")) | |
128 | + | let ac = split(ab, ",") | |
129 | + | let ad = if ((aa == "teamBlue")) | |
130 | 130 | then "B" | |
131 | 131 | else "Y" | |
132 | - | func | |
133 | - | let | |
134 | - | let | |
135 | - | let | |
136 | - | if (( | |
137 | - | then $Tuple2(( | |
138 | - | else $Tuple2(( | |
132 | + | func ae (p,af) = { | |
133 | + | let ag = p | |
134 | + | let ah = ag._1 | |
135 | + | let ai = ag._2 | |
136 | + | if ((ai == Y)) | |
137 | + | then $Tuple2((ah :+ "0"), (ai + 1)) | |
138 | + | else $Tuple2((ah :+ af), (ai + 1)) | |
139 | 139 | } | |
140 | 140 | ||
141 | - | let ai = { | |
142 | - | let u = ab | |
141 | + | func aj (p,af) = { | |
142 | + | let ak = p | |
143 | + | let ah = ak._1 | |
144 | + | let ai = ak._2 | |
145 | + | if ((ai == X)) | |
146 | + | then $Tuple2((ah :+ ad), (ai + 1)) | |
147 | + | else $Tuple2((ah :+ af), (ai + 1)) | |
148 | + | } | |
149 | + | ||
150 | + | let al = { | |
151 | + | let u = ac | |
143 | 152 | let v = size(u) | |
144 | 153 | let w = $Tuple2(nil, 0) | |
145 | 154 | func x (y,z) = if ((z >= v)) | |
146 | 155 | then y | |
147 | - | else | |
156 | + | else ae(y, u[z]) | |
148 | 157 | ||
149 | 158 | func A (y,z) = if ((z >= v)) | |
150 | 159 | then y | |
151 | 160 | else throw("List size exceeds 42") | |
152 | 161 | ||
153 | 162 | A(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42) | |
154 | 163 | } | |
155 | - | U(ai._1) | |
164 | + | let am = { | |
165 | + | let u = al._1 | |
166 | + | let v = size(u) | |
167 | + | let w = $Tuple2(nil, 0) | |
168 | + | func an (y,z) = if ((z >= v)) | |
169 | + | then y | |
170 | + | else aj(y, u[z]) | |
171 | + | ||
172 | + | func ao (y,z) = if ((z >= v)) | |
173 | + | then y | |
174 | + | else throw("List size exceeds 42") | |
175 | + | ||
176 | + | ao(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(w, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42) | |
177 | + | } | |
178 | + | U(am._1) | |
156 | 179 | } | |
157 | 180 | ||
158 | 181 | ||
159 | - | func | |
160 | - | func | |
182 | + | func ap (aq) = { | |
183 | + | func ar (p,af) = (p :+ split(af, "_")[1]) | |
161 | 184 | ||
162 | - | let | |
163 | - | let u = | |
185 | + | let as = { | |
186 | + | let u = aq | |
164 | 187 | let v = size(u) | |
165 | 188 | let w = nil | |
166 | 189 | func x (y,z) = if ((z >= v)) | |
167 | 190 | then y | |
168 | - | else | |
191 | + | else ar(y, u[z]) | |
169 | 192 | ||
170 | 193 | func A (y,z) = if ((z >= v)) | |
171 | 194 | then y | |
172 | 195 | else throw("List size exceeds 5") | |
173 | 196 | ||
174 | 197 | A(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5) | |
175 | 198 | } | |
176 | - | let m = B(ao) | |
177 | - | let K = l(m, ao) | |
178 | - | let ap = J(m, K) | |
179 | - | W(parseIntValue(ap), Y, al) | |
199 | + | let m = B(as) | |
200 | + | let K = l(m, as) | |
201 | + | J(m, K) | |
180 | 202 | } | |
181 | 203 | ||
182 | 204 | ||
183 | - | @Callable( | |
184 | - | func setup (a, | |
205 | + | @Callable(at) | |
206 | + | func setup (a,au,av) = if (!(isDefined(getString(this, "admin")))) | |
185 | 207 | then { | |
186 | - | let | |
187 | - | let | |
188 | - | [ | |
208 | + | let aw = Issue(au, av, 0, 8, true) | |
209 | + | let ax = calculateAssetId(aw) | |
210 | + | [aw, j("admin", a), g("votingDuration", 2), g("totalSupply", 0), j("tokenName", au), j("tokenId", toBase58String(ax)), g("tokenDecimals", 8)] | |
189 | 211 | } | |
190 | 212 | else throw("Pool already setup!") | |
191 | 213 | ||
192 | 214 | ||
193 | 215 | ||
194 | - | @Callable( | |
195 | - | func buyRound () = if ((size( | |
216 | + | @Callable(at) | |
217 | + | func buyRound () = if ((size(at.payments) > 0)) | |
196 | 218 | then { | |
197 | - | let | |
198 | - | if (( | |
219 | + | let ay = at.payments[0].amount | |
220 | + | if ((ay >= 1)) | |
199 | 221 | then { | |
200 | - | let | |
201 | - | let | |
202 | - | [g("totalSupply", | |
222 | + | let az = fraction(ay, 42, 1) | |
223 | + | let aA = (b + az) | |
224 | + | [g("totalSupply", aA), Reissue(fromBase58String(d), az, true), ScriptTransfer(at.caller, az, fromBase58String(d))] | |
203 | 225 | } | |
204 | 226 | else throw("Payment is to small!") | |
205 | 227 | } | |
206 | 228 | else throw("No payment attached!") | |
207 | 229 | ||
208 | 230 | ||
209 | 231 | ||
210 | - | @Callable( | |
232 | + | @Callable(at) | |
211 | 233 | func createGame () = { | |
212 | 234 | let V = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" | |
213 | - | let | |
214 | - | [j(( | |
235 | + | let Z = toBase58String(at.transactionId) | |
236 | + | [j((Z + "_board"), V), j((Z + "_status"), "waiting for players"), j((Z + "_teamBlue"), toString(at.caller)), j((Z + "_teamYellow"), "")] | |
215 | 237 | } | |
216 | 238 | ||
217 | 239 | ||
218 | 240 | ||
219 | - | @Callable( | |
220 | - | func joinGame ( | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | if ((5 > size( | |
226 | - | then [j(( | |
227 | - | else if ((size( | |
228 | - | then [j(( | |
229 | - | else if ((size( | |
230 | - | then [j(( | |
231 | - | else if ((4 > size( | |
232 | - | then [j(( | |
241 | + | @Callable(at) | |
242 | + | func joinGame (Z) = { | |
243 | + | let aB = getStringValue((Z + "_teamBlue")) | |
244 | + | let aC = getStringValue((Z + "_teamYellow")) | |
245 | + | let aD = split(aB, ",") | |
246 | + | let aE = split(aC, ",") | |
247 | + | if ((5 > size(aD))) | |
248 | + | then [j((Z + "_teamBlue"), ((aB + ",") + toBase58String(at.caller.bytes)))] | |
249 | + | else if ((size(aE) == 4)) | |
250 | + | then [j((Z + "_status"), "round_1,turn_teamBlue"), j((Z + "_voting_1"), ""), g((Z + "_mostVoted"), -1), g((Z + "_storedHeight"), (height + c)), j((Z + "_teamYellow"), ((aC + ",") + toBase58String(at.caller.bytes)))] | |
251 | + | else if ((size(aE) == 0)) | |
252 | + | then [j((Z + "_teamYellow"), toBase58String(at.caller.bytes))] | |
253 | + | else if ((4 > size(aE))) | |
254 | + | then [j((Z + "_teamYellow"), ((aC + ",") + toBase58String(at.caller.bytes)))] | |
233 | 255 | else throw("Teams are full, cannot join.") | |
234 | 256 | } | |
235 | 257 | ||
236 | 258 | ||
237 | 259 | ||
238 | - | @Callable(aq) | |
239 | - | func vote (Y,aC) = { | |
240 | - | let aD = valueOrErrorMessage(getStringValue((Y + "_status")), "No status entry found under gameId!") | |
241 | - | let ak = parseIntValue(drop(split(aD, ",")[0], 6)) | |
242 | - | let al = drop(split(aD, ",")[1], 5) | |
243 | - | let aE = valueOrErrorMessage(getInteger((Y + "_storedHeight")), (("No status entry found under " + Y) + "_storedHeight!")) | |
244 | - | let aF = valueOrErrorMessage(getStringValue(((Y + "_voting_") + toString(ak))), "No votes found for this game id!") | |
245 | - | let aG = if ((size(aF) > 0)) | |
246 | - | then split(aF, ",") | |
260 | + | @Callable(at) | |
261 | + | func vote (Z,aF) = { | |
262 | + | let aG = valueOrErrorMessage(getStringValue((Z + "_status")), "No status entry found under gameId!") | |
263 | + | let aH = parseIntValue(drop(split(aG, ",")[0], 6)) | |
264 | + | let aI = drop(split(aG, ",")[1], 5) | |
265 | + | let aJ = valueOrErrorMessage(getInteger((Z + "_storedHeight")), (("No status entry found under " + Z) + "_storedHeight!")) | |
266 | + | let aK = valueOrErrorMessage(getIntegerValue((Z + "_mostVoted")), (("No status entry found under " + Z) + "_mostVoted!")) | |
267 | + | let aL = valueOrErrorMessage(getStringValue(((Z + "_voting_") + toString(aH))), "No votes found for this game id!") | |
268 | + | let aM = if ((size(aL) > 0)) | |
269 | + | then split(aL, ",") | |
247 | 270 | else nil | |
248 | - | let | |
271 | + | let aN = if ((aI == "teamBlue")) | |
249 | 272 | then { | |
250 | - | let | |
251 | - | let | |
252 | - | | |
273 | + | let aO = getStringValue((Z + "_teamBlue")) | |
274 | + | let aP = split(aO, ",") | |
275 | + | aP | |
253 | 276 | } | |
254 | 277 | else { | |
255 | - | let | |
256 | - | let | |
257 | - | | |
278 | + | let aQ = getStringValue((Z + "_teamYellow")) | |
279 | + | let aR = split(aQ, ",") | |
280 | + | aR | |
258 | 281 | } | |
259 | - | let | |
282 | + | let aS = if ((aI == "teamBlue")) | |
260 | 283 | then "teamYellow" | |
261 | 284 | else "teamBlue" | |
262 | - | let | |
285 | + | let aT = if ((aS == "teamBlue")) | |
263 | 286 | then { | |
264 | - | let | |
265 | - | let | |
266 | - | | |
287 | + | let aO = getStringValue((Z + "_teamBlue")) | |
288 | + | let aP = split(aO, ",") | |
289 | + | aP | |
267 | 290 | } | |
268 | 291 | else { | |
269 | - | let | |
270 | - | let | |
271 | - | | |
292 | + | let aQ = getStringValue((Z + "_teamYellow")) | |
293 | + | let aR = split(aQ, ",") | |
294 | + | aR | |
272 | 295 | } | |
273 | - | let f = toBase58String(aq.caller.bytes) | |
274 | - | if ((aE >= height)) | |
275 | - | then if (containsElement(aH, f)) | |
276 | - | then { | |
277 | - | func aO (p,ae) = (p :+ split(ae, "_")[0]) | |
296 | + | let f = toBase58String(at.caller.bytes) | |
297 | + | if ((size(at.payments) > 0)) | |
298 | + | then if ((fromBase58String(d) == at.payments[0].assetId)) | |
299 | + | then if ((at.payments[0].amount == 1)) | |
300 | + | then if ((aJ >= height)) | |
301 | + | then if (containsElement(aN, f)) | |
302 | + | then { | |
303 | + | func aU (p,af) = (p :+ split(af, "_")[0]) | |
278 | 304 | ||
279 | - | let | |
280 | - | let u = | |
281 | - | let v = size(u) | |
282 | - | let w = nil | |
283 | - | func x (y,z) = if ((z >= v)) | |
284 | - | then y | |
285 | - | else | |
305 | + | let aV = { | |
306 | + | let u = aM | |
307 | + | let v = size(u) | |
308 | + | let w = nil | |
309 | + | func x (y,z) = if ((z >= v)) | |
310 | + | then y | |
311 | + | else aU(y, u[z]) | |
286 | 312 | ||
287 | - | func A (y,z) = if ((z >= v)) | |
288 | - | then y | |
289 | - | else throw("List size exceeds 5") | |
313 | + | func A (y,z) = if ((z >= v)) | |
314 | + | then y | |
315 | + | else throw("List size exceeds 5") | |
290 | 316 | ||
291 | - | A(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5) | |
292 | - | } | |
293 | - | if ((containsElement(aP, f) == false)) | |
294 | - | then { | |
295 | - | let aQ = ((f + "_") + toString(aC)) | |
296 | - | let am = (aG :+ aQ) | |
297 | - | let aR = makeString(am, ",") | |
298 | - | let aS = aj(Y, ak, al, am) | |
299 | - | if ((5 > size(am))) | |
300 | - | then [j(((Y + "_voting_") + toString(ak)), aR)] | |
301 | - | else [j(((Y + "_voting_") + toString(ak)), aR), j((Y + "_board"), aS), g((Y + "_storedHeight"), (height + c)), j((Y + "_status"), ((("round_" + toString((ak + 1))) + ",turn_") + aM)), j(((Y + "_voting_") + toString((ak + 1))), "")] | |
302 | - | } | |
303 | - | else throw("Caller already voted!") | |
304 | - | } | |
305 | - | else throw((("Caller is not in " + al) + "!")) | |
306 | - | else if (containsElement(aN, f)) | |
307 | - | then if ((size(aG) > 0)) | |
308 | - | then { | |
309 | - | let aS = aj(Y, ak, al, aG) | |
310 | - | let aQ = ((f + "_") + toString(aC)) | |
311 | - | [j((Y + "_board"), aS), g((Y + "_storedHeight"), (height + c)), j((Y + "_status"), ((("round_" + toString((ak + 1))) + ",turn_") + aM)), j(((Y + "_voting_") + toString((ak + 1))), aQ)] | |
312 | - | } | |
313 | - | else { | |
314 | - | let aQ = ((f + "_") + toString(aC)) | |
315 | - | [g((Y + "_storedHeight"), (height + c)), j((Y + "_status"), ((("round_" + toString((ak + 1))) + ",turn_") + aM)), j(((Y + "_voting_") + toString((ak + 1))), aQ)] | |
316 | - | } | |
317 | - | else throw((("Caller is not in " + aM) + "!")) | |
317 | + | A(x(x(x(x(x(w, 0), 1), 2), 3), 4), 5) | |
318 | + | } | |
319 | + | if ((containsElement(aV, f) == false)) | |
320 | + | then { | |
321 | + | let aW = ((f + "_") + toString(aF)) | |
322 | + | let aq = (aM :+ aW) | |
323 | + | let aX = makeString(aq, ",") | |
324 | + | let aY = parseIntValue(ap(aq)) | |
325 | + | let aZ = if ((aY != aK)) | |
326 | + | then aY | |
327 | + | else aK | |
328 | + | let ba = W(aZ, aK, Z, aI) | |
329 | + | if ((5 > size(aq))) | |
330 | + | then [j(((Z + "_voting_") + toString(aH)), aX), j((Z + "_board"), ba), g((Z + "_mostVoted"), aZ)] | |
331 | + | else [j(((Z + "_voting_") + toString(aH)), aX), j((Z + "_board"), ba), g((Z + "_mostVoted"), -1), g((Z + "_storedHeight"), (height + c)), j((Z + "_status"), ((("round_" + toString((aH + 1))) + ",turn_") + aS)), j(((Z + "_voting_") + toString((aH + 1))), "")] | |
332 | + | } | |
333 | + | else throw("Caller already voted!") | |
334 | + | } | |
335 | + | else throw((("Caller is not in " + aI) + "!")) | |
336 | + | else if (containsElement(aT, f)) | |
337 | + | then { | |
338 | + | let aW = ((f + "_") + toString(aF)) | |
339 | + | let aq = [aW] | |
340 | + | let aY = parseIntValue(ap(aq)) | |
341 | + | let ba = W(aY, -1, Z, aI) | |
342 | + | [j((Z + "_board"), ba), g((Z + "_storedHeight"), (height + c)), j((Z + "_status"), ((("round_" + toString((aH + 1))) + ",turn_") + aS)), j(((Z + "_voting_") + toString((aH + 1))), aW), g((Z + "_mostVoted"), aY)] | |
343 | + | } | |
344 | + | else throw((("Caller is not in " + aS) + "!")) | |
345 | + | else throw("Amount has to be 1!") | |
346 | + | else throw("Payment has to be a Connect four Token!") | |
347 | + | else throw("No Payment attached!") | |
318 | 348 | } | |
319 | 349 | ||
320 | 350 | ||
321 | 351 | ||
322 | - | @Callable( | |
323 | - | func updateStringEntry (h,k) = if (e( | |
352 | + | @Callable(at) | |
353 | + | func updateStringEntry (h,k) = if (e(at.caller.bytes)) | |
324 | 354 | then [j(h, k)] | |
325 | 355 | else throw("Address does not match with admin address!") | |
326 | 356 | ||
327 | 357 | ||
328 | 358 | ||
329 | - | @Callable( | |
330 | - | func updateIntegerEntry (h,i) = if (e( | |
359 | + | @Callable(at) | |
360 | + | func updateIntegerEntry (h,i) = if (e(at.caller.bytes)) | |
331 | 361 | then [g(h, i)] | |
332 | 362 | else throw("Address does not match with admin address!") | |
333 | 363 | ||
334 | 364 | ||
335 | 365 | ||
336 | - | @Callable( | |
337 | - | func deleteStorageEntry (h) = if (e( | |
366 | + | @Callable(at) | |
367 | + | func deleteStorageEntry (h) = if (e(at.caller.bytes)) | |
338 | 368 | then [DeleteEntry(h)] | |
339 | 369 | else throw("Address does not match with admin address!") | |
340 | 370 | ||
341 | 371 | ||
342 | - | @Verifier( | |
343 | - | func | |
372 | + | @Verifier(bb) | |
373 | + | func bc () = sigVerify(bb.bodyBytes, bb.proofs[0], bb.senderPublicKey) | |
344 | 374 |
github/deemru/w8io/026f985 110.28 ms ◑