tx · CSmMhCBT2QSKv9kBb6gAT7evvRvN9QGSr2SkYiMDci11 3MxsZUkxjngrsHn7WNd2xEbwWkUfKdmzP6u: -0.01400000 Waves 2019.10.26 22:05 [737499] smart account 3MxsZUkxjngrsHn7WNd2xEbwWkUfKdmzP6u > SELF 0.00000000 Waves
{ "type": 13, "id": "CSmMhCBT2QSKv9kBb6gAT7evvRvN9QGSr2SkYiMDci11", "fee": 1400000, "feeAssetId": null, "timestamp": 1572116709879, "version": 1, "sender": "3MxsZUkxjngrsHn7WNd2xEbwWkUfKdmzP6u", "senderPublicKey": "BFgvNhTxuzThVrRXLX7LfTfCHVeCPDsF6JEpadKJPvox", "proofs": [ "4jNa6tRg4HsWjhahH1gZBv8siyKWPHWk2qWEX3XwSyjURkHKpixKaGm3NAAD8xtQs3LYeABXUThyKrTmHiLxpqdv" ], "script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAkAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbU9sUkJUWUVPM0g3WTlyQm1vRlFGbjQzOTJQeDBRdzEzRHNkRWhuek1IMmNqNlk1eW1QdUNPTE1OZTVxclV6UWw4b1JMeklCekZWTVpsd1VZbDJib3NyT0l4UWJZRjdXVlFXdm9WeEVUMVlJZ0RtM056ek9MQTV1SDdDS08wc25zaG1NRkNET1pFZXc0MUdqS2gzUGd4K25iQWd1UDlaUVBmcVNhZkVtQzNDTi80eURzSnJLcmlSbmlaSm85alMvNExMc1JLd0I3SEFaSHpvRjlMTDd0U1pIM2h0YU5HdGJkVGt4WjFUelNUM01iMlZQU3pzWnZRRG9jWFVWT21KT3UwbzI5YU9ZK0drRy9HNFJDSzBGQldRSEVVdkM1MVRSRFM1azhqYWQwTzFNb2JqUWM2YjE4ZCtmdW9WRmROZlp3R0grdUZ1ZHRQRzNVSlRmMm1relpRSURBUUFCAA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XRhU3RyBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAOV0FMTEVUV0FWRVNCRVQJAABpAAAAAgkAAGgAAAACCAUAAAAHcGF5bWVudAAAAAZhbW91bnQFAAAAC0ZFRVdBVkVTQkVUAAAAAAAAAABkBQAAAARXQkVUCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABHRoaXMAAAAAAAAHoSAFAAAABHVuaXQFAAAAA25pbAAAAABnUaNx", "chainId": 84, "height": 737499, "spentComplexity": 0 } View: original | compacted Prev: 3Q7xTkx2uGt91H7Z8Ch6NDbtsn6exCbZmSxHVWR8Dcxy Next: FixSVkRrmDnHcVkiatMYhbvWkTvoEHqCG9UER5Vs1xM2 Diff:
Old | New | Differences | |
---|---|---|---|
203 | 203 | let gameDataList = ExtractGameDataList(gameId) | |
204 | 204 | let gameState = gameDataList[IdxGameState] | |
205 | 205 | let payTypeA = gameDataList[IdxPayType] | |
206 | - | if ((gameDataList[IdxPayAmt] != "")) | |
207 | - | then throw(gameDataList[IdxPayAmt]) | |
208 | - | else { | |
209 | - | let payAmt = parseIntValue(gameDataList[IdxPayAmt]) | |
210 | - | if (if ((payment.assetId != assetInfo(base58'WAVES'))) | |
211 | - | then (payment.assetId != WBET) | |
212 | - | else false) | |
213 | - | then throw("Payment should be in Wavesbet or Waves") | |
214 | - | else if (feeAssetId) | |
215 | - | then throw("Transaction's fee must be in Waves. Game aborted.") | |
216 | - | else if ((payTypeB != payTypeA)) | |
217 | - | then throw("Payment must be made in the same currency token as the bet, WBET/WBET or WAVES/WAVES.") | |
218 | - | else if ((payment.amount == payAmt)) | |
219 | - | then throw("Payout must be equal to the bet amount.") | |
220 | - | else if ((gameState != STATESUBMITTED)) | |
221 | - | then throw("Invalid game state for passed gameId") | |
222 | - | else { | |
223 | - | let paCoin = gameDataList[IdxPlayerACoin] | |
224 | - | let paPubKey58 = gameDataList[IdxPlayerAPubKey58] | |
225 | - | let winAmt = parseIntValue(gameDataList[IdxWinAmt]) | |
226 | - | let pbCoin = SelectCoinB(paCoin) | |
227 | - | let pbPubKey58 = toBase58String(i.callerPublicKey) | |
228 | - | let newGameDataStr = FormatGameDataStr(STATEWAITING, paCoin, paPubKey58, payTypeA, payAmt, winAmt, pbCoin, pbPubKey58, "") | |
229 | - | ScriptResult(WriteSet([DataEntry(gameId, newGameDataStr)]), TransferSet([ScriptTransfer(WALLETWAVESBET, ((payment.amount * FEEWAVESBET) / 100), WBET), ScriptTransfer(this, 500000, unit)])) | |
230 | - | } | |
231 | - | } | |
206 | + | let payAmt = parseIntValue(gameDataList[IdxPayAmt]) | |
207 | + | if (if ((payment.assetId != assetInfo(base58'WAVES'))) | |
208 | + | then (payment.assetId != WBET) | |
209 | + | else false) | |
210 | + | then throw("Payment should be in Wavesbet or Waves") | |
211 | + | else if (feeAssetId) | |
212 | + | then throw("Transaction's fee must be in Waves. Game aborted.") | |
213 | + | else if ((payTypeB != payTypeA)) | |
214 | + | then throw("Payment must be made in the same currency token as the bet, WBET/WBET or WAVES/WAVES.") | |
215 | + | else if ((payment.amount == payAmt)) | |
216 | + | then throw("Payout must be equal to the bet amount.") | |
217 | + | else if ((gameState != STATESUBMITTED)) | |
218 | + | then throw("Invalid game state for passed gameId") | |
219 | + | else { | |
220 | + | let paCoin = gameDataList[IdxPlayerACoin] | |
221 | + | let paPubKey58 = gameDataList[IdxPlayerAPubKey58] | |
222 | + | let winAmt = parseIntValue(gameDataList[IdxWinAmt]) | |
223 | + | let pbCoin = SelectCoinB(paCoin) | |
224 | + | let pbPubKey58 = toBase58String(i.callerPublicKey) | |
225 | + | let newGameDataStr = FormatGameDataStr(STATEWAITING, paCoin, paPubKey58, payTypeA, payAmt, winAmt, pbCoin, pbPubKey58, "") | |
226 | + | ScriptResult(WriteSet([DataEntry(gameId, newGameDataStr)]), TransferSet([ScriptTransfer(WALLETWAVESBET, ((payment.amount * FEEWAVESBET) / 100), WBET), ScriptTransfer(this, 500000, unit)])) | |
227 | + | } | |
232 | 228 | } | |
233 | 229 | ||
234 | 230 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmOlRBTYEO3H7Y9rBmoFQFn4392Px0Qw13DsdEhnzMH2cj6Y5ymPuCOLMNe5qrUzQl8oRLzIBzFVMZlwUYl2bosrOIxQbYF7WVQWvoVxET1YIgDm3NzzOLA5uH7CKO0snshmMFCDOZEew41GjKh3Pgx+nbAguP9ZQPfqSafEmC3CN/4yDsJrKriRniZJo9jS/4LLsRKwB7HAZHzoF9LL7tSZH3htaNGtbdTkxZ1TzST3Mb2VPSzsZvQDocXUVOmJOu0o29aOY+GkG/G4RCK0FBWQHEUvC51TRDS5k8jad0O1MobjQc6b18d+fuoVFdNfZwGH+uFudtPG3UJTf2mkzZQIDAQAB") | |
5 | 5 | ||
6 | 6 | let GAMESCOUNTERKEY = "$GAME_NUM" | |
7 | 7 | ||
8 | 8 | let RESERVATIONKEY = "$RESERVED_AMOUNT" | |
9 | 9 | ||
10 | 10 | let WBET = base58'23vgV9p9pD83A7CFbsDEc4zjanep7UeFo4ZRS6oGorhv' | |
11 | 11 | ||
12 | 12 | let WALLETWAVESBET = Address(base58'3N2tusqAtDctK8iSTXS6F9rimmftmSuwLUX') | |
13 | 13 | ||
14 | 14 | let WALLETMCAFFE = Address(base58'') | |
15 | 15 | ||
16 | 16 | let STATESUBMITTED = "SUBMITTED" | |
17 | 17 | ||
18 | 18 | let STATEWAITING = "WAITING" | |
19 | 19 | ||
20 | 20 | let STATEFINISHED = "FINISHED" | |
21 | 21 | ||
22 | 22 | let STATECANCELED = "CANCELED" | |
23 | 23 | ||
24 | 24 | let WAVELET = 1 | |
25 | 25 | ||
26 | 26 | let FEEWAVESBET = 4 | |
27 | 27 | ||
28 | 28 | let FEEMCAFEE = 2 | |
29 | 29 | ||
30 | 30 | let BETMIN = (1 * WAVELET) | |
31 | 31 | ||
32 | 32 | let BETMAX = ((1000 * 100) * WAVELET) | |
33 | 33 | ||
34 | 34 | let IdxGameState = 0 | |
35 | 35 | ||
36 | 36 | let IdxPlayerACoin = 1 | |
37 | 37 | ||
38 | 38 | let IdxPlayerAPubKey58 = 2 | |
39 | 39 | ||
40 | 40 | let IdxPayType = 3 | |
41 | 41 | ||
42 | 42 | let IdxPayAmt = 4 | |
43 | 43 | ||
44 | 44 | let IdxWinAmt = 5 | |
45 | 45 | ||
46 | 46 | let IdxPlayerBCoin = 6 | |
47 | 47 | ||
48 | 48 | let IdxPlayerBPubKey58 = 7 | |
49 | 49 | ||
50 | 50 | let IdxRandOrEmpty = 8 | |
51 | 51 | ||
52 | 52 | func IncrementGameNum () = { | |
53 | 53 | let gameNum = match getInteger(this, GAMESCOUNTERKEY) { | |
54 | 54 | case num: Int => | |
55 | 55 | num | |
56 | 56 | case _ => | |
57 | 57 | 0 | |
58 | 58 | } | |
59 | 59 | (gameNum + 1) | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func ValidateBetAndDefineWinAmt (playerCoin,amount) = if (if ((playerCoin != "RED")) | |
64 | 64 | then (playerCoin != "BLUE") | |
65 | 65 | else false) | |
66 | 66 | then throw("Invalid play, change your play to RED or BLUE.") | |
67 | 67 | else if (if ((BETMIN > amount)) | |
68 | 68 | then true | |
69 | 69 | else (amount > BETMAX)) | |
70 | 70 | then throw(((("Bet amount is not in range: minBet=" + toString((BETMIN / 100000000))) + " maxBet=") + toString((BETMAX / 100000000)))) | |
71 | 71 | else ((((amount * 2) / 100000) * (100 - (FEEWAVESBET + FEEMCAFEE))) / 100) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func ExtractReservedAmt () = match getInteger(this, RESERVATIONKEY) { | |
75 | 75 | case a: Int => | |
76 | 76 | a | |
77 | 77 | case _ => | |
78 | 78 | 0 | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func ValidateAndIncreaseReservedAmt (winAmt) = { | |
83 | 83 | let newReservedAmount = (ExtractReservedAmt() + winAmt) | |
84 | 84 | let balance = wavesBalance(this) | |
85 | 85 | if ((newReservedAmount > balance)) | |
86 | 86 | then throw("Insufficient funds on Waves Rider account. Transaction was rejected for your safety.") | |
87 | 87 | else newReservedAmount | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func FormatGameDataParam (p) = { | |
92 | 92 | let s = size(p) | |
93 | 93 | if ((s == 0)) | |
94 | 94 | then throw("Parameter size must be greater then 0.") | |
95 | 95 | else if ((s > 99)) | |
96 | 96 | then throw("Parameter size must be less then 100.") | |
97 | 97 | else if ((10 > s)) | |
98 | 98 | then (("0" + toString(s)) + p) | |
99 | 99 | else (toString(s) + p) | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func FormatGameDataStr (gameState,playerACoin,playerAPubKey58,payType,payAmount,winAmt,playerBCoin,playerBPubKey58,randOrEmpty) = { | |
104 | 104 | let fullStateStr = ((((((((((FormatGameDataParam(gameState) + "_") + FormatGameDataParam(playerACoin)) + "_") + FormatGameDataParam(playerAPubKey58)) + "_") + FormatGameDataParam(payType)) + "_") + FormatGameDataParam(toString(payAmount))) + "_") + FormatGameDataParam(toString(winAmt))) | |
105 | 105 | if (if (if ((playerBCoin == "")) | |
106 | 106 | then (playerBPubKey58 == "") | |
107 | 107 | else false) | |
108 | 108 | then (randOrEmpty == "") | |
109 | 109 | else false) | |
110 | 110 | then fullStateStr | |
111 | 111 | else if (if (if ((playerBCoin != "")) | |
112 | 112 | then (playerBPubKey58 != "") | |
113 | 113 | else false) | |
114 | 114 | then (randOrEmpty == "") | |
115 | 115 | else false) | |
116 | 116 | then (((fullStateStr + "_") + (FormatGameDataParam(playerBCoin) + "_")) + (FormatGameDataParam(playerBPubKey58) + "_")) | |
117 | 117 | else ((((fullStateStr + "_") + (FormatGameDataParam(playerBCoin) + "_")) + (FormatGameDataParam(playerBPubKey58) + "_")) + FormatGameDataParam(randOrEmpty)) | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func RemoveUnderscoreIfPresent (remaining) = if ((size(remaining) > 0)) | |
122 | 122 | then drop(remaining, 1) | |
123 | 123 | else remaining | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ParseNextAttribute (remaining) = { | |
127 | 127 | let s = size(remaining) | |
128 | 128 | if ((s > 0)) | |
129 | 129 | then { | |
130 | 130 | let nn = parseIntValue(take(remaining, 2)) | |
131 | 131 | let v = take(drop(remaining, 2), nn) | |
132 | 132 | let tmpRemaining = drop(remaining, (nn + 2)) | |
133 | 133 | let remainingState = RemoveUnderscoreIfPresent(tmpRemaining) | |
134 | 134 | [v, remainingState] | |
135 | 135 | } | |
136 | 136 | else throw("Empty string was passed into parseNextAttribute func") | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func ParseGameRawDataStr (rawStateStr) = { | |
141 | 141 | let gameState = ParseNextAttribute(rawStateStr) | |
142 | 142 | let playerAChoice = ParseNextAttribute(gameState[1]) | |
143 | 143 | let playerAPubKey58 = ParseNextAttribute(playerAChoice[1]) | |
144 | 144 | let playerAPayType = ParseNextAttribute(playerAPubKey58[1]) | |
145 | 145 | let playerAPayAmt = ParseNextAttribute(playerAPayType[1]) | |
146 | 146 | let winAmt = ParseNextAttribute(playerAPayAmt[1]) | |
147 | 147 | [gameState[0], playerAChoice[0], playerAPubKey58[0], playerAPayType[0], playerAPayAmt[0], winAmt[0]] | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ExtractGameDataList (gameId) = { | |
152 | 152 | let rawDataStr = match getString(this, gameId) { | |
153 | 153 | case str: String => | |
154 | 154 | str | |
155 | 155 | case _ => | |
156 | 156 | throw(("Couldn't find game by " + gameId)) | |
157 | 157 | } | |
158 | 158 | ParseGameRawDataStr(rawDataStr) | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func TypePayment (p) = if ((p.assetId == assetInfo(base58'WAVES'))) | |
163 | 163 | then "WAVES" | |
164 | 164 | else "WBET" | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func SelectCoinB (coin) = if ((coin == "RED")) | |
168 | 168 | then "BLUE" | |
169 | 169 | else "RED" | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(i) | |
173 | 173 | func playCoin (paCoin) = { | |
174 | 174 | let gameId = toBase58String(i.transactionId) | |
175 | 175 | let payment = extract(i.payment) | |
176 | 176 | let feeAssetId = isDefined(i.feeAssetId) | |
177 | 177 | let gameIdUsed = isDefined(getString(this, gameId)) | |
178 | 178 | let winAmt = ValidateBetAndDefineWinAmt(paCoin, payment.amount) | |
179 | 179 | if (if ((payment.assetId != assetInfo(base58'WAVES'))) | |
180 | 180 | then (payment.assetId != WBET) | |
181 | 181 | else false) | |
182 | 182 | then throw("Payment should be in Wavesbet or Waves") | |
183 | 183 | else if (feeAssetId) | |
184 | 184 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
185 | 185 | else if (gameIdUsed) | |
186 | 186 | then throw("Passed gameId had been used before. Game aborted.") | |
187 | 187 | else { | |
188 | 188 | let newGameNum = IncrementGameNum() | |
189 | 189 | let playerAPubKey58 = toBase58String(i.callerPublicKey) | |
190 | 190 | let payType = TypePayment(payment) | |
191 | 191 | let gameDataStr = FormatGameDataStr(STATESUBMITTED, paCoin, playerAPubKey58, payType, payment.amount, winAmt, "", "", "") | |
192 | 192 | ScriptResult(WriteSet([DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(GAMESCOUNTERKEY, newGameNum), DataEntry(gameId, gameDataStr)]), TransferSet([ScriptTransfer(WALLETWAVESBET, ((payment.amount * FEEWAVESBET) / 100), WBET), ScriptTransfer(this, 500000, unit)])) | |
193 | 193 | } | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | ||
198 | 198 | @Callable(i) | |
199 | 199 | func acceptChallenge (gameId) = { | |
200 | 200 | let payment = extract(i.payment) | |
201 | 201 | let feeAssetId = isDefined(i.feeAssetId) | |
202 | 202 | let payTypeB = TypePayment(payment) | |
203 | 203 | let gameDataList = ExtractGameDataList(gameId) | |
204 | 204 | let gameState = gameDataList[IdxGameState] | |
205 | 205 | let payTypeA = gameDataList[IdxPayType] | |
206 | - | if ((gameDataList[IdxPayAmt] != "")) | |
207 | - | then throw(gameDataList[IdxPayAmt]) | |
208 | - | else { | |
209 | - | let payAmt = parseIntValue(gameDataList[IdxPayAmt]) | |
210 | - | if (if ((payment.assetId != assetInfo(base58'WAVES'))) | |
211 | - | then (payment.assetId != WBET) | |
212 | - | else false) | |
213 | - | then throw("Payment should be in Wavesbet or Waves") | |
214 | - | else if (feeAssetId) | |
215 | - | then throw("Transaction's fee must be in Waves. Game aborted.") | |
216 | - | else if ((payTypeB != payTypeA)) | |
217 | - | then throw("Payment must be made in the same currency token as the bet, WBET/WBET or WAVES/WAVES.") | |
218 | - | else if ((payment.amount == payAmt)) | |
219 | - | then throw("Payout must be equal to the bet amount.") | |
220 | - | else if ((gameState != STATESUBMITTED)) | |
221 | - | then throw("Invalid game state for passed gameId") | |
222 | - | else { | |
223 | - | let paCoin = gameDataList[IdxPlayerACoin] | |
224 | - | let paPubKey58 = gameDataList[IdxPlayerAPubKey58] | |
225 | - | let winAmt = parseIntValue(gameDataList[IdxWinAmt]) | |
226 | - | let pbCoin = SelectCoinB(paCoin) | |
227 | - | let pbPubKey58 = toBase58String(i.callerPublicKey) | |
228 | - | let newGameDataStr = FormatGameDataStr(STATEWAITING, paCoin, paPubKey58, payTypeA, payAmt, winAmt, pbCoin, pbPubKey58, "") | |
229 | - | ScriptResult(WriteSet([DataEntry(gameId, newGameDataStr)]), TransferSet([ScriptTransfer(WALLETWAVESBET, ((payment.amount * FEEWAVESBET) / 100), WBET), ScriptTransfer(this, 500000, unit)])) | |
230 | - | } | |
231 | - | } | |
206 | + | let payAmt = parseIntValue(gameDataList[IdxPayAmt]) | |
207 | + | if (if ((payment.assetId != assetInfo(base58'WAVES'))) | |
208 | + | then (payment.assetId != WBET) | |
209 | + | else false) | |
210 | + | then throw("Payment should be in Wavesbet or Waves") | |
211 | + | else if (feeAssetId) | |
212 | + | then throw("Transaction's fee must be in Waves. Game aborted.") | |
213 | + | else if ((payTypeB != payTypeA)) | |
214 | + | then throw("Payment must be made in the same currency token as the bet, WBET/WBET or WAVES/WAVES.") | |
215 | + | else if ((payment.amount == payAmt)) | |
216 | + | then throw("Payout must be equal to the bet amount.") | |
217 | + | else if ((gameState != STATESUBMITTED)) | |
218 | + | then throw("Invalid game state for passed gameId") | |
219 | + | else { | |
220 | + | let paCoin = gameDataList[IdxPlayerACoin] | |
221 | + | let paPubKey58 = gameDataList[IdxPlayerAPubKey58] | |
222 | + | let winAmt = parseIntValue(gameDataList[IdxWinAmt]) | |
223 | + | let pbCoin = SelectCoinB(paCoin) | |
224 | + | let pbPubKey58 = toBase58String(i.callerPublicKey) | |
225 | + | let newGameDataStr = FormatGameDataStr(STATEWAITING, paCoin, paPubKey58, payTypeA, payAmt, winAmt, pbCoin, pbPubKey58, "") | |
226 | + | ScriptResult(WriteSet([DataEntry(gameId, newGameDataStr)]), TransferSet([ScriptTransfer(WALLETWAVESBET, ((payment.amount * FEEWAVESBET) / 100), WBET), ScriptTransfer(this, 500000, unit)])) | |
227 | + | } | |
232 | 228 | } | |
233 | 229 | ||
234 | 230 |
github/deemru/w8io/169f3d6 139.71 ms ◑