tx · 7e7JhiRmg1M8oFAFLKbycnaKxvR5Zz2n18G9d8wQDdFs

3N4PSVvLd1GSrpMLkVypPYRDRjHqSNAxKFu:  -0.01000000 Waves

2018.12.03 11:48 [388185] smart account 3N4PSVvLd1GSrpMLkVypPYRDRjHqSNAxKFu > SELF 0.00000000 Waves

{ "type": 13, "id": "7e7JhiRmg1M8oFAFLKbycnaKxvR5Zz2n18G9d8wQDdFs", "fee": 1000000, "feeAssetId": null, "timestamp": 1543826938297, "version": 1, "sender": "3N4PSVvLd1GSrpMLkVypPYRDRjHqSNAxKFu", "senderPublicKey": "5NJxU9XHUUE9Xi2UKnUdUA7uqF8TXDdetrKxdTVDwivb", "proofs": [ "5RkGbQeBy4ekY27xHxBCutSVFA1QSAvqLh6tgBiCTWgRQnAsi2EnA3u3av1LTLY5NxTWEtAqijMo5FLgq5ipZUfK" ], "script": "base64:AQQAAAAQY2FzaW5vc1B1YmxpY0tleQEAAAAgy6dEaVQlC3o3wKOeMfu4ZC5uyLkpVeXvuwyAPolh+EUEAAAAFGVuY3R5cHRlZGNhc2lub3NEaWNlAQAAACDLcWHJH2tOGkv3OagBZHoaexSM0woVvTTsxF7qVPph8AQAAAADYmV0AAAAAAAC+vCABAAAAApjYXNpbm9zRmVlAAAAAAAAmJaABAAAABltYXliZURhdGFQbGF5ZXJzUHVibGljS2V5CQAEHQAAAAIIBQAAAAJ0eAAAAAZzZW5kZXICAAAAEHBsYXllcnNQdWJsaWNLZXkEAAAAFGRhdGFQbGF5ZXJzUHVibGljS2V5CQACWQAAAAEJAQAAAAdleHRyYWN0AAAAAQUAAAAZbWF5YmVEYXRhUGxheWVyc1B1YmxpY0tleQQAAAAMZGF0YUxvY2tlZEF0CQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAggFAAAAAnR4AAAABnNlbmRlcgIAAAAIbG9ja2VkQXQEAAAAGm1heWJlRGF0YVBsYXllcnNEaWNlc0NvdW50CQAEGgAAAAIIBQAAAAJ0eAAAAAZzZW5kZ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2FzaW5vc0ZlZQcEAAAAD2ZlZUdvZXNUb0Nhc2lubwMJAAAAAAAAAggJAAGRAAAAAggFAAAAA210eAAAAAl0cmFuc2ZlcnMAAAAAAAAAAAEAAAAJcmVjaXBpZW50BQAAAA5jYXNpbm9zQWRkcmVzcwkAAAAAAAACCAkAAZEAAAACCAUAAAADbXR4AAAACXRyYW5zZmVycwAAAAAAAAAAAQAAAAZhbW91bnQJAABkAAAAAgUAAAALY2FzaW5vc1BhcnQFAAAACmNhc2lub3NGZWUHBAAAABV0aGVyZUFyZVR3b1JlY2lwaWVudHMJAAAAAAAAAggFAAAAA210eAAAAA10cmFuc2ZlckNvdW50AAAAAAAAAAACAwMDBQAAAAdmZWVJc09rBQAAABFwcml6ZUdvZXNUb1dpbm5lcgcFAAAAD2ZlZUdvZXNUb0Nhc2lubwcFAAAAFXRoZXJlQXJlVHdvUmVjaXBpZW50cwcHB84lkG4=", "chainId": 84, "height": 388185, "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 enctyptedcasinosDice = 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 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 true
92+ else (5 >= firstPayloadAsInteger)
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 ((secondPayloadName == "playersChoice"))
120+ then (selectedDicesCount == firstPayloadAsInteger)
121+ else false
122+ let noOtherDataWasProvided = (payloadSize == 2)
123+ if (if (if (if (senderIsPlayer)
124+ then feeIsOk
125+ else false)
126+ then validPlayersDicesCountIsProvided
127+ else false)
128+ then validPlayersChoiceWasProvided
129+ else false)
130+ then noOtherDataWasProvided
131+ else false
132+ }
133+ else if (isPlayerRevealedHisChoiceState)
134+ then {
135+ let validCasinoChoiceWasProvided = if ((firstPayloadName == "casinosDice"))
136+ then if ((firstPayloadAsInteger >= 1))
137+ then true
138+ else (6 >= firstPayloadAsInteger)
139+ else false
140+ let casinosSaltWasProvided = (secondPayloadName == "casinosSalt")
141+ let choiceAndSaltMatchesHardcodedValue = (keccak256(toBytes((toString(firstPayloadAsInteger) + secondPayloadAsString))) == enctyptedcasinosDice)
142+ let noOtherDataWasProvided = (payloadSize == 2)
143+ if (if (if (if (if (senderIsCasino)
144+ then feeIsOk
145+ else false)
146+ then validCasinoChoiceWasProvided
147+ else false)
148+ then casinosSaltWasProvided
149+ else false)
150+ then choiceAndSaltMatchesHardcodedValue
151+ else false)
152+ then noOtherDataWasProvided
153+ else false
154+ }
155+ else false
156+ case ttx: TransferTransaction =>
157+ let feeIsOk = (ttx.fee == transferTransactionFee)
158+ if (isCasinoDecidedNotToPlayState)
159+ then {
160+ let recipientIsPlayer = (ttx.recipient == playersAddress)
161+ let amountIsCorrent = (ttx.amount == (bet * 2))
162+ if (if (feeIsOk)
163+ then recipientIsPlayer
164+ else false)
165+ then amountIsCorrent
166+ else false
167+ }
168+ else if (isPlayerDecidedNotToSendBetState)
169+ then {
170+ let recipientIsCasino = (ttx.recipient == casinosAddress)
171+ let amountIsCorrect = (ttx.amount == bet)
172+ if (if (feeIsOk)
173+ then recipientIsCasino
174+ else false)
175+ then amountIsCorrect
176+ else false
177+ }
178+ else false
179+ case mtx: MassTransferTransaction =>
180+ let feeIsOk = (mtx.fee == massTransferTransactionFee)
181+ if (isWinnerIsDeterminedState)
182+ then {
183+ let playerWon = (take(drop(dataPlayersChoice, (datacasinosDice - 1)), 1) == "1")
184+ let playersPart = ((6 * bet) / dataPlayersDicesCount)
185+ let casinosPart = ((6 * bet) - playersPart)
186+ let winnerAddress = if (playerWon)
187+ then playersAddress
188+ else casinosAddress
189+ let prizeGoesToWinner = if ((mtx.transfers[0].recipient == winnerAddress))
190+ then (mtx.transfers[0].amount == (playersPart - casinosFee))
191+ else false
192+ let feeGoesToCasino = if ((mtx.transfers[1].recipient == casinosAddress))
193+ then (mtx.transfers[1].amount == (casinosPart + casinosFee))
194+ else false
195+ let thereAreTwoRecipients = (mtx.transferCount == 2)
196+ if (if (if (feeIsOk)
197+ then prizeGoesToWinner
198+ else false)
199+ then feeGoesToCasino
200+ else false)
201+ then thereAreTwoRecipients
202+ else false
203+ }
204+ else false
205+ case _ =>
206+ false
207+}

github/deemru/w8io/026f985 
18.84 ms