tx · CSaXmZpghGBcN9Hgs1qKRjR218ha53hyb4zQQGL7S1F4

3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b:  -0.01400000 Waves

2021.02.09 08:11 [1390210] smart account 3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b > SELF 0.00000000 Waves

{ "type": 13, "id": "CSaXmZpghGBcN9Hgs1qKRjR218ha53hyb4zQQGL7S1F4", "fee": 1400000, "feeAssetId": null, "timestamp": 1612847526900, "version": 2, "chainId": 84, "sender": "3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b", "senderPublicKey": "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV", "proofs": [ "5UL7PnqL4tU1mjRGspNsAk7DPv1BdRFEktA2tHkUmXeX22dnAsvGCxAy37d17A6GbPkVVrBZ5vNKEUJx8WubUgR9" ], "script": "base64:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlfcHJpY2VzAAAAAA5sb3R0ZXJ5QXNzZXRJZAIAAAARX2xvdHRlcnlfYXNzZXRfaWQAAAAADWNvdW50T2ZQcmljZXMCAAAADV9jb3VudF9wcmljZXMAAAAAFGxhc3RIYXNoUmFuZG9tTnVtYmVyAgAAABVsYXN0X3NwaW5fcmFuZG9tX2hhc2gAAAAAE2xhc3RUb2tlblJhbmRvbUhhc2gCAAAAFmxhc3RfdG9rZW5fcmFuZG9tX2hhc2gAAAAACmRBcHBBZGRyZXMCAAAALDNCS0ZRTGVvNUV4WjVZMXB0OUZ0en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At3aW5UcmFuc2ZlcgkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAACnRva2VuUHJpY2UFAAAABHVuaXQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAACXdyaXRlU2V0cwUAAAALd2luVHJhbnNmZXIEAAAAC3dpblRyYW5zZmVyCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAKdG9rZW5QcmljZQUAAAAEdW5pdAUAAAADbmlsCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAAJd3JpdGVTZXRzBQAAAAt3aW5UcmFuc2ZlcgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5eHKrLA==", "height": 1390210, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8y1ydrBMV8EgZfFi2H9panSoiUHqKvw7cr4iyShFr6EC Next: 5TTLpQfq4oVm3uYuGPnrL1ftJjUiuBzjdjCshPcNLwF2 Diff:
OldNewDifferences
1919
2020 let lastTokenRandomHash = "last_token_random_hash"
2121
22-let dAppAddres = "3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b"
22+let dAppAddres = "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV"
2323
2424 func randomizer (inv) = {
2525 let lastPlay = match getBinary(this, lastHashRandomNumber) {
9898 func updateprobability (probability,amount,poolprice,probDecimal,assetId) = {
9999 let token = toBase64String(generatorRandomHash(i))
100100 let currentKey = toBase58String(i.caller.bytes)
101- let isCallerOwner = if ((currentKey == dAppAddres))
101+ let isCallerOwner = if (if ((currentKey == dAppAddres))
102+ then true
103+ else (currentKey == ""))
102104 then true
103105 else false
104106 let lotteryAssetTN = if ((assetId == ""))
107109 let compareAmount = if (if ((isCallerOwner == true))
108110 then (lotteryAssetTN == true)
109111 else false)
110- then wavesBalance(addressFromStringValue(dAppAddres))
112+ then wavesBalance(this)
111113 else if (if ((isCallerOwner == true))
112114 then (lotteryAssetTN == false)
113115 else false)
114116 then {
115117 let callerAddress = addressFromStringValue(currentKey)
116118 let assetIdBytes = toBytes(assetId)
117- assetBalance(callerAddress, assetIdBytes)
119+ 0
118120 }
119121 else if (if ((isCallerOwner == false))
120122 then (lotteryAssetTN == true)
169171 let priceList = getPriceArray()
170172 let randNumber = toInt(randhash)
171173 let winningToken = {
172- let $list59455982 = priceList
173- let $size59455982 = size($list59455982)
174- let $acc059455982 = nil
175- if (($size59455982 == 0))
176- then $acc059455982
174+ let $list59575994 = priceList
175+ let $size59575994 = size($list59575994)
176+ let $acc059575994 = nil
177+ if (($size59575994 == 0))
178+ then $acc059575994
177179 else {
178- let $acc159455982 = procedLottery($acc059455982, $list59455982[0])
179- if (($size59455982 == 1))
180- then $acc159455982
180+ let $acc159575994 = procedLottery($acc059575994, $list59575994[0])
181+ if (($size59575994 == 1))
182+ then $acc159575994
181183 else {
182- let $acc259455982 = procedLottery($acc159455982, $list59455982[1])
183- if (($size59455982 == 2))
184- then $acc259455982
184+ let $acc259575994 = procedLottery($acc159575994, $list59575994[1])
185+ if (($size59575994 == 2))
186+ then $acc259575994
185187 else {
186- let $acc359455982 = procedLottery($acc259455982, $list59455982[2])
187- if (($size59455982 == 3))
188- then $acc359455982
188+ let $acc359575994 = procedLottery($acc259575994, $list59575994[2])
189+ if (($size59575994 == 3))
190+ then $acc359575994
189191 else {
190- let $acc459455982 = procedLottery($acc359455982, $list59455982[3])
191- if (($size59455982 == 4))
192- then $acc459455982
192+ let $acc459575994 = procedLottery($acc359575994, $list59575994[3])
193+ if (($size59575994 == 4))
194+ then $acc459575994
193195 else {
194- let $acc559455982 = procedLottery($acc459455982, $list59455982[4])
195- if (($size59455982 == 5))
196- then $acc559455982
196+ let $acc559575994 = procedLottery($acc459575994, $list59575994[4])
197+ if (($size59575994 == 5))
198+ then $acc559575994
197199 else {
198- let $acc659455982 = procedLottery($acc559455982, $list59455982[5])
200+ let $acc659575994 = procedLottery($acc559575994, $list59575994[5])
199201 throw("List size exceed 5")
200202 }
201203 }
222224 if ((actualAmount == 0))
223225 then {
224226 let actualListPrices = {
225- let $list68006850 = priceList
226- let $size68006850 = size($list68006850)
227- let $acc068006850 = token
228- if (($size68006850 == 0))
229- then $acc068006850
227+ let $list68126862 = priceList
228+ let $size68126862 = size($list68126862)
229+ let $acc068126862 = token
230+ if (($size68126862 == 0))
231+ then $acc068126862
230232 else {
231- let $acc168006850 = generateNewListOfPrices($acc068006850, $list68006850[0])
232- if (($size68006850 == 1))
233- then $acc168006850
233+ let $acc168126862 = generateNewListOfPrices($acc068126862, $list68126862[0])
234+ if (($size68126862 == 1))
235+ then $acc168126862
234236 else {
235- let $acc268006850 = generateNewListOfPrices($acc168006850, $list68006850[1])
236- if (($size68006850 == 2))
237- then $acc268006850
237+ let $acc268126862 = generateNewListOfPrices($acc168126862, $list68126862[1])
238+ if (($size68126862 == 2))
239+ then $acc268126862
238240 else {
239- let $acc368006850 = generateNewListOfPrices($acc268006850, $list68006850[2])
240- if (($size68006850 == 3))
241- then $acc368006850
241+ let $acc368126862 = generateNewListOfPrices($acc268126862, $list68126862[2])
242+ if (($size68126862 == 3))
243+ then $acc368126862
242244 else {
243- let $acc468006850 = generateNewListOfPrices($acc368006850, $list68006850[3])
244- if (($size68006850 == 4))
245- then $acc468006850
245+ let $acc468126862 = generateNewListOfPrices($acc368126862, $list68126862[3])
246+ if (($size68126862 == 4))
247+ then $acc468126862
246248 else {
247- let $acc568006850 = generateNewListOfPrices($acc468006850, $list68006850[4])
248- if (($size68006850 == 5))
249- then $acc568006850
249+ let $acc568126862 = generateNewListOfPrices($acc468126862, $list68126862[4])
250+ if (($size68126862 == 5))
251+ then $acc568126862
250252 else {
251- let $acc668006850 = generateNewListOfPrices($acc568006850, $list68006850[5])
253+ let $acc668126862 = generateNewListOfPrices($acc568126862, $list68126862[5])
252254 throw("List size exceed 5")
253255 }
254256 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let lotteryamount = "_amount"
55
66 let lotteryprobability = "_probability"
77
88 let lotteryprobabilitydecimal = "_probability_decimal"
99
1010 let lotteryPrice = "_price"
1111
1212 let lotteryPrices = "_lottery_prices"
1313
1414 let lotteryAssetId = "_lottery_asset_id"
1515
1616 let countOfPrices = "_count_prices"
1717
1818 let lastHashRandomNumber = "last_spin_random_hash"
1919
2020 let lastTokenRandomHash = "last_token_random_hash"
2121
22-let dAppAddres = "3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b"
22+let dAppAddres = "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV"
2323
2424 func randomizer (inv) = {
2525 let lastPlay = match getBinary(this, lastHashRandomNumber) {
2626 case s: ByteVector =>
2727 s
2828 case _: Unit =>
2929 base58'2ee4oFDYriWJ9EMeR'
3030 case _ =>
3131 throw("Match error")
3232 }
3333 let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
3434 sha256(rand)
3535 }
3636
3737
3838 func generatorRandomHash (inv) = {
3939 let lastHashForToken = match getBinary(this, lastTokenRandomHash) {
4040 case s: ByteVector =>
4141 s
4242 case _: Unit =>
4343 base58'4dD7osCQzvuXJdTiGfKvTwnKT'
4444 case _ =>
4545 throw("Match error")
4646 }
4747 let rand = (((((lastHashForToken + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
4848 sha256(rand)
4949 }
5050
5151
5252 func getSizePriceArray () = {
5353 let tempPrices = getStringValue(this, lotteryPrices)
5454 let trimPrices = take(tempPrices, (size(tempPrices) - 1))
5555 let pricesArray = split(trimPrices, ",")
5656 let listSize = size(pricesArray)
5757 listSize
5858 }
5959
6060
6161 func getPriceArray () = {
6262 let tempPrices = getStringValue(this, lotteryPrices)
6363 let trimPrices = take(tempPrices, (size(tempPrices) - 1))
6464 let newArray = split(trimPrices, ",")
6565 newArray
6666 }
6767
6868
6969 func generateNewListOfPrices (token,val) = {
7070 let indexOfComma = indexOf(token, ",")
7171 if ((indexOfComma == unit))
7272 then (val + ",")
7373 else ((token + val) + ",")
7474 }
7575
7676
7777 func procedLottery (win,token) = {
7878 let tokenProbability = getIntegerValue(this, (token + lotteryprobability))
7979 let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal))
8080 let probabilityValue = (tokenProbabilityDecimal * 1000)
8181 let hash = (tokenProbabilityDecimal % probabilityValue)
8282 let sizeOfWin = size(win)
8383 if ((sizeOfWin == 1))
8484 then {
8585 let randomNumber = win[0]
8686 if ((probabilityValue > hash))
8787 then {
8888 let newList = token :: win
8989 newList
9090 }
9191 else win
9292 }
9393 else win
9494 }
9595
9696
9797 @Callable(i)
9898 func updateprobability (probability,amount,poolprice,probDecimal,assetId) = {
9999 let token = toBase64String(generatorRandomHash(i))
100100 let currentKey = toBase58String(i.caller.bytes)
101- let isCallerOwner = if ((currentKey == dAppAddres))
101+ let isCallerOwner = if (if ((currentKey == dAppAddres))
102+ then true
103+ else (currentKey == ""))
102104 then true
103105 else false
104106 let lotteryAssetTN = if ((assetId == ""))
105107 then true
106108 else false
107109 let compareAmount = if (if ((isCallerOwner == true))
108110 then (lotteryAssetTN == true)
109111 else false)
110- then wavesBalance(addressFromStringValue(dAppAddres))
112+ then wavesBalance(this)
111113 else if (if ((isCallerOwner == true))
112114 then (lotteryAssetTN == false)
113115 else false)
114116 then {
115117 let callerAddress = addressFromStringValue(currentKey)
116118 let assetIdBytes = toBytes(assetId)
117- assetBalance(callerAddress, assetIdBytes)
119+ 0
118120 }
119121 else if (if ((isCallerOwner == false))
120122 then (lotteryAssetTN == true)
121123 else false)
122124 then {
123125 let payment = extract(i.payment)
124126 payment.amount
125127 }
126128 else if (if ((isCallerOwner == false))
127129 then (lotteryAssetTN == false)
128130 else false)
129131 then {
130132 let payment = extract(i.payment)
131133 let tempAssetId = fromBase64String(assetId)
132134 if ((payment.assetId == tempAssetId))
133135 then payment.amount
134136 else throw("Payment Asset Id not matching with lottery Asset Id")
135137 }
136138 else 0
137139 let totalRequiredAmount = (amount * poolprice)
138140 if ((totalRequiredAmount > compareAmount))
139141 then throw("Payment Balance is not equal price")
140142 else {
141143 let tempValue = match getString(this, lotteryPrices) {
142144 case a: String =>
143145 a
144146 case _ =>
145147 ""
146148 }
147149 let containKey = indexOf(tempValue, token)
148150 let storedTokensValues = match containKey {
149151 case _: Unit =>
150152 ((tempValue + token) + ",")
151153 case x: Int =>
152154 throw("Token is duplicated")
153155 case _ =>
154156 throw("Match error")
155157 }
156158 let countTokens = getSizePriceArray()
157159 let updateLotteryPool = WriteSet([DataEntry((token + lotteryamount), amount), DataEntry((token + lotteryprobability), probability), DataEntry((token + lotteryPrice), poolprice), DataEntry((token + lotteryPrices), storedTokensValues), DataEntry((token + countOfPrices), countTokens), DataEntry((token + lotteryprobabilitydecimal), probDecimal), DataEntry((token + lotteryAssetId), assetId), DataEntry((token + lastTokenRandomHash), token)])
158160 ScriptResult(updateLotteryPool, TransferSet(nil))
159161 }
160162 }
161163
162164
163165
164166 @Callable(i)
165167 func startlotto () = {
166168 let currentKey = toBase58String(i.caller.bytes)
167169 let randhash = randomizer(i)
168170 let sizeTempPrice = getSizePriceArray()
169171 let priceList = getPriceArray()
170172 let randNumber = toInt(randhash)
171173 let winningToken = {
172- let $list59455982 = priceList
173- let $size59455982 = size($list59455982)
174- let $acc059455982 = nil
175- if (($size59455982 == 0))
176- then $acc059455982
174+ let $list59575994 = priceList
175+ let $size59575994 = size($list59575994)
176+ let $acc059575994 = nil
177+ if (($size59575994 == 0))
178+ then $acc059575994
177179 else {
178- let $acc159455982 = procedLottery($acc059455982, $list59455982[0])
179- if (($size59455982 == 1))
180- then $acc159455982
180+ let $acc159575994 = procedLottery($acc059575994, $list59575994[0])
181+ if (($size59575994 == 1))
182+ then $acc159575994
181183 else {
182- let $acc259455982 = procedLottery($acc159455982, $list59455982[1])
183- if (($size59455982 == 2))
184- then $acc259455982
184+ let $acc259575994 = procedLottery($acc159575994, $list59575994[1])
185+ if (($size59575994 == 2))
186+ then $acc259575994
185187 else {
186- let $acc359455982 = procedLottery($acc259455982, $list59455982[2])
187- if (($size59455982 == 3))
188- then $acc359455982
188+ let $acc359575994 = procedLottery($acc259575994, $list59575994[2])
189+ if (($size59575994 == 3))
190+ then $acc359575994
189191 else {
190- let $acc459455982 = procedLottery($acc359455982, $list59455982[3])
191- if (($size59455982 == 4))
192- then $acc459455982
192+ let $acc459575994 = procedLottery($acc359575994, $list59575994[3])
193+ if (($size59575994 == 4))
194+ then $acc459575994
193195 else {
194- let $acc559455982 = procedLottery($acc459455982, $list59455982[4])
195- if (($size59455982 == 5))
196- then $acc559455982
196+ let $acc559575994 = procedLottery($acc459575994, $list59575994[4])
197+ if (($size59575994 == 5))
198+ then $acc559575994
197199 else {
198- let $acc659455982 = procedLottery($acc559455982, $list59455982[5])
200+ let $acc659575994 = procedLottery($acc559575994, $list59575994[5])
199201 throw("List size exceed 5")
200202 }
201203 }
202204 }
203205 }
204206 }
205207 }
206208 }
207209 let sizeOfWinPrices = size(winningToken)
208210 if ((sizeOfWinPrices == 1))
209211 then {
210212 let writeSets = WriteSet(nil)
211213 ScriptResult(writeSets, TransferSet(nil))
212214 }
213215 else {
214216 let token = winningToken[1]
215217 let currentAmount = getIntegerValue(this, (token + lotteryamount))
216218 if ((currentAmount == 0))
217219 then throw("Amount exceeded")
218220 else {
219221 let actualAmount = (currentAmount - 1)
220222 let tokenPrice = getIntegerValue(this, (token + lotteryPrice))
221223 let tokenAssetId = getStringValue(this, (token + lotteryAssetId))
222224 if ((actualAmount == 0))
223225 then {
224226 let actualListPrices = {
225- let $list68006850 = priceList
226- let $size68006850 = size($list68006850)
227- let $acc068006850 = token
228- if (($size68006850 == 0))
229- then $acc068006850
227+ let $list68126862 = priceList
228+ let $size68126862 = size($list68126862)
229+ let $acc068126862 = token
230+ if (($size68126862 == 0))
231+ then $acc068126862
230232 else {
231- let $acc168006850 = generateNewListOfPrices($acc068006850, $list68006850[0])
232- if (($size68006850 == 1))
233- then $acc168006850
233+ let $acc168126862 = generateNewListOfPrices($acc068126862, $list68126862[0])
234+ if (($size68126862 == 1))
235+ then $acc168126862
234236 else {
235- let $acc268006850 = generateNewListOfPrices($acc168006850, $list68006850[1])
236- if (($size68006850 == 2))
237- then $acc268006850
237+ let $acc268126862 = generateNewListOfPrices($acc168126862, $list68126862[1])
238+ if (($size68126862 == 2))
239+ then $acc268126862
238240 else {
239- let $acc368006850 = generateNewListOfPrices($acc268006850, $list68006850[2])
240- if (($size68006850 == 3))
241- then $acc368006850
241+ let $acc368126862 = generateNewListOfPrices($acc268126862, $list68126862[2])
242+ if (($size68126862 == 3))
243+ then $acc368126862
242244 else {
243- let $acc468006850 = generateNewListOfPrices($acc368006850, $list68006850[3])
244- if (($size68006850 == 4))
245- then $acc468006850
245+ let $acc468126862 = generateNewListOfPrices($acc368126862, $list68126862[3])
246+ if (($size68126862 == 4))
247+ then $acc468126862
246248 else {
247- let $acc568006850 = generateNewListOfPrices($acc468006850, $list68006850[4])
248- if (($size68006850 == 5))
249- then $acc568006850
249+ let $acc568126862 = generateNewListOfPrices($acc468126862, $list68126862[4])
250+ if (($size68126862 == 5))
251+ then $acc568126862
250252 else {
251- let $acc668006850 = generateNewListOfPrices($acc568006850, $list68006850[5])
253+ let $acc668126862 = generateNewListOfPrices($acc568126862, $list68126862[5])
252254 throw("List size exceed 5")
253255 }
254256 }
255257 }
256258 }
257259 }
258260 }
259261 }
260262 let writeSets = WriteSet([DataEntry((currentKey + "_winning_token_"), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((token + lotteryamount), actualAmount), DataEntry((token + lotteryPrices), actualListPrices), DataEntry(lastHashRandomNumber, randNumber)])
261263 if ((tokenAssetId == ""))
262264 then {
263265 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
264266 ScriptResult(writeSets, winTransfer)
265267 }
266268 else {
267269 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
268270 ScriptResult(writeSets, winTransfer)
269271 }
270272 }
271273 else {
272274 let writeSets = WriteSet([DataEntry((currentKey + "_winning_token_"), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((token + lotteryamount), actualAmount), DataEntry(lastHashRandomNumber, randNumber)])
273275 if ((tokenAssetId == ""))
274276 then {
275277 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
276278 ScriptResult(writeSets, winTransfer)
277279 }
278280 else {
279281 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
280282 ScriptResult(writeSets, winTransfer)
281283 }
282284 }
283285 }
284286 }
285287 }
286288
287289
288290 @Verifier(tx)
289291 func verify () = match tx {
290292 case _: DataTransaction =>
291293 true
292294 case _: SetScriptTransaction =>
293295 true
294296 case _ =>
295297 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
296298 }
297299

github/deemru/w8io/026f985 
79.24 ms