tx · BzJ9opbXA4UameXmFVgzczSXZhDKYg55BcLWRnS2SdEd 3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b: -0.01400000 Waves 2021.02.09 09:10 [1390267] smart account 3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b > SELF 0.00000000 Waves
{ "type": 13, "id": "BzJ9opbXA4UameXmFVgzczSXZhDKYg55BcLWRnS2SdEd", "fee": 1400000, "feeAssetId": null, "timestamp": 1612851034634, "version": 2, "chainId": 84, "sender": "3Mt71RiSbWYENDmeyndvwjoJZwUsXfUkR6b", "senderPublicKey": "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV", "proofs": [ "4y7zWkCq94FfLzRASf9EmXN4khnFBrkiHa928E1Guurc9bf5yWddNGdR2tb9kEVnyLK8EPyxaDwgHGAa9tJikfLv" ], "script": "base64:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlfcHJpY2VzAAAAAA5sb3R0ZXJ5QXNzZXRJZAIAAAARX2xvdHRlcnlfYXNzZXRfaWQAAAAADWNvdW50T2ZQcmljZXMCAAAADV9jb3VudF9wcmljZXMAAAAAFGxhc3RIYXNoUmFuZG9tTnVtYmVyAgAAABVsYXN0X3NwaW5fcmFuZG9tX2hhc2gAAAAAE2xhc3RUb2tlblJhbmRvbUhhc2gCAAAAFmxhc3RfdG9rZW5fcmFuZG9tX2hhc2gAAAAACmRBcHBBZGRyZXMCAAAALDNCS0ZRTGVvNUV4WjVZMXB0OUZ0enNubzdhU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D0RhdGFUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlWRazn", "height": 1390267, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BCouNxkf1jCEF8Yz5qjHFPyeFoSqFrSrQEXC9YKV4u64 Next: hHr3BuKGa4KZC9qeeFqpq7vbWZS66GLrDd1DBqiy8Xp Diff:
Old | New | Differences | |
---|---|---|---|
97 | 97 | @Callable(i) | |
98 | 98 | func updateprobability (probability,amount,poolprice,probDecimal,assetId) = { | |
99 | 99 | let token = toBase64String(generatorRandomHash(i)) | |
100 | - | let paymentIsDefined = false | |
100 | + | let paymentIsDefined = if (!(isDefined(i.payment))) | |
101 | + | then false | |
102 | + | else true | |
101 | 103 | let lotteryAssetTN = if ((assetId == "")) | |
102 | 104 | then true | |
103 | 105 | else false | |
116 | 118 | let priceList = getPriceArray() | |
117 | 119 | let randNumber = toInt(randhash) | |
118 | 120 | let winningToken = { | |
119 | - | let $ | |
120 | - | let $ | |
121 | - | let $ | |
122 | - | if (($ | |
123 | - | then $ | |
121 | + | let $list52765313 = priceList | |
122 | + | let $size52765313 = size($list52765313) | |
123 | + | let $acc052765313 = nil | |
124 | + | if (($size52765313 == 0)) | |
125 | + | then $acc052765313 | |
124 | 126 | else { | |
125 | - | let $ | |
126 | - | if (($ | |
127 | - | then $ | |
127 | + | let $acc152765313 = procedLottery($acc052765313, $list52765313[0]) | |
128 | + | if (($size52765313 == 1)) | |
129 | + | then $acc152765313 | |
128 | 130 | else { | |
129 | - | let $ | |
130 | - | if (($ | |
131 | - | then $ | |
131 | + | let $acc252765313 = procedLottery($acc152765313, $list52765313[1]) | |
132 | + | if (($size52765313 == 2)) | |
133 | + | then $acc252765313 | |
132 | 134 | else { | |
133 | - | let $ | |
134 | - | if (($ | |
135 | - | then $ | |
135 | + | let $acc352765313 = procedLottery($acc252765313, $list52765313[2]) | |
136 | + | if (($size52765313 == 3)) | |
137 | + | then $acc352765313 | |
136 | 138 | else { | |
137 | - | let $ | |
138 | - | if (($ | |
139 | - | then $ | |
139 | + | let $acc452765313 = procedLottery($acc352765313, $list52765313[3]) | |
140 | + | if (($size52765313 == 4)) | |
141 | + | then $acc452765313 | |
140 | 142 | else { | |
141 | - | let $ | |
142 | - | if (($ | |
143 | - | then $ | |
143 | + | let $acc552765313 = procedLottery($acc452765313, $list52765313[4]) | |
144 | + | if (($size52765313 == 5)) | |
145 | + | then $acc552765313 | |
144 | 146 | else { | |
145 | - | let $ | |
147 | + | let $acc652765313 = procedLottery($acc552765313, $list52765313[5]) | |
146 | 148 | throw("List size exceed 5") | |
147 | 149 | } | |
148 | 150 | } | |
169 | 171 | if ((actualAmount == 0)) | |
170 | 172 | then { | |
171 | 173 | let actualListPrices = { | |
172 | - | let $ | |
173 | - | let $ | |
174 | - | let $ | |
175 | - | if (($ | |
176 | - | then $ | |
174 | + | let $list61316181 = priceList | |
175 | + | let $size61316181 = size($list61316181) | |
176 | + | let $acc061316181 = token | |
177 | + | if (($size61316181 == 0)) | |
178 | + | then $acc061316181 | |
177 | 179 | else { | |
178 | - | let $ | |
179 | - | if (($ | |
180 | - | then $ | |
180 | + | let $acc161316181 = generateNewListOfPrices($acc061316181, $list61316181[0]) | |
181 | + | if (($size61316181 == 1)) | |
182 | + | then $acc161316181 | |
181 | 183 | else { | |
182 | - | let $ | |
183 | - | if (($ | |
184 | - | then $ | |
184 | + | let $acc261316181 = generateNewListOfPrices($acc161316181, $list61316181[1]) | |
185 | + | if (($size61316181 == 2)) | |
186 | + | then $acc261316181 | |
185 | 187 | else { | |
186 | - | let $ | |
187 | - | if (($ | |
188 | - | then $ | |
188 | + | let $acc361316181 = generateNewListOfPrices($acc261316181, $list61316181[2]) | |
189 | + | if (($size61316181 == 3)) | |
190 | + | then $acc361316181 | |
189 | 191 | else { | |
190 | - | let $ | |
191 | - | if (($ | |
192 | - | then $ | |
192 | + | let $acc461316181 = generateNewListOfPrices($acc361316181, $list61316181[3]) | |
193 | + | if (($size61316181 == 4)) | |
194 | + | then $acc461316181 | |
193 | 195 | else { | |
194 | - | let $ | |
195 | - | if (($ | |
196 | - | then $ | |
196 | + | let $acc561316181 = generateNewListOfPrices($acc461316181, $list61316181[4]) | |
197 | + | if (($size61316181 == 5)) | |
198 | + | then $acc561316181 | |
197 | 199 | else { | |
198 | - | let $ | |
200 | + | let $acc661316181 = generateNewListOfPrices($acc561316181, $list61316181[5]) | |
199 | 201 | throw("List size exceed 5") | |
200 | 202 | } | |
201 | 203 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let lotteryamount = "_amount" | |
5 | 5 | ||
6 | 6 | let lotteryprobability = "_probability" | |
7 | 7 | ||
8 | 8 | let lotteryprobabilitydecimal = "_probability_decimal" | |
9 | 9 | ||
10 | 10 | let lotteryPrice = "_price" | |
11 | 11 | ||
12 | 12 | let lotteryPrices = "_lottery_prices" | |
13 | 13 | ||
14 | 14 | let lotteryAssetId = "_lottery_asset_id" | |
15 | 15 | ||
16 | 16 | let countOfPrices = "_count_prices" | |
17 | 17 | ||
18 | 18 | let lastHashRandomNumber = "last_spin_random_hash" | |
19 | 19 | ||
20 | 20 | let lastTokenRandomHash = "last_token_random_hash" | |
21 | 21 | ||
22 | 22 | let dAppAddres = "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV" | |
23 | 23 | ||
24 | 24 | func randomizer (inv) = { | |
25 | 25 | let lastPlay = match getBinary(this, lastHashRandomNumber) { | |
26 | 26 | case s: ByteVector => | |
27 | 27 | s | |
28 | 28 | case _: Unit => | |
29 | 29 | base58'2ee4oFDYriWJ9EMeR' | |
30 | 30 | case _ => | |
31 | 31 | throw("Match error") | |
32 | 32 | } | |
33 | 33 | let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
34 | 34 | sha256(rand) | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func generatorRandomHash (inv) = { | |
39 | 39 | let lastHashForToken = match getBinary(this, lastTokenRandomHash) { | |
40 | 40 | case s: ByteVector => | |
41 | 41 | s | |
42 | 42 | case _: Unit => | |
43 | 43 | base58'4dD7osCQzvuXJdTiGfKvTwnKT' | |
44 | 44 | case _ => | |
45 | 45 | throw("Match error") | |
46 | 46 | } | |
47 | 47 | let rand = (((((lastHashForToken + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
48 | 48 | sha256(rand) | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func getSizePriceArray () = { | |
53 | 53 | let tempPrices = getStringValue(this, lotteryPrices) | |
54 | 54 | let trimPrices = take(tempPrices, (size(tempPrices) - 1)) | |
55 | 55 | let pricesArray = split(trimPrices, ",") | |
56 | 56 | let listSize = size(pricesArray) | |
57 | 57 | listSize | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func getPriceArray () = { | |
62 | 62 | let tempPrices = getStringValue(this, lotteryPrices) | |
63 | 63 | let trimPrices = take(tempPrices, (size(tempPrices) - 1)) | |
64 | 64 | let newArray = split(trimPrices, ",") | |
65 | 65 | newArray | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func generateNewListOfPrices (token,val) = { | |
70 | 70 | let indexOfComma = indexOf(token, ",") | |
71 | 71 | if ((indexOfComma == unit)) | |
72 | 72 | then (val + ",") | |
73 | 73 | else ((token + val) + ",") | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func procedLottery (win,token) = { | |
78 | 78 | let tokenProbability = getIntegerValue(this, (token + lotteryprobability)) | |
79 | 79 | let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal)) | |
80 | 80 | let probabilityValue = (tokenProbabilityDecimal * 1000) | |
81 | 81 | let hash = (tokenProbabilityDecimal % probabilityValue) | |
82 | 82 | let sizeOfWin = size(win) | |
83 | 83 | if ((sizeOfWin == 1)) | |
84 | 84 | then { | |
85 | 85 | let randomNumber = win[0] | |
86 | 86 | if ((probabilityValue > hash)) | |
87 | 87 | then { | |
88 | 88 | let newList = token :: win | |
89 | 89 | newList | |
90 | 90 | } | |
91 | 91 | else win | |
92 | 92 | } | |
93 | 93 | else win | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | @Callable(i) | |
98 | 98 | func updateprobability (probability,amount,poolprice,probDecimal,assetId) = { | |
99 | 99 | let token = toBase64String(generatorRandomHash(i)) | |
100 | - | let paymentIsDefined = false | |
100 | + | let paymentIsDefined = if (!(isDefined(i.payment))) | |
101 | + | then false | |
102 | + | else true | |
101 | 103 | let lotteryAssetTN = if ((assetId == "")) | |
102 | 104 | then true | |
103 | 105 | else false | |
104 | 106 | if ((paymentIsDefined == true)) | |
105 | 107 | then throw(toString(paymentIsDefined)) | |
106 | 108 | else throw(toString(paymentIsDefined)) | |
107 | 109 | } | |
108 | 110 | ||
109 | 111 | ||
110 | 112 | ||
111 | 113 | @Callable(i) | |
112 | 114 | func startlotto () = { | |
113 | 115 | let currentKey = toBase58String(i.caller.bytes) | |
114 | 116 | let randhash = randomizer(i) | |
115 | 117 | let sizeTempPrice = getSizePriceArray() | |
116 | 118 | let priceList = getPriceArray() | |
117 | 119 | let randNumber = toInt(randhash) | |
118 | 120 | let winningToken = { | |
119 | - | let $ | |
120 | - | let $ | |
121 | - | let $ | |
122 | - | if (($ | |
123 | - | then $ | |
121 | + | let $list52765313 = priceList | |
122 | + | let $size52765313 = size($list52765313) | |
123 | + | let $acc052765313 = nil | |
124 | + | if (($size52765313 == 0)) | |
125 | + | then $acc052765313 | |
124 | 126 | else { | |
125 | - | let $ | |
126 | - | if (($ | |
127 | - | then $ | |
127 | + | let $acc152765313 = procedLottery($acc052765313, $list52765313[0]) | |
128 | + | if (($size52765313 == 1)) | |
129 | + | then $acc152765313 | |
128 | 130 | else { | |
129 | - | let $ | |
130 | - | if (($ | |
131 | - | then $ | |
131 | + | let $acc252765313 = procedLottery($acc152765313, $list52765313[1]) | |
132 | + | if (($size52765313 == 2)) | |
133 | + | then $acc252765313 | |
132 | 134 | else { | |
133 | - | let $ | |
134 | - | if (($ | |
135 | - | then $ | |
135 | + | let $acc352765313 = procedLottery($acc252765313, $list52765313[2]) | |
136 | + | if (($size52765313 == 3)) | |
137 | + | then $acc352765313 | |
136 | 138 | else { | |
137 | - | let $ | |
138 | - | if (($ | |
139 | - | then $ | |
139 | + | let $acc452765313 = procedLottery($acc352765313, $list52765313[3]) | |
140 | + | if (($size52765313 == 4)) | |
141 | + | then $acc452765313 | |
140 | 142 | else { | |
141 | - | let $ | |
142 | - | if (($ | |
143 | - | then $ | |
143 | + | let $acc552765313 = procedLottery($acc452765313, $list52765313[4]) | |
144 | + | if (($size52765313 == 5)) | |
145 | + | then $acc552765313 | |
144 | 146 | else { | |
145 | - | let $ | |
147 | + | let $acc652765313 = procedLottery($acc552765313, $list52765313[5]) | |
146 | 148 | throw("List size exceed 5") | |
147 | 149 | } | |
148 | 150 | } | |
149 | 151 | } | |
150 | 152 | } | |
151 | 153 | } | |
152 | 154 | } | |
153 | 155 | } | |
154 | 156 | let sizeOfWinPrices = size(winningToken) | |
155 | 157 | if ((sizeOfWinPrices == 1)) | |
156 | 158 | then { | |
157 | 159 | let writeSets = WriteSet(nil) | |
158 | 160 | ScriptResult(writeSets, TransferSet(nil)) | |
159 | 161 | } | |
160 | 162 | else { | |
161 | 163 | let token = winningToken[1] | |
162 | 164 | let currentAmount = getIntegerValue(this, (token + lotteryamount)) | |
163 | 165 | if ((currentAmount == 0)) | |
164 | 166 | then throw("Amount exceeded") | |
165 | 167 | else { | |
166 | 168 | let actualAmount = (currentAmount - 1) | |
167 | 169 | let tokenPrice = getIntegerValue(this, (token + lotteryPrice)) | |
168 | 170 | let tokenAssetId = getStringValue(this, (token + lotteryAssetId)) | |
169 | 171 | if ((actualAmount == 0)) | |
170 | 172 | then { | |
171 | 173 | let actualListPrices = { | |
172 | - | let $ | |
173 | - | let $ | |
174 | - | let $ | |
175 | - | if (($ | |
176 | - | then $ | |
174 | + | let $list61316181 = priceList | |
175 | + | let $size61316181 = size($list61316181) | |
176 | + | let $acc061316181 = token | |
177 | + | if (($size61316181 == 0)) | |
178 | + | then $acc061316181 | |
177 | 179 | else { | |
178 | - | let $ | |
179 | - | if (($ | |
180 | - | then $ | |
180 | + | let $acc161316181 = generateNewListOfPrices($acc061316181, $list61316181[0]) | |
181 | + | if (($size61316181 == 1)) | |
182 | + | then $acc161316181 | |
181 | 183 | else { | |
182 | - | let $ | |
183 | - | if (($ | |
184 | - | then $ | |
184 | + | let $acc261316181 = generateNewListOfPrices($acc161316181, $list61316181[1]) | |
185 | + | if (($size61316181 == 2)) | |
186 | + | then $acc261316181 | |
185 | 187 | else { | |
186 | - | let $ | |
187 | - | if (($ | |
188 | - | then $ | |
188 | + | let $acc361316181 = generateNewListOfPrices($acc261316181, $list61316181[2]) | |
189 | + | if (($size61316181 == 3)) | |
190 | + | then $acc361316181 | |
189 | 191 | else { | |
190 | - | let $ | |
191 | - | if (($ | |
192 | - | then $ | |
192 | + | let $acc461316181 = generateNewListOfPrices($acc361316181, $list61316181[3]) | |
193 | + | if (($size61316181 == 4)) | |
194 | + | then $acc461316181 | |
193 | 195 | else { | |
194 | - | let $ | |
195 | - | if (($ | |
196 | - | then $ | |
196 | + | let $acc561316181 = generateNewListOfPrices($acc461316181, $list61316181[4]) | |
197 | + | if (($size61316181 == 5)) | |
198 | + | then $acc561316181 | |
197 | 199 | else { | |
198 | - | let $ | |
200 | + | let $acc661316181 = generateNewListOfPrices($acc561316181, $list61316181[5]) | |
199 | 201 | throw("List size exceed 5") | |
200 | 202 | } | |
201 | 203 | } | |
202 | 204 | } | |
203 | 205 | } | |
204 | 206 | } | |
205 | 207 | } | |
206 | 208 | } | |
207 | 209 | let writeSets = WriteSet([DataEntry((currentKey + "_winning_token_"), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((token + lotteryamount), actualAmount), DataEntry((token + lotteryPrices), actualListPrices), DataEntry(lastHashRandomNumber, randNumber)]) | |
208 | 210 | if ((tokenAssetId == "")) | |
209 | 211 | then { | |
210 | 212 | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)]) | |
211 | 213 | ScriptResult(writeSets, winTransfer) | |
212 | 214 | } | |
213 | 215 | else { | |
214 | 216 | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)]) | |
215 | 217 | ScriptResult(writeSets, winTransfer) | |
216 | 218 | } | |
217 | 219 | } | |
218 | 220 | else { | |
219 | 221 | let writeSets = WriteSet([DataEntry((currentKey + "_winning_token_"), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((token + lotteryamount), actualAmount), DataEntry(lastHashRandomNumber, randNumber)]) | |
220 | 222 | if ((tokenAssetId == "")) | |
221 | 223 | then { | |
222 | 224 | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)]) | |
223 | 225 | ScriptResult(writeSets, winTransfer) | |
224 | 226 | } | |
225 | 227 | else { | |
226 | 228 | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)]) | |
227 | 229 | ScriptResult(writeSets, winTransfer) | |
228 | 230 | } | |
229 | 231 | } | |
230 | 232 | } | |
231 | 233 | } | |
232 | 234 | } | |
233 | 235 | ||
234 | 236 | ||
235 | 237 | @Verifier(tx) | |
236 | 238 | func verify () = match tx { | |
237 | 239 | case _: DataTransaction => | |
238 | 240 | true | |
239 | 241 | case _: SetScriptTransaction => | |
240 | 242 | true | |
241 | 243 | case _ => | |
242 | 244 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
243 | 245 | } | |
244 | 246 |
github/deemru/w8io/169f3d6 95.09 ms ◑