tx · BuV6LKN5CapuViLrxQP9yJ4hb9EwPGgpJUbv7rQQmX5h 3N89qZXWk73aTsjqV1f6EzVTD7DkRnwKED1: -0.01000000 Waves 2019.10.21 18:24 [730016] smart account 3N89qZXWk73aTsjqV1f6EzVTD7DkRnwKED1 > SELF 0.00000000 Waves
{ "type": 13, "id": "BuV6LKN5CapuViLrxQP9yJ4hb9EwPGgpJUbv7rQQmX5h", "fee": 1000000, "feeAssetId": null, "timestamp": 1571671504887, "version": 1, "sender": "3N89qZXWk73aTsjqV1f6EzVTD7DkRnwKED1", "senderPublicKey": "3UV6Y9DX9ch2tvJNiDM34GrTS3ZBkN2Kdt1dkWbQzcEW", "proofs": [ "58SWrXs8WYGd3DLMuREWHCWhcRDryygA2rVMNLQ5sRiU5LZMnwE4dHJTH5gtcyrko16qZoKPHM1UV9zP1bg5A4M6" ], "script": "base64:AAIDAAAAAAAAAAoIARIAEgQKAgEIAAAAKQAAAAAHV0FWRUxFVAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAA+gAAAAAAAAAA+gAAAAABU1SVEVDAAAAAAAAAABkAAAAAAltYXhSb3VuZHMAAAAAAAX14QAAAAAAB3BtdFN0ZXAJAABoAAAAAgAAAAAAAAAACgUAAAAFTVJURUMAAAAAEHBhcnR5T3duZXJQdWJLZXkJAAJZAAAAAQIAAAAsRkNhUDRqTGhMYXd6RXFid0FRR0FWdlBRQnYyaDNMZEVSQ3g3ZmNrRHZuenIAAAAAEXBhcnR5T3duZXJBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAABBwYXJ0eU93bmVyUHViS2V5AAAAAA1sZWFzaW5nUGVyaW9kAAAAAAAACSfAAAAAABFsZWFzaW5nSWRMaWZldGltZQAAAAAAAAAAlgAAAAAXbGVhc2luZ0lkRGlmZkluTGlmZXRpbWUAAAAAAAAAAAoAAAAACmxlYXNpbmdBbXQJAABoAAAAAgAAAAAAAAAAAQUAAAAHV0FW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pdGggZmVlIGxlc3Mgb3IgZ3JlYXRlciB0aGFuIAkAAaQAAAABBQAAAAZNaW5GRUUGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDADCQEAAAABIQAAAAEFAAAAEmxlYXNpbmdQZXJpb2RFbmRlZAkAAAIAAAABAgAAADhNUlQgcGFydHkgaGFzIG5vdCBmaW5pc2hlZCB5ZXQuIFRyYW5zZmVyIGlzIG5vdCBhbGxvd2VkLgMJAQAAAAIhPQAAAAIICQAEJAAAAAEIBQAAAAN0dHgAAAAJcmVjaXBpZW50AAAABWJ5dGVzCAUAAAARcGFydHlPd25lckFkZHJlc3MAAAAFYnl0ZXMJAAACAAAAAQIAAAAvVHJhbnNmZXIgaXMgYWxsb3dlZCB0byBQYXJ0eSBPd25lciBhZGRyZXNzIG9ubHkDCQEAAAABIQAAAAEJAAH0AAAAAwgFAAAAA3R0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAA3R0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAEHBhcnR5T3duZXJQdWJLZXkJAAACAAAAAQIAAAApVHJhbnNmZXIgaXMgYWxsb3dlZCBmb3IgUGFydHkgT3duZXIgb25seS4GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQddDOsO", "chainId": 84, "height": 730016, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let WAVELET = ((100 * 1000) * 1000) | |
5 | + | ||
6 | + | let MRTEC = 100 | |
7 | + | ||
8 | + | let maxRounds = 100000000 | |
9 | + | ||
10 | + | let pmtStep = (10 * MRTEC) | |
11 | + | ||
12 | + | let partyOwnerPubKey = fromBase58String("FCaP4jLhLawzEqbwAQGAVvPQBv2h3LdERCx7fckDvnzr") | |
13 | + | ||
14 | + | let partyOwnerAddress = addressFromPublicKey(partyOwnerPubKey) | |
15 | + | ||
16 | + | let leasingPeriod = 600000 | |
17 | + | ||
18 | + | let leasingIdLifetime = 150 | |
19 | + | ||
20 | + | let leasingIdDiffInLifetime = 10 | |
21 | + | ||
22 | + | let leasingAmt = (1 * WAVELET) | |
23 | + | ||
24 | + | let heightStep = 2 | |
25 | + | ||
26 | + | let blocksOnGameStart = 730015 | |
27 | + | ||
28 | + | let blocksPerRound = 12 | |
29 | + | ||
30 | + | let blocksPerCompetition = 8 | |
31 | + | ||
32 | + | let MRT = fromBase58String("8b4jE7X1yCNcbF4YXZGBKc8T5xdit7b1gENxxx31daua") | |
33 | + | ||
34 | + | let MinFEE = ((5 * WAVELET) / 1000) | |
35 | + | ||
36 | + | let IdxWinHeight = 0 | |
37 | + | ||
38 | + | let IdxWinPubKey = 1 | |
39 | + | ||
40 | + | let IdxLeasingId = 2 | |
41 | + | ||
42 | + | let IdxLeasingIdValidTill = 3 | |
43 | + | ||
44 | + | func convertChar (char) = { | |
45 | + | let B0 = toBytes("0") | |
46 | + | let B1 = toBytes("1") | |
47 | + | let B2 = toBytes("2") | |
48 | + | let B3 = toBytes("3") | |
49 | + | let B4 = toBytes("4") | |
50 | + | let B5 = toBytes("5") | |
51 | + | let B6 = toBytes("6") | |
52 | + | let B7 = toBytes("7") | |
53 | + | let B8 = toBytes("8") | |
54 | + | let B9 = toBytes("9") | |
55 | + | if ((char == B0)) | |
56 | + | then "0" | |
57 | + | else if ((char == B1)) | |
58 | + | then "1" | |
59 | + | else if ((char == B2)) | |
60 | + | then "2" | |
61 | + | else if ((char == B3)) | |
62 | + | then "3" | |
63 | + | else if ((char == B4)) | |
64 | + | then "4" | |
65 | + | else if ((char == B5)) | |
66 | + | then "5" | |
67 | + | else if ((char == B6)) | |
68 | + | then "6" | |
69 | + | else if ((char == B7)) | |
70 | + | then "7" | |
71 | + | else if ((char == B8)) | |
72 | + | then "8" | |
73 | + | else if ((char == B9)) | |
74 | + | then "9" | |
75 | + | else throw("Unsupported char") | |
76 | + | } | |
77 | + | ||
78 | + | ||
79 | + | func proofToStr (roundNumProof) = { | |
80 | + | let s = size(roundNumProof) | |
81 | + | if ((s > 2)) | |
82 | + | then throw("Invalid ecoded round - size couldn't be greater than 2") | |
83 | + | else if ((0 >= s)) | |
84 | + | then throw("Invalid ecoded round - size couldn't be less than or equals 0") | |
85 | + | else if ((s == 1)) | |
86 | + | then convertChar(take(roundNumProof, 1)) | |
87 | + | else if ((s == 2)) | |
88 | + | then (convertChar(take(roundNumProof, 1)) + convertChar(take(drop(roundNumProof, 1), 1))) | |
89 | + | else throw("Invalid encoded round") | |
90 | + | } | |
91 | + | ||
92 | + | ||
93 | + | func getRoundDataKeyOrFail (round) = if ((0 > round)) | |
94 | + | then throw("Invalid round number") | |
95 | + | else ("round" + toString(round)) | |
96 | + | ||
97 | + | ||
98 | + | func readRoundDataListOrFail (round) = { | |
99 | + | let roundDataOpt = getString(this, getRoundDataKeyOrFail(round)) | |
100 | + | let roundDataStr = if (isDefined(roundDataOpt)) | |
101 | + | then extract(roundDataOpt) | |
102 | + | else "" | |
103 | + | let partyOwnerAddressStr = toBase58String(partyOwnerAddress.bytes) | |
104 | + | if ((roundDataStr != "")) | |
105 | + | then split(roundDataStr, "_") | |
106 | + | else ["0", toString(pmtStep), partyOwnerAddressStr, "?", "0"] | |
107 | + | } | |
108 | + | ||
109 | + | ||
110 | + | func readSharedState () = { | |
111 | + | let sharedStateOpt = getString(this, "RoundsSharedState") | |
112 | + | let sharedStateStr = if (isDefined(sharedStateOpt)) | |
113 | + | then extract(sharedStateOpt) | |
114 | + | else "" | |
115 | + | if ((sharedStateStr != "")) | |
116 | + | then split(sharedStateStr, "_") | |
117 | + | else ["", "0", ""] | |
118 | + | } | |
119 | + | ||
120 | + | ||
121 | + | func writeSetOfRoundData (type,round,newWinHeight,newWinPubKeyStr,newWinPubKey,leasingId58,leaseIdExpirationHeight) = { | |
122 | + | let newWinHeightStr = toString(newWinHeight) | |
123 | + | let roundData = DataEntry(getRoundDataKeyOrFail(round), ((((((newWinHeightStr + "_") + newWinPubKeyStr) + "_") + leasingId58) + "_") + toString(leaseIdExpirationHeight))) | |
124 | + | if ((type == "MOVE")) | |
125 | + | then { | |
126 | + | let newWinAddressStr = toString(addressFromPublicKey(newWinPubKey)) | |
127 | + | let addressLength = size(newWinAddressStr) | |
128 | + | let sharedState = readSharedState() | |
129 | + | let newTotalGamesCountStr = toString((parseIntValue(sharedState[1]) + 1)) | |
130 | + | let currLastPlayersAddr = sharedState[2] | |
131 | + | let newLastPlayersAddr = if (if ((currLastPlayersAddr != "")) | |
132 | + | then (size(currLastPlayersAddr) > ((addressLength + 1) * 10)) | |
133 | + | else false) | |
134 | + | then (("-" + newWinAddressStr) + dropRight(currLastPlayersAddr, (addressLength + 1))) | |
135 | + | else (("-" + newWinAddressStr) + currLastPlayersAddr) | |
136 | + | WriteSet([roundData, DataEntry("RoundsSharedState", ((((newWinHeightStr + "_") + newTotalGamesCountStr) + "_") + newLastPlayersAddr))]) | |
137 | + | } | |
138 | + | else if ((type == "LEASING")) | |
139 | + | then WriteSet([roundData]) | |
140 | + | else throw(("Unsupported type in writeSetOfRoundData method: " + type)) | |
141 | + | } | |
142 | + | ||
143 | + | ||
144 | + | let offset = (height - blocksOnGameStart) | |
145 | + | ||
146 | + | let currRoundNum = if ((offset >= 0)) | |
147 | + | then (offset / blocksPerRound) | |
148 | + | else throw(("Please do not hurry. MRT party will start on " + toString(blocksOnGameStart))) | |
149 | + | ||
150 | + | let currRoundHeight = (offset % blocksPerRound) | |
151 | + | ||
152 | + | let currRoundHeightStart = ((currRoundNum * blocksPerRound) + blocksOnGameStart) | |
153 | + | ||
154 | + | let currRoundCompetitionEnd = (currRoundHeightStart + blocksPerCompetition) | |
155 | + | ||
156 | + | let currRoundDataList = readRoundDataListOrFail(currRoundNum) | |
157 | + | ||
158 | + | let currWinHeight = parseIntValue(currRoundDataList[IdxWinHeight]) | |
159 | + | ||
160 | + | let currMinPmtAmt = pmtStep | |
161 | + | ||
162 | + | func isWinByHeight (h) = (height >= h) | |
163 | + | ||
164 | + | ||
165 | + | let atLeastOneMoveInRoundPresent = (currWinHeight > currRoundHeightStart) | |
166 | + | ||
167 | + | let firstCountdownFinished = if ((currWinHeight == 0)) | |
168 | + | then isWinByHeight((currRoundHeightStart + heightStep)) | |
169 | + | else false | |
170 | + | ||
171 | + | let isPauseByWin = if (isWinByHeight(currWinHeight)) | |
172 | + | then atLeastOneMoveInRoundPresent | |
173 | + | else false | |
174 | + | ||
175 | + | let isPauseByTime = if ((currRoundHeight > blocksPerCompetition)) | |
176 | + | then true | |
177 | + | else firstCountdownFinished | |
178 | + | ||
179 | + | let isPause = if (isPauseByWin) | |
180 | + | then true | |
181 | + | else isPauseByTime | |
182 | + | ||
183 | + | let isCompetition = !(isPause) | |
184 | + | ||
185 | + | @Callable(inv) | |
186 | + | func move () = { | |
187 | + | let overflowedNewWinHeight = (height + heightStep) | |
188 | + | let newWinHeight = if ((overflowedNewWinHeight >= currRoundCompetitionEnd)) | |
189 | + | then currRoundCompetitionEnd | |
190 | + | else overflowedNewWinHeight | |
191 | + | let payment = if (isDefined(inv.payment)) | |
192 | + | then extract(inv.payment) | |
193 | + | else throw("Please attach payment with MRT to participate in MRT party") | |
194 | + | if ((currRoundNum >= maxRounds)) | |
195 | + | then throw("MRT party is over") | |
196 | + | else if (isPause) | |
197 | + | then throw((("Sorry but round #" + toString(currRoundNum)) + " is finished.")) | |
198 | + | else if ((payment.assetId != MRT)) | |
199 | + | then throw("Please use MRT as a payment asset to participate in MRT party") | |
200 | + | else if ((currMinPmtAmt > payment.amount)) | |
201 | + | then throw(("Sorry my friend but your payment is to small. Current min payment is " + toString(currMinPmtAmt))) | |
202 | + | else writeSetOfRoundData("MOVE", currRoundNum, newWinHeight, toBase58String(inv.callerPublicKey), inv.callerPublicKey, "?", 0) | |
203 | + | } | |
204 | + | ||
205 | + | ||
206 | + | ||
207 | + | @Callable(inv) | |
208 | + | func registerLeasingTx (round,leasingId58) = { | |
209 | + | let leasingId = fromBase58String(leasingId58) | |
210 | + | let roundDataList = readRoundDataListOrFail(round) | |
211 | + | let winnerPubKey = fromBase58String(roundDataList[IdxWinPubKey]) | |
212 | + | let leaseIdExpirationHeight = parseIntValue(roundDataList[IdxLeasingIdValidTill]) | |
213 | + | if ((round > currRoundNum)) | |
214 | + | then throw("Impossible to register leasing transaction for round in future") | |
215 | + | else if (if ((round == currRoundNum)) | |
216 | + | then isCompetition | |
217 | + | else false) | |
218 | + | then throw("Impossible to register leasing transaction - winner has not been determined yet") | |
219 | + | else if ((size(leasingId58) != 44)) | |
220 | + | then throw("Invalid leasing transaction id length") | |
221 | + | else if ((0 >= size(leasingId))) | |
222 | + | then throw("Leasing transaction id is not encoded as Base58 format") | |
223 | + | else if (isDefined(transactionHeightById(leasingId))) | |
224 | + | then throw("Passed leasingId has already existed in blockchain") | |
225 | + | else if (if ((leaseIdExpirationHeight != 0)) | |
226 | + | then (height > leaseIdExpirationHeight) | |
227 | + | else false) | |
228 | + | then throw(("Leasing id can be re-registered only on " + toString(leaseIdExpirationHeight))) | |
229 | + | else if ((roundDataList[IdxLeasingId] != "?")) | |
230 | + | then throw(("Leasing tx id has already registered for round " + toString(round))) | |
231 | + | else if ((inv.callerPublicKey != winnerPubKey)) | |
232 | + | then throw("Leasing tx can be registered by round winner only") | |
233 | + | else { | |
234 | + | let roundWinHeight = parseIntValue(roundDataList[IdxWinHeight]) | |
235 | + | writeSetOfRoundData("LEASING", round, roundWinHeight, roundDataList[IdxWinPubKey], toBytes(""), leasingId58, (height + leasingIdLifetime)) | |
236 | + | } | |
237 | + | } | |
238 | + | ||
239 | + | ||
240 | + | @Verifier(tx) | |
241 | + | func verify () = { | |
242 | + | let leasingPeriodEnded = (height > ((blocksOnGameStart + (maxRounds * blocksPerRound)) + leasingPeriod)) | |
243 | + | match tx { | |
244 | + | case ltx: LeaseTransaction => | |
245 | + | let sig = ltx.proofs[0] | |
246 | + | let round = valueOrErrorMessage(parseInt(proofToStr(ltx.proofs[1])), "Error during converting round num into integer representation") | |
247 | + | let roundDataList = readRoundDataListOrFail(round) | |
248 | + | let roundWinPubKey = fromBase58String(roundDataList[IdxWinPubKey]) | |
249 | + | let registeredLeasingId = fromBase58String(roundDataList[IdxLeasingId]) | |
250 | + | let leaseIdExpirationHeight = parseIntValue(roundDataList[IdxLeasingIdValidTill]) | |
251 | + | if (leasingPeriodEnded) | |
252 | + | then throw("Sorry but leasing period has been ended") | |
253 | + | else if ((height > (leaseIdExpirationHeight - leasingIdDiffInLifetime))) | |
254 | + | then throw("Sorry but lifetime of your leasing transaction id has been expired") | |
255 | + | else if (!(sigVerify(ltx.bodyBytes, sig, roundWinPubKey))) | |
256 | + | then throw("Invalid leasing transaction signature. Leasing is allowed for winner only.") | |
257 | + | else if ((ltx.id != registeredLeasingId)) | |
258 | + | then throw("Leasing transaction id doesn't match with registered leasing id") | |
259 | + | else if ((ltx.amount != leasingAmt)) | |
260 | + | then throw(("Impossible to lease less or greater than " + toString(leasingAmt))) | |
261 | + | else if ((ltx.fee != MinFEE)) | |
262 | + | then throw(("Impossible to lease with fee less or greater than " + toString(MinFEE))) | |
263 | + | else true | |
264 | + | case cltx: LeaseCancelTransaction => | |
265 | + | if (!(leasingPeriodEnded)) | |
266 | + | then throw("MRT party has not finished yet. Leasing Cancel is not allowed.") | |
267 | + | else if (!(sigVerify(tx.bodyBytes, tx.proofs[0], partyOwnerPubKey))) | |
268 | + | then throw("Leasing Cancel is allowed to Party Owner only") | |
269 | + | else if ((cltx.fee != MinFEE)) | |
270 | + | then throw(("Impossible to cancle leasing with fee less or greater than " + toString(MinFEE))) | |
271 | + | else true | |
272 | + | case ttx: TransferTransaction => | |
273 | + | if (!(leasingPeriodEnded)) | |
274 | + | then throw("MRT party has not finished yet. Transfer is not allowed.") | |
275 | + | else if ((addressFromRecipient(ttx.recipient).bytes != partyOwnerAddress.bytes)) | |
276 | + | then throw("Transfer is allowed to Party Owner address only") | |
277 | + | else if (!(sigVerify(ttx.bodyBytes, ttx.proofs[0], partyOwnerPubKey))) | |
278 | + | then throw("Transfer is allowed for Party Owner only.") | |
279 | + | else true | |
280 | + | case stx: SetScriptTransaction => | |
281 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
282 | + | case _ => | |
283 | + | false | |
284 | + | } | |
285 | + | } | |
286 | + |
github/deemru/w8io/026f985 23.31 ms ◑