tx · FAZA1F2ZLBNPs4VXBgxrsBN9jSUKkfxfzRErmy3ycfud 3MtKnDmJju2Y4dp9A2ACPr11jDZiW6gmKKK: -0.05000000 Waves 2022.01.16 22:27 [1881931] smart account 3MtKnDmJju2Y4dp9A2ACPr11jDZiW6gmKKK > SELF 0.00000000 Waves
{ "type": 13, "id": "FAZA1F2ZLBNPs4VXBgxrsBN9jSUKkfxfzRErmy3ycfud", "fee": 5000000, "feeAssetId": null, "timestamp": 1642361241741, "version": 2, "chainId": 84, "sender": "3MtKnDmJju2Y4dp9A2ACPr11jDZiW6gmKKK", "senderPublicKey": "3itc77jAZTQAcaPCyYEe4KD7h18CvqZZ2JRynZHsuJ61", "proofs": [ "YdVFD8LUSLQ8YDWG7MhxcC7mZEv2umVUYemyTg2iZMNB62H9VbSyiAEmYRcueuy1tGgsh6iy82HtjFsBoHwhx8G" ], "script": "base64:AAIFAAAAAAAAACkIAhIFCgMICAgSABIAEgMKAQgSBAoCCAESBAoCCAgSBAoCCAESAwoBCAAAAA4AAAAADGFkbWluQWRkcmVzcwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAVhZG1pbgIAAAAAAAAAAAt0b3RhbFN1cHBseQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzAgAAAAt0b3RhbFN1cHBseQAAAAAAAAAAAAAAAAAOdm90aW5nRHVyYXRpb24JAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABBoAAAACBQAAAAR0aGlzAgAAAA52b3RpbmdEdXJhdGlvbgIAAAAfTm8ga2V5IHZvdGluZ0R1cmF0aW9uIHdhcyBmb3VuZAAAAAAIY3Rva2VuSWQJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAd0b2tlbklkAgAAABlObyBrZXkgZFRva2VuSWQgd2FzIGZvdW5kAQAAAAdpc0FkbWluAAAAAQ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FAAAAA25pbAkAAAIAAAABAgAAACpBZGRyZXNzIGRvZXMgbm90IG1hdGNoIHdpdGggYWRtaW4gYWRkcmVzcyEAAAABaQEAAAASdXBkYXRlSW50ZWdlckVudHJ5AAAAAgAAAANrZXkAAAAMaW50ZWdlclZhbHVlAwkBAAAAB2lzQWRtaW4AAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzCQAETAAAAAIJAQAAAAx3cml0ZUludGVnZXIAAAACBQAAAANrZXkFAAAADGludGVnZXJWYWx1ZQUAAAADbmlsCQAAAgAAAAECAAAAKkFkZHJlc3MgZG9lcyBub3QgbWF0Y2ggd2l0aCBhZG1pbiBhZGRyZXNzIQAAAAFpAQAAABJkZWxldGVTdG9yYWdlRW50cnkAAAABAAAAA2tleQMJAQAAAAdpc0FkbWluAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAkAAAIAAAABAgAAACpBZGRyZXNzIGRvZXMgbm90IG1hdGNoIHdpdGggYWRtaW4gYWRkcmVzcyEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQNv7GI=", "height": 1881931, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: gxWzKTyYXqGujZb3SfDCjJfMytZNBe7oLm9DJGtSuTk Next: 3LLMjxVBqvokT6UYPXchbALM9VLb6k6fXuHNT4vkAVip Diff:
Old | New | Differences | |
---|---|---|---|
242 | 242 | let teamBlue = getStringValue((gameId + "_teamBlue")) | |
243 | 243 | let teamYellow = getStringValue((gameId + "_teamYellow")) | |
244 | 244 | let teamBlueList = split(teamBlue, ",") | |
245 | - | let teamYellowList = split(teamYellow, ",") | |
245 | + | let teamYellowList = if ((size(teamYellow) > 0)) | |
246 | + | then split(teamYellow, ",") | |
247 | + | else nil | |
246 | 248 | if ((5 > size(teamBlueList))) | |
247 | 249 | then [writeString((gameId + "_teamBlue"), ((teamBlue + ",") + toBase58String(i.caller.bytes)))] | |
248 | 250 | else if ((size(teamYellowList) == 4)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminAddress = valueOrElse(getString(this, "admin"), "") | |
5 | 5 | ||
6 | 6 | let totalSupply = valueOrElse(getInteger(this, "totalSupply"), 0) | |
7 | 7 | ||
8 | 8 | let votingDuration = valueOrErrorMessage(getInteger(this, "votingDuration"), "No key votingDuration was found") | |
9 | 9 | ||
10 | 10 | let ctokenId = valueOrErrorMessage(getString(this, "tokenId"), "No key dTokenId was found") | |
11 | 11 | ||
12 | 12 | func isAdmin (callerAddress) = if ((callerAddress == fromBase58String(adminAddress))) | |
13 | 13 | then true | |
14 | 14 | else false | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func writeInteger (key,integerValue) = IntegerEntry(key, integerValue) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func writeString (key,stringValue) = StringEntry(key, stringValue) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func countFrequency (helperList,votingList) = { | |
24 | 24 | func foldFrequency (accum,next) = { | |
25 | 25 | func countItems (acc,item) = if ((next == item)) | |
26 | 26 | then (acc + 1) | |
27 | 27 | else acc | |
28 | 28 | ||
29 | 29 | (accum :+ { | |
30 | 30 | let $l = votingList | |
31 | 31 | let $s = size($l) | |
32 | 32 | let $acc0 = 0 | |
33 | 33 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
34 | 34 | then $a | |
35 | 35 | else countItems($a, $l[$i]) | |
36 | 36 | ||
37 | 37 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
38 | 38 | then $a | |
39 | 39 | else throw("List size exceeds 5") | |
40 | 40 | ||
41 | 41 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
42 | 42 | }) | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | let $l = helperList | |
46 | 46 | let $s = size($l) | |
47 | 47 | let $acc0 = nil | |
48 | 48 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
49 | 49 | then $a | |
50 | 50 | else foldFrequency($a, $l[$i]) | |
51 | 51 | ||
52 | 52 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
53 | 53 | then $a | |
54 | 54 | else throw("List size exceeds 5") | |
55 | 55 | ||
56 | 56 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func initVotingHelperList (voteArray) = { | |
61 | 61 | func foldHelperList (accum,next) = if ((containsElement(accum, next) == false)) | |
62 | 62 | then (accum :+ next) | |
63 | 63 | else accum | |
64 | 64 | ||
65 | 65 | let $l = voteArray | |
66 | 66 | let $s = size($l) | |
67 | 67 | let $acc0 = nil | |
68 | 68 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
69 | 69 | then $a | |
70 | 70 | else foldHelperList($a, $l[$i]) | |
71 | 71 | ||
72 | 72 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
73 | 73 | then $a | |
74 | 74 | else throw("List size exceeds 5") | |
75 | 75 | ||
76 | 76 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func isGreaterThen (potential,itemList) = { | |
81 | 81 | let listLength = (size(itemList) - 1) | |
82 | 82 | let currentGreatest = itemList[listLength] | |
83 | 83 | if ((potential > currentGreatest)) | |
84 | 84 | then true | |
85 | 85 | else false | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func findHighestVote (helperList,frequencies) = { | |
90 | 90 | func foldFrequencies (highestItemList,nextItem) = if ((size(highestItemList) == 0)) | |
91 | 91 | then (highestItemList :+ nextItem) | |
92 | 92 | else if (isGreaterThen(nextItem, highestItemList)) | |
93 | 93 | then (highestItemList :+ nextItem) | |
94 | 94 | else highestItemList | |
95 | 95 | ||
96 | 96 | let highestVotes = { | |
97 | 97 | let $l = frequencies | |
98 | 98 | let $s = size($l) | |
99 | 99 | let $acc0 = nil | |
100 | 100 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
101 | 101 | then $a | |
102 | 102 | else foldFrequencies($a, $l[$i]) | |
103 | 103 | ||
104 | 104 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
105 | 105 | then $a | |
106 | 106 | else throw("List size exceeds 5") | |
107 | 107 | ||
108 | 108 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
109 | 109 | } | |
110 | 110 | let lastIdx = (size(highestVotes) - 1) | |
111 | 111 | let highestVote = highestVotes[lastIdx] | |
112 | 112 | let helperIdx = indexOf(frequencies, highestVote) | |
113 | 113 | match helperIdx { | |
114 | 114 | case t: Int => | |
115 | 115 | helperList[t] | |
116 | 116 | case _ => | |
117 | 117 | throw("Type does not match! Function: findHighestVote") | |
118 | 118 | } | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func createBoard (board) = makeString(board, ",") | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func alterBoard (newField,oldValue,gameId,team) = { | |
126 | 126 | let currentBoard = getStringValue((gameId + "_board")) | |
127 | 127 | let boardList = split(currentBoard, ",") | |
128 | 128 | let teamTag = if ((team == "teamBlue")) | |
129 | 129 | then "B" | |
130 | 130 | else "Y" | |
131 | 131 | func foldOldEntry (accum,nextValue) = { | |
132 | 132 | let $t045144537 = accum | |
133 | 133 | let result = $t045144537._1 | |
134 | 134 | let j = $t045144537._2 | |
135 | 135 | if ((j == oldValue)) | |
136 | 136 | then $Tuple2((result :+ "0"), (j + 1)) | |
137 | 137 | else $Tuple2((result :+ nextValue), (j + 1)) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | func foldBoard (accum,nextValue) = { | |
141 | 141 | let $t047144737 = accum | |
142 | 142 | let result = $t047144737._1 | |
143 | 143 | let j = $t047144737._2 | |
144 | 144 | if ((j == newField)) | |
145 | 145 | then $Tuple2((result :+ teamTag), (j + 1)) | |
146 | 146 | else $Tuple2((result :+ nextValue), (j + 1)) | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | let cleanedBoard = { | |
150 | 150 | let $l = boardList | |
151 | 151 | let $s = size($l) | |
152 | 152 | let $acc0 = $Tuple2(nil, 0) | |
153 | 153 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
154 | 154 | then $a | |
155 | 155 | else foldOldEntry($a, $l[$i]) | |
156 | 156 | ||
157 | 157 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
158 | 158 | then $a | |
159 | 159 | else throw("List size exceeds 42") | |
160 | 160 | ||
161 | 161 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
162 | 162 | } | |
163 | 163 | let newBoardList = { | |
164 | 164 | let $l = cleanedBoard._1 | |
165 | 165 | let $s = size($l) | |
166 | 166 | let $acc0 = $Tuple2(nil, 0) | |
167 | 167 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
168 | 168 | then $a | |
169 | 169 | else foldBoard($a, $l[$i]) | |
170 | 170 | ||
171 | 171 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
172 | 172 | then $a | |
173 | 173 | else throw("List size exceeds 42") | |
174 | 174 | ||
175 | 175 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 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) | |
176 | 176 | } | |
177 | 177 | createBoard(newBoardList._1) | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func updateVotingResults (currentVotingEntryList) = { | |
182 | 182 | func foldVotings (accum,nextValue) = (accum :+ split(nextValue, "_")[1]) | |
183 | 183 | ||
184 | 184 | let votes = { | |
185 | 185 | let $l = currentVotingEntryList | |
186 | 186 | let $s = size($l) | |
187 | 187 | let $acc0 = nil | |
188 | 188 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
189 | 189 | then $a | |
190 | 190 | else foldVotings($a, $l[$i]) | |
191 | 191 | ||
192 | 192 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
193 | 193 | then $a | |
194 | 194 | else throw("List size exceeds 5") | |
195 | 195 | ||
196 | 196 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
197 | 197 | } | |
198 | 198 | let helperList = initVotingHelperList(votes) | |
199 | 199 | let frequencies = countFrequency(helperList, votes) | |
200 | 200 | findHighestVote(helperList, frequencies) | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | @Callable(i) | |
205 | 205 | func setup (adminAddress,tokenName,tokenDescription) = if (!(isDefined(getString(this, "admin")))) | |
206 | 206 | then { | |
207 | 207 | let asset = Issue(tokenName, tokenDescription, 0, 8, true) | |
208 | 208 | let tokenId = calculateAssetId(asset) | |
209 | 209 | [asset, writeString("admin", adminAddress), writeInteger("votingDuration", 2), writeInteger("totalSupply", 0), writeString("tokenName", tokenName), writeString("tokenId", toBase58String(tokenId)), writeInteger("tokenDecimals", 8)] | |
210 | 210 | } | |
211 | 211 | else throw("Pool already setup!") | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | ||
215 | 215 | @Callable(i) | |
216 | 216 | func buyRound () = if ((size(i.payments) > 0)) | |
217 | 217 | then { | |
218 | 218 | let amount = i.payments[0].amount | |
219 | 219 | if ((amount >= 1)) | |
220 | 220 | then { | |
221 | 221 | let cTokenAmount = fraction(amount, 42, 1) | |
222 | 222 | let currentTotalSupply = (totalSupply + cTokenAmount) | |
223 | 223 | [writeInteger("totalSupply", currentTotalSupply), Reissue(fromBase58String(ctokenId), cTokenAmount, true), ScriptTransfer(i.caller, cTokenAmount, fromBase58String(ctokenId))] | |
224 | 224 | } | |
225 | 225 | else throw("Payment is to small!") | |
226 | 226 | } | |
227 | 227 | else throw("No payment attached!") | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | ||
231 | 231 | @Callable(i) | |
232 | 232 | func createGame () = { | |
233 | 233 | let board = "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" | |
234 | 234 | let gameId = toBase58String(i.transactionId) | |
235 | 235 | [writeString((gameId + "_board"), board), writeString((gameId + "_status"), "waiting for players"), writeString((gameId + "_teamBlue"), toString(i.caller)), writeString((gameId + "_teamYellow"), "")] | |
236 | 236 | } | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | ||
240 | 240 | @Callable(i) | |
241 | 241 | func joinGame (gameId) = { | |
242 | 242 | let teamBlue = getStringValue((gameId + "_teamBlue")) | |
243 | 243 | let teamYellow = getStringValue((gameId + "_teamYellow")) | |
244 | 244 | let teamBlueList = split(teamBlue, ",") | |
245 | - | let teamYellowList = split(teamYellow, ",") | |
245 | + | let teamYellowList = if ((size(teamYellow) > 0)) | |
246 | + | then split(teamYellow, ",") | |
247 | + | else nil | |
246 | 248 | if ((5 > size(teamBlueList))) | |
247 | 249 | then [writeString((gameId + "_teamBlue"), ((teamBlue + ",") + toBase58String(i.caller.bytes)))] | |
248 | 250 | else if ((size(teamYellowList) == 4)) | |
249 | 251 | then [writeString((gameId + "_status"), "round_1,turn_teamBlue"), writeString((gameId + "_voting_1"), ""), writeInteger((gameId + "_mostVoted"), -1), writeInteger((gameId + "_storedHeight"), (height + votingDuration)), writeString((gameId + "_teamYellow"), ((teamYellow + ",") + toBase58String(i.caller.bytes)))] | |
250 | 252 | else if ((size(teamYellowList) == 0)) | |
251 | 253 | then [writeString((gameId + "_teamYellow"), toBase58String(i.caller.bytes))] | |
252 | 254 | else if ((4 > size(teamYellowList))) | |
253 | 255 | then [writeString((gameId + "_teamYellow"), ((teamYellow + ",") + toBase58String(i.caller.bytes)))] | |
254 | 256 | else throw("Teams are full, cannot join.") | |
255 | 257 | } | |
256 | 258 | ||
257 | 259 | ||
258 | 260 | ||
259 | 261 | @Callable(i) | |
260 | 262 | func vote (gameId,voting) = { | |
261 | 263 | let status = valueOrErrorMessage(getStringValue((gameId + "_status")), "No status entry found under gameId!") | |
262 | 264 | let round = parseIntValue(drop(split(status, ",")[0], 6)) | |
263 | 265 | let activeTeam = drop(split(status, ",")[1], 5) | |
264 | 266 | let storedHeight = valueOrErrorMessage(getInteger((gameId + "_storedHeight")), (("No status entry found under " + gameId) + "_storedHeight!")) | |
265 | 267 | let storedMostVoted = valueOrErrorMessage(getIntegerValue((gameId + "_mostVoted")), (("No status entry found under " + gameId) + "_mostVoted!")) | |
266 | 268 | let votingEntry = valueOrErrorMessage(getStringValue(((gameId + "_voting_") + toString(round))), "No votes found for this game id!") | |
267 | 269 | let votingEntryList = if ((size(votingEntry) > 0)) | |
268 | 270 | then split(votingEntry, ",") | |
269 | 271 | else nil | |
270 | 272 | let members = if ((activeTeam == "teamBlue")) | |
271 | 273 | then { | |
272 | 274 | let teamB = getStringValue((gameId + "_teamBlue")) | |
273 | 275 | let teamBList = split(teamB, ",") | |
274 | 276 | teamBList | |
275 | 277 | } | |
276 | 278 | else { | |
277 | 279 | let teamY = getStringValue((gameId + "_teamYellow")) | |
278 | 280 | let teamYList = split(teamY, ",") | |
279 | 281 | teamYList | |
280 | 282 | } | |
281 | 283 | let unactiveTeam = if ((activeTeam == "teamBlue")) | |
282 | 284 | then "teamYellow" | |
283 | 285 | else "teamBlue" | |
284 | 286 | let membersUnactive = if ((unactiveTeam == "teamBlue")) | |
285 | 287 | then { | |
286 | 288 | let teamB = getStringValue((gameId + "_teamBlue")) | |
287 | 289 | let teamBList = split(teamB, ",") | |
288 | 290 | teamBList | |
289 | 291 | } | |
290 | 292 | else { | |
291 | 293 | let teamY = getStringValue((gameId + "_teamYellow")) | |
292 | 294 | let teamYList = split(teamY, ",") | |
293 | 295 | teamYList | |
294 | 296 | } | |
295 | 297 | let callerAddress = toBase58String(i.caller.bytes) | |
296 | 298 | if ((size(i.payments) > 0)) | |
297 | 299 | then if ((fromBase58String(ctokenId) == i.payments[0].assetId)) | |
298 | 300 | then if ((i.payments[0].amount == 1)) | |
299 | 301 | then if ((storedHeight >= height)) | |
300 | 302 | then if (containsElement(members, callerAddress)) | |
301 | 303 | then { | |
302 | 304 | func foldVoters (accum,nextValue) = (accum :+ split(nextValue, "_")[0]) | |
303 | 305 | ||
304 | 306 | let voters = { | |
305 | 307 | let $l = votingEntryList | |
306 | 308 | let $s = size($l) | |
307 | 309 | let $acc0 = nil | |
308 | 310 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
309 | 311 | then $a | |
310 | 312 | else foldVoters($a, $l[$i]) | |
311 | 313 | ||
312 | 314 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
313 | 315 | then $a | |
314 | 316 | else throw("List size exceeds 5") | |
315 | 317 | ||
316 | 318 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
317 | 319 | } | |
318 | 320 | if ((containsElement(voters, callerAddress) == false)) | |
319 | 321 | then { | |
320 | 322 | let newVote = ((callerAddress + "_") + toString(voting)) | |
321 | 323 | let currentVotingEntryList = (votingEntryList :+ newVote) | |
322 | 324 | let currentVotingEntry = makeString(currentVotingEntryList, ",") | |
323 | 325 | let votedField = parseIntValue(updateVotingResults(currentVotingEntryList)) | |
324 | 326 | let currentField = if ((votedField != storedMostVoted)) | |
325 | 327 | then votedField | |
326 | 328 | else storedMostVoted | |
327 | 329 | let alteredBoard = alterBoard(currentField, storedMostVoted, gameId, activeTeam) | |
328 | 330 | if ((5 > size(currentVotingEntryList))) | |
329 | 331 | then [writeString(((gameId + "_voting_") + toString(round)), currentVotingEntry), writeString((gameId + "_board"), alteredBoard), writeInteger((gameId + "_mostVoted"), currentField)] | |
330 | 332 | else [writeString(((gameId + "_voting_") + toString(round)), currentVotingEntry), writeString((gameId + "_board"), alteredBoard), writeInteger((gameId + "_mostVoted"), -1), writeInteger((gameId + "_storedHeight"), (height + votingDuration)), writeString((gameId + "_status"), ((("round_" + toString((round + 1))) + ",turn_") + unactiveTeam)), writeString(((gameId + "_voting_") + toString((round + 1))), "")] | |
331 | 333 | } | |
332 | 334 | else throw("Caller already voted!") | |
333 | 335 | } | |
334 | 336 | else throw((("Caller is not in " + activeTeam) + "!")) | |
335 | 337 | else if (containsElement(membersUnactive, callerAddress)) | |
336 | 338 | then { | |
337 | 339 | let newVote = ((callerAddress + "_") + toString(voting)) | |
338 | 340 | let currentVotingEntryList = [newVote] | |
339 | 341 | let votedField = parseIntValue(updateVotingResults(currentVotingEntryList)) | |
340 | 342 | let alteredBoard = alterBoard(votedField, -1, gameId, activeTeam) | |
341 | 343 | [writeString((gameId + "_board"), alteredBoard), writeInteger((gameId + "_storedHeight"), (height + votingDuration)), writeString((gameId + "_status"), ((("round_" + toString((round + 1))) + ",turn_") + unactiveTeam)), writeString(((gameId + "_voting_") + toString((round + 1))), newVote), writeInteger((gameId + "_mostVoted"), votedField)] | |
342 | 344 | } | |
343 | 345 | else throw((("Caller is not in " + unactiveTeam) + "!")) | |
344 | 346 | else throw("Amount has to be 1!") | |
345 | 347 | else throw("Payment has to be a Connect four Token!") | |
346 | 348 | else throw("No Payment attached!") | |
347 | 349 | } | |
348 | 350 | ||
349 | 351 | ||
350 | 352 | ||
351 | 353 | @Callable(i) | |
352 | 354 | func updateStringEntry (key,stringValue) = if (isAdmin(i.caller.bytes)) | |
353 | 355 | then [writeString(key, stringValue)] | |
354 | 356 | else throw("Address does not match with admin address!") | |
355 | 357 | ||
356 | 358 | ||
357 | 359 | ||
358 | 360 | @Callable(i) | |
359 | 361 | func updateIntegerEntry (key,integerValue) = if (isAdmin(i.caller.bytes)) | |
360 | 362 | then [writeInteger(key, integerValue)] | |
361 | 363 | else throw("Address does not match with admin address!") | |
362 | 364 | ||
363 | 365 | ||
364 | 366 | ||
365 | 367 | @Callable(i) | |
366 | 368 | func deleteStorageEntry (key) = if (isAdmin(i.caller.bytes)) | |
367 | 369 | then [DeleteEntry(key)] | |
368 | 370 | else throw("Address does not match with admin address!") | |
369 | 371 | ||
370 | 372 | ||
371 | 373 | @Verifier(tx) | |
372 | 374 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
373 | 375 |
github/deemru/w8io/169f3d6 56.77 ms ◑