tx · AXygDTaM7okkcTsq85uyJED2NCc1Nec4pJPvpnNjWCzz 3N6SWTzi8g8UVPy6rZm8jNTAhMjKPxaQ2F2: -0.01000000 Waves 2018.12.06 16:48 [392863] smart account 3N6SWTzi8g8UVPy6rZm8jNTAhMjKPxaQ2F2 > SELF 0.00000000 Waves
{ "type": 13, "id": "AXygDTaM7okkcTsq85uyJED2NCc1Nec4pJPvpnNjWCzz", "fee": 1000000, "feeAssetId": null, "timestamp": 1544104217130, "version": 1, "sender": "3N6SWTzi8g8UVPy6rZm8jNTAhMjKPxaQ2F2", "senderPublicKey": "5dfSNu1esePgMqdBJbopugXgCDaNUWKdCe6BGZyPCYnk", "proofs": [ "2vam6PJGTYypY8hJqghrz88ybE7D9bU3BJsooQKgjfenLq9xXYpL9V4APcB5GoYakaDTBePRTW2cNaGb2y4TuSsJ" ], "script": "base64:AQQAAAAQY2FzaW5vc1B1YmxpY0tleQEAAAAgy6dEaVQlC3o3wKOeMfu4ZC5uyLkpVeXvuwyAPolh+EUEAAAAFGVuY3R5cHRlZGNhc2lub3NEaWNlAQAAACDo62xAkB48a4+/yPag+1Ta1aHcRQ6gMqW6W8CD1CnanQQAAAADYmV0AAAAAAAF9eEABAAAAApjYXNpbm9zRmVlAAAAAAAAD0JABAAAABltYXliZURhdGFQbGF5ZXJzUHVibGljS2V5CQAEHQAAAAIIBQAAAAJ0eAAAAAZzZW5kZXICAAAAEHBsYXllcnNQdWJsaWNLZXkEAAAAFGRhdGFQbGF5ZXJzUHVibGljS2V5CQACWQAAAAEJAQAAAAdleHRyYWN0AAAAAQUAAAAZbWF5YmVEYXRhUGxheWVyc1B1YmxpY0tleQQAAAAMZGF0YUxvY2tlZEF0CQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAggFAAAAAnR4AAAABnNlbmRlcgIAAAAIbG9ja2VkQXQEAAAAGm1heWJlRGF0YVBsYXllcnNEaWNlc0NvdW50CQAEGgAAAAIIBQAAAAJ0eAAAAAZzZW5kZXICAAAA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2ZlcnMAAAAAAAAAAAAAAAAGYW1vdW50CQAAZQAAAAIFAAAAC3BsYXllcnNQYXJ0BQAAAApjYXNpbm9zRmVlBwQAAAAPZmVlR29lc1RvQ2FzaW5vAwkAAAAAAAACCAkAAZEAAAACCAUAAAADbXR4AAAACXRyYW5zZmVycwAAAAAAAAAAAQAAAAlyZWNpcGllbnQFAAAADmNhc2lub3NBZGRyZXNzCQAAAAAAAAIICQABkQAAAAIIBQAAAANtdHgAAAAJdHJhbnNmZXJzAAAAAAAAAAABAAAABmFtb3VudAkAAGQAAAACBQAAAAtjYXNpbm9zUGFydAUAAAAKY2FzaW5vc0ZlZQcEAAAAFXRoZXJlQXJlVHdvUmVjaXBpZW50cwkAAAAAAAACCAUAAAADbXR4AAAADXRyYW5zZmVyQ291bnQAAAAAAAAAAAIDAwMFAAAAB2ZlZUlzT2sFAAAAEXByaXplR29lc1RvV2lubmVyBwUAAAAPZmVlR29lc1RvQ2FzaW5vBwUAAAAVdGhlcmVBcmVUd29SZWNpcGllbnRzBwcHTMC+yQ==", "chainId": 84, "height": 392863, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 1 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let casinosPublicKey = base58'EhyhHkMbyNu8PwHoiJVCq2SciN9FmM5KvBeSN2NkTmeL' | |
4 | + | let enctyptedcasinosDice = base58'GgDo7Z6z89EnYQiNdT1ZvzLxjgKSGZ5MP4RWK236bov4' | |
5 | + | let bet = 100000000 | |
6 | + | let casinosFee = 1000000 | |
7 | + | let maybeDataPlayersPublicKey = getString(tx.sender, "playersPublicKey") | |
8 | + | let dataPlayersPublicKey = fromBase58String(extract(maybeDataPlayersPublicKey)) | |
9 | + | let dataLockedAt = extract(getInteger(tx.sender, "lockedAt")) | |
10 | + | let maybeDataPlayersDicesCount = getInteger(tx.sender, "playersDicesCount") | |
11 | + | let dataPlayersDicesCount = extract(maybeDataPlayersDicesCount) | |
12 | + | let maybeDataPlayersChoice = getString(tx.sender, "playersChoice") | |
13 | + | let dataPlayersChoice = extract(maybeDataPlayersChoice) | |
14 | + | let maybeDatacasinosDice = getInteger(tx.sender, "casinosDice") | |
15 | + | let datacasinosDice = extract(maybeDatacasinosDice) | |
16 | + | let timeoutInBlocks = 120 | |
17 | + | let dataTransactionFee = 500000 | |
18 | + | let transferTransactionFee = 500000 | |
19 | + | let massTransferTransactionFee = 600000 | |
20 | + | let casinosAddress = addressFromPublicKey(casinosPublicKey) | |
21 | + | let playersAddress = addressFromPublicKey(dataPlayersPublicKey) | |
22 | + | let accountBalance = wavesBalance(tx.sender) | |
23 | + | let senderIsCasino = sigVerify(tx.bodyBytes, tx.proofs[0], casinosPublicKey) | |
24 | + | let senderIsPlayer = sigVerify(tx.bodyBytes, tx.proofs[0], dataPlayersPublicKey) | |
25 | + | let isInitialState = if (!(isDefined(maybeDataPlayersPublicKey))) | |
26 | + | then (accountBalance >= (((bet * 5) + (dataTransactionFee * 3)) + massTransferTransactionFee)) | |
27 | + | else false | |
28 | + | let dataIsValidForLockedState = if (isDefined(maybeDataPlayersPublicKey)) | |
29 | + | then !(isDefined(maybeDataPlayersChoice)) | |
30 | + | else false | |
31 | + | let lockedStateTimeout = (height > (dataLockedAt + timeoutInBlocks)) | |
32 | + | let isLockedState = if (dataIsValidForLockedState) | |
33 | + | then !(lockedStateTimeout) | |
34 | + | else false | |
35 | + | let isUserDecidedNotToPlayState = if (dataIsValidForLockedState) | |
36 | + | then lockedStateTimeout | |
37 | + | else false | |
38 | + | let dataIsValidForPlayerRevealedState = if (isDefined(maybeDataPlayersChoice)) | |
39 | + | then !(isDefined(maybeDatacasinosDice)) | |
40 | + | else false | |
41 | + | let playerRevealedStateTimeout = if ((height > (dataLockedAt + (timeoutInBlocks * 2)))) | |
42 | + | then (accountBalance >= (((bet * 6) + dataTransactionFee) + massTransferTransactionFee)) | |
43 | + | else false | |
44 | + | let isPlayerRevealedHisChoiceState = if (dataIsValidForPlayerRevealedState) | |
45 | + | then !(playerRevealedStateTimeout) | |
46 | + | else false | |
47 | + | let isCasinoDecidedNotToPlayState = if (dataIsValidForPlayerRevealedState) | |
48 | + | then playerRevealedStateTimeout | |
49 | + | else false | |
50 | + | let isDataValidForWinnerIsDeterminedState = isDefined(maybeDatacasinosDice) | |
51 | + | let isBalanceValidForWinnerIsDeterminedState = (accountBalance >= ((bet * 2) + massTransferTransactionFee)) | |
52 | + | let isWinnerIsDeterminedState = if (isDataValidForWinnerIsDeterminedState) | |
53 | + | then isBalanceValidForWinnerIsDeterminedState | |
54 | + | else false | |
55 | + | let isPlayerDecidedNotToSendBetState = if (isDataValidForWinnerIsDeterminedState) | |
56 | + | then !(isBalanceValidForWinnerIsDeterminedState) | |
57 | + | else false | |
58 | + | match tx { | |
59 | + | case dtx: DataTransaction => | |
60 | + | let payloadSize = size(dtx.data) | |
61 | + | let firstPayloadName = dtx.data[0].key | |
62 | + | let secondPayloadName = dtx.data[1].key | |
63 | + | let firstPayloadAsInteger = extract(getInteger(dtx.data, firstPayloadName)) | |
64 | + | let secondPayloadAsString = extract(getString(dtx.data, secondPayloadName)) | |
65 | + | let feeIsOk = (dtx.fee == dataTransactionFee) | |
66 | + | if (if (isInitialState) | |
67 | + | then true | |
68 | + | else isUserDecidedNotToPlayState) | |
69 | + | then { | |
70 | + | let validLockedAtIsProvided = if ((firstPayloadName == "lockedAt")) | |
71 | + | then if ((firstPayloadAsInteger == height)) | |
72 | + | then true | |
73 | + | else (firstPayloadAsInteger == (height - 1)) | |
74 | + | else false | |
75 | + | let playersPublicKeyIsProvided = (secondPayloadName == "playersPublicKey") | |
76 | + | let noOtherDataWasProvided = (payloadSize == 2) | |
77 | + | if (if (if (if (senderIsCasino) | |
78 | + | then feeIsOk | |
79 | + | else false) | |
80 | + | then validLockedAtIsProvided | |
81 | + | else false) | |
82 | + | then playersPublicKeyIsProvided | |
83 | + | else false) | |
84 | + | then noOtherDataWasProvided | |
85 | + | else false | |
86 | + | } | |
87 | + | else if (isLockedState) | |
88 | + | then { | |
89 | + | let validPlayersDicesCountIsProvided = if ((firstPayloadName == "playersDicesCount")) | |
90 | + | then if ((firstPayloadAsInteger >= 1)) | |
91 | + | then (5 >= firstPayloadAsInteger) | |
92 | + | else false | |
93 | + | else false | |
94 | + | let playerChoice1String = take(secondPayloadAsString, 1) | |
95 | + | let playerChoice1Bit = if ((playerChoice1String == "1")) | |
96 | + | then 1 | |
97 | + | else 0 | |
98 | + | let playerChoice2String = take(drop(secondPayloadAsString, 1), 1) | |
99 | + | let playerChoice2Bit = if ((playerChoice2String == "1")) | |
100 | + | then 1 | |
101 | + | else 0 | |
102 | + | let playerChoice3String = take(drop(secondPayloadAsString, 2), 1) | |
103 | + | let playerChoice3Bit = if ((playerChoice3String == "1")) | |
104 | + | then 1 | |
105 | + | else 0 | |
106 | + | let playerChoice4String = take(drop(secondPayloadAsString, 3), 1) | |
107 | + | let playerChoice4Bit = if ((playerChoice4String == "1")) | |
108 | + | then 1 | |
109 | + | else 0 | |
110 | + | let playerChoice5String = take(drop(secondPayloadAsString, 4), 1) | |
111 | + | let playerChoice5Bit = if ((playerChoice5String == "1")) | |
112 | + | then 1 | |
113 | + | else 0 | |
114 | + | let playerChoice6String = take(drop(secondPayloadAsString, 5), 1) | |
115 | + | let playerChoice6Bit = if ((playerChoice6String == "1")) | |
116 | + | then 1 | |
117 | + | else 0 | |
118 | + | let selectedDicesCount = (((((playerChoice1Bit + playerChoice2Bit) + playerChoice3Bit) + playerChoice4Bit) + playerChoice5Bit) + playerChoice6Bit) | |
119 | + | let validPlayersChoiceWasProvided = if (if ((secondPayloadName == "playersChoice")) | |
120 | + | then (selectedDicesCount == firstPayloadAsInteger) | |
121 | + | else false) | |
122 | + | then (size(secondPayloadAsString) == 6) | |
123 | + | else false | |
124 | + | let noOtherDataWasProvided = (payloadSize == 2) | |
125 | + | if (if (if (if (senderIsPlayer) | |
126 | + | then feeIsOk | |
127 | + | else false) | |
128 | + | then validPlayersDicesCountIsProvided | |
129 | + | else false) | |
130 | + | then validPlayersChoiceWasProvided | |
131 | + | else false) | |
132 | + | then noOtherDataWasProvided | |
133 | + | else false | |
134 | + | } | |
135 | + | else if (isPlayerRevealedHisChoiceState) | |
136 | + | then { | |
137 | + | let validCasinoChoiceWasProvided = if ((firstPayloadName == "casinosDice")) | |
138 | + | then if ((firstPayloadAsInteger >= 1)) | |
139 | + | then (6 >= firstPayloadAsInteger) | |
140 | + | else false | |
141 | + | else false | |
142 | + | let casinosSaltWasProvided = (secondPayloadName == "casinosSalt") | |
143 | + | let choiceAndSaltMatchesHardcodedValue = (keccak256(toBytes((toString(firstPayloadAsInteger) + secondPayloadAsString))) == enctyptedcasinosDice) | |
144 | + | let noOtherDataWasProvided = (payloadSize == 2) | |
145 | + | if (if (if (if (if (senderIsCasino) | |
146 | + | then feeIsOk | |
147 | + | else false) | |
148 | + | then validCasinoChoiceWasProvided | |
149 | + | else false) | |
150 | + | then casinosSaltWasProvided | |
151 | + | else false) | |
152 | + | then choiceAndSaltMatchesHardcodedValue | |
153 | + | else false) | |
154 | + | then noOtherDataWasProvided | |
155 | + | else false | |
156 | + | } | |
157 | + | else false | |
158 | + | case ttx: TransferTransaction => | |
159 | + | let feeIsOk = (ttx.fee == transferTransactionFee) | |
160 | + | if (isCasinoDecidedNotToPlayState) | |
161 | + | then { | |
162 | + | let recipientIsPlayer = (ttx.recipient == playersAddress) | |
163 | + | let amountIsCorrent = (ttx.amount == (bet * 2)) | |
164 | + | if (if (feeIsOk) | |
165 | + | then recipientIsPlayer | |
166 | + | else false) | |
167 | + | then amountIsCorrent | |
168 | + | else false | |
169 | + | } | |
170 | + | else if (isPlayerDecidedNotToSendBetState) | |
171 | + | then { | |
172 | + | let recipientIsCasino = (ttx.recipient == casinosAddress) | |
173 | + | let amountIsCorrect = (ttx.amount == bet) | |
174 | + | if (if (feeIsOk) | |
175 | + | then recipientIsCasino | |
176 | + | else false) | |
177 | + | then amountIsCorrect | |
178 | + | else false | |
179 | + | } | |
180 | + | else false | |
181 | + | case mtx: MassTransferTransaction => | |
182 | + | let feeIsOk = (mtx.fee == massTransferTransactionFee) | |
183 | + | if (isWinnerIsDeterminedState) | |
184 | + | then { | |
185 | + | let playerWon = (take(drop(dataPlayersChoice, (datacasinosDice - 1)), 1) == "1") | |
186 | + | let playersPart = ((6 * bet) / dataPlayersDicesCount) | |
187 | + | let casinosPart = ((6 * bet) - playersPart) | |
188 | + | let winnerAddress = if (playerWon) | |
189 | + | then playersAddress | |
190 | + | else casinosAddress | |
191 | + | let prizeGoesToWinner = if ((mtx.transfers[0].recipient == winnerAddress)) | |
192 | + | then (mtx.transfers[0].amount == (playersPart - casinosFee)) | |
193 | + | else false | |
194 | + | let feeGoesToCasino = if ((mtx.transfers[1].recipient == casinosAddress)) | |
195 | + | then (mtx.transfers[1].amount == (casinosPart + casinosFee)) | |
196 | + | else false | |
197 | + | let thereAreTwoRecipients = (mtx.transferCount == 2) | |
198 | + | if (if (if (feeIsOk) | |
199 | + | then prizeGoesToWinner | |
200 | + | else false) | |
201 | + | then feeGoesToCasino | |
202 | + | else false) | |
203 | + | then thereAreTwoRecipients | |
204 | + | else false | |
205 | + | } | |
206 | + | else false | |
207 | + | case _ => | |
208 | + | false | |
209 | + | } |
github/deemru/w8io/026f985 23.42 ms ◑