tx · B1oeawy8RSFyDmshg5iATKRaoZRZL1gaKCnCAwhKtLj4

3MvJDKBFzztnd7KCU78zgJ8qUuzVux4c9yw:  -0.01000000 Waves

2022.10.23 14:26 [2284982] smart account 3MvJDKBFzztnd7KCU78zgJ8qUuzVux4c9yw > SELF 0.00000000 Waves

{ "type": 13, "id": "B1oeawy8RSFyDmshg5iATKRaoZRZL1gaKCnCAwhKtLj4", "fee": 1000000, "feeAssetId": null, "timestamp": 1666524423876, "version": 2, "chainId": 84, "sender": "3MvJDKBFzztnd7KCU78zgJ8qUuzVux4c9yw", "senderPublicKey": "9gVuyFNzke49pnadJxJ312ZWhYudDhdcqP5hsm5pGQw6", "proofs": [ "1Hu8aMyeGwCWvsprkfh1L9UgJZMXJgq31uUDLJEvnp1f4G8DoSFE7FVLvdApdgK2gH2gi8BfFA569vfaMRLSkT1" ], "script": "base64:BgIyCAISAwoBCBIDCgEIEgYKBAgBAQgSBQoDCAEIEgUKAwgIARIAEgQKAggEEgQKAggEEgAtAAl1bmRlZmluZWQCCXVuZGVmaW5lZAAJc2VwYXJhdG9yAgE7ABBjb25maWdBZGRyZXNzS2V5AgZjb25maWcAE2NvbGxlY3RvckFkZHJlc3NLZXkCEWNvbGxlY3Rvcl9hZGRyZXNzABFoaXN0b3J5QWRkcmVzc0tleQIPaGlzdG9yeV9hZGRyZXNzABJwYXltYWtlckFkZHJlc3NLZXkCEHBheW1ha2VyX2FkZHJlc3MACWFkbWluc0tleQIGYWRtaW5zAA1jb25maWdBZGRyZXNzCQERQGV4dHJOYXRpdmUoMTA2MikBCQERQGV4dHJOYXRpdmUoMTA1MykCBQR0aGlzBRBjb25maWdBZGRyZXNzS2V5ABBjb2xsZWN0b3JBZGRyZXNzCQERQGV4dHJOYXRpdmUoMTA2MikBCQERQGV4dHJOYXRpdmUoMTA1MykCBQ1jb25maWdBZGRyZXNzBRNjb2xsZWN0b3JBZGRyZXNzS2V5AA5oaXN0b3J5QWRkcmVzcwkBEUBleHRyTmF0aX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luaXNoZWRFdmVudAUPbGFzdEFjdGl2ZUV2ZW50BQNuaWwJAMwIAgkBC1N0cmluZ0VudHJ5AgUNZmlyc3RFdmVudEtleQUKZmlyc3RFdmVudAkAzAgCCQELU3RyaW5nRW50cnkCBQxsYXN0RXZlbnRLZXkFCWxhc3RFdmVudAUDbmlsAI+DQ8E=", "height": 2284982, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ERvswQ6XDy5xjMvC1oBeMZbf2AiX16vNEKryiocJUvTW Next: HSuraZZehPmJxi7MVzuyvyJvuzjnteD67u56tSC5kFR3 Diff:
OldNewDifferences
278278 let newListIndex = if (if ((listSize >= 100))
279279 then (countBetsPrice == 0)
280280 else false)
281- then listIndex
282- else (listIndex + 1)
281+ then (listIndex + 1)
282+ else listIndex
283283 let newGroupsCount = (((newListIndex - 1) / 10) + 1)
284284 [IntegerEntry(getPriceAddressKey(eventId, addressStr), price), IntegerEntry(getPricesListsCountKey(eventId), newListIndex), IntegerEntry(getPricesGroupsCountKey(eventId), newGroupsCount), StringEntry(getPricesListNKey(eventId, newListIndex), newPrices)]
285285 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let undefined = "undefined"
55
66 let separator = ";"
77
88 let configAddressKey = "config"
99
1010 let collectorAddressKey = "collector_address"
1111
1212 let historyAddressKey = "history_address"
1313
1414 let paymakerAddressKey = "paymaker_address"
1515
1616 let adminsKey = "admins"
1717
1818 let configAddress = addressFromStringValue(getStringValue(this, configAddressKey))
1919
2020 let collectorAddress = addressFromStringValue(getStringValue(configAddress, collectorAddressKey))
2121
2222 let historyAddress = addressFromStringValue(getStringValue(configAddress, historyAddressKey))
2323
2424 let paymakerAddress = addressFromStringValue(getStringValue(configAddress, paymakerAddressKey))
2525
2626 func isAdmin (caller) = {
2727 let admRow = valueOrElse(getString(configAddress, adminsKey), "")
2828 if (if ((caller == this))
2929 then true
3030 else contains(admRow, toString(caller)))
3131 then true
3232 else false
3333 }
3434
3535
3636 func getCheckerKey (checker) = ("checker_" + checker)
3737
3838
3939 func isChecker (checker) = {
4040 let isExists = isDefined(getBoolean(configAddress, getCheckerKey(checker)))
4141 isExists
4242 }
4343
4444
4545 let USDN = base58'2eFPx8M5qwNFRbW91pzsyBKMz1FZmYMUW3BVZzTQmbFD'
4646
4747 let minAmount = 10000000
4848
4949 let feeNumerator = 5
5050
5151 let feeDenominator = 100
5252
5353 let maxBetsOnPrice = 3
5454
5555 let firstEventKey = "first_event"
5656
5757 let lastEventKey = "last_event"
5858
5959 let fisrtFinishedEventKey = "first_finished_event"
6060
6161 let lastFinishedEventKey = "last_finished_event"
6262
6363 let fisrtActiveEventKey = "first_active_event"
6464
6565 let lastActiveEventKey = "last_active_event"
6666
6767 func getStartBlockKey (eventId) = (eventId + "_start_block")
6868
6969
7070 func getEndBlockKey (eventId) = (eventId + "_end_block")
7171
7272
7373 func getFinishAtKey (eventId) = (eventId + "_finish_at_block")
7474
7575
7676 func getIdKey (eventId) = (eventId + "_id")
7777
7878
7979 func getStatusKey (eventId) = (eventId + "_status")
8080
8181
8282 func getDescKey (eventId) = (eventId + "_description")
8383
8484
8585 func getPrevEventKey (eventId) = (eventId + "_prev_event")
8686
8787
8888 func getNextEventKey (eventId) = (eventId + "_next_event")
8989
9090
9191 func getAssetIdKey (eventId) = (eventId + "_asset_id")
9292
9393
9494 func getTotalAmountKey (eventId) = (eventId + "_total_amount")
9595
9696
9797 func getPricesGroupsCountKey (eventId) = (eventId + "_prices_group_count")
9898
9999
100100 func getPricesListsCountKey (eventId) = (eventId + "_prices_list_count")
101101
102102
103103 func getPricesListNKey (eventId,n) = ((eventId + "_prices_list_") + toString(n))
104104
105105
106106 func getPriceBetsCount (eventId,price) = (((eventId + "_") + toString(price)) + "_bets_count")
107107
108108
109109 func getPriceAddressKey (eventId,address) = (((eventId + "_") + address) + "_price")
110110
111111
112112 func asInt (v) = match v {
113113 case x: Int =>
114114 x
115115 case t =>
116116 throw("#err")
117117 }
118118
119119
120120 func asString (v) = match v {
121121 case x: String =>
122122 x
123123 case _ =>
124124 throw("#err")
125125 }
126126
127127
128128 func getAssetInfo (assetStr) = {
129129 let assetId = fromBase58String(assetStr)
130130 let x = match assetInfo(assetId) {
131131 case asset: Asset =>
132132 $Tuple2(assetStr, asset.decimals)
133133 case _ =>
134134 $Tuple2("WAVES", 0)
135135 }
136136 x
137137 }
138138
139139
140140 func getStatus (eventId) = {
141141 let status = getStringValue(this, getStatusKey(eventId))
142142 if (if (if ((status == "finished"))
143143 then true
144144 else (status == "#"))
145145 then true
146146 else (status == "ended"))
147147 then status
148148 else {
149149 let finishAt = getIntegerValue(this, getFinishAtKey(eventId))
150150 let startBlock = getIntegerValue(this, getStartBlockKey(eventId))
151151 let endBlock = getIntegerValue(this, getEndBlockKey(eventId))
152152 if ((startBlock > height))
153153 then "awaiting"
154154 else if (if ((height >= startBlock))
155155 then (endBlock >= height)
156156 else false)
157157 then "active"
158158 else if (if ((height > endBlock))
159159 then (finishAt >= height)
160160 else false)
161161 then "confirmation"
162162 else if ((height > finishAt))
163163 then "finished"
164164 else throw("unknown status")
165165 }
166166 }
167167
168168
169169 func registerEvent (txid,desc,startBlock,endBlock,finishAt,assetStr) = {
170170 let eventId = txid
171171 let insert = invoke(this, "insertToList", [eventId, true], nil)
172172 if ((insert == insert))
173173 then {
174174 let concat = invoke(this, "concatLists", nil, nil)
175175 if ((concat == concat))
176176 then {
177177 let $t048674920 = getAssetInfo(assetStr)
178178 let assetId = $t048674920._1
179179 let assetDecimals = $t048674920._2
180180 [IntegerEntry(getStartBlockKey(eventId), startBlock), IntegerEntry(getEndBlockKey(eventId), endBlock), IntegerEntry(getFinishAtKey(eventId), finishAt), StringEntry(getDescKey(eventId), desc), StringEntry(getStatusKey(eventId), "new"), StringEntry(getIdKey(eventId), eventId), StringEntry(getAssetIdKey(eventId), assetId)]
181181 }
182182 else throw("Strict value is not equal to itself.")
183183 }
184184 else throw("Strict value is not equal to itself.")
185185 }
186186
187187
188188 @Callable(i)
189189 func init (config) = if ((i.caller != this))
190190 then throw("only main can do")
191191 else {
192192 let isExists = isDefined(getString(this, configAddressKey))
193193 if (!(isExists))
194194 then [StringEntry(configAddressKey, config)]
195195 else throw("already inited")
196196 }
197197
198198
199199
200200 @Callable(i)
201201 func appendEventer (desc) = if (!(isAdmin(i.caller)))
202202 then throw("only admin can do")
203203 else {
204204 let inv = invoke(configAddress, "setEventer", [toString(this), desc], nil)
205205 if ((inv == inv))
206206 then nil
207207 else throw("Strict value is not equal to itself.")
208208 }
209209
210210
211211
212212 @Callable(i)
213213 func fullRegisterEvent (desc,startBlock,duration,assetStr) = {
214214 let newStartBlock = if ((startBlock == 0))
215215 then height
216216 else startBlock
217217 let endBlock = (newStartBlock + duration)
218218 let finishAt = (endBlock + 1440)
219219 if (!(isAdmin(i.caller)))
220220 then throw("only admin can do")
221221 else {
222222 let txid = toBase58String(i.transactionId)
223223 registerEvent(txid, desc, newStartBlock, endBlock, finishAt, assetStr)
224224 }
225225 }
226226
227227
228228
229229 @Callable(i)
230230 func choice (eventId,price,address) = {
231231 let status = getStatus(eventId)
232232 if ((status == "active"))
233233 then {
234234 let neededAmount = 10000000
235235 let neededAsset = USDN
236236 if (if (if ((size(i.payments) == 1))
237237 then (i.payments[0].assetId == neededAsset)
238238 else false)
239239 then (i.payments[0].amount == neededAmount)
240240 else false)
241241 then {
242242 let invAppend = invoke(this, "appendBetsList", [eventId, address, price], nil)
243243 if ((invAppend == invAppend))
244244 then {
245245 let currentTotal = valueOrElse(getInteger(this, getTotalAmountKey(eventId)), 0)
246246 [IntegerEntry(getTotalAmountKey(eventId), (currentTotal + i.payments[0].amount))]
247247 }
248248 else throw("Strict value is not equal to itself.")
249249 }
250250 else throw("Bad payment")
251251 }
252252 else throw("You can`t do it")
253253 }
254254
255255
256256
257257 @Callable(i)
258258 func appendBetsList (eventId,addressStr,price) = if ((i.caller != this))
259259 then throw("only main can do")
260260 else if (isDefined(getString(this, getPriceAddressKey(eventId, addressStr))))
261261 then throw("betting from this address is exists")
262262 else {
263263 let countBetsPrice = valueOrElse(getInteger(this, getPriceBetsCount(eventId, price)), 0)
264264 if ((countBetsPrice >= maxBetsOnPrice))
265265 then throw("to many bets")
266266 else {
267267 let listIndex = valueOrElse(getInteger(this, getPricesListsCountKey(eventId)), 1)
268268 let currentPrices = valueOrElse(getString(this, getPricesListNKey(eventId, listIndex)), "")
269269 let currentPricesList = split_4C(currentPrices, separator)
270270 let listSize = size(currentPricesList)
271271 let newPrices = if ((countBetsPrice == 0))
272272 then if ((100 > listSize))
273273 then if ((size(currentPrices) == 0))
274274 then toString(price)
275275 else ((currentPrices + separator) + toString(price))
276276 else toString(price)
277277 else currentPrices
278278 let newListIndex = if (if ((listSize >= 100))
279279 then (countBetsPrice == 0)
280280 else false)
281- then listIndex
282- else (listIndex + 1)
281+ then (listIndex + 1)
282+ else listIndex
283283 let newGroupsCount = (((newListIndex - 1) / 10) + 1)
284284 [IntegerEntry(getPriceAddressKey(eventId, addressStr), price), IntegerEntry(getPricesListsCountKey(eventId), newListIndex), IntegerEntry(getPricesGroupsCountKey(eventId), newGroupsCount), StringEntry(getPricesListNKey(eventId, newListIndex), newPrices)]
285285 }
286286 }
287287
288288
289289
290290 @Callable(i)
291291 func resetList () = if (!(isAdmin(i.caller)))
292292 then throw("only admin can do")
293293 else [StringEntry(firstEventKey, undefined), StringEntry(lastEventKey, undefined), StringEntry(fisrtActiveEventKey, undefined), StringEntry(lastActiveEventKey, undefined), StringEntry(fisrtFinishedEventKey, undefined), StringEntry(lastFinishedEventKey, undefined)]
294294
295295
296296
297297 @Callable(i)
298298 func insertToList (eventId,isActive) = if ((this != i.caller))
299299 then throw("only main can do")
300300 else {
301301 let lastKey = if (isActive)
302302 then lastActiveEventKey
303303 else lastFinishedEventKey
304304 let firstKey = if (isActive)
305305 then fisrtActiveEventKey
306306 else fisrtFinishedEventKey
307307 let firstEvent = valueOrElse(getString(this, firstKey), undefined)
308308 let lastEvent = valueOrElse(getString(this, lastKey), undefined)
309309 let newLastOrPrevKey = if ((lastEvent == undefined))
310310 then lastKey
311311 else getPrevEventKey(firstEvent)
312312 [StringEntry(firstKey, eventId), StringEntry(newLastOrPrevKey, eventId), StringEntry(getNextEventKey(eventId), firstEvent)]
313313 }
314314
315315
316316
317317 @Callable(i)
318318 func deleteFromList (eventId,isActive) = if ((this != i.caller))
319319 then throw("only main can do")
320320 else {
321321 let lastKey = if (isActive)
322322 then lastActiveEventKey
323323 else lastFinishedEventKey
324324 let firstKey = if (isActive)
325325 then fisrtActiveEventKey
326326 else fisrtFinishedEventKey
327327 let firstEvent = valueOrElse(getString(this, firstKey), undefined)
328328 let lastEvent = valueOrElse(getString(this, lastKey), undefined)
329329 let prevEventTemp = valueOrElse(getString(this, getPrevEventKey(eventId)), undefined)
330330 let nextEventTemp = valueOrElse(getString(this, getNextEventKey(eventId)), undefined)
331331 let prevEvent = if ((eventId == firstEvent))
332332 then undefined
333333 else prevEventTemp
334334 let nextEvent = if ((eventId == lastEvent))
335335 then undefined
336336 else nextEventTemp
337337 if (if ((prevEvent == undefined))
338338 then (nextEvent == undefined)
339339 else false)
340340 then [StringEntry(firstKey, undefined), StringEntry(lastKey, undefined)]
341341 else if (if ((prevEvent != undefined))
342342 then (nextEvent != undefined)
343343 else false)
344344 then [StringEntry(getPrevEventKey(nextEvent), prevEvent), StringEntry(getNextEventKey(prevEvent), nextEvent)]
345345 else if ((prevEvent != undefined))
346346 then [StringEntry(lastKey, prevEvent), StringEntry(getNextEventKey(prevEvent), undefined)]
347347 else [StringEntry(firstKey, nextEvent), StringEntry(getPrevEventKey(nextEvent), undefined)]
348348 }
349349
350350
351351
352352 @Callable(i)
353353 func concatLists () = if (!(isAdmin(i.caller)))
354354 then throw("only admin can do")
355355 else {
356356 let firstActiveEvent = valueOrElse(getString(this, fisrtActiveEventKey), undefined)
357357 let lastActiveEvent = valueOrElse(getString(this, lastActiveEventKey), undefined)
358358 let firstFinishedEvent = valueOrElse(getString(this, fisrtFinishedEventKey), undefined)
359359 let lastFinishedEvent = valueOrElse(getString(this, lastFinishedEventKey), undefined)
360360 let firstEvent = if ((firstActiveEvent != undefined))
361361 then firstActiveEvent
362362 else firstFinishedEvent
363363 let lastEvent = if ((lastFinishedEvent != undefined))
364364 then lastFinishedEvent
365365 else lastActiveEvent
366366 if (if ((firstFinishedEvent != undefined))
367367 then (lastActiveEvent != undefined)
368368 else false)
369369 then [StringEntry(firstEventKey, firstEvent), StringEntry(lastEventKey, lastEvent), StringEntry(getNextEventKey(lastActiveEvent), firstFinishedEvent), StringEntry(getPrevEventKey(firstFinishedEvent), lastActiveEvent)]
370370 else [StringEntry(firstEventKey, firstEvent), StringEntry(lastEventKey, lastEvent)]
371371 }
372372
373373

github/deemru/w8io/026f985 
55.55 ms