tx · HhgAdUtkc3K7GSYx9t3VJxW8Gnbgpf5pLmzr3b8R53Dt

3N3KC2tdvnMJGx1m6vidngYmQ9Vx1vD25yQ:  -0.02000000 Waves

2019.12.10 16:35 [802753] smart account 3N3KC2tdvnMJGx1m6vidngYmQ9Vx1vD25yQ > SELF 0.00000000 Waves

{ "type": 13, "id": "HhgAdUtkc3K7GSYx9t3VJxW8Gnbgpf5pLmzr3b8R53Dt", "fee": 2000000, "feeAssetId": null, "timestamp": 1575984847958, "version": 1, "sender": "3N3KC2tdvnMJGx1m6vidngYmQ9Vx1vD25yQ", "senderPublicKey": "5hFJATDiJD8dJsn37rMkyq5azHhoGyy3mSuG98wX4q4S", "proofs": [ "Mrc83G5Td6nKchcVioDNxqdsDRh4d8SA6MZLBrrzvA93h4TvUZgmx7y1UZ35orcDfDJeT8Sd8up7XF9n6GTeads" ], "script": "base64:AAIDAAAAAAAAAA4IARIAEgMKAQESAwoBAQAAACcAAAAAB1dBVkVMRVQJAABoAAAAAgkAAGgAAAACAAAAAAAAAABkAAAAAAAAAAPoAAAAAAAAAAPoAAAAAAVNUlRFQwAAAAAAAAAAZAAAAAAJbWF4Um91bmRzAAAAAAAAAAA8AAAAAAdwbXRTdGVwCQAAaAAAAAIAAAAAAAAAAGQFAAAABU1SVEVDAAAAABBwYXJ0eU93bmVyUHViS2V5CQACWQAAAAECAAAALDVpRGsydllVSDV3OW52S2pTcXZuWGRIR3NZUVc0TWFoUTVFdVVrblhaTE1BAAAAABFwYXJ0eU93bmVyQWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAQcGFydHlPd25lclB1YktleQAAAAAMcGFydHlBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCQACWQAAAAECAAAALDZ0NlBIRUZ4N0JBeWg5cWNrcWNEZWFqVVZOaUg2V05zeUhnZ1hrTHgyN0pvAAAAAA53aXRoZHJhd1BlcmlvZAAAAAAAAACowAAAAA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sgPuA7LXoET1eVEejYrrL8yn6avT5xvaHtVcdmC Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let WAVELET = ((100 * 1000) * 1000)
55
66 let MRTEC = 100
77
88 let maxRounds = 60
99
1010 let pmtStep = (100 * MRTEC)
1111
1212 let partyOwnerPubKey = fromBase58String("5iDk2vYUH5w9nvKjSqvnXdHGsYQW4MahQ5EuUknXZLMA")
1313
1414 let partyOwnerAddress = addressFromPublicKey(partyOwnerPubKey)
1515
1616 let partyAddress = addressFromPublicKey(fromBase58String("6t6PHEFx7BAyh9qckqcDeajUVNiH6WNsyHggXkLx27Jo"))
1717
1818 let withdrawPeriod = 43200
1919
2020 let winAmt = (500 * WAVELET)
2121
2222 let heightStep = 15
2323
2424 let blocksOnGameStart = 1824280
2525
2626 let blocksPerRound = 1460
2727
2828 let blocksPerCompetition = 1450
2929
3030 let MRT = fromBase58String("4uK8i4ThRGbehENwa6MxyLtxAjAo1Rj9fduborGExarC")
3131
3232 let MinFEE = ((5 * WAVELET) / 1000)
3333
3434 let IdxWinHeight = 0
3535
3636 let IdxWinAddress = 1
3737
3838 let IdxWinPubKey = 2
3939
4040 let IdxWithdrawId = 3
4141
4242 func getRoundDataKeyOrFail (round) = if ((0 > round))
4343 then throw("Invalid round number")
4444 else ("round" + toString(round))
4545
4646
4747 func readRoundDataListOrFail (round) = {
4848 let roundDataOpt = getString(partyAddress, getRoundDataKeyOrFail(round))
4949 let roundDataStr = if (isDefined(roundDataOpt))
5050 then extract(roundDataOpt)
5151 else ""
5252 if ((roundDataStr != ""))
5353 then split(roundDataStr, "_")
5454 else ["0", toString(pmtStep), "?", "?", "?", "0"]
5555 }
5656
5757
5858 func readSharedState () = {
5959 let sharedStateOpt = getString(partyAddress, "RoundsSharedState")
6060 let sharedStateStr = if (isDefined(sharedStateOpt))
6161 then extract(sharedStateOpt)
6262 else ""
6363 if ((sharedStateStr != ""))
6464 then split(sharedStateStr, "_")
6565 else ["?", "0", "?"]
6666 }
6767
6868
6969 func writeSetOfRoundData (type,round,newWinHeight,newWinAddressStr,newWinPubKeyStr,withdrawId58) = {
7070 let newWinHeightStr = toString(newWinHeight)
7171 let roundData = DataEntry(getRoundDataKeyOrFail(round), ((((((newWinHeightStr + "_") + newWinAddressStr) + "_") + newWinPubKeyStr) + "_") + withdrawId58))
7272 if ((type == "MOVE"))
7373 then {
7474 let addressLength = size(newWinAddressStr)
7575 let sharedState = readSharedState()
7676 let newTotalGamesCountStr = toString((parseIntValue(sharedState[1]) + 1))
7777 let currLastPlayersAddr = if ((sharedState[2] == "?"))
7878 then ""
7979 else sharedState[2]
8080 let newLastPlayersAddr = if (if ((currLastPlayersAddr != ""))
8181 then (size(currLastPlayersAddr) > ((addressLength + 1) * 10))
8282 else false)
8383 then (("-" + newWinAddressStr) + dropRight(currLastPlayersAddr, (addressLength + 1)))
8484 else (("-" + newWinAddressStr) + currLastPlayersAddr)
8585 WriteSet([roundData, DataEntry("RoundsSharedState", ((((newWinHeightStr + "_") + newTotalGamesCountStr) + "_") + newLastPlayersAddr))])
8686 }
8787 else if ((type == "WITHDRAW"))
8888 then WriteSet([roundData])
8989 else throw(("Unsupported type in writeSetOfRoundData method: " + type))
9090 }
9191
9292
9393 let offset = (height - blocksOnGameStart)
9494
9595 let currRoundNum = if ((offset >= 0))
9696 then (offset / blocksPerRound)
9797 else throw(("Please do not hurry. MRT party will start on " + toString(blocksOnGameStart)))
9898
9999 let currRoundHeight = (offset % blocksPerRound)
100100
101101 let currRoundHeightStart = ((currRoundNum * blocksPerRound) + blocksOnGameStart)
102102
103103 let currRoundCompetitionEnd = (currRoundHeightStart + blocksPerCompetition)
104104
105105 let currRoundDataList = readRoundDataListOrFail(currRoundNum)
106106
107107 let currWinHeight = parseIntValue(currRoundDataList[IdxWinHeight])
108108
109109 let currMinPmtAmt = pmtStep
110110
111111 func isWinByHeight (h) = (height >= h)
112112
113113
114114 let atLeastOneMoveInRoundPresent = (currWinHeight > currRoundHeightStart)
115115
116116 let firstCountdownFinished = if ((currWinHeight == 0))
117117 then isWinByHeight((currRoundHeightStart + heightStep))
118118 else false
119119
120120 let isPauseByWin = if (isWinByHeight(currWinHeight))
121121 then atLeastOneMoveInRoundPresent
122122 else false
123123
124124 let isPauseByTime = if ((currRoundHeight > blocksPerCompetition))
125125 then true
126126 else firstCountdownFinished
127127
128128 let isPause = if (isPauseByWin)
129129 then true
130130 else isPauseByTime
131131
132132 let isCompetition = !(isPause)
133133
134134 func move (p) = if (!(isCompetition))
135135 then throw("o")
136136 else {
137137 let roundDataList = readRoundDataListOrFail(currRoundNum)
138138 let winnerPubKey = fromBase58String(roundDataList[IdxWinPubKey])
139139 if ((p == winnerPubKey))
140140 then throw("=")
141141 else if ((currWinHeight != (height + 1)))
142142 then throw("!")
143143 else true
144144 }
145145
146146
147147 @Callable(inv)
148148 func mover () = {
149149 let overflowedNewWinHeight = (height + heightStep)
150150 let newWinHeight = if ((overflowedNewWinHeight >= currRoundCompetitionEnd))
151151 then currRoundCompetitionEnd
152152 else overflowedNewWinHeight
153153 let payment = if (isDefined(inv.payment))
154154 then extract(inv.payment)
155155 else throw("Please attach payment with MRT to participate in MRT party")
156156 if ((currRoundNum >= maxRounds))
157157 then throw("MRT party is over")
158158 else if (isPause)
159159 then throw((("Sorry but round #" + toString(currRoundNum)) + " is finished."))
160160 else if ((payment.assetId != MRT))
161161 then throw("Please use MRT as a payment asset to participate in MRT party")
162162 else if ((currMinPmtAmt > payment.amount))
163163 then throw(("Sorry my friend but your payment is too small. Current min payment is " + toString(currMinPmtAmt)))
164164 else writeSetOfRoundData("MOVE", currRoundNum, newWinHeight, toString(addressFromPublicKey(inv.callerPublicKey)), toBase58String(inv.callerPublicKey), "?")
165165 }
166166
167167
168168
169169 @Callable(inv)
170170 func withdraw (round) = {
171171 let roundDataList = readRoundDataListOrFail(round)
172172 let winnerPubKey = fromBase58String(roundDataList[IdxWinPubKey])
173173 let withdrawId58 = roundDataList[IdxWithdrawId]
174174 if ((round > currRoundNum))
175175 then throw("Impossible to withdraw win amount for round in future")
176176 else if (if ((round == currRoundNum))
177177 then isCompetition
178178 else false)
179179 then throw("Impossible to withdraw win amount - winner has not been determined yet")
180180 else if ((withdrawId58 != "?"))
181181 then throw((("Winner of round #" + toString(round)) + " has already taken the prize"))
182182 else {
183183 let withdrawPeriodEnded = (height > ((blocksOnGameStart + (maxRounds * blocksPerRound)) + withdrawPeriod))
184184 let winAmtRecipient = if (withdrawPeriodEnded)
185185 then partyOwnerAddress
186186 else addressFromPublicKey(winnerPubKey)
187187 let roundWinHeight = parseIntValue(roundDataList[IdxWinHeight])
188188 ScriptResult(writeSetOfRoundData("WITHDRAW", round, roundWinHeight, roundDataList[IdxWinAddress], roundDataList[IdxWinPubKey], toBase58String(inv.transactionId)), TransferSet([ScriptTransfer(winAmtRecipient, winAmt, unit)]))
189189 }
190190 }
191191
192192
193193
194194 @Callable(i)
195195 func f (round) = {
196196 let RSA = addressFromStringValue("3N3KC2tdvnMJGx1m6vidngYmQ9Vx1vD25yQ")
197197 let keeper = RSA
198198 let pub = getBinaryValue(keeper, "pub")
199199 let r = getInteger(this, "STATUS")
200200 let msg0 = getBinaryValue(keeper, "msg_0")
201201 let sig0 = getBinaryValue(keeper, "sig_0")
202202 let add0 = addressFromPublicKey(take(msg0, 32))
203203 let msg1 = getBinaryValue(keeper, "msg_0")
204204 let sig1 = getBinaryValue(keeper, "sig_0")
205205 let add1 = addressFromPublicKey(take(msg1, 32))
206206 let msg2 = getBinaryValue(keeper, "msg_0")
207207 let sig2 = getBinaryValue(keeper, "sig_0")
208208 let add2 = addressFromPublicKey(take(msg2, 32))
209209 let msg3 = getBinaryValue(keeper, "msg_0")
210210 let sig3 = getBinaryValue(keeper, "sig_0")
211211 let add3 = addressFromPublicKey(take(msg3, 32))
212212 let msg4 = getBinaryValue(keeper, "msg_0")
213213 let sig4 = getBinaryValue(keeper, "sig_0")
214214 let add4 = addressFromPublicKey(take(msg4, 32))
215215 let add5 = addressFromPublicKey(take(drop(msg4, 32), 32))
216216 let add6 = addressFromPublicKey(take(drop(drop(msg4, 32), 32), 32))
217217 let add7 = addressFromPublicKey(take(drop(drop(drop(msg4, 32), 32), 32), 32))
218218 let add8 = addressFromPublicKey(take(drop(drop(drop(drop(msg4, 32), 32), 32), 32), 32))
219219 let add9 = addressFromPublicKey(take(drop(drop(drop(drop(drop(msg4, 32), 32), 32), 32), 32), 32))
220220 let v0 = if (rsaVerify(SHA512, msg0, sig0, pub))
221221 then 1
222222 else 0
223223 let v1 = if (rsaVerify(SHA512, msg1, sig1, pub))
224224 then 1
225225 else 0
226226 let v2 = if (rsaVerify(SHA512, msg2, sig2, pub))
227227 then 1
228228 else 0
229229 let v3 = if (rsaVerify(SHA512, msg3, sig3, pub))
230230 then 1
231231 else 0
232232 let v4 = if (rsaVerify(SHA512, msg4, sig4, pub))
233233 then 1
234234 else 0
235235 let v01 = if (rsaVerify(SHA512, msg0, sig1, pub))
236236 then 1
237237 else 0
238238 let v11 = if (rsaVerify(SHA512, msg1, sig2, pub))
239239 then 1
240240 else 0
241241 let v21 = if (rsaVerify(SHA512, msg2, sig3, pub))
242242 then 1
243243 else 0
244244 let v31 = if (rsaVerify(SHA512, msg3, sig4, pub))
245245 then 1
246246 else 0
247247 let v41 = if (rsaVerify(SHA512, msg4, sig0, pub))
248248 then 1
249249 else 0
250250 if ((((((((v0 + v1) + v2) + v3) + v4) + v31) + v41) == round))
251251 then throw("F")
252252 else if (!(isDefined(getInteger(this, toString(round)))))
253253 then ScriptResult(WriteSet([DataEntry(toString(round), round)]), TransferSet(nil))
254254 else throw("R")
255255 }
256256
257257
258258 @Verifier(tx)
259259 func verify () = if (true)
260260 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
261261 else {
262262 let withdrawPeriodEnded = (height > ((blocksOnGameStart + (maxRounds * blocksPerRound)) + withdrawPeriod))
263263 match tx {
264264 case ttx: TransferTransaction =>
265265 sigVerify(ttx.bodyBytes, ttx.proofs[0], ttx.senderPublicKey)
266266 case itx: InvokeScriptTransaction =>
267267 if (!(sigVerify(itx.bodyBytes, itx.proofs[0], itx.senderPublicKey)))
268268 then throw("s")
269269 else move(itx.senderPublicKey)
270270 case btx: BurnTransaction =>
271271 if (!(withdrawPeriodEnded))
272272 then throw("MRT party has not finished yet. Burn is not allowed.")
273273 else if (!(sigVerify(btx.bodyBytes, btx.proofs[0], partyOwnerPubKey)))
274274 then throw("Burn is allowed for Party Owner only.")
275275 else if ((btx.fee != MinFEE))
276276 then throw(("Impossible to burn with fee less or greater than " + toString(MinFEE)))
277277 else true
278278 case _ =>
279279 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
280280 }
281281 }
282282

github/deemru/w8io/169f3d6 
64.57 ms