tx · Crxyku4w7TZTHt9aqBVkrsEWeFMggwAqLs2A1DMwoD2U

3NBXqJhQzHWV6mVzmmRc4UMwaSBJKudPSGW:  -0.01000000 Waves

2018.12.11 12:39 [399899] smart account 3NBXqJhQzHWV6mVzmmRc4UMwaSBJKudPSGW > SELF 0.00000000 Waves

{ "type": 13, "id": "Crxyku4w7TZTHt9aqBVkrsEWeFMggwAqLs2A1DMwoD2U", "fee": 1000000, "feeAssetId": null, "timestamp": 1544521166003, "version": 1, "sender": "3NBXqJhQzHWV6mVzmmRc4UMwaSBJKudPSGW", "senderPublicKey": "FFE6EaAHyJeUwndqtbv14MUQgppWDDq6nbNUwGEtmgfn", "proofs": [ "Yok7mkR8n56u5s5HjWYYRvobtLtcd6vVPDXPhcS5uhfcBPJxcpUeFRSf2F1hxf2tZTr6EouSABBa424y2yvsRwK" ], "script": "base64:AQQAAAAQY2FzaW5vc1B1YmxpY0tleQEAAAAgy6dEaVQlC3o3wKOeMfu4ZC5uyLkpVeXvuwyAPolh+EUEAAAAFmVuY3R5cHRlZENhc2lub3NDaG9pY2UBAAAAIMtxYckfa04aS/c5qAFkehp7FIzTChW9NOzEXupU+mHwBAAAAANiZXQAAAAAAAL68IAEAAAACmNhc2lub3NGZWUAAAAAAACYloAEAAAAGW1heWJlRGF0YVBsYXllcnNQdWJsaWNLZXkJAAQdAAAAAggFAAAAAnR4AAAABnNlbmRlcgIAAAAQcGxheWVyc1B1YmxpY0tleQQAAAAUZGF0YVBsYXllcnNQdWJsaWNLZXkJAAJZAAAAAQkBAAAAB2V4dHJhY3QAAAABBQAAABltYXliZURhdGFQbGF5ZXJzUHVibGljS2V5BAAAAAxkYXRhTG9ja2VkQXQJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACCAUAAAACdHgAAAAGc2VuZGVyAgAAAAhsb2NrZWRBdAQAAAAabWF5YmVEYXRhUGxheWVyc0RpY2VzQ291bnQJAAQaAAAAAggFAAAAAnR4AAAABnNlbmRlcgIAAAARcGxheWVyc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AAAAAAAAAAZhbW91bnQJAABlAAAAAgUAAAALcGxheWVyc1BhcnQFAAAACmNhc2lub3NGZWUHBAAAAA9mZWVHb2VzVG9DYXNpbm8DCQAAAAAAAAIICQABkQAAAAIIBQAAAANtdHgAAAAJdHJhbnNmZXJzAAAAAAAAAAABAAAACXJlY2lwaWVudAUAAAAOY2FzaW5vc0FkZHJlc3MJAAAAAAAAAggJAAGRAAAAAggFAAAAA210eAAAAAl0cmFuc2ZlcnMAAAAAAAAAAAEAAAAGYW1vdW50CQAAZAAAAAIFAAAAC2Nhc2lub3NQYXJ0BQAAAApjYXNpbm9zRmVlBwQAAAAVdGhlcmVBcmVUd29SZWNpcGllbnRzCQAAAAAAAAIIBQAAAANtdHgAAAANdHJhbnNmZXJDb3VudAAAAAAAAAAAAgMDAwUAAAAHZmVlSXNPawUAAAARcHJpemVHb2VzVG9XaW5uZXIHBQAAAA9mZWVHb2VzVG9DYXNpbm8HBQAAABV0aGVyZUFyZVR3b1JlY2lwaWVudHMHBwfeEJiE", "chainId": 84, "height": 399899, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 1 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let casinosPublicKey = base58'EhyhHkMbyNu8PwHoiJVCq2SciN9FmM5KvBeSN2NkTmeL'
4+let enctyptedCasinosChoice = base58'EhA3Ddut8VpYafZ9xHEZQfzuZLqAQxpjC6RQwNfMgYUX'
5+let bet = 50000000
6+let casinosFee = 10000000
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 maybeDataCasinosChoice = getInteger(tx.sender, "casinosChoice")
15+let dataCasinosChoice = extract(maybeDataCasinosChoice)
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(maybeDataCasinosChoice))
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(maybeDataCasinosChoice)
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 == "casinosChoice"))
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))) == enctyptedCasinosChoice)
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, (dataCasinosChoice - 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 
26.08 ms