tx · 3UzrUWbFrh4BmBt9cHWZSUZXoZQCpDJFfvsyoad5YJEK

3NAjwfxvJp9VShPRRyyqxM7DBur7oCPn79L:  -0.00800000 Waves

2022.08.31 22:34 [2209053] smart account 3NAjwfxvJp9VShPRRyyqxM7DBur7oCPn79L > SELF 0.00000000 Waves

{ "type": 13, "id": "3UzrUWbFrh4BmBt9cHWZSUZXoZQCpDJFfvsyoad5YJEK", "fee": 800000, "feeAssetId": null, "timestamp": 1661974550327, "version": 2, "chainId": 84, "sender": "3NAjwfxvJp9VShPRRyyqxM7DBur7oCPn79L", "senderPublicKey": "3qLStkxzTGZubeF2nmuXT2iopYYNg89sPT7VaNpTqihE", "proofs": [ "4veiA75d7YgGeMaL1afrYqh5gUFTfijgWe3DtdVTxkHcx2fGyR4Fypf1Db8K2PsMNxpD5HAyqm5NCki4gYxpRStX" ], "script": "base64:AAIFAAAAAAAAABAIAhIAEgASABIAEgASABIAAAAAGgAAAAAOZ2FtZVRva2VuTGFiZWwCAAAACUdfVE9LRU5JRAAAAAAQZ2FtZUJhbGFuY2VMYWJlbAIAAAAJR19CQUxBTkNFAAAAABVnYW1lQ29tbXVuaXR5UG90TGFiZWwCAAAADkdfQ09NTVVOSVRZUE9UAQAAABFnYW1lUHJpemVQb3RMYWJlbAAAAAEAAAAKZ2FtZU51bWJlcgkAASwAAAACCQABLAAAAAICAAAAAkdfCQABpAAAAAEFAAAACmdhbWVOdW1iZXICAAAACFBSSVpFUE9UAQAAABlnYW1lUHJpemVTaGFyZUFtb3VudExhYmVsAAAAAQAAAApnYW1lTnVtYmVyCQABLAAAAAIJAAEsAAAAAgIAAAACR18JAAGkAAAAAQUAAAAKZ2FtZU51bWJlcgIAAAAQUFJJWkVTSEFSRUFNT1VOVAAAAAAQZ2FtZUNvdW50ZXJMYWJlbAIAAAAOR19HQU1FU0NPVU5URVIBAAAAEmdhbWVUb3RhbEJldHNMYWJlbAAAAAEAAAAKZ2FtZU51bWJlcgkAASwAAAACCQABLAAAAAIC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AAAQcHJpemVTaGFyZUFtb3VudAkBAAAACWdhbWVUb2tlbgAAAAAFAAAAA25pbAkAAAIAAAABAgAAADtHYW1lIGhhcyBub3QgYmVlbiBpbml0aWFsaXplZCwgcHJpemUgc2hhcmUgYW1vdW50IG5vdCBmb3VuZAkAAAIAAAABAgAAAEBHYW1lIGhhcyBub3QgYmVlbiBpbml0aWFsaXplZCwgdG90YWwgcHJvY2Vzc2VkIHdpbm5lcnMgbm90IGZvdW5kCQAAAgAAAAECAAAANkdhbWUgaGFzIG5vdCBiZWVuIGluaXRpYWxpemVkLCB0b3RhbCB3aW5uZXJzIG5vdCBmb3VuZAkAAAIAAAABAgAAADRHYW1lIGhhcyBub3QgYmVlbiBpbml0aWFsaXplZCwgdG90YWwgZ2FtZXMgbm90IGZvdW5kAAAAABT4hA4=", "height": 2209053, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C3ZnRi8xem8b1TWeohZQdFo7kHJWmGiKSepLAGcZDD2e Next: CZjZpiSFnGjRbNhbaZyHBf7fjTyx298JH8zF7ZsJE5NG Diff:
OldNewDifferences
9191 func startGame () = match gamesGetCounter() {
9292 case currentGame: Int =>
9393 let newGame = (currentGame + 1)
94-[IntegerEntry(gameCounterLabel, newGame), IntegerEntry(gamePrizePotLabel(currentGame), 10000000), IntegerEntry(gamePrizeShareAmountLabel(currentGame), 0), IntegerEntry(gameTotalBetsLabel(currentGame), 0), IntegerEntry(gameProcessedBetsLabel(currentGame), 0), IntegerEntry(gameWinnersCounterLabel(currentGame), 0), IntegerEntry(gameProcessedWinnersLabel(currentGame), 0)]
94+[IntegerEntry(gameCounterLabel, newGame), IntegerEntry(gamePrizePotLabel(newGame), 10000000), IntegerEntry(gamePrizeShareAmountLabel(newGame), 0), IntegerEntry(gameTotalBetsLabel(newGame), 0), IntegerEntry(gameProcessedBetsLabel(newGame), 0), IntegerEntry(gameWinnersCounterLabel(newGame), 0), IntegerEntry(gameProcessedWinnersLabel(newGame), 0)]
9595 case _ =>
9696 throw("Game has not been initialized, total games not found")
9797 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let gameTokenLabel = "G_TOKENID"
55
66 let gameBalanceLabel = "G_BALANCE"
77
88 let gameCommunityPotLabel = "G_COMMUNITYPOT"
99
1010 func gamePrizePotLabel (gameNumber) = (("G_" + toString(gameNumber)) + "PRIZEPOT")
1111
1212
1313 func gamePrizeShareAmountLabel (gameNumber) = (("G_" + toString(gameNumber)) + "PRIZESHAREAMOUNT")
1414
1515
1616 let gameCounterLabel = "G_GAMESCOUNTER"
1717
1818 func gameTotalBetsLabel (gameNumber) = (("G_" + toString(gameNumber)) + "TOTALBETS")
1919
2020
2121 func gameProcessedBetsLabel (gameNumber) = (("G_" + toString(gameNumber)) + "PROCESSEDBETS")
2222
2323
2424 func gameWinnersCounterLabel (gameNumber) = (("G_" + toString(gameNumber)) + "WINNERSCOUNT")
2525
2626
2727 func gameProcessedWinnersLabel (gameNumber) = (("G_" + toString(gameNumber)) + "PROCESSEDWINNERS")
2828
2929
3030 func gameResultLabel (gameNumber) = (("G_" + toString(gameNumber)) + "_RESULT")
3131
3232
3333 func betDetailsLabel (betNumber) = (("B_" + toString(betNumber)) + "_BETDETAILS")
3434
3535
3636 func winnerDetailsLabel (winnerNumber) = (("W_" + toString(winnerNumber)) + "_WINNERDETAILS")
3737
3838
3939 func gameBalance () = getInteger(this, gameBalanceLabel)
4040
4141
4242 func gameCommunityPot () = getInteger(this, gameCommunityPotLabel)
4343
4444
4545 func gamePrizePot (gameNumber) = getInteger(this, gamePrizePotLabel(gameNumber))
4646
4747
4848 func gamePrizeShareAmount (gameNumber) = getInteger(this, gamePrizeShareAmountLabel(gameNumber))
4949
5050
5151 func gamesGetCounter () = getInteger(this, gameCounterLabel)
5252
5353
5454 func gameTotalBets (gameNumber) = getInteger(this, gameTotalBetsLabel(gameNumber))
5555
5656
5757 func gameProcessedBets (gameNumber) = getInteger(this, gameProcessedBetsLabel(gameNumber))
5858
5959
6060 func gameWinnersCounter (gameNumber) = getInteger(this, gameWinnersCounterLabel(gameNumber))
6161
6262
6363 func gameProcessedWinners (gameNumber) = getInteger(this, gameProcessedWinnersLabel(gameNumber))
6464
6565
6666 func gameGetResult (gameNumber) = getStringValue(this, gameResultLabel(gameNumber))
6767
6868
6969 func betDetails (betNumber) = getStringValue(this, betDetailsLabel(betNumber))
7070
7171
7272 func winnerDetails (winnerNumber) = getStringValue(this, winnerDetailsLabel(winnerNumber))
7373
7474
7575 func gameToken () = match getString(this, gameTokenLabel) {
7676 case tokenId: String =>
7777 if ((tokenId == ""))
7878 then unit
7979 else fromBase58String(tokenId)
8080 case _ =>
8181 unit
8282 }
8383
8484
8585 @Callable(i)
8686 func initGame () = [IntegerEntry(gameBalanceLabel, 0), IntegerEntry(gameCommunityPotLabel, 0), IntegerEntry(gameCounterLabel, 0)]
8787
8888
8989
9090 @Callable(i)
9191 func startGame () = match gamesGetCounter() {
9292 case currentGame: Int =>
9393 let newGame = (currentGame + 1)
94-[IntegerEntry(gameCounterLabel, newGame), IntegerEntry(gamePrizePotLabel(currentGame), 10000000), IntegerEntry(gamePrizeShareAmountLabel(currentGame), 0), IntegerEntry(gameTotalBetsLabel(currentGame), 0), IntegerEntry(gameProcessedBetsLabel(currentGame), 0), IntegerEntry(gameWinnersCounterLabel(currentGame), 0), IntegerEntry(gameProcessedWinnersLabel(currentGame), 0)]
94+[IntegerEntry(gameCounterLabel, newGame), IntegerEntry(gamePrizePotLabel(newGame), 10000000), IntegerEntry(gamePrizeShareAmountLabel(newGame), 0), IntegerEntry(gameTotalBetsLabel(newGame), 0), IntegerEntry(gameProcessedBetsLabel(newGame), 0), IntegerEntry(gameWinnersCounterLabel(newGame), 0), IntegerEntry(gameProcessedWinnersLabel(newGame), 0)]
9595 case _ =>
9696 throw("Game has not been initialized, total games not found")
9797 }
9898
9999
100100
101101 @Callable(i)
102102 func placeBet () = match gamesGetCounter() {
103103 case currentGame: Int =>
104104 match gameTotalBets(currentGame) {
105105 case totalBets: Int =>
106106 let newBet = (totalBets + 1)
107107 let bet = "1,2,3"
108108 [IntegerEntry(gameTotalBetsLabel(currentGame), newBet), StringEntry(betDetailsLabel(newBet), ((("G" + toString(currentGame)) + "-") + bet))]
109109 case _ =>
110110 throw("Game has not been initialized, total bets not found")
111111 }
112112 case _ =>
113113 throw("Game has not been initialized, total games not found")
114114 }
115115
116116
117117
118118 @Callable(i)
119119 func endGame () = match gamesGetCounter() {
120120 case currentGame: Int =>
121121 [StringEntry(gameResultLabel(currentGame), ((("G" + toString(currentGame)) + "-") + "1,2,3"))]
122122 case _ =>
123123 throw("Game has not been initialized, total games not found")
124124 }
125125
126126
127127
128128 @Callable(i)
129129 func processNextBet () = match gamesGetCounter() {
130130 case currentGame: Int =>
131131 match gameTotalBets(currentGame) {
132132 case totalBets: Int =>
133133 match gameProcessedBets(currentGame) {
134134 case lastProcessedBet: Int =>
135135 let nextBet = (lastProcessedBet + 1)
136136 if ((nextBet > totalBets))
137137 then throw("Next bet has not been placed.")
138138 else match gamesGetCounter() {
139139 case gameNumber: Int =>
140140 match gameWinnersCounter(currentGame) {
141141 case winnersCount: Int =>
142142 let result = gameGetResult(gameNumber)
143143 let betDetail = betDetails(nextBet)
144144 if ((betDetail == result))
145145 then {
146146 let newWinnersCount = (winnersCount + 1)
147147 [IntegerEntry(gameProcessedBetsLabel(currentGame), nextBet), IntegerEntry(gameWinnersCounterLabel(currentGame), (winnersCount + 1)), StringEntry(winnerDetailsLabel(newWinnersCount), toBase58String(i.caller.bytes))]
148148 }
149149 else [IntegerEntry(gameProcessedBetsLabel(currentGame), nextBet)]
150150 case _ =>
151151 throw("Game has not been initialized, total winners not found")
152152 }
153153 case _ =>
154154 throw("Game has not been initialized, total games not found")
155155 }
156156 case _ =>
157157 throw("Game has not been initialized, total processed bets not found")
158158 }
159159 case _ =>
160160 throw("Game has not been initialized, total bets not found")
161161 }
162162 case _ =>
163163 throw("Game has not been initialized, total games not found")
164164 }
165165
166166
167167
168168 @Callable(i)
169169 func calculatePrize () = match gamesGetCounter() {
170170 case currentGame: Int =>
171171 match gameWinnersCounter(currentGame) {
172172 case winnersCount: Int =>
173173 if ((winnersCount == 0))
174174 then throw("There are no winners this round.")
175175 else match gamePrizePot(currentGame) {
176176 case prizePotAmount: Int =>
177177 let prizeShareAmount = (prizePotAmount / winnersCount)
178178 [IntegerEntry(gamePrizeShareAmountLabel(currentGame), prizeShareAmount)]
179179 case _ =>
180180 throw("Game has not been initialized, total games not found")
181181 }
182182 case _ =>
183183 throw("Game has not been initialized, total winners not found")
184184 }
185185 case _ =>
186186 throw("Game has not been initialized, total games not found")
187187 }
188188
189189
190190
191191 @Callable(i)
192192 func processNextWinner () = match gamesGetCounter() {
193193 case currentGame: Int =>
194194 match gameWinnersCounter(currentGame) {
195195 case totalWinners: Int =>
196196 if ((totalWinners == 0))
197197 then throw("There are no winners this round.")
198198 else match gameProcessedWinners(currentGame) {
199199 case lastProcessedWinner: Int =>
200200 let nextWinner = (lastProcessedWinner + 1)
201201 if ((nextWinner > totalWinners))
202202 then throw("No more winners to be processed.")
203203 else match gamePrizeShareAmount(currentGame) {
204204 case prizeShareAmount: Int =>
205205 let betPlacer = winnerDetails(nextWinner)
206206 let address = value(addressFromString(betPlacer))
207207 [ScriptTransfer(address, prizeShareAmount, gameToken())]
208208 case _ =>
209209 throw("Game has not been initialized, prize share amount not found")
210210 }
211211 case _ =>
212212 throw("Game has not been initialized, total processed winners not found")
213213 }
214214 case _ =>
215215 throw("Game has not been initialized, total winners not found")
216216 }
217217 case _ =>
218218 throw("Game has not been initialized, total games not found")
219219 }
220220
221221

github/deemru/w8io/169f3d6 
37.79 ms