tx · 9Zmg87UPc7hEDVf7CiMGptWZuPvvCR4hKj33f6hnLHdU 3NAjEZEr4XFzLPGK9VnE8jFUzVMn1yEekrA: -0.01000000 Waves 2018.12.29 15:38 [426327] smart account 3NAjEZEr4XFzLPGK9VnE8jFUzVMn1yEekrA > SELF 0.00000000 Waves
{ "type": 13, "id": "9Zmg87UPc7hEDVf7CiMGptWZuPvvCR4hKj33f6hnLHdU", "fee": 1000000, "feeAssetId": null, "timestamp": 1546087149696, "version": 1, "sender": "3NAjEZEr4XFzLPGK9VnE8jFUzVMn1yEekrA", "senderPublicKey": "Gjr6Y5waSrcUxggJiJjKcSCo86ASjkXGtkDDTyx9h5DN", "proofs": [ "5HupgQphUreQMHCySu1FPF5FBnvDrfSQzpgrrqFd7QqY4KQmjxjbw3PPVUa4JzL7vwjP27s2fptyVuUhgPMWtwCi" ], "script": "base64:AQQAAAAQc2VydmVyc1B1YmxpY0tleQEAAAAgy6dEaVQlC3o3wKOeMfu4ZC5uyLkpVeXvuwyAPolh+EUEAAAAFmVuY3R5cHRlZFNlcnZlcnNDaG9pY2UBAAAAIMtxYckfa04aS/c5qAFkehp7FIzTChW9NOzEXupU+mHwBAAAAAhkb25hdGlvbgAAAAAAAvrwgAQAAAAKc2VydmVyc0ZlZQAAAAAAAJiWgAQAAAAZbWF5YmVEYXRhUGxheWVyc1B1YmxpY0tleQkABB0AAAACCAUAAAACdHgAAAAGc2VuZGVyAgAAABBwbGF5ZXJzUHVibGljS2V5BAAAABRkYXRhUGxheWVyc1B1YmxpY0tleQkAAlkAAAABCQEAAAAHZXh0cmFjdAAAAAEFAAAAGW1heWJlRGF0YVBsYXllcnNQdWJsaWNLZXkEAAAADGRhdGFMb2NrZWRBdAkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIIBQAAAAJ0eAAAAAZzZW5kZXICAAAACGxvY2tlZEF0BAAAABptYXliZURhdGFQbGF5ZXJzRGljZXNDb3VudAkABBoAAAACCAUAAAACdHgAAAAGc2VuZGVy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ByaXplR29lc1RvV2lubmVyAwkAAAAAAAACCAkAAZEAAAACCAUAAAADbXR4AAAACXRyYW5zZmVycwAAAAAAAAAAAAAAAAlyZWNpcGllbnQFAAAADXdpbm5lckFkZHJlc3MJAAAAAAAAAggJAAGRAAAAAggFAAAAA210eAAAAAl0cmFuc2ZlcnMAAAAAAAAAAAAAAAAGYW1vdW50CQAAZQAAAAIFAAAAC3BsYXllcnNQYXJ0BQAAAApzZXJ2ZXJzRmVlBwQAAAAPZmVlR29lc1RvU2VydmVyAwkAAAAAAAACCAkAAZEAAAACCAUAAAADbXR4AAAACXRyYW5zZmVycwAAAAAAAAAAAQAAAAlyZWNpcGllbnQFAAAADnNlcnZlcnNBZGRyZXNzCQAAAAAAAAIICQABkQAAAAIIBQAAAANtdHgAAAAJdHJhbnNmZXJzAAAAAAAAAAABAAAABmFtb3VudAkAAGQAAAACBQAAAAtzZXJ2ZXJzUGFydAUAAAAKc2VydmVyc0ZlZQcEAAAAFXRoZXJlQXJlVHdvUmVjaXBpZW50cwkAAAAAAAACCAUAAAADbXR4AAAADXRyYW5zZmVyQ291bnQAAAAAAAAAAAIDAwMFAAAAB2ZlZUlzT2sFAAAAEXByaXplR29lc1RvV2lubmVyBwUAAAAPZmVlR29lc1RvU2VydmVyBwUAAAAVdGhlcmVBcmVUd29SZWNpcGllbnRzBwcH7K1hsw==", "chainId": 84, "height": 426327, "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 serversPublicKey = base58'EhyhHkMbyNu8PwHoiJVCq2SciN9FmM5KvBeSN2NkTmeL' | |
4 | + | let enctyptedServersChoice = base58'EhA3Ddut8VpYafZ9xHEZQfzuZLqAQxpjC6RQwNfMgYUX' | |
5 | + | let donation = 50000000 | |
6 | + | let serversFee = 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 maybeDataServersChoice = getInteger(tx.sender, "serversChoice") | |
15 | + | let dataServersChoice = extract(maybeDataServersChoice) | |
16 | + | let timeoutInBlocks = 120 | |
17 | + | let dataTransactionFee = 500000 | |
18 | + | let transferTransactionFee = 500000 | |
19 | + | let massTransferTransactionFee = 600000 | |
20 | + | let serversAddress = addressFromPublicKey(serversPublicKey) | |
21 | + | let playersAddress = addressFromPublicKey(dataPlayersPublicKey) | |
22 | + | let accountBalance = wavesBalance(tx.sender) | |
23 | + | let senderIsServer = sigVerify(tx.bodyBytes, tx.proofs[0], serversPublicKey) | |
24 | + | let senderIsPlayer = sigVerify(tx.bodyBytes, tx.proofs[0], dataPlayersPublicKey) | |
25 | + | let isInitialState = if (!(isDefined(maybeDataPlayersPublicKey))) | |
26 | + | then (accountBalance >= (((donation * 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(maybeDataServersChoice)) | |
40 | + | else false | |
41 | + | let playerRevealedStateTimeout = if ((height > (dataLockedAt + (timeoutInBlocks * 2)))) | |
42 | + | then (accountBalance >= (((donation * 6) + dataTransactionFee) + massTransferTransactionFee)) | |
43 | + | else false | |
44 | + | let isPlayerRevealedHisChoiceState = if (dataIsValidForPlayerRevealedState) | |
45 | + | then !(playerRevealedStateTimeout) | |
46 | + | else false | |
47 | + | let isServerDecidedNotToPlayState = if (dataIsValidForPlayerRevealedState) | |
48 | + | then playerRevealedStateTimeout | |
49 | + | else false | |
50 | + | let isDataValidForWinnerIsDeterminedState = isDefined(maybeDataServersChoice) | |
51 | + | let isBalanceValidForWinnerIsDeterminedState = (accountBalance >= ((donation * 6) + massTransferTransactionFee)) | |
52 | + | let isWinnerIsDeterminedState = if (isDataValidForWinnerIsDeterminedState) | |
53 | + | then isBalanceValidForWinnerIsDeterminedState | |
54 | + | else false | |
55 | + | let isPlayerDecidedNotToSendDonationState = 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 (senderIsServer) | |
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 validServerChoiceWasProvided = if ((firstPayloadName == "serversChoice")) | |
138 | + | then if ((firstPayloadAsInteger >= 1)) | |
139 | + | then (6 >= firstPayloadAsInteger) | |
140 | + | else false | |
141 | + | else false | |
142 | + | let serversSaltWasProvided = (secondPayloadName == "serversSalt") | |
143 | + | let choiceAndSaltMatchesHardcodedValue = (keccak256(toBytes((toString(firstPayloadAsInteger) + secondPayloadAsString))) == enctyptedServersChoice) | |
144 | + | let noOtherDataWasProvided = (payloadSize == 2) | |
145 | + | if (if (if (if (if (senderIsServer) | |
146 | + | then feeIsOk | |
147 | + | else false) | |
148 | + | then validServerChoiceWasProvided | |
149 | + | else false) | |
150 | + | then serversSaltWasProvided | |
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 (isServerDecidedNotToPlayState) | |
161 | + | then { | |
162 | + | let recipientIsPlayer = (ttx.recipient == playersAddress) | |
163 | + | let amountIsCorrent = (ttx.amount == (donation * 6)) | |
164 | + | if (if (feeIsOk) | |
165 | + | then recipientIsPlayer | |
166 | + | else false) | |
167 | + | then amountIsCorrent | |
168 | + | else false | |
169 | + | } | |
170 | + | else if (isPlayerDecidedNotToSendDonationState) | |
171 | + | then { | |
172 | + | let recipientIsServer = (ttx.recipient == serversAddress) | |
173 | + | let amountIsCorrect = (ttx.amount == (donation * 5)) | |
174 | + | if (if (feeIsOk) | |
175 | + | then recipientIsServer | |
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, (dataServersChoice - 1)), 1) == "1") | |
186 | + | let playersPart = ((6 * donation) / dataPlayersDicesCount) | |
187 | + | let serversPart = ((6 * donation) - playersPart) | |
188 | + | let winnerAddress = if (playerWon) | |
189 | + | then playersAddress | |
190 | + | else serversAddress | |
191 | + | let prizeGoesToWinner = if ((mtx.transfers[0].recipient == winnerAddress)) | |
192 | + | then (mtx.transfers[0].amount == (playersPart - serversFee)) | |
193 | + | else false | |
194 | + | let feeGoesToServer = if ((mtx.transfers[1].recipient == serversAddress)) | |
195 | + | then (mtx.transfers[1].amount == (serversPart + serversFee)) | |
196 | + | else false | |
197 | + | let thereAreTwoRecipients = (mtx.transferCount == 2) | |
198 | + | if (if (if (feeIsOk) | |
199 | + | then prizeGoesToWinner | |
200 | + | else false) | |
201 | + | then feeGoesToServer | |
202 | + | else false) | |
203 | + | then thereAreTwoRecipients | |
204 | + | else false | |
205 | + | } | |
206 | + | else false | |
207 | + | case _ => | |
208 | + | false | |
209 | + | } |
github/deemru/w8io/026f985 18.62 ms ◑