tx · 3r5uhb6FoSRytjRGU7SDD8LEEhNsYVTiLDNh7BQMCtSo 3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b: -0.01400000 Waves 2021.02.06 10:40 [1386042] smart account 3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b > SELF 0.00000000 Waves
{ "type": 13, "id": "3r5uhb6FoSRytjRGU7SDD8LEEhNsYVTiLDNh7BQMCtSo", "fee": 1400000, "feeAssetId": null, "timestamp": 1612597252744, "version": 2, "chainId": 84, "sender": "3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b", "senderPublicKey": "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV", "proofs": [ "oKHvELimDTd4q3vu9DpB6XZP6mzUZB2hZMjVwM71Qa9smQahNstdT4a51Mxj2TRdHeVxS3S4BQPVXGBs8YVtGxP" ], "script": "base64:AAIDAAAAAAAAABAIARIHCgUBAQEBCBIDCgEIAAAACwAAAAARbG90dGVyeXBvb2xhbW91bnQCAAAAEF9sb3R0ZXJ5X2Ftb3VudF8AAAAAFmxvdHRlcnlwb29scHJvYmFiaWxpdHkCAAAAFV9sb3R0ZXJ5X3Byb2JhYmlsaXR5XwAAAAAdbG90dGVyeXBvb2xwcm9iYWJpbGl0eWRlY2ltYWwCAAAAHV9sb3R0ZXJ5X3Byb2JhYmlsaXR5X2RlY2ltYWxfAAAAABBsb3R0ZXJ5cG9vbHByaWNlAgAAAA9fbG90dGVyeV9wcmljZV8AAAAADWxvdHRlcnlwcmljZXMCAAAAEF9sb3R0ZXJ5X3ByaWNlc18AAAAADGxhc3RIYXNoUmFuZAIAAAARX2hhc2hfbGFzdF9yb3VuZF8AAAAADWxhc3RQbGF5Um91bmQCAAAAFl9sYXN0X3BsYXlfcm91bmRfX2hhc2gBAAAACnJhbmRvbWl6ZXIAAAABAAAAA2ludgQAAAAIbGFzdFBsYXkEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwUAAAANbGFzd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AACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAANbGFzdFBsYXlSb3VuZAUAAAAIcmFuZGhhc2gJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAANbGFzdFBsYXlSb3VuZAIAAAAJIF9pbnRlZ2VyCQAEsQAAAAEFAAAACHJhbmRoYXNoCQAETAAAAAIFAAAAEWRhdFNpemVQcmljZUVudHJ5BQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAAl3cml0ZVNldHMJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5I6qnAg==", "height": 1386042, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: SjbfFVsLpcRBrpFifxzUYoU1xP6TV7m5zTVEF3DFYNL Next: AHCaoKqip5RD8RJ1LFAbZiJ95wNEy87nj4m9rD3MYehV Diff:
Old | New | Differences | |
---|---|---|---|
74 | 74 | case _ => | |
75 | 75 | throw("Match error") | |
76 | 76 | } | |
77 | - | let updateLotteryPool = WriteSet([DataEntry((lotterypoolamount + token), amount), DataEntry((lotterypoolprobability + token), probability), DataEntry((lotterypoolprice + token), poolprice), DataEntry(lotteryprices, finalValue), DataEntry(lotterypoolprobabilitydecimal, decimal)]) | |
77 | + | let updateLotteryPool = WriteSet([DataEntry((lotterypoolamount + token), amount), DataEntry((lotterypoolprobability + token), probability), DataEntry((lotterypoolprice + token), poolprice), DataEntry(lotteryprices, finalValue), DataEntry((lotterypoolprobabilitydecimal + token), decimal)]) | |
78 | 78 | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
79 | 79 | } | |
80 | 80 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let lotterypoolamount = "_lottery_amount_" | |
5 | 5 | ||
6 | 6 | let lotterypoolprobability = "_lottery_probability_" | |
7 | 7 | ||
8 | 8 | let lotterypoolprobabilitydecimal = "_lottery_probability_decimal_" | |
9 | 9 | ||
10 | 10 | let lotterypoolprice = "_lottery_price_" | |
11 | 11 | ||
12 | 12 | let lotteryprices = "_lottery_prices_" | |
13 | 13 | ||
14 | 14 | let lastHashRand = "_hash_last_round_" | |
15 | 15 | ||
16 | 16 | let lastPlayRound = "_last_play_round__hash" | |
17 | 17 | ||
18 | 18 | func randomizer (inv) = { | |
19 | 19 | let lastPlay = match getBinary(this, lastPlayRound) { | |
20 | 20 | case s: ByteVector => | |
21 | 21 | s | |
22 | 22 | case _: Unit => | |
23 | 23 | base58'RxGd4bcUocouhA8beYPZ' | |
24 | 24 | case _ => | |
25 | 25 | throw("Match error") | |
26 | 26 | } | |
27 | 27 | let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
28 | 28 | sha256(rand) | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func getSizePriceArray () = { | |
33 | 33 | let tempPrices = getStringValue(this, lotteryprices) | |
34 | 34 | let trimPrices = take(tempPrices, (size(tempPrices) - 1)) | |
35 | 35 | let pricesArray = split(trimPrices, ",") | |
36 | 36 | size(pricesArray) | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func getPriceArray () = { | |
41 | 41 | let tempPrices = getStringValue(this, lotteryprices) | |
42 | 42 | let trimPrices = take(tempPrices, (size(tempPrices) - 1)) | |
43 | 43 | split(trimPrices, ",") | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func getAmountClaimForToken (token,update) = { | |
48 | 48 | let currentAmount = getIntegerValue(this, (lotterypoolamount + token)) | |
49 | 49 | if ((currentAmount == 0)) | |
50 | 50 | then throw("Amount exceeded") | |
51 | 51 | else if ((update == true)) | |
52 | 52 | then { | |
53 | 53 | let returnValue = (currentAmount - 1) | |
54 | 54 | returnValue | |
55 | 55 | } | |
56 | 56 | else currentAmount | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Callable(i) | |
61 | 61 | func updateprobability (probability,amount,poolprice,decimal,token) = { | |
62 | 62 | let tempValue = match getString(this, lotteryprices) { | |
63 | 63 | case a: String => | |
64 | 64 | a | |
65 | 65 | case _ => | |
66 | 66 | "" | |
67 | 67 | } | |
68 | 68 | let containKey = indexOf(tempValue, token) | |
69 | 69 | let finalValue = match containKey { | |
70 | 70 | case _: Unit => | |
71 | 71 | ((tempValue + token) + ",") | |
72 | 72 | case x: Int => | |
73 | 73 | tempValue | |
74 | 74 | case _ => | |
75 | 75 | throw("Match error") | |
76 | 76 | } | |
77 | - | let updateLotteryPool = WriteSet([DataEntry((lotterypoolamount + token), amount), DataEntry((lotterypoolprobability + token), probability), DataEntry((lotterypoolprice + token), poolprice), DataEntry(lotteryprices, finalValue), DataEntry(lotterypoolprobabilitydecimal, decimal)]) | |
77 | + | let updateLotteryPool = WriteSet([DataEntry((lotterypoolamount + token), amount), DataEntry((lotterypoolprobability + token), probability), DataEntry((lotterypoolprice + token), poolprice), DataEntry(lotteryprices, finalValue), DataEntry((lotterypoolprobabilitydecimal + token), decimal)]) | |
78 | 78 | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | ||
83 | 83 | @Callable(i) | |
84 | 84 | func startlotto (token) = { | |
85 | 85 | let currentKey = toBase58String(i.caller.bytes) | |
86 | 86 | let storedToken = getIntegerValue(this, (lotterypoolamount + token)) | |
87 | 87 | let prob = getIntegerValue(this, (lotterypoolprobability + token)) | |
88 | 88 | let price = getIntegerValue(this, (lotterypoolprice + token)) | |
89 | 89 | let tokenDecimal = getIntegerValue(this, (lotterypoolprobabilitydecimal + token)) | |
90 | 90 | let randhash = randomizer(i) | |
91 | 91 | let sizeTempPrice = getSizePriceArray() | |
92 | 92 | let priceList = getPriceArray() | |
93 | 93 | let datSizePriceEntry = DataEntry((currentKey + "_winprices_size_"), sizeTempPrice) | |
94 | 94 | let defaultValue = 1000 | |
95 | 95 | let randNumber = (toInt(randhash) % (tokenDecimal * 1000)) | |
96 | 96 | if ((prob > randNumber)) | |
97 | 97 | then { | |
98 | 98 | let winTransfer = TransferSet([ScriptTransfer(i.caller, price, unit)]) | |
99 | 99 | let newAmount = getAmountClaimForToken(token, true) | |
100 | 100 | let writeSets = WriteSet([DataEntry((currentKey + "_winning_ticket_"), price), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((lotterypoolamount + token), newAmount), DataEntry(lastHashRand, randNumber), DataEntry(lastPlayRound, randhash), DataEntry((lastPlayRound + " _integer"), toInt(randhash)), datSizePriceEntry]) | |
101 | 101 | ScriptResult(writeSets, winTransfer) | |
102 | 102 | } | |
103 | 103 | else { | |
104 | 104 | let newAmount = getAmountClaimForToken(token, true) | |
105 | 105 | let writeSets = WriteSet([DataEntry((currentKey + "_winning_ticket_"), ""), DataEntry((currentKey + "_wininning_address_"), ""), DataEntry((lotterypoolamount + token), newAmount), DataEntry(lastHashRand, randNumber), DataEntry(lastPlayRound, randhash), DataEntry((lastPlayRound + " _integer"), toInt(randhash)), datSizePriceEntry]) | |
106 | 106 | ScriptResult(writeSets, TransferSet(nil)) | |
107 | 107 | } | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Verifier(tx) | |
112 | 112 | func verify () = match tx { | |
113 | 113 | case _: DataTransaction => | |
114 | 114 | true | |
115 | 115 | case _: SetScriptTransaction => | |
116 | 116 | true | |
117 | 117 | case _ => | |
118 | 118 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
119 | 119 | } | |
120 | 120 |
github/deemru/w8io/169f3d6 251.08 ms ◑