tx · 94KY6LsrFkzfwhspLPpuRLbpoBv8U7oQtXDhXGfPa81i 3MqkCH2bxNpe9PqXY5WP3HYAD8S7LJs7KbK: -0.01401000 Waves 2021.06.03 14:25 [1554303] smart account 3MqkCH2bxNpe9PqXY5WP3HYAD8S7LJs7KbK > SELF 0.00000000 Waves
{ "type": 13, "id": "94KY6LsrFkzfwhspLPpuRLbpoBv8U7oQtXDhXGfPa81i", "fee": 1401000, "feeAssetId": null, "timestamp": 1622730352265, "version": 2, "chainId": 84, "sender": "3MqkCH2bxNpe9PqXY5WP3HYAD8S7LJs7KbK", "senderPublicKey": "AN4MpPP69eUoXBNDezAU1WiBE9X2oVfoN8T7XeyRxiKt", "proofs": [ "2Nb36Atotq9UaaQVMbpDwdmhpix6GAcL9QMjaKB3H8nAKBH2DyB9D749LrhSnbRupN5f25oY3JG3XZywKvM6zvTs" ], "script": "base64:AAIEAAAAAAAAABAIAhIFCgMIAQESBQoDAQEIAAAADwAAAAAJR0FNRVNUQVJUAAAAAAAAAAAAAAAAAA5HQU1FSU5QUk9HUkVTUwAAAAAAAAAAAQAAAAAMR0FNRUZJTklTSEVEAAAAAAAAAAACAAAAABZCTE9DS1RPUFJPQ0VTU0ZPUlRIUk9XAAAAAAAAAAABAAAAAAtQQVNTTElORUJFVAIAAAALUEFTU0xJTkVCRVQAAAAAD0RPTlRQQVNTTElORUJFVAIAAAAPRE9OVFBBU1NMSU5FQkVUAAAAAAdDT01FQkVUAgAAAAdDT01FQkVUAAAAAAtET05UQ09NRUJFVAIAAAALRE9OVENPTUVCRVQAAAAACEZJRUxEQkVUAgAAAAhGSUVMREJFVAAAAAAHT0REU0JFVAIAAAAHT0REU0JFVAAAAAAKQklHNk9SOEJFVAIAAAAKQklHNk9SOEJFVAAAAAALUExBQ0VCRVRCVVkCAAAAC1BMQUNFQkVUQlVZAAAAAAxQTEFDRUJFVExPU0UCAAAADFBMQUNFQkVUTE9TRQAAAAALUExBQ0VCRVRMQVkCAAAAC1BMQUNFQk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AABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXna39BH", "height": 1554303, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HbQfmbW7bhDhHHzrgkAdbRjuJSHa56gnSN4Vuu9QaJZb Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let GAMESTART = 0 | |
5 | 5 | ||
6 | 6 | let GAMEINPROGRESS = 1 | |
7 | 7 | ||
8 | 8 | let GAMEFINISHED = 2 | |
9 | 9 | ||
10 | 10 | let BLOCKTOPROCESSFORTHROW = 1 | |
11 | 11 | ||
12 | 12 | let PASSLINEBET = "PASSLINEBET" | |
13 | 13 | ||
14 | 14 | let DONTPASSLINEBET = "DONTPASSLINEBET" | |
15 | 15 | ||
16 | 16 | let COMEBET = "COMEBET" | |
17 | 17 | ||
18 | 18 | let DONTCOMEBET = "DONTCOMEBET" | |
19 | 19 | ||
20 | 20 | let FIELDBET = "FIELDBET" | |
21 | 21 | ||
22 | 22 | let ODDSBET = "ODDSBET" | |
23 | 23 | ||
24 | 24 | let BIG6OR8BET = "BIG6OR8BET" | |
25 | 25 | ||
26 | 26 | let PLACEBETBUY = "PLACEBETBUY" | |
27 | 27 | ||
28 | 28 | let PLACEBETLOSE = "PLACEBETLOSE" | |
29 | 29 | ||
30 | 30 | let PLACEBETLAY = "PLACEBETLAY" | |
31 | 31 | ||
32 | 32 | let PLACEBETWIN = "PLACEBETWIN" | |
33 | 33 | ||
34 | 34 | @Callable(i) | |
35 | 35 | func getWinningAmount (betDetails,resultOfRound,round) = { | |
36 | 36 | let betType = split(betDetails, "_")[2] | |
37 | 37 | let odd = value(parseInt(split(betDetails, "_")[5])) | |
38 | 38 | let amount = value(parseInt(split(betDetails, "_")[1])) | |
39 | 39 | if ((betType == FIELDBET)) | |
40 | 40 | then if ((resultOfRound == 12)) | |
41 | 41 | then [IntegerEntry("price", (amount * 4))] | |
42 | 42 | else if ((resultOfRound == 2)) | |
43 | 43 | then [IntegerEntry("price", (amount * 3))] | |
44 | 44 | else if (if (if (if ((resultOfRound == 5)) | |
45 | 45 | then true | |
46 | 46 | else (resultOfRound == 6)) | |
47 | 47 | then true | |
48 | 48 | else (resultOfRound == 7)) | |
49 | 49 | then true | |
50 | 50 | else (resultOfRound == 8)) | |
51 | 51 | then [IntegerEntry("price", 0)] | |
52 | 52 | else [IntegerEntry("price", (amount * 2))] | |
53 | 53 | else if ((betType == ODDSBET)) | |
54 | 54 | then if (if ((odd == 4)) | |
55 | 55 | then true | |
56 | 56 | else (odd == 10)) | |
57 | 57 | then [IntegerEntry("price", (amount * 7))] | |
58 | 58 | else if (if ((odd == 5)) | |
59 | 59 | then true | |
60 | 60 | else (odd == 8)) | |
61 | 61 | then [IntegerEntry("price", (amount * 9))] | |
62 | 62 | else if (if ((odd == 3)) | |
63 | 63 | then true | |
64 | 64 | else (odd == 11)) | |
65 | 65 | then [IntegerEntry("price", (amount * 15))] | |
66 | 66 | else if (if ((odd == 2)) | |
67 | 67 | then true | |
68 | 68 | else (odd == 12)) | |
69 | 69 | then [IntegerEntry("price", (amount * 30))] | |
70 | 70 | else if (if ((odd == 10)) | |
71 | 71 | then true | |
72 | 72 | else (odd == 4)) | |
73 | 73 | then [IntegerEntry("price", (amount * 30))] | |
74 | 74 | else if ((odd == 7)) | |
75 | 75 | then [IntegerEntry("price", (amount * 4))] | |
76 | 76 | else if (if ((odd == 100)) | |
77 | 77 | then if (if ((resultOfRound == 3)) | |
78 | 78 | then true | |
79 | 79 | else (resultOfRound == 12)) | |
80 | 80 | then true | |
81 | 81 | else (resultOfRound == 2) | |
82 | 82 | else false) | |
83 | 83 | then [IntegerEntry("price", (amount * 7))] | |
84 | 84 | else [IntegerEntry("price", 0)] | |
85 | 85 | else if ((betType == BIG6OR8BET)) | |
86 | 86 | then if (if ((resultOfRound == 6)) | |
87 | 87 | then true | |
88 | 88 | else (resultOfRound == 8)) | |
89 | 89 | then [IntegerEntry("price", (amount * 2))] | |
90 | 90 | else [IntegerEntry("price", 0)] | |
91 | 91 | else if (if ((betType == PLACEBETLAY)) | |
92 | 92 | then true | |
93 | 93 | else (betType == PLACEBETLOSE)) | |
94 | 94 | then if ((resultOfRound == 7)) | |
95 | 95 | then [IntegerEntry("price", (amount * 2))] | |
96 | 96 | else if ((resultOfRound == odd)) | |
97 | 97 | then [IntegerEntry("price", 0)] | |
98 | 98 | else [IntegerEntry("price", -1)] | |
99 | 99 | else if (if ((betType == PLACEBETBUY)) | |
100 | 100 | then true | |
101 | 101 | else (betType == PLACEBETWIN)) | |
102 | 102 | then if ((resultOfRound == 7)) | |
103 | 103 | then [IntegerEntry("price", 0)] | |
104 | 104 | else if ((resultOfRound == odd)) | |
105 | 105 | then [IntegerEntry("price", 2)] | |
106 | 106 | else [IntegerEntry("price", -1)] | |
107 | 107 | else if ((betType == COMEBET)) | |
108 | 108 | then { | |
109 | 109 | let playerPoint = value(parseInt(split(betDetails, "_")[6])) | |
110 | 110 | if ((round == 2)) | |
111 | 111 | then if (if ((resultOfRound == 7)) | |
112 | 112 | then true | |
113 | 113 | else (resultOfRound == 11)) | |
114 | 114 | then [IntegerEntry("price", (amount * 2))] | |
115 | 115 | else if (if (if ((resultOfRound == 2)) | |
116 | 116 | then true | |
117 | 117 | else (resultOfRound == 12)) | |
118 | 118 | then true | |
119 | 119 | else (resultOfRound == 3)) | |
120 | 120 | then [IntegerEntry("price", 0)] | |
121 | 121 | else if ((resultOfRound == playerPoint)) | |
122 | 122 | then [IntegerEntry("price", (amount * 2))] | |
123 | 123 | else [IntegerEntry("price", -1)] | |
124 | 124 | else if ((round > 2)) | |
125 | 125 | then if ((resultOfRound == 7)) | |
126 | 126 | then [IntegerEntry("price", 0)] | |
127 | 127 | else if ((resultOfRound == playerPoint)) | |
128 | 128 | then [IntegerEntry("price", (amount * 2))] | |
129 | 129 | else [IntegerEntry("price", -1)] | |
130 | 130 | else throw("Not Allow in The Beginning") | |
131 | 131 | } | |
132 | 132 | else if ((betType == DONTCOMEBET)) | |
133 | 133 | then { | |
134 | 134 | let playerPoint = value(parseInt(split(betDetails, "_")[6])) | |
135 | 135 | if ((round == 2)) | |
136 | 136 | then if (if ((resultOfRound == 7)) | |
137 | 137 | then true | |
138 | 138 | else (resultOfRound == 11)) | |
139 | 139 | then [IntegerEntry("price", 0)] | |
140 | 140 | else if (if (if ((resultOfRound == 2)) | |
141 | 141 | then true | |
142 | 142 | else (resultOfRound == 12)) | |
143 | 143 | then true | |
144 | 144 | else (resultOfRound == 3)) | |
145 | 145 | then [IntegerEntry("price", (amount * 2))] | |
146 | 146 | else if ((resultOfRound == playerPoint)) | |
147 | 147 | then [IntegerEntry("price", (amount * 2))] | |
148 | 148 | else [IntegerEntry("price", -1)] | |
149 | 149 | else if ((round > 1)) | |
150 | 150 | then if ((resultOfRound == 7)) | |
151 | 151 | then [IntegerEntry("price", (amount * 2))] | |
152 | 152 | else if ((resultOfRound == playerPoint)) | |
153 | 153 | then [IntegerEntry("price", 0)] | |
154 | 154 | else [IntegerEntry("price", -1)] | |
155 | 155 | else throw("Not Allow in The Beginning") | |
156 | 156 | } | |
157 | 157 | else [IntegerEntry("price", 0)] | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | ||
162 | 162 | @Callable(i) | |
163 | 163 | func getWinningAmountPassLineBets (firstPoint,lastPoint,betDetails) = { | |
164 | 164 | let betType = split(betDetails, "_")[2] | |
165 | 165 | let betPlacer = split(betDetails, "_")[0] | |
166 | 166 | let amount = value(parseInt(split(betDetails, "_")[1])) | |
167 | 167 | if ((betType == PASSLINEBET)) | |
168 | 168 | then if ((lastPoint == 0)) | |
169 | 169 | then if (if ((firstPoint == 7)) | |
170 | 170 | then true | |
171 | 171 | else (firstPoint == 11)) | |
172 | 172 | then [IntegerEntry("price", (amount * 2))] | |
173 | 173 | else [IntegerEntry("price", (amount * 0))] | |
174 | 174 | else if ((firstPoint == lastPoint)) | |
175 | 175 | then [IntegerEntry("price", (amount * 2))] | |
176 | 176 | else if ((lastPoint == 7)) | |
177 | 177 | then [IntegerEntry("price", (amount * 0))] | |
178 | 178 | else [IntegerEntry("price", (amount * 0))] | |
179 | 179 | else if ((betType == DONTPASSLINEBET)) | |
180 | 180 | then if ((lastPoint == 0)) | |
181 | 181 | then if (if ((firstPoint == 2)) | |
182 | 182 | then true | |
183 | 183 | else (firstPoint == 3)) | |
184 | 184 | then [IntegerEntry("price", (amount * 2))] | |
185 | 185 | else if (if ((lastPoint == 7)) | |
186 | 186 | then true | |
187 | 187 | else (lastPoint == 11)) | |
188 | 188 | then [IntegerEntry("price", (amount * 0))] | |
189 | 189 | else [IntegerEntry("price", (amount * 0))] | |
190 | 190 | else if (if ((lastPoint == 2)) | |
191 | 191 | then true | |
192 | 192 | else (lastPoint == 3)) | |
193 | 193 | then [IntegerEntry("price", (amount * 2))] | |
194 | 194 | else if ((lastPoint == 7)) | |
195 | 195 | then [IntegerEntry("price", (amount * 0))] | |
196 | 196 | else [IntegerEntry("price", (amount * 0))] | |
197 | 197 | else [IntegerEntry("price", (amount * 0))] | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | @Verifier(tx) | |
202 | 202 | func verify () = match tx { | |
203 | 203 | case _ => | |
204 | 204 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
205 | 205 | } | |
206 | 206 |
github/deemru/w8io/169f3d6 41.41 ms ◑