tx · BCouNxkf1jCEF8Yz5qjHFPyeFoSqFrSrQEXC9YKV4u64

3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b:  -0.01400000 Waves

2021.02.09 09:01 [1390258] smart account 3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b > SELF 0.00000000 Waves

{ "type": 13, "id": "BCouNxkf1jCEF8Yz5qjHFPyeFoSqFrSrQEXC9YKV4u64", "fee": 1400000, "feeAssetId": null, "timestamp": 1612850579588, "version": 2, "chainId": 84, "sender": "3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b", "senderPublicKey": "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV", "proofs": [ "VL4vNNUHSRk4F4uPgEBAVkL6hZ2SUbGehAiAKmDv2Swrq4mxkXM46EKgJXZ675CnhAtL41sRz4J9n6WNdFhVxfB" ], "script": "base64:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlfcHJpY2VzAAAAAA5sb3R0ZXJ5QXNzZXRJZAIAAAARX2xvdHRlcnlfYXNzZXRfaWQAAAAADWNvdW50T2ZQcmljZXMCAAAADV9jb3VudF9wcmljZXMAAAAAFGxhc3RIYXNoUmFuZG9tTnVtYmVyAgAAABVsYXN0X3NwaW5fcmFuZG9tX2hhc2gAAAAAE2xhc3RUb2tlblJhbmRvbUhhc2gCAAAAFmxhc3RfdG9rZW5fcmFuZG9tX2hhc2gAAAAACmRBcHBBZGRyZXMCAAAALDNCS0ZRTGVvNUV4WjVZMXB0O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AAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5F8bevA==", "height": 1390258, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4jBKXUAfn5TMpZufRDyFs8Mjv8i6wykyfLpKhxCNfrqj Next: BzJ9opbXA4UameXmFVgzczSXZhDKYg55BcLWRnS2SdEd Diff:
OldNewDifferences
103103 else false
104104 if ((paymentIsDefined == true))
105105 then throw(toString(paymentIsDefined))
106- else {
107- let writeSets = WriteSet(nil)
108- ScriptResult(writeSets, TransferSet(nil))
109- }
106+ else throw(toString(paymentIsDefined))
110107 }
111108
112109
119116 let priceList = getPriceArray()
120117 let randNumber = toInt(randhash)
121118 let winningToken = {
122- let $list52405277 = priceList
123- let $size52405277 = size($list52405277)
124- let $acc052405277 = nil
125- if (($size52405277 == 0))
126- then $acc052405277
119+ let $list52845321 = priceList
120+ let $size52845321 = size($list52845321)
121+ let $acc052845321 = nil
122+ if (($size52845321 == 0))
123+ then $acc052845321
127124 else {
128- let $acc152405277 = procedLottery($acc052405277, $list52405277[0])
129- if (($size52405277 == 1))
130- then $acc152405277
125+ let $acc152845321 = procedLottery($acc052845321, $list52845321[0])
126+ if (($size52845321 == 1))
127+ then $acc152845321
131128 else {
132- let $acc252405277 = procedLottery($acc152405277, $list52405277[1])
133- if (($size52405277 == 2))
134- then $acc252405277
129+ let $acc252845321 = procedLottery($acc152845321, $list52845321[1])
130+ if (($size52845321 == 2))
131+ then $acc252845321
135132 else {
136- let $acc352405277 = procedLottery($acc252405277, $list52405277[2])
137- if (($size52405277 == 3))
138- then $acc352405277
133+ let $acc352845321 = procedLottery($acc252845321, $list52845321[2])
134+ if (($size52845321 == 3))
135+ then $acc352845321
139136 else {
140- let $acc452405277 = procedLottery($acc352405277, $list52405277[3])
141- if (($size52405277 == 4))
142- then $acc452405277
137+ let $acc452845321 = procedLottery($acc352845321, $list52845321[3])
138+ if (($size52845321 == 4))
139+ then $acc452845321
143140 else {
144- let $acc552405277 = procedLottery($acc452405277, $list52405277[4])
145- if (($size52405277 == 5))
146- then $acc552405277
141+ let $acc552845321 = procedLottery($acc452845321, $list52845321[4])
142+ if (($size52845321 == 5))
143+ then $acc552845321
147144 else {
148- let $acc652405277 = procedLottery($acc552405277, $list52405277[5])
145+ let $acc652845321 = procedLottery($acc552845321, $list52845321[5])
149146 throw("List size exceed 5")
150147 }
151148 }
172169 if ((actualAmount == 0))
173170 then {
174171 let actualListPrices = {
175- let $list60956145 = priceList
176- let $size60956145 = size($list60956145)
177- let $acc060956145 = token
178- if (($size60956145 == 0))
179- then $acc060956145
172+ let $list61396189 = priceList
173+ let $size61396189 = size($list61396189)
174+ let $acc061396189 = token
175+ if (($size61396189 == 0))
176+ then $acc061396189
180177 else {
181- let $acc160956145 = generateNewListOfPrices($acc060956145, $list60956145[0])
182- if (($size60956145 == 1))
183- then $acc160956145
178+ let $acc161396189 = generateNewListOfPrices($acc061396189, $list61396189[0])
179+ if (($size61396189 == 1))
180+ then $acc161396189
184181 else {
185- let $acc260956145 = generateNewListOfPrices($acc160956145, $list60956145[1])
186- if (($size60956145 == 2))
187- then $acc260956145
182+ let $acc261396189 = generateNewListOfPrices($acc161396189, $list61396189[1])
183+ if (($size61396189 == 2))
184+ then $acc261396189
188185 else {
189- let $acc360956145 = generateNewListOfPrices($acc260956145, $list60956145[2])
190- if (($size60956145 == 3))
191- then $acc360956145
186+ let $acc361396189 = generateNewListOfPrices($acc261396189, $list61396189[2])
187+ if (($size61396189 == 3))
188+ then $acc361396189
192189 else {
193- let $acc460956145 = generateNewListOfPrices($acc360956145, $list60956145[3])
194- if (($size60956145 == 4))
195- then $acc460956145
190+ let $acc461396189 = generateNewListOfPrices($acc361396189, $list61396189[3])
191+ if (($size61396189 == 4))
192+ then $acc461396189
196193 else {
197- let $acc560956145 = generateNewListOfPrices($acc460956145, $list60956145[4])
198- if (($size60956145 == 5))
199- then $acc560956145
194+ let $acc561396189 = generateNewListOfPrices($acc461396189, $list61396189[4])
195+ if (($size61396189 == 5))
196+ then $acc561396189
200197 else {
201- let $acc660956145 = generateNewListOfPrices($acc560956145, $list60956145[5])
198+ let $acc661396189 = generateNewListOfPrices($acc561396189, $list61396189[5])
202199 throw("List size exceed 5")
203200 }
204201 }
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
2222 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 paymentIsDefined = false
101101 let lotteryAssetTN = if ((assetId == ""))
102102 then true
103103 else false
104104 if ((paymentIsDefined == true))
105105 then throw(toString(paymentIsDefined))
106- else {
107- let writeSets = WriteSet(nil)
108- ScriptResult(writeSets, TransferSet(nil))
109- }
106+ else throw(toString(paymentIsDefined))
110107 }
111108
112109
113110
114111 @Callable(i)
115112 func startlotto () = {
116113 let currentKey = toBase58String(i.caller.bytes)
117114 let randhash = randomizer(i)
118115 let sizeTempPrice = getSizePriceArray()
119116 let priceList = getPriceArray()
120117 let randNumber = toInt(randhash)
121118 let winningToken = {
122- let $list52405277 = priceList
123- let $size52405277 = size($list52405277)
124- let $acc052405277 = nil
125- if (($size52405277 == 0))
126- then $acc052405277
119+ let $list52845321 = priceList
120+ let $size52845321 = size($list52845321)
121+ let $acc052845321 = nil
122+ if (($size52845321 == 0))
123+ then $acc052845321
127124 else {
128- let $acc152405277 = procedLottery($acc052405277, $list52405277[0])
129- if (($size52405277 == 1))
130- then $acc152405277
125+ let $acc152845321 = procedLottery($acc052845321, $list52845321[0])
126+ if (($size52845321 == 1))
127+ then $acc152845321
131128 else {
132- let $acc252405277 = procedLottery($acc152405277, $list52405277[1])
133- if (($size52405277 == 2))
134- then $acc252405277
129+ let $acc252845321 = procedLottery($acc152845321, $list52845321[1])
130+ if (($size52845321 == 2))
131+ then $acc252845321
135132 else {
136- let $acc352405277 = procedLottery($acc252405277, $list52405277[2])
137- if (($size52405277 == 3))
138- then $acc352405277
133+ let $acc352845321 = procedLottery($acc252845321, $list52845321[2])
134+ if (($size52845321 == 3))
135+ then $acc352845321
139136 else {
140- let $acc452405277 = procedLottery($acc352405277, $list52405277[3])
141- if (($size52405277 == 4))
142- then $acc452405277
137+ let $acc452845321 = procedLottery($acc352845321, $list52845321[3])
138+ if (($size52845321 == 4))
139+ then $acc452845321
143140 else {
144- let $acc552405277 = procedLottery($acc452405277, $list52405277[4])
145- if (($size52405277 == 5))
146- then $acc552405277
141+ let $acc552845321 = procedLottery($acc452845321, $list52845321[4])
142+ if (($size52845321 == 5))
143+ then $acc552845321
147144 else {
148- let $acc652405277 = procedLottery($acc552405277, $list52405277[5])
145+ let $acc652845321 = procedLottery($acc552845321, $list52845321[5])
149146 throw("List size exceed 5")
150147 }
151148 }
152149 }
153150 }
154151 }
155152 }
156153 }
157154 let sizeOfWinPrices = size(winningToken)
158155 if ((sizeOfWinPrices == 1))
159156 then {
160157 let writeSets = WriteSet(nil)
161158 ScriptResult(writeSets, TransferSet(nil))
162159 }
163160 else {
164161 let token = winningToken[1]
165162 let currentAmount = getIntegerValue(this, (token + lotteryamount))
166163 if ((currentAmount == 0))
167164 then throw("Amount exceeded")
168165 else {
169166 let actualAmount = (currentAmount - 1)
170167 let tokenPrice = getIntegerValue(this, (token + lotteryPrice))
171168 let tokenAssetId = getStringValue(this, (token + lotteryAssetId))
172169 if ((actualAmount == 0))
173170 then {
174171 let actualListPrices = {
175- let $list60956145 = priceList
176- let $size60956145 = size($list60956145)
177- let $acc060956145 = token
178- if (($size60956145 == 0))
179- then $acc060956145
172+ let $list61396189 = priceList
173+ let $size61396189 = size($list61396189)
174+ let $acc061396189 = token
175+ if (($size61396189 == 0))
176+ then $acc061396189
180177 else {
181- let $acc160956145 = generateNewListOfPrices($acc060956145, $list60956145[0])
182- if (($size60956145 == 1))
183- then $acc160956145
178+ let $acc161396189 = generateNewListOfPrices($acc061396189, $list61396189[0])
179+ if (($size61396189 == 1))
180+ then $acc161396189
184181 else {
185- let $acc260956145 = generateNewListOfPrices($acc160956145, $list60956145[1])
186- if (($size60956145 == 2))
187- then $acc260956145
182+ let $acc261396189 = generateNewListOfPrices($acc161396189, $list61396189[1])
183+ if (($size61396189 == 2))
184+ then $acc261396189
188185 else {
189- let $acc360956145 = generateNewListOfPrices($acc260956145, $list60956145[2])
190- if (($size60956145 == 3))
191- then $acc360956145
186+ let $acc361396189 = generateNewListOfPrices($acc261396189, $list61396189[2])
187+ if (($size61396189 == 3))
188+ then $acc361396189
192189 else {
193- let $acc460956145 = generateNewListOfPrices($acc360956145, $list60956145[3])
194- if (($size60956145 == 4))
195- then $acc460956145
190+ let $acc461396189 = generateNewListOfPrices($acc361396189, $list61396189[3])
191+ if (($size61396189 == 4))
192+ then $acc461396189
196193 else {
197- let $acc560956145 = generateNewListOfPrices($acc460956145, $list60956145[4])
198- if (($size60956145 == 5))
199- then $acc560956145
194+ let $acc561396189 = generateNewListOfPrices($acc461396189, $list61396189[4])
195+ if (($size61396189 == 5))
196+ then $acc561396189
200197 else {
201- let $acc660956145 = generateNewListOfPrices($acc560956145, $list60956145[5])
198+ let $acc661396189 = generateNewListOfPrices($acc561396189, $list61396189[5])
202199 throw("List size exceed 5")
203200 }
204201 }
205202 }
206203 }
207204 }
208205 }
209206 }
210207 let writeSets = WriteSet([DataEntry((currentKey + "_winning_token_"), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((token + lotteryamount), actualAmount), DataEntry((token + lotteryPrices), actualListPrices), DataEntry(lastHashRandomNumber, randNumber)])
211208 if ((tokenAssetId == ""))
212209 then {
213210 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
214211 ScriptResult(writeSets, winTransfer)
215212 }
216213 else {
217214 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
218215 ScriptResult(writeSets, winTransfer)
219216 }
220217 }
221218 else {
222219 let writeSets = WriteSet([DataEntry((currentKey + "_winning_token_"), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((token + lotteryamount), actualAmount), DataEntry(lastHashRandomNumber, randNumber)])
223220 if ((tokenAssetId == ""))
224221 then {
225222 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
226223 ScriptResult(writeSets, winTransfer)
227224 }
228225 else {
229226 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
230227 ScriptResult(writeSets, winTransfer)
231228 }
232229 }
233230 }
234231 }
235232 }
236233
237234
238235 @Verifier(tx)
239236 func verify () = match tx {
240237 case _: DataTransaction =>
241238 true
242239 case _: SetScriptTransaction =>
243240 true
244241 case _ =>
245242 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
246243 }
247244

github/deemru/w8io/169f3d6 
85.07 ms