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