tx · 6UAcj3D8rHgTzyRsz7iBX8ac8Cuw5cPxBB2kkfpZSobt

3MtC32eAy42jhwnHpfYCbUj11iUkXDQdYpt:  -0.01500000 Waves

2022.11.28 18:41 [2337151] smart account 3MtC32eAy42jhwnHpfYCbUj11iUkXDQdYpt > SELF 0.00000000 Waves

{ "type": 13, "id": "6UAcj3D8rHgTzyRsz7iBX8ac8Cuw5cPxBB2kkfpZSobt", "fee": 1500000, "feeAssetId": null, "timestamp": 1669650193619, "version": 1, "sender": "3MtC32eAy42jhwnHpfYCbUj11iUkXDQdYpt", "senderPublicKey": "3xUNfrYKuaZmnMzb6e9tKC4azGnvWZyLzeKdUgAeFFpV", "proofs": [ "4wYYajgA3NrUt4x46zbZU6QTxuMWdqZrZzs74U8hFbsGbUry36nAMbjVJEEnNbhFsxub9sqZiVMvFjEekKNbDpdh" ], "script": "base64:BgIeCAISAwoBCBIDCgEIEgcKBQEICAEBEgMKAQESABIALgABUwICX18AAlMyAgE6AANERUMAwIQ9AAlTQ0hFRFVMRUQCCVNDSEVEVUxFRAAGUExBWUVEAgZQTEFZRUQBA2FicwEBdgMJAGYCAAAFAXYJAGgCAP///////////wEFAXYFAXYBDGdldEludE9yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAmggCBQdhZGRyZXNzBQNrZXkJAKwCAgkArAICCQCsAgIJAKUIAQUHYWRkcmVzcwIBLgUDa2V5Ag8gaXMgbm90IGRlZmluZWQBDGdldFN0ck9yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQdhZGRyZXNzBQNrZXkJAKwCAgkArAICCQCsAgIJAKUIAQUHYWRkcmVzcwIBLgUDa2V5Ag8gaXMgbm90IGRlZmluZWQBBmdldEludAMHYWRkcmVzcwNrZXkHZGVmYXVsdAkBC3ZhbHVlT3JFbHNlAgkAmggCBQdhZGRyZXNzBQNrZXkFB2RlZmF1bHQBBmdldF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AgADAAQABQAGAAcACAAJAAoACwkBDEludGVnZXJFbnRyeQIJAKwCAgIZJXMlZF9fZ29sZGVuSG91clJlc3VsdHNfXwkApAMBBQhyb3VuZE51bQUKcmFuZEhlaWdodAFpARN3aW5uaW5qYUNsYWltUmV3YXJkAAQGcGxheWVyCAUBaQZjYWxsZXIECXBsYXllclN0cgkApQgBBQZwbGF5ZXIECHJvdW5kTnVtCQEMZ2V0SW50T3JGYWlsAgUEdGhpcwkBFWtleUdvbGRlbkhvdXJSb3VuZE51bQAECXBsYXllcktFWQkBE2tleUdvbGRlbkhvdXJQbGF5ZXICBQhyb3VuZE51bQUJcGxheWVyU3RyBARkYXRhCQC1CQIJAQxnZXRTdHJPckZhaWwCBQR0aGlzBQlwbGF5ZXJLRVkFAVMEBndpbkFtdAkBDXBhcnNlSW50VmFsdWUBCQCRAwIFBGRhdGEAAQQGc3RhdHVzCQCRAwIFBGRhdGEAAgMJAGcCAAAFBndpbkFtdAkAAgECEE5vdGhpbmcgdG8gY2xhaW0DCQAAAgUGc3RhdHVzBQlHSENMQUlNRUQJAAIBAg9BbHJlYWR5IGNsYWltZWQJAMwIAgkBC1N0cmluZ0VudHJ5AgUJcGxheWVyS0VZCQEUZGF0YUdvbGRlbkhvdXJQbGF5ZXICBQZ3aW5BbXQFCUdIQ0xBSU1FRAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQZwbGF5ZXIFBndpbkFtdAUGdXNkbklkBQNuaWwAbbAsZA==", "chainId": 84, "height": 2337151, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H3YrCmwcSRBZ5FiGtfydAf7PGtKNGPPMLZ3LhUQ2uA2A Next: none Diff:
OldNewDifferences
194194 func keyGoldenHourEnd (roundNum) = ("%s%d__goldenHourEnd__" + toString(roundNum))
195195
196196
197-func keyGoldenHourRandomOn (roundNum) = ("%s%d__goldenHourRandomOn__" + toString(roundNum))
197+func keyGoldenHourRandomOn (roundNum) = ("%s%d__goldenHourResults__" + toString(roundNum))
198198
199199
200200 func keyGoldenHourRoundNum () = "%s__goldenHourRoundNum"
352352 else {
353353 let blockEnd = (blockStart + durationBlocks)
354354 let randomOn = (blockEnd + 5)
355-[IntegerEntry(keyGoldenHourRoundNum(), roundNum), IntegerEntry(keyGoldenHourStart(roundNum), blockStart), IntegerEntry(keyGoldenHourEnd(roundNum), blockEnd), IntegerEntry(keyGoldenHourRandomOn(roundNum), randomOn)]
355+[IntegerEntry(keyGoldenHourRoundNum(), roundNum), IntegerEntry(keyGoldenHourStart(roundNum), blockStart), IntegerEntry(keyGoldenHourEnd(roundNum), blockEnd), IntegerEntry(keyGoldenHourRandomOn(roundNum), 0)]
356356 }
357357 }
358358 }
366366 let winAmtMain = 50000000
367367 let winAmtSecond = 5000000
368368 let roundNum = getIntOrFail(this, keyGoldenHourRoundNum())
369- let randomOnHeight = getIntOrFail(this, keyGoldenHourRandomOn(roundNum))
370- if ((randomOnHeight > height))
371- then throw((("wait " + toString(randomOnHeight)) + " to generate random"))
369+ let randHeight = (getIntOrFail(this, keyGoldenHourEnd(roundNum)) + 2)
370+ let randHeightStr = toString(randHeight)
371+ if ((randHeight > height))
372+ then throw((("wait " + randHeightStr) + " to generate random"))
372373 else {
373- let randHeight = (randomOnHeight - 2)
374- let randHeightStr = toString(randHeight)
375374 let blockInfo = valueOrErrorMessage(blockInfoByHeight(randHeight), ("couldn't find block " + randHeightStr))
376375 let vrf = valueOrErrorMessage(blockInfo.vrf, (("block " + randHeightStr) + " doesn't support vrf"))
377376 let seed = sha256(vrf)
426425 }
427426 else entries
428427
429- let $l = randCount
430- let $s = size($l)
431- let $acc0 = nil
432- func $f1_1 ($a,$i) = if (($i >= $s))
433- then $a
434- else forEachWinner($a, $l[$i])
428+ ({
429+ let $l = randCount
430+ let $s = size($l)
431+ let $acc0 = nil
432+ func $f1_1 ($a,$i) = if (($i >= $s))
433+ then $a
434+ else forEachWinner($a, $l[$i])
435435
436- func $f1_2 ($a,$i) = if (($i >= $s))
437- then $a
438- else throw("List size exceeds 11")
436+ func $f1_2 ($a,$i) = if (($i >= $s))
437+ then $a
438+ else throw("List size exceeds 11")
439439
440- $f1_2($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)
440+ $f1_2($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)
441+ } :+ IntegerEntry(("%s%d__goldenHourResults__" + toString(roundNum)), randHeight))
441442 }
442443 }
443444
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let S = "__"
55
66 let S2 = ":"
77
88 let DEC = 1000000
99
1010 let SCHEDULED = "SCHEDULED"
1111
1212 let PLAYED = "PLAYED"
1313
1414 func abs (v) = if ((0 > v))
1515 then (-1 * v)
1616 else v
1717
1818
1919 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (((toString(address) + ".") + key) + " is not defined"))
2020
2121
2222 func getStrOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((toString(address) + ".") + key) + " is not defined"))
2323
2424
2525 func getInt (address,key,default) = valueOrElse(getInteger(address, key), default)
2626
2727
2828 func getStr (address,key,default) = valueOrElse(getString(address, key), default)
2929
3030
3131 func keyCfgPriceAssetId () = "%s%s__cfg__priceAsset"
3232
3333
3434 func keyCfgAdmin () = "%s%s__cfg__admin"
3535
3636
3737 let usdnId = fromBase58String(getStr(this, keyCfgPriceAssetId(), "HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ"))
3838
3939 func keyTeamCap (teamCode) = makeString(["%s%s__teamCapitalization", teamCode], S)
4040
4141
4242 func keyTeamTkn (teamCode) = makeString(["%s%s__teamTokens", teamCode], S)
4343
4444
4545 func keyTeamRnd (teamCode) = makeString(["%s%s__teamRound", teamCode], S)
4646
4747
4848 func keyTeamRisks (teamCode) = makeString(["%s%s__teamRisks", teamCode], S)
4949
5050
5151 func keyTeamSchedule (teamCode) = makeString(["%s%s__teamSchedule", teamCode], S)
5252
5353
5454 func keyTeamStats (teamCode) = makeString(["%s%s__teamStats", teamCode], S)
5555
5656
5757 func keyUserTeam (user,teamCode) = makeString(["%s%s%s__userTeam", teamCode, user], S)
5858
5959
6060 func keyMatch (round,homeTeamCode,awayTeamCode) = makeString(["%s%d%s%s__match", toString(round), homeTeamCode, awayTeamCode], S)
6161
6262
6363 func dataTeamRisks (risk1,risk2,risk3,risk4) = makeString(["%d%d%d%d", risk1, risk2, risk3, risk4], S)
6464
6565
6666 func dataMatch (data,homeTeamGoals,awayTeamGoals) = makeString(["%d%d%s%d%d", data[1], data[2], PLAYED, toString(homeTeamGoals), toString(awayTeamGoals)], S)
6767
6868
6969 func readTeamRnd (teamCode) = getInt(this, keyTeamRnd(teamCode), 1)
7070
7171
7272 func updateTeamRnd (teamCode) = {
7373 let r = readTeamRnd(teamCode)
7474 IntegerEntry(keyTeamRnd(teamCode), (r + 1))
7575 }
7676
7777
7878 func isMe (i) = if ((this != i.caller))
7979 then throw("not allowed")
8080 else true
8181
8282
8383 func isAdmin (i) = {
8484 let adminAddress = addressFromStringValue(getStrOrFail(this, keyCfgAdmin()))
8585 if ((adminAddress != i.caller))
8686 then throw("not allowed")
8787 else true
8888 }
8989
9090
9191 func calcRisks (round,pmt) = if ((round == 1))
9292 then $Tuple4((pmt / 3), (pmt / 3), (pmt / 3), 0)
9393 else if ((round == 2))
9494 then $Tuple4(0, (pmt / 2), (pmt / 2), 0)
9595 else if ((round == 3))
9696 then $Tuple4(0, 0, pmt, 0)
9797 else $Tuple4(0, 0, 0, pmt)
9898
9999
100100 func updateTeamRiskOnBuy (teamCode,pmt) = {
101101 let risksKey = keyTeamRisks(teamCode)
102102 let risksStr = getStr(this, risksKey, dataTeamRisks("0", "0", "0", "0"))
103103 let risksDat = split(risksStr, S)
104104 let teamRound = readTeamRnd(teamCode)
105105 let plusRisk = calcRisks(teamRound, pmt)
106106 let risk1 = toString((parseIntValue(risksDat[1]) + plusRisk._1))
107107 let risk2 = toString((parseIntValue(risksDat[2]) + plusRisk._2))
108108 let risk3 = toString((parseIntValue(risksDat[3]) + plusRisk._3))
109109 let risk4 = toString((parseIntValue(risksDat[4]) + plusRisk._4))
110110 StringEntry(risksKey, dataTeamRisks(risk1, risk2, risk3, risk4))
111111 }
112112
113113
114114 func updateUserShareInTeam (userAddress,teamCode,teamTknDiff,pmt) = {
115115 let key = keyUserTeam(userAddress, teamCode)
116116 let data = split(getStr(this, key, "%d%d__0__0"), S)
117117 let teamTknAmtNew = toString((parseIntValue(data[1]) + teamTknDiff))
118118 let investUsdnNew = toString((parseIntValue(data[2]) + pmt))
119119 StringEntry(key, makeString(["%d%d", teamTknAmtNew, investUsdnNew], S))
120120 }
121121
122122
123123 func dataTeamStats (gameNum,wins,draws,loses,goalsFor,goalsAgainst,points) = makeString(["%d%d%d%d%d%d%d", toString(gameNum), toString(wins), toString(draws), toString(loses), toString(goalsFor), toString(goalsAgainst), toString(points)], S)
124124
125125
126126 func updateSingleTeamStats (teamCode,teamDiff) = {
127127 let key = keyTeamStats(teamCode)
128128 let data = split(getStr(this, key, dataTeamStats(0, 0, 0, 0, 0, 0, 0)), S)
129129 StringEntry(key, dataTeamStats((parseIntValue(data[1]) + teamDiff._1), (parseIntValue(data[2]) + teamDiff._2), (parseIntValue(data[3]) + teamDiff._3), (parseIntValue(data[4]) + teamDiff._4), (parseIntValue(data[5]) + teamDiff._5), (parseIntValue(data[6]) + teamDiff._6), (parseIntValue(data[7]) + teamDiff._7)))
130130 }
131131
132132
133133 func updateBothTeamsStats (homeTeamCode,awayTeamCode,homeTeamGoals,awayTeamGoals) = {
134134 let statsArray = if ((homeTeamGoals > awayTeamGoals))
135135 then [$Tuple7(1, 1, 0, 0, homeTeamGoals, awayTeamGoals, 3), $Tuple7(1, 0, 0, 1, awayTeamGoals, homeTeamGoals, 0)]
136136 else if ((awayTeamGoals > homeTeamGoals))
137137 then [$Tuple7(1, 0, 0, 1, homeTeamGoals, awayTeamGoals, 0), $Tuple7(1, 1, 0, 0, awayTeamGoals, homeTeamGoals, 3)]
138138 else [$Tuple7(1, 0, 1, 0, homeTeamGoals, awayTeamGoals, 1), $Tuple7(1, 0, 1, 0, awayTeamGoals, homeTeamGoals, 1)]
139139 let homeTeamDiff = statsArray[0]
140140 let awayTeamDiff = statsArray[1]
141141 [updateSingleTeamStats(homeTeamCode, homeTeamDiff), updateSingleTeamStats(awayTeamCode, awayTeamDiff)]
142142 }
143143
144144
145145 func updateTeamsCapsAndRisks (homeTeamCode,awayTeamCode,homeTeamGoals,awayTeamGoals) = {
146146 let homeTeamRound = readTeamRnd(homeTeamCode)
147147 let awayTeamRound = readTeamRnd(awayTeamCode)
148148 if ((homeTeamRound != awayTeamRound))
149149 then throw("Teams rounds are not equals")
150150 else {
151151 let homeRisksKey = keyTeamRisks(homeTeamCode)
152152 let homeRisksDat = split(getStr(this, homeRisksKey, dataTeamRisks("0", "0", "0", "0")), S)
153153 let awayRisksKey = keyTeamRisks(awayTeamCode)
154154 let awayRisksDat = split(getStr(this, awayRisksKey, dataTeamRisks("0", "0", "0", "0")), S)
155155 let homeRisk = parseIntValue(homeRisksDat[homeTeamRound])
156156 let awayRisk = parseIntValue(awayRisksDat[awayTeamRound])
157157 let homeCapKey = keyTeamCap(homeTeamCode)
158158 let homeCap = getIntOrFail(this, homeCapKey)
159159 let awayCapKey = keyTeamCap(awayTeamCode)
160160 let awayCap = getIntOrFail(this, awayCapKey)
161161 let diff = if ((homeTeamGoals > awayTeamGoals))
162162 then [$Tuple2((homeRisk + awayRisk), awayRisk), $Tuple2(0, -(awayRisk))]
163163 else if ((awayTeamGoals > homeTeamGoals))
164164 then [$Tuple2(0, -(homeRisk)), $Tuple2((homeRisk + awayRisk), homeRisk)]
165165 else [$Tuple2(homeRisk, 0), $Tuple2(awayRisk, 0)]
166166 let homeDiff = diff[0]
167167 let awayDiff = diff[1]
168168 func refreshTeamRiskOnMatchPlayed (data,round,risk4diff) = {
169169 let risk1 = if ((1 == round))
170170 then "0"
171171 else data[1]
172172 let risk2 = if ((2 == round))
173173 then "0"
174174 else data[2]
175175 let risk3 = if ((3 == round))
176176 then "0"
177177 else data[3]
178178 let risk4 = toString((parseIntValue(data[4]) + risk4diff))
179179 dataTeamRisks(risk1, risk2, risk3, risk4)
180180 }
181181
182182 [StringEntry(homeRisksKey, refreshTeamRiskOnMatchPlayed(homeRisksDat, homeTeamRound, homeDiff._1)), StringEntry(awayRisksKey, refreshTeamRiskOnMatchPlayed(awayRisksDat, awayTeamRound, awayDiff._1)), IntegerEntry(homeCapKey, (homeCap + homeDiff._2)), IntegerEntry(awayCapKey, (awayCap + awayDiff._2))]
183183 }
184184 }
185185
186186
187187 let GHCLAIMED = "CLAIMED"
188188
189189 let GHPENDING = "PENDING"
190190
191191 func keyGoldenHourStart (roundNum) = ("%s%d__goldenHourStart__" + toString(roundNum))
192192
193193
194194 func keyGoldenHourEnd (roundNum) = ("%s%d__goldenHourEnd__" + toString(roundNum))
195195
196196
197-func keyGoldenHourRandomOn (roundNum) = ("%s%d__goldenHourRandomOn__" + toString(roundNum))
197+func keyGoldenHourRandomOn (roundNum) = ("%s%d__goldenHourResults__" + toString(roundNum))
198198
199199
200200 func keyGoldenHourRoundNum () = "%s__goldenHourRoundNum"
201201
202202
203203 func keyGoldenHourTicketOwner (roundNum,ticketNum) = makeString(["%s%d%d__goldenHourTicketOwner", toString(roundNum), toString(ticketNum)], S)
204204
205205
206206 func keyGoldenHourAllTickets (roundNum) = ("%s%d__goldenHourAllTickets__" + toString(roundNum))
207207
208208
209209 func keyGoldenHourPlayerNum (roundNum) = makeString(["%s%d__goldenHourPlayerNum", toString(roundNum)], S)
210210
211211
212212 func keyGoldenHourPlayer (roundNum,player) = makeString(["%s%d%s__goldenHourPlayer", toString(roundNum), player], S)
213213
214214
215215 func dataGoldenHourPlayer (amt,status) = makeString(["%d%s", toString(amt), status], S)
216216
217217
218218 func generateGoldenHourTickets (player,pmt) = {
219219 let roundNum = getInt(this, keyGoldenHourRoundNum(), 0)
220220 let roundStart = getInt(this, keyGoldenHourStart(roundNum), 0)
221221 let roundEnd = getInt(this, keyGoldenHourEnd(roundNum), 0)
222222 if (if ((roundStart > height))
223223 then true
224224 else (height >= roundEnd))
225225 then nil
226226 else {
227227 let ticketCost = 5000000
228228 let ticketsIdxs = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
229229 let ticketsTmp = (pmt / ticketCost)
230230 let ticketsCount = if ((ticketsTmp > size(ticketsIdxs)))
231231 then size(ticketsIdxs)
232232 else ticketsTmp
233233 let lastTicketNumKey = keyGoldenHourPlayerNum(roundNum)
234234 let lastTicketNum = getInt(this, lastTicketNumKey, 0)
235235 let lastTicketNumNew = (lastTicketNum + ticketsCount)
236236 func genTickets (genData,next) = {
237237 let ticketNum = (lastTicketNum + next)
238238 let entries = genData._1
239239 let ticketsAll = genData._2
240240 if ((ticketNum >= lastTicketNumNew))
241241 then genData
242242 else $Tuple2((entries :+ StringEntry(keyGoldenHourTicketOwner(roundNum, ticketNum), player)), makeString_2C([ticketsAll, toString(ticketNum), S2], ""))
243243 }
244244
245245 let data = {
246246 let $l = ticketsIdxs
247247 let $s = size($l)
248248 let $acc0 = $Tuple2(nil, "")
249249 func $f0_1 ($a,$i) = if (($i >= $s))
250250 then $a
251251 else genTickets($a, $l[$i])
252252
253253 func $f0_2 ($a,$i) = if (($i >= $s))
254254 then $a
255255 else throw("List size exceeds 20")
256256
257257 $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
258258 }
259259 let slot2userEntries = data._1
260260 let allTicketsTail = data._2
261261 let allTicketsKey = keyGoldenHourAllTickets(roundNum)
262262 let allTickets = getStr(this, allTicketsKey, "")
263263 (((slot2userEntries :+ IntegerEntry(lastTicketNumKey, lastTicketNumNew)) :+ StringEntry(keyGoldenHourPlayer(roundNum, player), dataGoldenHourPlayer(0, GHPENDING))) :+ StringEntry(allTicketsKey, (allTickets + allTicketsTail)))
264264 }
265265 }
266266
267267
268268 @Callable(i)
269269 func init (priceAssetId) = {
270270 let checks = [isMe(i)]
271271 if ((checks == checks))
272272 then [StringEntry(keyCfgPriceAssetId(), priceAssetId)]
273273 else throw("Strict value is not equal to itself.")
274274 }
275275
276276
277277
278278 @Callable(i)
279279 func buyTeam (teamCode) = {
280280 let user = toString(i.caller)
281281 let pmt = i.payments[0]
282282 let pmtAmt = pmt.amount
283283 let pmtAssetId = pmt.assetId
284284 if ((size(i.payments) != 1))
285285 then throw("1 payment is expected")
286286 else if ((pmtAssetId != usdnId))
287287 then throw("invalid payment asset id")
288288 else {
289289 let teamSchedule = getStrOrFail(this, keyTeamSchedule(teamCode))
290290 let round = readTeamRnd(teamCode)
291291 let matchTimestamp = parseIntValue(split(teamSchedule, S)[round])
292292 if ((((10 * 60) * 1000) > (matchTimestamp - lastBlock.timestamp)))
293293 then throw("Impossible to buy share - match is in progress. Please wait score finalization")
294294 else {
295295 let teamCap = getIntOrFail(this, keyTeamCap(teamCode))
296296 let teamTkn = getIntOrFail(this, keyTeamTkn(teamCode))
297297 let price = if ((teamTkn != 0))
298298 then fraction(teamCap, DEC, teamTkn)
299299 else DEC
300300 let teamTknForUser = fraction(pmtAmt, DEC, price)
301301 ([IntegerEntry(keyTeamCap(teamCode), (teamCap + pmtAmt)), IntegerEntry(keyTeamTkn(teamCode), (teamTkn + teamTknForUser)), updateUserShareInTeam(user, teamCode, teamTknForUser, pmtAmt), updateTeamRiskOnBuy(teamCode, pmtAmt)] ++ generateGoldenHourTickets(user, pmtAmt))
302302 }
303303 }
304304 }
305305
306306
307307
308308 @Callable(i)
309309 func score (round,homeTeamCode,awayTeamCode,homeTeamGoals,awayTeamGoals) = {
310310 let checks = [isMe(i)]
311311 if ((checks == checks))
312312 then {
313313 let key = keyMatch(round, homeTeamCode, awayTeamCode)
314314 let data = split(getStrOrFail(this, key), S)
315315 let time = parseIntValue(data[2])
316316 let status = data[3]
317317 let homeTeamRound = readTeamRnd(homeTeamCode)
318318 let awayTeamRound = readTeamRnd(awayTeamCode)
319319 if ((status != SCHEDULED))
320320 then throw("Match is not in SCHEDULED status")
321321 else if (((time + (((2 * 60) * 60) * 1000)) > lastBlock.timestamp))
322322 then throw("Wait 2h after match start before score update")
323323 else if ((homeTeamRound != round))
324324 then throw(((("Home team's round doesn't match passed round: " + toString(round)) + " != ") + toString(homeTeamRound)))
325325 else if ((awayTeamRound != round))
326326 then throw(((("Away team's round doesn't match passed round: " + toString(round)) + " != ") + toString(awayTeamRound)))
327327 else ((((updateBothTeamsStats(homeTeamCode, awayTeamCode, homeTeamGoals, awayTeamGoals) ++ updateTeamsCapsAndRisks(homeTeamCode, awayTeamCode, homeTeamGoals, awayTeamGoals)) :+ StringEntry(key, dataMatch(data, homeTeamGoals, awayTeamGoals))) :+ updateTeamRnd(homeTeamCode)) :+ updateTeamRnd(awayTeamCode))
328328 }
329329 else throw("Strict value is not equal to itself.")
330330 }
331331
332332
333333
334334 @Callable(i)
335335 func winninjaGoldenHour100UsdnPrizeFundSchedule (blockStart) = {
336336 let durationBlocks = 60
337337 let checks = [isAdmin(i)]
338338 if ((checks == checks))
339339 then {
340340 let pmt = i.payments[0]
341341 if ((pmt.assetId != usdnId))
342342 then throw("only usdn is supported")
343343 else if ((pmt.amount != (100 * DEC)))
344344 then throw("100 usdn must be attached")
345345 else {
346346 let roundNum = (getInt(this, keyGoldenHourRoundNum(), -1) + 1)
347347 let prevEnd = getInt(this, keyGoldenHourEnd(roundNum), 0)
348348 if (((60 * 12) >= (height - prevEnd)))
349349 then throw("min duration between golden hours is 12h")
350350 else if ((height >= blockStart))
351351 then throw("blockStart is in the past")
352352 else {
353353 let blockEnd = (blockStart + durationBlocks)
354354 let randomOn = (blockEnd + 5)
355-[IntegerEntry(keyGoldenHourRoundNum(), roundNum), IntegerEntry(keyGoldenHourStart(roundNum), blockStart), IntegerEntry(keyGoldenHourEnd(roundNum), blockEnd), IntegerEntry(keyGoldenHourRandomOn(roundNum), randomOn)]
355+[IntegerEntry(keyGoldenHourRoundNum(), roundNum), IntegerEntry(keyGoldenHourStart(roundNum), blockStart), IntegerEntry(keyGoldenHourEnd(roundNum), blockEnd), IntegerEntry(keyGoldenHourRandomOn(roundNum), 0)]
356356 }
357357 }
358358 }
359359 else throw("Strict value is not equal to itself.")
360360 }
361361
362362
363363
364364 @Callable(i)
365365 func winninjaGoldenHour100UsdnPrizeFundGenerateRandom () = {
366366 let winAmtMain = 50000000
367367 let winAmtSecond = 5000000
368368 let roundNum = getIntOrFail(this, keyGoldenHourRoundNum())
369- let randomOnHeight = getIntOrFail(this, keyGoldenHourRandomOn(roundNum))
370- if ((randomOnHeight > height))
371- then throw((("wait " + toString(randomOnHeight)) + " to generate random"))
369+ let randHeight = (getIntOrFail(this, keyGoldenHourEnd(roundNum)) + 2)
370+ let randHeightStr = toString(randHeight)
371+ if ((randHeight > height))
372+ then throw((("wait " + randHeightStr) + " to generate random"))
372373 else {
373- let randHeight = (randomOnHeight - 2)
374- let randHeightStr = toString(randHeight)
375374 let blockInfo = valueOrErrorMessage(blockInfoByHeight(randHeight), ("couldn't find block " + randHeightStr))
376375 let vrf = valueOrErrorMessage(blockInfo.vrf, (("block " + randHeightStr) + " doesn't support vrf"))
377376 let seed = sha256(vrf)
378377 let ticketsCount = getIntOrFail(this, keyGoldenHourPlayerNum(roundNum))
379378 let allTickets = getStrOrFail(this, keyGoldenHourAllTickets(roundNum))
380379 let randCount = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
381380 func genRands (winnersMap,nextRandOffset) = {
382381 let winnersList = winnersMap._1
383382 let amountsList = winnersMap._2
384383 let allTicketsList = winnersMap._3
385384 let randIdx = (abs(toInt(drop(seed, nextRandOffset))) % (ticketsCount - nextRandOffset))
386385 let winTicketNum = parseIntValue(allTicketsList[randIdx])
387386 let allTicketsListNew = removeByIndex(allTicketsList, randIdx)
388387 let winner = getStrOrFail(this, keyGoldenHourTicketOwner(roundNum, winTicketNum))
389388 if ((size(winnersList) == 0))
390389 then $Tuple3([winner], [winAmtMain], allTicketsListNew)
391390 else {
392391 let idxOpt = indexOf(winnersList, winner)
393392 if (!(isDefined(idxOpt)))
394393 then $Tuple3((winnersList :+ winner), (amountsList :+ winAmtSecond), allTicketsListNew)
395394 else {
396395 let idx = value(idxOpt)
397396 let amtNew = (amountsList[idx] + winAmtSecond)
398397 let winnersListNew = (removeByIndex(winnersList, idx) :+ winner)
399398 let amountsListNew = (removeByIndex(amountsList, idx) :+ amtNew)
400399 $Tuple3(winnersListNew, amountsListNew, allTicketsListNew)
401400 }
402401 }
403402 }
404403
405404 let randResults = {
406405 let $l = randCount
407406 let $s = size($l)
408407 let $acc0 = $Tuple3(nil, nil, split_51C(allTickets, S2))
409408 func $f0_1 ($a,$i) = if (($i >= $s))
410409 then $a
411410 else genRands($a, $l[$i])
412411
413412 func $f0_2 ($a,$i) = if (($i >= $s))
414413 then $a
415414 else throw("List size exceeds 11")
416415
417416 $f0_2($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)
418417 }
419418 let winnersListRes = randResults._1
420419 let amountsListRes = randResults._2
421420 func forEachWinner (entries,nextIdx) = if ((size(winnersListRes) > nextIdx))
422421 then {
423422 let winner = winnersListRes[nextIdx]
424423 let amt = amountsListRes[nextIdx]
425424 (entries :+ StringEntry(keyGoldenHourPlayer(roundNum, winner), dataGoldenHourPlayer(amt, GHPENDING)))
426425 }
427426 else entries
428427
429- let $l = randCount
430- let $s = size($l)
431- let $acc0 = nil
432- func $f1_1 ($a,$i) = if (($i >= $s))
433- then $a
434- else forEachWinner($a, $l[$i])
428+ ({
429+ let $l = randCount
430+ let $s = size($l)
431+ let $acc0 = nil
432+ func $f1_1 ($a,$i) = if (($i >= $s))
433+ then $a
434+ else forEachWinner($a, $l[$i])
435435
436- func $f1_2 ($a,$i) = if (($i >= $s))
437- then $a
438- else throw("List size exceeds 11")
436+ func $f1_2 ($a,$i) = if (($i >= $s))
437+ then $a
438+ else throw("List size exceeds 11")
439439
440- $f1_2($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)
440+ $f1_2($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)
441+ } :+ IntegerEntry(("%s%d__goldenHourResults__" + toString(roundNum)), randHeight))
441442 }
442443 }
443444
444445
445446
446447 @Callable(i)
447448 func winninjaClaimReward () = {
448449 let player = i.caller
449450 let playerStr = toString(player)
450451 let roundNum = getIntOrFail(this, keyGoldenHourRoundNum())
451452 let playerKEY = keyGoldenHourPlayer(roundNum, playerStr)
452453 let data = split(getStrOrFail(this, playerKEY), S)
453454 let winAmt = parseIntValue(data[1])
454455 let status = data[2]
455456 if ((0 >= winAmt))
456457 then throw("Nothing to claim")
457458 else if ((status == GHCLAIMED))
458459 then throw("Already claimed")
459460 else [StringEntry(playerKEY, dataGoldenHourPlayer(winAmt, GHCLAIMED)), ScriptTransfer(player, winAmt, usdnId)]
460461 }
461462
462463

github/deemru/w8io/026f985 
86.94 ms