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