tx · BTFrBtWvzHYtY479yAPRZbLygRNLfeUswyXvqKMgS95e 3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa: -0.05000000 Waves 2019.10.25 17:16 [735748] smart account 3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa > SELF 0.00000000 Waves
{ "type": 13, "id": "BTFrBtWvzHYtY479yAPRZbLygRNLfeUswyXvqKMgS95e", "fee": 5000000, "feeAssetId": null, "timestamp": 1572012952314, "version": 1, "sender": "3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa", "senderPublicKey": "DdkgRd7YzZtSU3hXJc7sHsU7sM8nUSEwkzqZCaCTXKRe", "proofs": [ "4GeoPC8Ai8VoiBvyCGzudPw6cazu3BPZFfBjg2qA5fjLjg1Ru8CK197xG39qQkVRtKrm3ZonGbf9mZ2sdrXrrD1d" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIIARIECgIICAAAACgAAAAACVJTQVBVQkxJQwkAAlsAAAABAgAAAmtiYXNlNjQ6TFMwdExTMUNSVWRKVGlCUVZVSk1TVU1nUzBWWkxTMHRMUzFjYmsxSlNVSkpha0ZPUW1kcmNXaHJhVWM1ZHpCQ1FWRkZSa0ZCVDBOQlVUaEJUVWxKUWtOblMwTkJVVVZCYlU5c1VrSlVXVVZQTTBnM1dUbHlRbTF2UmxGY2JrWnVORE01TWxCNE1GRjNNVE5FYzJSRmFHNTZUVWd5WTJvMldUVjViVkIxUTA5TVRVNWxOWEZ5VlhwUmJEaHZVa3g2U1VKNlJsWk5XbXgzVlZsc01tSmNibTl6Y2s5SmVGRmlXVVkzVjFaUlYzWnZWbmhGVkRGWlNXZEViVE5PZW5wUFRFRTFkVWczUTB0UE1ITnVjMmh0VFVaRFJFOWFSV1YzTkRGSGFrdG9NMUJjYm1kNEsyNWlRV2QxVURsYVVWQm1jVk5oWmtWdFF6TkRUaTgwZVVSelNuSkxjbWxTYm1sYVNtODVhbE12TkV4TWMxSkxkMEkzU0VGYVNIcHZSamxNVER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Prev: 7oYnkATahz3f3xFFgZYSegXQTj3GpMZh143fq5nwxryy Next: AEkoWdcubvDZWtR6xYGXDKhzLc1ZcWQp1D23zbZjoh5E Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let RSAPUBLIC = "-----BEGIN PUBLIC KEY----- | |
5 | - | MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmOlRBTYEO3H7Y9rBmoFQ | |
6 | - | Fn4392Px0Qw13DsdEhnzMH2cj6Y5ymPuCOLMNe5qrUzQl8oRLzIBzFVMZlwUYl2b | |
7 | - | osrOIxQbYF7WVQWvoVxET1YIgDm3NzzOLA5uH7CKO0snshmMFCDOZEew41GjKh3P | |
8 | - | gx+nbAguP9ZQPfqSafEmC3CN/4yDsJrKriRniZJo9jS/4LLsRKwB7HAZHzoF9LL7 | |
9 | - | tSZH3htaNGtbdTkxZ1TzST3Mb2VPSzsZvQDocXUVOmJOu0o29aOY+GkG/G4RCK0F | |
10 | - | BWQHEUvC51TRDS5k8jad0O1MobjQc6b18d+fuoVFdNfZwGH+uFudtPG3UJTf2mkz | |
11 | - | ZQIDAQAB | |
12 | - | -----END PUBLIC KEY-----" | |
4 | + | let RSAPUBLIC = fromBase64String("base64:LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS1cbk1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbU9sUkJUWUVPM0g3WTlyQm1vRlFcbkZuNDM5MlB4MFF3MTNEc2RFaG56TUgyY2o2WTV5bVB1Q09MTU5lNXFyVXpRbDhvUkx6SUJ6RlZNWmx3VVlsMmJcbm9zck9JeFFiWUY3V1ZRV3ZvVnhFVDFZSWdEbTNOenpPTEE1dUg3Q0tPMHNuc2htTUZDRE9aRWV3NDFHaktoM1Bcbmd4K25iQWd1UDlaUVBmcVNhZkVtQzNDTi80eURzSnJLcmlSbmlaSm85alMvNExMc1JLd0I3SEFaSHpvRjlMTDdcbnRTWkgzaHRhTkd0YmRUa3haMVR6U1QzTWIyVlBTenNadlFEb2NYVVZPbUpPdTBvMjlhT1krR2tHL0c0UkNLMEZcbkJXUUhFVXZDNTFUUkRTNWs4amFkME8xTW9ialFjNmIxOGQrZnVvVkZkTmZad0dIK3VGdWR0UEczVUpUZjJta3pcblpRSURBUUFCXG4tLS0tLUVORCBQVUJMSUMgS0VZLS0tLS0=") | |
13 | 5 | ||
14 | 6 | let GAMESCOUNTERKEY = "$GAME_NUM" | |
15 | 7 | ||
154 | 146 | ||
155 | 147 | ||
156 | 148 | func GenerateRandInt (gameId,rsaSign) = { | |
157 | - | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), | |
149 | + | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), fromBase64String(rsaSign), RSAPUBLIC) | |
158 | 150 | if (rsaSigValid) | |
159 | 151 | then { | |
160 | 152 | let rand = (toInt(sha256(toBytes(rsaSign))) % 100) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let RSAPUBLIC = "-----BEGIN PUBLIC KEY----- | |
5 | - | MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmOlRBTYEO3H7Y9rBmoFQ | |
6 | - | Fn4392Px0Qw13DsdEhnzMH2cj6Y5ymPuCOLMNe5qrUzQl8oRLzIBzFVMZlwUYl2b | |
7 | - | osrOIxQbYF7WVQWvoVxET1YIgDm3NzzOLA5uH7CKO0snshmMFCDOZEew41GjKh3P | |
8 | - | gx+nbAguP9ZQPfqSafEmC3CN/4yDsJrKriRniZJo9jS/4LLsRKwB7HAZHzoF9LL7 | |
9 | - | tSZH3htaNGtbdTkxZ1TzST3Mb2VPSzsZvQDocXUVOmJOu0o29aOY+GkG/G4RCK0F | |
10 | - | BWQHEUvC51TRDS5k8jad0O1MobjQc6b18d+fuoVFdNfZwGH+uFudtPG3UJTf2mkz | |
11 | - | ZQIDAQAB | |
12 | - | -----END PUBLIC KEY-----" | |
4 | + | let RSAPUBLIC = fromBase64String("base64:LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS1cbk1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbU9sUkJUWUVPM0g3WTlyQm1vRlFcbkZuNDM5MlB4MFF3MTNEc2RFaG56TUgyY2o2WTV5bVB1Q09MTU5lNXFyVXpRbDhvUkx6SUJ6RlZNWmx3VVlsMmJcbm9zck9JeFFiWUY3V1ZRV3ZvVnhFVDFZSWdEbTNOenpPTEE1dUg3Q0tPMHNuc2htTUZDRE9aRWV3NDFHaktoM1Bcbmd4K25iQWd1UDlaUVBmcVNhZkVtQzNDTi80eURzSnJLcmlSbmlaSm85alMvNExMc1JLd0I3SEFaSHpvRjlMTDdcbnRTWkgzaHRhTkd0YmRUa3haMVR6U1QzTWIyVlBTenNadlFEb2NYVVZPbUpPdTBvMjlhT1krR2tHL0c0UkNLMEZcbkJXUUhFVXZDNTFUUkRTNWs4amFkME8xTW9ialFjNmIxOGQrZnVvVkZkTmZad0dIK3VGdWR0UEczVUpUZjJta3pcblpRSURBUUFCXG4tLS0tLUVORCBQVUJMSUMgS0VZLS0tLS0=") | |
13 | 5 | ||
14 | 6 | let GAMESCOUNTERKEY = "$GAME_NUM" | |
15 | 7 | ||
16 | 8 | let RESERVATIONKEY = "$RESERVED_AMOUNT" | |
17 | 9 | ||
18 | 10 | let WBET = base58'23vgV9p9pD83A7CFbsDEc4zjanep7UeFo4ZRS6oGorhv' | |
19 | 11 | ||
20 | 12 | let WALLETWAVESBET = Address(base58'3N2tusqAtDctK8iSTXS6F9rimmftmSuwLUX') | |
21 | 13 | ||
22 | 14 | let WALLETMCAFFE = Address(base58'') | |
23 | 15 | ||
24 | 16 | let WAVELET = ((100 * 1000) * 1000) | |
25 | 17 | ||
26 | 18 | let FEEWAVESBET = 4 | |
27 | 19 | ||
28 | 20 | let FEEMCAFEE = 2 | |
29 | 21 | ||
30 | 22 | let STATESUBMITTED = "SUBMITTED" | |
31 | 23 | ||
32 | 24 | let STATEWON = "WON" | |
33 | 25 | ||
34 | 26 | let STATELOST = "LOST" | |
35 | 27 | ||
36 | 28 | let ROLLUNDER = "UNDER" | |
37 | 29 | ||
38 | 30 | let ROLLOVER = "OVER" | |
39 | 31 | ||
40 | 32 | let BETMIN = (100 * WAVELET) | |
41 | 33 | ||
42 | 34 | let BETMAX = ((1000 * 100) * WAVELET) | |
43 | 35 | ||
44 | 36 | let PREDICTIONMIN = 4 | |
45 | 37 | ||
46 | 38 | let PREDICTIONMAX = 100 | |
47 | 39 | ||
48 | 40 | let IdxGameState = 0 | |
49 | 41 | ||
50 | 42 | let IdxPrediction = 1 | |
51 | 43 | ||
52 | 44 | let IdxRollType = 2 | |
53 | 45 | ||
54 | 46 | let IdxPlayerPubKey58 = 3 | |
55 | 47 | ||
56 | 48 | let IdxWinAmt = 4 | |
57 | 49 | ||
58 | 50 | let IdxRand = 5 | |
59 | 51 | ||
60 | 52 | func IncrementGameNum () = { | |
61 | 53 | let gameNum = match getInteger(this, GAMESCOUNTERKEY) { | |
62 | 54 | case num: Int => | |
63 | 55 | num | |
64 | 56 | case _ => | |
65 | 57 | 0 | |
66 | 58 | } | |
67 | 59 | (gameNum + 1) | |
68 | 60 | } | |
69 | 61 | ||
70 | 62 | ||
71 | 63 | func ExtractReservedAmt () = match getInteger(this, RESERVATIONKEY) { | |
72 | 64 | case a: Int => | |
73 | 65 | a | |
74 | 66 | case _ => | |
75 | 67 | 0 | |
76 | 68 | } | |
77 | 69 | ||
78 | 70 | ||
79 | 71 | func ValidateAndIncreaseReservedAmt (winAmt) = { | |
80 | 72 | let newReservedAmount = (ExtractReservedAmt() + winAmt) | |
81 | 73 | let balance = wavesBalance(this) | |
82 | 74 | if ((newReservedAmount > balance)) | |
83 | 75 | then throw("Insufficient funds on Wavesbet account. Transaction was rejected for your safety.") | |
84 | 76 | else newReservedAmount | |
85 | 77 | } | |
86 | 78 | ||
87 | 79 | ||
88 | 80 | func FormatGameDataParam (p) = { | |
89 | 81 | let s = size(p) | |
90 | 82 | if ((s == 0)) | |
91 | 83 | then throw("Parameter size must be greater then 0") | |
92 | 84 | else if ((s > 99)) | |
93 | 85 | then throw("Parameter size must be less then 100") | |
94 | 86 | else if ((10 > s)) | |
95 | 87 | then (("0" + toString(s)) + p) | |
96 | 88 | else (toString(s) + p) | |
97 | 89 | } | |
98 | 90 | ||
99 | 91 | ||
100 | 92 | func FormatGameDataStr (gameState,prediction,rollType,playerPubKey58,winAmt,rand) = { | |
101 | 93 | let fullStateStr = ((((((((FormatGameDataParam(gameState) + "_") + FormatGameDataParam(toString(prediction))) + "_") + FormatGameDataParam(rollType)) + "_") + FormatGameDataParam(playerPubKey58)) + "_") + FormatGameDataParam(toString(winAmt))) | |
102 | 94 | if ((rand == "")) | |
103 | 95 | then fullStateStr | |
104 | 96 | else ((fullStateStr + "_") + FormatGameDataParam(rand)) | |
105 | 97 | } | |
106 | 98 | ||
107 | 99 | ||
108 | 100 | func RemoveUnderscoreIfPresent (remaining) = if ((size(remaining) > 0)) | |
109 | 101 | then drop(remaining, 1) | |
110 | 102 | else remaining | |
111 | 103 | ||
112 | 104 | ||
113 | 105 | func ParseNextAttribute (remaining) = { | |
114 | 106 | let s = size(remaining) | |
115 | 107 | if ((s > 0)) | |
116 | 108 | then { | |
117 | 109 | let nn = parseIntValue(take(remaining, 2)) | |
118 | 110 | let v = take(drop(remaining, 2), nn) | |
119 | 111 | let tmpRemaining = drop(remaining, (nn + 2)) | |
120 | 112 | let remainingState = RemoveUnderscoreIfPresent(tmpRemaining) | |
121 | 113 | [v, remainingState] | |
122 | 114 | } | |
123 | 115 | else throw("Empty string was passed into parseNextAttribute func") | |
124 | 116 | } | |
125 | 117 | ||
126 | 118 | ||
127 | 119 | func ParseGameRawDataStr (rawStateStr) = { | |
128 | 120 | let gameState = ParseNextAttribute(rawStateStr) | |
129 | 121 | let prediction = ParseNextAttribute(gameState[1]) | |
130 | 122 | let rollType = ParseNextAttribute(prediction[1]) | |
131 | 123 | let playerPubKey58 = ParseNextAttribute(rollType[1]) | |
132 | 124 | let winAmt = ParseNextAttribute(playerPubKey58[1]) | |
133 | 125 | [gameState[0], prediction[0], rollType[0], playerPubKey58[0], winAmt[0]] | |
134 | 126 | } | |
135 | 127 | ||
136 | 128 | ||
137 | 129 | func ExtractGameDataList (gameId) = { | |
138 | 130 | let rawDataStr = match getString(this, gameId) { | |
139 | 131 | case str: String => | |
140 | 132 | str | |
141 | 133 | case _ => | |
142 | 134 | throw(("Couldn't find game by " + gameId)) | |
143 | 135 | } | |
144 | 136 | ParseGameRawDataStr(rawDataStr) | |
145 | 137 | } | |
146 | 138 | ||
147 | 139 | ||
148 | 140 | func DecreaseReservedAmt (gameId,winAmt) = { | |
149 | 141 | let newReservedAmount = (ExtractReservedAmt() - winAmt) | |
150 | 142 | if ((0 > newReservedAmount)) | |
151 | 143 | then throw("Invalid Dice Roller account state - reserved amount is less than 0") | |
152 | 144 | else DataEntry(RESERVATIONKEY, newReservedAmount) | |
153 | 145 | } | |
154 | 146 | ||
155 | 147 | ||
156 | 148 | func GenerateRandInt (gameId,rsaSign) = { | |
157 | - | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), | |
149 | + | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), fromBase64String(rsaSign), RSAPUBLIC) | |
158 | 150 | if (rsaSigValid) | |
159 | 151 | then { | |
160 | 152 | let rand = (toInt(sha256(toBytes(rsaSign))) % 100) | |
161 | 153 | if ((0 > rand)) | |
162 | 154 | then ((-1 * rand) + 1) | |
163 | 155 | else (rand + 1) | |
164 | 156 | } | |
165 | 157 | else throw("Invalid RSA signature") | |
166 | 158 | } | |
167 | 159 | ||
168 | 160 | ||
169 | 161 | func RandToStr (r) = if (if ((r >= 1)) | |
170 | 162 | then (100 >= r) | |
171 | 163 | else false) | |
172 | 164 | then toString(r) | |
173 | 165 | else throw(("Unsupported r parameter passed: expected=[1,...,100] actual=" + toString(r))) | |
174 | 166 | ||
175 | 167 | ||
176 | 168 | func WinScriptSet (gameId,playerAddress,winAmt,newGameDataStr) = { | |
177 | 169 | let tSetCommonData = [ScriptTransfer(playerAddress, winAmt, WBET)] | |
178 | 170 | let writeDicePlay = WriteSet([DataEntry("Game Id", gameId), DataEntry("Player Address", toString(playerAddress))]) | |
179 | 171 | ScriptResult(writeDicePlay, TransferSet(tSetCommonData)) | |
180 | 172 | } | |
181 | 173 | ||
182 | 174 | ||
183 | 175 | func Multiplier (prediction,rollType) = if ((rollType == ROLLUNDER)) | |
184 | 176 | then if ((prediction == 1)) | |
185 | 177 | then 9850000 | |
186 | 178 | else if ((prediction == 2)) | |
187 | 179 | then 4925000 | |
188 | 180 | else if ((prediction == 3)) | |
189 | 181 | then 3283330 | |
190 | 182 | else if ((prediction == 4)) | |
191 | 183 | then 2462500 | |
192 | 184 | else if ((prediction == 5)) | |
193 | 185 | then 1970000 | |
194 | 186 | else if ((prediction == 6)) | |
195 | 187 | then 1641660 | |
196 | 188 | else if ((prediction == 7)) | |
197 | 189 | then 1407140 | |
198 | 190 | else if ((prediction == 8)) | |
199 | 191 | then 1231250 | |
200 | 192 | else if ((prediction == 9)) | |
201 | 193 | then 1094440 | |
202 | 194 | else if ((prediction == 10)) | |
203 | 195 | then 985000 | |
204 | 196 | else if ((prediction == 11)) | |
205 | 197 | then 895450 | |
206 | 198 | else if ((prediction == 12)) | |
207 | 199 | then 820830 | |
208 | 200 | else if ((prediction == 13)) | |
209 | 201 | then 757690 | |
210 | 202 | else if ((prediction == 14)) | |
211 | 203 | then 703570 | |
212 | 204 | else if ((prediction == 15)) | |
213 | 205 | then 656660 | |
214 | 206 | else if ((prediction == 16)) | |
215 | 207 | then 615620 | |
216 | 208 | else if ((prediction == 17)) | |
217 | 209 | then 579410 | |
218 | 210 | else if ((prediction == 18)) | |
219 | 211 | then 547220 | |
220 | 212 | else if ((prediction == 19)) | |
221 | 213 | then 518420 | |
222 | 214 | else if ((prediction == 20)) | |
223 | 215 | then 492500 | |
224 | 216 | else if ((prediction == 21)) | |
225 | 217 | then 469040 | |
226 | 218 | else if ((prediction == 22)) | |
227 | 219 | then 447720 | |
228 | 220 | else if ((prediction == 23)) | |
229 | 221 | then 428260 | |
230 | 222 | else if ((prediction == 24)) | |
231 | 223 | then 410410 | |
232 | 224 | else if ((prediction == 25)) | |
233 | 225 | then 394000 | |
234 | 226 | else if ((prediction == 26)) | |
235 | 227 | then 378840 | |
236 | 228 | else if ((prediction == 27)) | |
237 | 229 | then 364810 | |
238 | 230 | else if ((prediction == 28)) | |
239 | 231 | then 351780 | |
240 | 232 | else if ((prediction == 29)) | |
241 | 233 | then 339650 | |
242 | 234 | else if ((prediction == 30)) | |
243 | 235 | then 328330 | |
244 | 236 | else if ((prediction == 31)) | |
245 | 237 | then 317740 | |
246 | 238 | else if ((prediction == 32)) | |
247 | 239 | then 307810 | |
248 | 240 | else if ((prediction == 33)) | |
249 | 241 | then 298480 | |
250 | 242 | else if ((prediction == 34)) | |
251 | 243 | then 289700 | |
252 | 244 | else if ((prediction == 35)) | |
253 | 245 | then 281420 | |
254 | 246 | else if ((prediction == 36)) | |
255 | 247 | then 273610 | |
256 | 248 | else if ((prediction == 37)) | |
257 | 249 | then 259210 | |
258 | 250 | else if ((prediction == 38)) | |
259 | 251 | then 259210 | |
260 | 252 | else if ((prediction == 39)) | |
261 | 253 | then 252560 | |
262 | 254 | else if ((prediction == 40)) | |
263 | 255 | then 246250 | |
264 | 256 | else if ((prediction == 41)) | |
265 | 257 | then 240240 | |
266 | 258 | else if ((prediction == 42)) | |
267 | 259 | then 234520 | |
268 | 260 | else if ((prediction == 43)) | |
269 | 261 | then 229060 | |
270 | 262 | else if ((prediction == 44)) | |
271 | 263 | then 223860 | |
272 | 264 | else if ((prediction == 45)) | |
273 | 265 | then 218880 | |
274 | 266 | else if ((prediction == 46)) | |
275 | 267 | then 214130 | |
276 | 268 | else if ((prediction == 47)) | |
277 | 269 | then 209570 | |
278 | 270 | else if ((prediction == 48)) | |
279 | 271 | then 205200 | |
280 | 272 | else if ((prediction == 49)) | |
281 | 273 | then 201020 | |
282 | 274 | else if ((prediction == 50)) | |
283 | 275 | then 197000 | |
284 | 276 | else if ((prediction == 51)) | |
285 | 277 | then 193130 | |
286 | 278 | else if ((prediction == 52)) | |
287 | 279 | then 189420 | |
288 | 280 | else if ((prediction == 53)) | |
289 | 281 | then 185840 | |
290 | 282 | else if ((prediction == 54)) | |
291 | 283 | then 182400 | |
292 | 284 | else if ((prediction == 55)) | |
293 | 285 | then 179090 | |
294 | 286 | else if ((prediction == 56)) | |
295 | 287 | then 175890 | |
296 | 288 | else if ((prediction == 57)) | |
297 | 289 | then 172800 | |
298 | 290 | else if ((prediction == 58)) | |
299 | 291 | then 169820 | |
300 | 292 | else if ((prediction == 59)) | |
301 | 293 | then 166940 | |
302 | 294 | else if ((prediction == 60)) | |
303 | 295 | then 164160 | |
304 | 296 | else if ((prediction == 61)) | |
305 | 297 | then 161470 | |
306 | 298 | else if ((prediction == 62)) | |
307 | 299 | then 158870 | |
308 | 300 | else if ((prediction == 63)) | |
309 | 301 | then 156340 | |
310 | 302 | else if ((prediction == 64)) | |
311 | 303 | then 153900 | |
312 | 304 | else if ((prediction == 65)) | |
313 | 305 | then 151530 | |
314 | 306 | else if ((prediction == 66)) | |
315 | 307 | then 149240 | |
316 | 308 | else if ((prediction == 67)) | |
317 | 309 | then 147010 | |
318 | 310 | else if ((prediction == 68)) | |
319 | 311 | then 144850 | |
320 | 312 | else if ((prediction == 69)) | |
321 | 313 | then 142750 | |
322 | 314 | else if ((prediction == 70)) | |
323 | 315 | then 140710 | |
324 | 316 | else if ((prediction == 71)) | |
325 | 317 | then 138730 | |
326 | 318 | else if ((prediction == 72)) | |
327 | 319 | then 136800 | |
328 | 320 | else if ((prediction == 73)) | |
329 | 321 | then 134930 | |
330 | 322 | else if ((prediction == 74)) | |
331 | 323 | then 133100 | |
332 | 324 | else if ((prediction == 75)) | |
333 | 325 | then 131330 | |
334 | 326 | else if ((prediction == 76)) | |
335 | 327 | then 129600 | |
336 | 328 | else if ((prediction == 77)) | |
337 | 329 | then 127920 | |
338 | 330 | else if ((prediction == 78)) | |
339 | 331 | then 126280 | |
340 | 332 | else if ((prediction == 79)) | |
341 | 333 | then 124680 | |
342 | 334 | else if ((prediction == 80)) | |
343 | 335 | then 123120 | |
344 | 336 | else if ((prediction == 81)) | |
345 | 337 | then 121600 | |
346 | 338 | else if ((prediction == 82)) | |
347 | 339 | then 120120 | |
348 | 340 | else if ((prediction == 83)) | |
349 | 341 | then 118670 | |
350 | 342 | else if ((prediction == 84)) | |
351 | 343 | then 117260 | |
352 | 344 | else if ((prediction == 85)) | |
353 | 345 | then 115880 | |
354 | 346 | else if ((prediction == 86)) | |
355 | 347 | then 114530 | |
356 | 348 | else if ((prediction == 87)) | |
357 | 349 | then 113210 | |
358 | 350 | else if ((prediction == 88)) | |
359 | 351 | then 111930 | |
360 | 352 | else if ((prediction == 89)) | |
361 | 353 | then 110670 | |
362 | 354 | else if ((prediction == 90)) | |
363 | 355 | then 109440 | |
364 | 356 | else if ((prediction == 91)) | |
365 | 357 | then 108240 | |
366 | 358 | else if ((prediction == 92)) | |
367 | 359 | then 107060 | |
368 | 360 | else if ((prediction == 93)) | |
369 | 361 | then 105910 | |
370 | 362 | else if ((prediction == 94)) | |
371 | 363 | then 104780 | |
372 | 364 | else if ((prediction == 95)) | |
373 | 365 | then 103680 | |
374 | 366 | else if ((prediction == 96)) | |
375 | 367 | then 103680 | |
376 | 368 | else 100000 | |
377 | 369 | else if ((rollType == ROLLOVER)) | |
378 | 370 | then if ((prediction == 4)) | |
379 | 371 | then 103680 | |
380 | 372 | else if ((prediction == 5)) | |
381 | 373 | then 103680 | |
382 | 374 | else if ((prediction == 6)) | |
383 | 375 | then 104780 | |
384 | 376 | else if ((prediction == 7)) | |
385 | 377 | then 105910 | |
386 | 378 | else if ((prediction == 8)) | |
387 | 379 | then 107060 | |
388 | 380 | else if ((prediction == 9)) | |
389 | 381 | then 108240 | |
390 | 382 | else if ((prediction == 10)) | |
391 | 383 | then 109440 | |
392 | 384 | else if ((prediction == 11)) | |
393 | 385 | then 110670 | |
394 | 386 | else if ((prediction == 12)) | |
395 | 387 | then 111930 | |
396 | 388 | else if ((prediction == 13)) | |
397 | 389 | then 113210 | |
398 | 390 | else if ((prediction == 14)) | |
399 | 391 | then 114530 | |
400 | 392 | else if ((prediction == 15)) | |
401 | 393 | then 115880 | |
402 | 394 | else if ((prediction == 16)) | |
403 | 395 | then 117260 | |
404 | 396 | else if ((prediction == 17)) | |
405 | 397 | then 118670 | |
406 | 398 | else if ((prediction == 18)) | |
407 | 399 | then 120120 | |
408 | 400 | else if ((prediction == 19)) | |
409 | 401 | then 121600 | |
410 | 402 | else if ((prediction == 20)) | |
411 | 403 | then 123120 | |
412 | 404 | else if ((prediction == 21)) | |
413 | 405 | then 124680 | |
414 | 406 | else if ((prediction == 22)) | |
415 | 407 | then 126280 | |
416 | 408 | else if ((prediction == 23)) | |
417 | 409 | then 127920 | |
418 | 410 | else if ((prediction == 24)) | |
419 | 411 | then 129600 | |
420 | 412 | else if ((prediction == 25)) | |
421 | 413 | then 131330 | |
422 | 414 | else if ((prediction == 26)) | |
423 | 415 | then 133100 | |
424 | 416 | else if ((prediction == 27)) | |
425 | 417 | then 134930 | |
426 | 418 | else if ((prediction == 28)) | |
427 | 419 | then 136800 | |
428 | 420 | else if ((prediction == 29)) | |
429 | 421 | then 138730 | |
430 | 422 | else if ((prediction == 30)) | |
431 | 423 | then 140710 | |
432 | 424 | else if ((prediction == 31)) | |
433 | 425 | then 142750 | |
434 | 426 | else if ((prediction == 32)) | |
435 | 427 | then 144850 | |
436 | 428 | else if ((prediction == 33)) | |
437 | 429 | then 147010 | |
438 | 430 | else if ((prediction == 34)) | |
439 | 431 | then 149240 | |
440 | 432 | else if ((prediction == 35)) | |
441 | 433 | then 151530 | |
442 | 434 | else if ((prediction == 36)) | |
443 | 435 | then 153900 | |
444 | 436 | else if ((prediction == 37)) | |
445 | 437 | then 156340 | |
446 | 438 | else if ((prediction == 38)) | |
447 | 439 | then 158870 | |
448 | 440 | else if ((prediction == 39)) | |
449 | 441 | then 161470 | |
450 | 442 | else if ((prediction == 40)) | |
451 | 443 | then 164160 | |
452 | 444 | else if ((prediction == 41)) | |
453 | 445 | then 166940 | |
454 | 446 | else if ((prediction == 42)) | |
455 | 447 | then 169820 | |
456 | 448 | else if ((prediction == 43)) | |
457 | 449 | then 172800 | |
458 | 450 | else if ((prediction == 44)) | |
459 | 451 | then 175890 | |
460 | 452 | else if ((prediction == 45)) | |
461 | 453 | then 179090 | |
462 | 454 | else if ((prediction == 46)) | |
463 | 455 | then 185840 | |
464 | 456 | else if ((prediction == 47)) | |
465 | 457 | then 185840 | |
466 | 458 | else if ((prediction == 48)) | |
467 | 459 | then 189420 | |
468 | 460 | else if ((prediction == 49)) | |
469 | 461 | then 193130 | |
470 | 462 | else if ((prediction == 50)) | |
471 | 463 | then 197000 | |
472 | 464 | else if ((prediction == 51)) | |
473 | 465 | then 201020 | |
474 | 466 | else if ((prediction == 52)) | |
475 | 467 | then 205200 | |
476 | 468 | else if ((prediction == 53)) | |
477 | 469 | then 209570 | |
478 | 470 | else if ((prediction == 54)) | |
479 | 471 | then 214130 | |
480 | 472 | else if ((prediction == 55)) | |
481 | 473 | then 218880 | |
482 | 474 | else if ((prediction == 56)) | |
483 | 475 | then 223860 | |
484 | 476 | else if ((prediction == 57)) | |
485 | 477 | then 229060 | |
486 | 478 | else if ((prediction == 58)) | |
487 | 479 | then 234520 | |
488 | 480 | else if ((prediction == 59)) | |
489 | 481 | then 240240 | |
490 | 482 | else if ((prediction == 60)) | |
491 | 483 | then 246250 | |
492 | 484 | else if ((prediction == 61)) | |
493 | 485 | then 252560 | |
494 | 486 | else if ((prediction == 62)) | |
495 | 487 | then 259210 | |
496 | 488 | else if ((prediction == 63)) | |
497 | 489 | then 259210 | |
498 | 490 | else if ((prediction == 64)) | |
499 | 491 | then 273610 | |
500 | 492 | else if ((prediction == 65)) | |
501 | 493 | then 281420 | |
502 | 494 | else if ((prediction == 66)) | |
503 | 495 | then 289700 | |
504 | 496 | else if ((prediction == 67)) | |
505 | 497 | then 298480 | |
506 | 498 | else if ((prediction == 68)) | |
507 | 499 | then 307810 | |
508 | 500 | else if ((prediction == 69)) | |
509 | 501 | then 317740 | |
510 | 502 | else if ((prediction == 70)) | |
511 | 503 | then 328330 | |
512 | 504 | else if ((prediction == 71)) | |
513 | 505 | then 339650 | |
514 | 506 | else if ((prediction == 72)) | |
515 | 507 | then 351780 | |
516 | 508 | else if ((prediction == 73)) | |
517 | 509 | then 364810 | |
518 | 510 | else if ((prediction == 74)) | |
519 | 511 | then 378840 | |
520 | 512 | else if ((prediction == 75)) | |
521 | 513 | then 394000 | |
522 | 514 | else if ((prediction == 76)) | |
523 | 515 | then 410410 | |
524 | 516 | else if ((prediction == 77)) | |
525 | 517 | then 428260 | |
526 | 518 | else if ((prediction == 78)) | |
527 | 519 | then 447720 | |
528 | 520 | else if ((prediction == 79)) | |
529 | 521 | then 469040 | |
530 | 522 | else if ((prediction == 80)) | |
531 | 523 | then 492500 | |
532 | 524 | else if ((prediction == 81)) | |
533 | 525 | then 518420 | |
534 | 526 | else if ((prediction == 82)) | |
535 | 527 | then 547220 | |
536 | 528 | else if ((prediction == 83)) | |
537 | 529 | then 579410 | |
538 | 530 | else if ((prediction == 84)) | |
539 | 531 | then 615620 | |
540 | 532 | else if ((prediction == 85)) | |
541 | 533 | then 656660 | |
542 | 534 | else if ((prediction == 86)) | |
543 | 535 | then 703570 | |
544 | 536 | else if ((prediction == 87)) | |
545 | 537 | then 757690 | |
546 | 538 | else if ((prediction == 88)) | |
547 | 539 | then 820830 | |
548 | 540 | else if ((prediction == 89)) | |
549 | 541 | then 895450 | |
550 | 542 | else if ((prediction == 90)) | |
551 | 543 | then 985000 | |
552 | 544 | else if ((prediction == 91)) | |
553 | 545 | then 1094440 | |
554 | 546 | else if ((prediction == 92)) | |
555 | 547 | then 1231250 | |
556 | 548 | else if ((prediction == 93)) | |
557 | 549 | then 1407140 | |
558 | 550 | else if ((prediction == 94)) | |
559 | 551 | then 1641660 | |
560 | 552 | else if ((prediction == 95)) | |
561 | 553 | then 1970000 | |
562 | 554 | else if ((prediction == 96)) | |
563 | 555 | then 2462500 | |
564 | 556 | else if ((prediction == 97)) | |
565 | 557 | then 3283330 | |
566 | 558 | else if ((prediction == 98)) | |
567 | 559 | then 4925000 | |
568 | 560 | else if ((prediction == 99)) | |
569 | 561 | then 9850000 | |
570 | 562 | else 100000 | |
571 | 563 | else 100000 | |
572 | 564 | ||
573 | 565 | ||
574 | 566 | func diceWin (rollType,prediction,rand) = if ((rollType == ROLLUNDER)) | |
575 | 567 | then if ((prediction >= rand)) | |
576 | 568 | then true | |
577 | 569 | else false | |
578 | 570 | else if ((rollType == ROLLOVER)) | |
579 | 571 | then if ((rand >= prediction)) | |
580 | 572 | then true | |
581 | 573 | else false | |
582 | 574 | else false | |
583 | 575 | ||
584 | 576 | ||
585 | 577 | func ValidateBetAndDefineWinAmt (amount,prediction,rollType) = if (if ((BETMIN > amount)) | |
586 | 578 | then true | |
587 | 579 | else (amount > BETMAX)) | |
588 | 580 | then throw(((("Bet amount is not in range: minBet=" + toString((BETMIN / 100000000))) + " maxBet=") + toString((BETMAX / 100000000)))) | |
589 | 581 | else if (if ((rollType != ROLLUNDER)) | |
590 | 582 | then (rollType != ROLLOVER) | |
591 | 583 | else false) | |
592 | 584 | then throw("Invalid Roll type, try with OVER or UNDER") | |
593 | 585 | else if (if ((PREDICTIONMIN > prediction)) | |
594 | 586 | then true | |
595 | 587 | else (prediction > PREDICTIONMAX)) | |
596 | 588 | then throw(((("Prediction is out of the condition: " + toString(PREDICTIONMIN)) + " <= predction <= ") + toString(PREDICTIONMAX))) | |
597 | 589 | else { | |
598 | 590 | let multi = Multiplier(prediction, rollType) | |
599 | 591 | ((((amount * multi) / 100000) * (100 - (FEEWAVESBET + FEEMCAFEE))) / 100) | |
600 | 592 | } | |
601 | 593 | ||
602 | 594 | ||
603 | 595 | @Callable(i) | |
604 | 596 | func playDice (rollType,prediction) = { | |
605 | 597 | let gameId = toBase58String(i.transactionId) | |
606 | 598 | let gameIdUsed = isDefined(getString(this, gameId)) | |
607 | 599 | let payment = extract(i.payment) | |
608 | 600 | let feeAssetId = isDefined(i.feeAssetId) | |
609 | 601 | let winAmt = ValidateBetAndDefineWinAmt(payment.amount, prediction, rollType) | |
610 | 602 | let playerBalance = wavesBalance(i.caller) | |
611 | 603 | if ((100000 > playerBalance)) | |
612 | 604 | then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.") | |
613 | 605 | else if ((payment.assetId != WBET)) | |
614 | 606 | then throw("Bet amount must be in Wbet. Game aborted.") | |
615 | 607 | else if (feeAssetId) | |
616 | 608 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
617 | 609 | else if (gameIdUsed) | |
618 | 610 | then throw("Passed gameId had been used before. Game aborted.") | |
619 | 611 | else { | |
620 | 612 | let newGameNum = IncrementGameNum() | |
621 | 613 | let playerPubKey58 = toBase58String(i.callerPublicKey) | |
622 | 614 | let gameDataStr = FormatGameDataStr(STATESUBMITTED, prediction, rollType, playerPubKey58, winAmt, "") | |
623 | 615 | ScriptResult(WriteSet([DataEntry(GAMESCOUNTERKEY, newGameNum), DataEntry(gameId, gameDataStr)]), TransferSet([ScriptTransfer(WALLETWAVESBET, ((payment.amount * FEEWAVESBET) / 100), WBET), ScriptTransfer(this, 500000, unit)])) | |
624 | 616 | } | |
625 | 617 | } | |
626 | 618 | ||
627 | 619 | ||
628 | 620 | ||
629 | 621 | @Callable(i) | |
630 | 622 | func withdraw (gameId,rsaSign) = { | |
631 | 623 | let gameDataList = ExtractGameDataList(gameId) | |
632 | 624 | let gameState = gameDataList[IdxGameState] | |
633 | 625 | let predction = parseIntValue(gameDataList[IdxPrediction]) | |
634 | 626 | let rollType = gameDataList[IdxRollType] | |
635 | 627 | let playerPubKey58 = gameDataList[IdxPlayerPubKey58] | |
636 | 628 | let winAmt = parseIntValue(gameDataList[IdxWinAmt]) | |
637 | 629 | let playerAddress = addressFromPublicKey(fromBase58String(playerPubKey58)) | |
638 | 630 | if ((gameState != STATESUBMITTED)) | |
639 | 631 | then throw("Invalid game state for passed gameId. Game aborted.") | |
640 | 632 | else { | |
641 | 633 | let rand = GenerateRandInt(gameId, rsaSign) | |
642 | 634 | let randStr = RandToStr(rand) | |
643 | 635 | if (diceWin(rollType, predction, rand)) | |
644 | 636 | then { | |
645 | 637 | let newGameDataStr = FormatGameDataStr(STATEWON, predction, rollType, playerPubKey58, winAmt, randStr) | |
646 | 638 | WinScriptSet(gameId, playerAddress, winAmt, newGameDataStr) | |
647 | 639 | } | |
648 | 640 | else { | |
649 | 641 | let newGameDataStr = FormatGameDataStr(STATELOST, predction, rollType, playerPubKey58, winAmt, randStr) | |
650 | 642 | WriteSet([DataEntry(gameId, newGameDataStr)]) | |
651 | 643 | } | |
652 | 644 | } | |
653 | 645 | } | |
654 | 646 | ||
655 | 647 |
github/deemru/w8io/169f3d6 96.15 ms ◑