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:AAIEAAAAAAAAABAIAhIFCgMIAQESBQoDAQEIAAAADwAAAAAJR0FNRVNUQVJUAAAAAAAAAAAAAAAAAA5HQU1FSU5QUk9HUkVTUwAAAAAAAAAAAQAAAAAMR0FNRUZJTklTSEVEAAAAAAAAAAACAAAAABZCTE9DS1RPUFJPQ0VTU0ZPUlRIUk9XAAAAAAAAAAABAAAAAAtQQVNTTElORUJFVAIAAAALUEFTU0xJTkVCRVQAAAAAD0RPTlRQQVNTTElORUJFVAIAAAAPRE9OVFBBU1NMSU5FQkVUAAAAAAdDT01FQkVUAgAAAAdDT01FQkVUAAAAAAtET05UQ09NRUJFVAIAAAALRE9OVENPTUVCRVQAAAAACEZJRUxEQkVUAgAAAAhGSUVMREJFVAAAAAAHT0REU0JFVAIAAAAHT0REU0JFVAAAAAAKQklHNk9SOEJFVAIAAAAKQklHNk9SOEJFVAAAAAALUExBQ0VCRVRCVVkCAAAAC1BMQUNFQkVUQlVZAAAAAAxQTEFDRUJFVExPU0UCAAAADFBMQUNFQkVUTE9TRQAAAAALUExBQ0VCRVRMQVkCAAAAC1BMQUNFQ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AAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXna39BH", "height": 1554303, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HbQfmbW7bhDhHHzrgkAdbRjuJSHa56gnSN4Vuu9QaJZb Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let GAMESTART = 0
55
66 let GAMEINPROGRESS = 1
77
88 let GAMEFINISHED = 2
99
1010 let BLOCKTOPROCESSFORTHROW = 1
1111
1212 let PASSLINEBET = "PASSLINEBET"
1313
1414 let DONTPASSLINEBET = "DONTPASSLINEBET"
1515
1616 let COMEBET = "COMEBET"
1717
1818 let DONTCOMEBET = "DONTCOMEBET"
1919
2020 let FIELDBET = "FIELDBET"
2121
2222 let ODDSBET = "ODDSBET"
2323
2424 let BIG6OR8BET = "BIG6OR8BET"
2525
2626 let PLACEBETBUY = "PLACEBETBUY"
2727
2828 let PLACEBETLOSE = "PLACEBETLOSE"
2929
3030 let PLACEBETLAY = "PLACEBETLAY"
3131
3232 let PLACEBETWIN = "PLACEBETWIN"
3333
3434 @Callable(i)
3535 func getWinningAmount (betDetails,resultOfRound,round) = {
3636 let betType = split(betDetails, "_")[2]
3737 let odd = value(parseInt(split(betDetails, "_")[5]))
3838 let amount = value(parseInt(split(betDetails, "_")[1]))
3939 if ((betType == FIELDBET))
4040 then if ((resultOfRound == 12))
4141 then [IntegerEntry("price", (amount * 4))]
4242 else if ((resultOfRound == 2))
4343 then [IntegerEntry("price", (amount * 3))]
4444 else if (if (if (if ((resultOfRound == 5))
4545 then true
4646 else (resultOfRound == 6))
4747 then true
4848 else (resultOfRound == 7))
4949 then true
5050 else (resultOfRound == 8))
5151 then [IntegerEntry("price", 0)]
5252 else [IntegerEntry("price", (amount * 2))]
5353 else if ((betType == ODDSBET))
5454 then if (if ((odd == 4))
5555 then true
5656 else (odd == 10))
5757 then [IntegerEntry("price", (amount * 7))]
5858 else if (if ((odd == 5))
5959 then true
6060 else (odd == 8))
6161 then [IntegerEntry("price", (amount * 9))]
6262 else if (if ((odd == 3))
6363 then true
6464 else (odd == 11))
6565 then [IntegerEntry("price", (amount * 15))]
6666 else if (if ((odd == 2))
6767 then true
6868 else (odd == 12))
6969 then [IntegerEntry("price", (amount * 30))]
7070 else if (if ((odd == 10))
7171 then true
7272 else (odd == 4))
7373 then [IntegerEntry("price", (amount * 30))]
7474 else if ((odd == 7))
7575 then [IntegerEntry("price", (amount * 4))]
7676 else if (if ((odd == 100))
7777 then if (if ((resultOfRound == 3))
7878 then true
7979 else (resultOfRound == 12))
8080 then true
8181 else (resultOfRound == 2)
8282 else false)
8383 then [IntegerEntry("price", (amount * 7))]
8484 else [IntegerEntry("price", 0)]
8585 else if ((betType == BIG6OR8BET))
8686 then if (if ((resultOfRound == 6))
8787 then true
8888 else (resultOfRound == 8))
8989 then [IntegerEntry("price", (amount * 2))]
9090 else [IntegerEntry("price", 0)]
9191 else if (if ((betType == PLACEBETLAY))
9292 then true
9393 else (betType == PLACEBETLOSE))
9494 then if ((resultOfRound == 7))
9595 then [IntegerEntry("price", (amount * 2))]
9696 else if ((resultOfRound == odd))
9797 then [IntegerEntry("price", 0)]
9898 else [IntegerEntry("price", -1)]
9999 else if (if ((betType == PLACEBETBUY))
100100 then true
101101 else (betType == PLACEBETWIN))
102102 then if ((resultOfRound == 7))
103103 then [IntegerEntry("price", 0)]
104104 else if ((resultOfRound == odd))
105105 then [IntegerEntry("price", 2)]
106106 else [IntegerEntry("price", -1)]
107107 else if ((betType == COMEBET))
108108 then {
109109 let playerPoint = value(parseInt(split(betDetails, "_")[6]))
110110 if ((round == 2))
111111 then if (if ((resultOfRound == 7))
112112 then true
113113 else (resultOfRound == 11))
114114 then [IntegerEntry("price", (amount * 2))]
115115 else if (if (if ((resultOfRound == 2))
116116 then true
117117 else (resultOfRound == 12))
118118 then true
119119 else (resultOfRound == 3))
120120 then [IntegerEntry("price", 0)]
121121 else if ((resultOfRound == playerPoint))
122122 then [IntegerEntry("price", (amount * 2))]
123123 else [IntegerEntry("price", -1)]
124124 else if ((round > 2))
125125 then if ((resultOfRound == 7))
126126 then [IntegerEntry("price", 0)]
127127 else if ((resultOfRound == playerPoint))
128128 then [IntegerEntry("price", (amount * 2))]
129129 else [IntegerEntry("price", -1)]
130130 else throw("Not Allow in The Beginning")
131131 }
132132 else if ((betType == DONTCOMEBET))
133133 then {
134134 let playerPoint = value(parseInt(split(betDetails, "_")[6]))
135135 if ((round == 2))
136136 then if (if ((resultOfRound == 7))
137137 then true
138138 else (resultOfRound == 11))
139139 then [IntegerEntry("price", 0)]
140140 else if (if (if ((resultOfRound == 2))
141141 then true
142142 else (resultOfRound == 12))
143143 then true
144144 else (resultOfRound == 3))
145145 then [IntegerEntry("price", (amount * 2))]
146146 else if ((resultOfRound == playerPoint))
147147 then [IntegerEntry("price", (amount * 2))]
148148 else [IntegerEntry("price", -1)]
149149 else if ((round > 1))
150150 then if ((resultOfRound == 7))
151151 then [IntegerEntry("price", (amount * 2))]
152152 else if ((resultOfRound == playerPoint))
153153 then [IntegerEntry("price", 0)]
154154 else [IntegerEntry("price", -1)]
155155 else throw("Not Allow in The Beginning")
156156 }
157157 else [IntegerEntry("price", 0)]
158158 }
159159
160160
161161
162162 @Callable(i)
163163 func getWinningAmountPassLineBets (firstPoint,lastPoint,betDetails) = {
164164 let betType = split(betDetails, "_")[2]
165165 let betPlacer = split(betDetails, "_")[0]
166166 let amount = value(parseInt(split(betDetails, "_")[1]))
167167 if ((betType == PASSLINEBET))
168168 then if ((lastPoint == 0))
169169 then if (if ((firstPoint == 7))
170170 then true
171171 else (firstPoint == 11))
172172 then [IntegerEntry("price", (amount * 2))]
173173 else [IntegerEntry("price", (amount * 0))]
174174 else if ((firstPoint == lastPoint))
175175 then [IntegerEntry("price", (amount * 2))]
176176 else if ((lastPoint == 7))
177177 then [IntegerEntry("price", (amount * 0))]
178178 else [IntegerEntry("price", (amount * 0))]
179179 else if ((betType == DONTPASSLINEBET))
180180 then if ((lastPoint == 0))
181181 then if (if ((firstPoint == 2))
182182 then true
183183 else (firstPoint == 3))
184184 then [IntegerEntry("price", (amount * 2))]
185185 else if (if ((lastPoint == 7))
186186 then true
187187 else (lastPoint == 11))
188188 then [IntegerEntry("price", (amount * 0))]
189189 else [IntegerEntry("price", (amount * 0))]
190190 else if (if ((lastPoint == 2))
191191 then true
192192 else (lastPoint == 3))
193193 then [IntegerEntry("price", (amount * 2))]
194194 else if ((lastPoint == 7))
195195 then [IntegerEntry("price", (amount * 0))]
196196 else [IntegerEntry("price", (amount * 0))]
197197 else [IntegerEntry("price", (amount * 0))]
198198 }
199199
200200
201201 @Verifier(tx)
202202 func verify () = match tx {
203203 case _ =>
204204 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
205205 }
206206

github/deemru/w8io/169f3d6 
41.41 ms