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:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlfcHJpY2VzAAAAAA5sb3R0ZXJ5QXNzZXRJZAIAAAARX2xvdHRlcnlfYXNzZXRfaWQAAAAADWNvdW50T2ZQcmljZXMCAAAADV9jb3VudF9wcmljZXMAAAAAFGxhc3RIYXNoUmFuZG9tTnVtYmVyAgAAABVsYXN0X3NwaW5fcmFuZG9tX2hhc2gAAAAAE2xhc3RUb2tlblJhbmRvbUhhc2gCAAAAFmxhc3RfdG9rZW5fcmFuZG9tX2hhc2gAAAAACmRBcHBBZGRyZXMCAAAALDNCS0ZRTGVvNUV4WjVZMXB0OU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AAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5F8bevA==", "height": 1390258, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4jBKXUAfn5TMpZufRDyFs8Mjv8i6wykyfLpKhxCNfrqj Next: BzJ9opbXA4UameXmFVgzczSXZhDKYg55BcLWRnS2SdEd Diff:
Old | New | Differences | |
---|---|---|---|
103 | 103 | else false | |
104 | 104 | if ((paymentIsDefined == true)) | |
105 | 105 | then throw(toString(paymentIsDefined)) | |
106 | - | else { | |
107 | - | let writeSets = WriteSet(nil) | |
108 | - | ScriptResult(writeSets, TransferSet(nil)) | |
109 | - | } | |
106 | + | else throw(toString(paymentIsDefined)) | |
110 | 107 | } | |
111 | 108 | ||
112 | 109 | ||
119 | 116 | let priceList = getPriceArray() | |
120 | 117 | let randNumber = toInt(randhash) | |
121 | 118 | let winningToken = { | |
122 | - | let $ | |
123 | - | let $ | |
124 | - | let $ | |
125 | - | if (($ | |
126 | - | then $ | |
119 | + | let $list52845321 = priceList | |
120 | + | let $size52845321 = size($list52845321) | |
121 | + | let $acc052845321 = nil | |
122 | + | if (($size52845321 == 0)) | |
123 | + | then $acc052845321 | |
127 | 124 | else { | |
128 | - | let $ | |
129 | - | if (($ | |
130 | - | then $ | |
125 | + | let $acc152845321 = procedLottery($acc052845321, $list52845321[0]) | |
126 | + | if (($size52845321 == 1)) | |
127 | + | then $acc152845321 | |
131 | 128 | else { | |
132 | - | let $ | |
133 | - | if (($ | |
134 | - | then $ | |
129 | + | let $acc252845321 = procedLottery($acc152845321, $list52845321[1]) | |
130 | + | if (($size52845321 == 2)) | |
131 | + | then $acc252845321 | |
135 | 132 | else { | |
136 | - | let $ | |
137 | - | if (($ | |
138 | - | then $ | |
133 | + | let $acc352845321 = procedLottery($acc252845321, $list52845321[2]) | |
134 | + | if (($size52845321 == 3)) | |
135 | + | then $acc352845321 | |
139 | 136 | else { | |
140 | - | let $ | |
141 | - | if (($ | |
142 | - | then $ | |
137 | + | let $acc452845321 = procedLottery($acc352845321, $list52845321[3]) | |
138 | + | if (($size52845321 == 4)) | |
139 | + | then $acc452845321 | |
143 | 140 | else { | |
144 | - | let $ | |
145 | - | if (($ | |
146 | - | then $ | |
141 | + | let $acc552845321 = procedLottery($acc452845321, $list52845321[4]) | |
142 | + | if (($size52845321 == 5)) | |
143 | + | then $acc552845321 | |
147 | 144 | else { | |
148 | - | let $ | |
145 | + | let $acc652845321 = procedLottery($acc552845321, $list52845321[5]) | |
149 | 146 | throw("List size exceed 5") | |
150 | 147 | } | |
151 | 148 | } | |
172 | 169 | if ((actualAmount == 0)) | |
173 | 170 | then { | |
174 | 171 | let actualListPrices = { | |
175 | - | let $ | |
176 | - | let $ | |
177 | - | let $ | |
178 | - | if (($ | |
179 | - | then $ | |
172 | + | let $list61396189 = priceList | |
173 | + | let $size61396189 = size($list61396189) | |
174 | + | let $acc061396189 = token | |
175 | + | if (($size61396189 == 0)) | |
176 | + | then $acc061396189 | |
180 | 177 | else { | |
181 | - | let $ | |
182 | - | if (($ | |
183 | - | then $ | |
178 | + | let $acc161396189 = generateNewListOfPrices($acc061396189, $list61396189[0]) | |
179 | + | if (($size61396189 == 1)) | |
180 | + | then $acc161396189 | |
184 | 181 | else { | |
185 | - | let $ | |
186 | - | if (($ | |
187 | - | then $ | |
182 | + | let $acc261396189 = generateNewListOfPrices($acc161396189, $list61396189[1]) | |
183 | + | if (($size61396189 == 2)) | |
184 | + | then $acc261396189 | |
188 | 185 | else { | |
189 | - | let $ | |
190 | - | if (($ | |
191 | - | then $ | |
186 | + | let $acc361396189 = generateNewListOfPrices($acc261396189, $list61396189[2]) | |
187 | + | if (($size61396189 == 3)) | |
188 | + | then $acc361396189 | |
192 | 189 | else { | |
193 | - | let $ | |
194 | - | if (($ | |
195 | - | then $ | |
190 | + | let $acc461396189 = generateNewListOfPrices($acc361396189, $list61396189[3]) | |
191 | + | if (($size61396189 == 4)) | |
192 | + | then $acc461396189 | |
196 | 193 | else { | |
197 | - | let $ | |
198 | - | if (($ | |
199 | - | then $ | |
194 | + | let $acc561396189 = generateNewListOfPrices($acc461396189, $list61396189[4]) | |
195 | + | if (($size61396189 == 5)) | |
196 | + | then $acc561396189 | |
200 | 197 | else { | |
201 | - | let $ | |
198 | + | let $acc661396189 = generateNewListOfPrices($acc561396189, $list61396189[5]) | |
202 | 199 | throw("List size exceed 5") | |
203 | 200 | } | |
204 | 201 | } |
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 | 100 | let paymentIsDefined = false | |
101 | 101 | let lotteryAssetTN = if ((assetId == "")) | |
102 | 102 | then true | |
103 | 103 | else false | |
104 | 104 | if ((paymentIsDefined == true)) | |
105 | 105 | then throw(toString(paymentIsDefined)) | |
106 | - | else { | |
107 | - | let writeSets = WriteSet(nil) | |
108 | - | ScriptResult(writeSets, TransferSet(nil)) | |
109 | - | } | |
106 | + | else throw(toString(paymentIsDefined)) | |
110 | 107 | } | |
111 | 108 | ||
112 | 109 | ||
113 | 110 | ||
114 | 111 | @Callable(i) | |
115 | 112 | func startlotto () = { | |
116 | 113 | let currentKey = toBase58String(i.caller.bytes) | |
117 | 114 | let randhash = randomizer(i) | |
118 | 115 | let sizeTempPrice = getSizePriceArray() | |
119 | 116 | let priceList = getPriceArray() | |
120 | 117 | let randNumber = toInt(randhash) | |
121 | 118 | let winningToken = { | |
122 | - | let $ | |
123 | - | let $ | |
124 | - | let $ | |
125 | - | if (($ | |
126 | - | then $ | |
119 | + | let $list52845321 = priceList | |
120 | + | let $size52845321 = size($list52845321) | |
121 | + | let $acc052845321 = nil | |
122 | + | if (($size52845321 == 0)) | |
123 | + | then $acc052845321 | |
127 | 124 | else { | |
128 | - | let $ | |
129 | - | if (($ | |
130 | - | then $ | |
125 | + | let $acc152845321 = procedLottery($acc052845321, $list52845321[0]) | |
126 | + | if (($size52845321 == 1)) | |
127 | + | then $acc152845321 | |
131 | 128 | else { | |
132 | - | let $ | |
133 | - | if (($ | |
134 | - | then $ | |
129 | + | let $acc252845321 = procedLottery($acc152845321, $list52845321[1]) | |
130 | + | if (($size52845321 == 2)) | |
131 | + | then $acc252845321 | |
135 | 132 | else { | |
136 | - | let $ | |
137 | - | if (($ | |
138 | - | then $ | |
133 | + | let $acc352845321 = procedLottery($acc252845321, $list52845321[2]) | |
134 | + | if (($size52845321 == 3)) | |
135 | + | then $acc352845321 | |
139 | 136 | else { | |
140 | - | let $ | |
141 | - | if (($ | |
142 | - | then $ | |
137 | + | let $acc452845321 = procedLottery($acc352845321, $list52845321[3]) | |
138 | + | if (($size52845321 == 4)) | |
139 | + | then $acc452845321 | |
143 | 140 | else { | |
144 | - | let $ | |
145 | - | if (($ | |
146 | - | then $ | |
141 | + | let $acc552845321 = procedLottery($acc452845321, $list52845321[4]) | |
142 | + | if (($size52845321 == 5)) | |
143 | + | then $acc552845321 | |
147 | 144 | else { | |
148 | - | let $ | |
145 | + | let $acc652845321 = procedLottery($acc552845321, $list52845321[5]) | |
149 | 146 | throw("List size exceed 5") | |
150 | 147 | } | |
151 | 148 | } | |
152 | 149 | } | |
153 | 150 | } | |
154 | 151 | } | |
155 | 152 | } | |
156 | 153 | } | |
157 | 154 | let sizeOfWinPrices = size(winningToken) | |
158 | 155 | if ((sizeOfWinPrices == 1)) | |
159 | 156 | then { | |
160 | 157 | let writeSets = WriteSet(nil) | |
161 | 158 | ScriptResult(writeSets, TransferSet(nil)) | |
162 | 159 | } | |
163 | 160 | else { | |
164 | 161 | let token = winningToken[1] | |
165 | 162 | let currentAmount = getIntegerValue(this, (token + lotteryamount)) | |
166 | 163 | if ((currentAmount == 0)) | |
167 | 164 | then throw("Amount exceeded") | |
168 | 165 | else { | |
169 | 166 | let actualAmount = (currentAmount - 1) | |
170 | 167 | let tokenPrice = getIntegerValue(this, (token + lotteryPrice)) | |
171 | 168 | let tokenAssetId = getStringValue(this, (token + lotteryAssetId)) | |
172 | 169 | if ((actualAmount == 0)) | |
173 | 170 | then { | |
174 | 171 | let actualListPrices = { | |
175 | - | let $ | |
176 | - | let $ | |
177 | - | let $ | |
178 | - | if (($ | |
179 | - | then $ | |
172 | + | let $list61396189 = priceList | |
173 | + | let $size61396189 = size($list61396189) | |
174 | + | let $acc061396189 = token | |
175 | + | if (($size61396189 == 0)) | |
176 | + | then $acc061396189 | |
180 | 177 | else { | |
181 | - | let $ | |
182 | - | if (($ | |
183 | - | then $ | |
178 | + | let $acc161396189 = generateNewListOfPrices($acc061396189, $list61396189[0]) | |
179 | + | if (($size61396189 == 1)) | |
180 | + | then $acc161396189 | |
184 | 181 | else { | |
185 | - | let $ | |
186 | - | if (($ | |
187 | - | then $ | |
182 | + | let $acc261396189 = generateNewListOfPrices($acc161396189, $list61396189[1]) | |
183 | + | if (($size61396189 == 2)) | |
184 | + | then $acc261396189 | |
188 | 185 | else { | |
189 | - | let $ | |
190 | - | if (($ | |
191 | - | then $ | |
186 | + | let $acc361396189 = generateNewListOfPrices($acc261396189, $list61396189[2]) | |
187 | + | if (($size61396189 == 3)) | |
188 | + | then $acc361396189 | |
192 | 189 | else { | |
193 | - | let $ | |
194 | - | if (($ | |
195 | - | then $ | |
190 | + | let $acc461396189 = generateNewListOfPrices($acc361396189, $list61396189[3]) | |
191 | + | if (($size61396189 == 4)) | |
192 | + | then $acc461396189 | |
196 | 193 | else { | |
197 | - | let $ | |
198 | - | if (($ | |
199 | - | then $ | |
194 | + | let $acc561396189 = generateNewListOfPrices($acc461396189, $list61396189[4]) | |
195 | + | if (($size61396189 == 5)) | |
196 | + | then $acc561396189 | |
200 | 197 | else { | |
201 | - | let $ | |
198 | + | let $acc661396189 = generateNewListOfPrices($acc561396189, $list61396189[5]) | |
202 | 199 | throw("List size exceed 5") | |
203 | 200 | } | |
204 | 201 | } | |
205 | 202 | } | |
206 | 203 | } | |
207 | 204 | } | |
208 | 205 | } | |
209 | 206 | } | |
210 | 207 | let writeSets = WriteSet([DataEntry((currentKey + "_winning_token_"), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((token + lotteryamount), actualAmount), DataEntry((token + lotteryPrices), actualListPrices), DataEntry(lastHashRandomNumber, randNumber)]) | |
211 | 208 | if ((tokenAssetId == "")) | |
212 | 209 | then { | |
213 | 210 | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)]) | |
214 | 211 | ScriptResult(writeSets, winTransfer) | |
215 | 212 | } | |
216 | 213 | else { | |
217 | 214 | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)]) | |
218 | 215 | ScriptResult(writeSets, winTransfer) | |
219 | 216 | } | |
220 | 217 | } | |
221 | 218 | else { | |
222 | 219 | let writeSets = WriteSet([DataEntry((currentKey + "_winning_token_"), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((token + lotteryamount), actualAmount), DataEntry(lastHashRandomNumber, randNumber)]) | |
223 | 220 | if ((tokenAssetId == "")) | |
224 | 221 | then { | |
225 | 222 | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)]) | |
226 | 223 | ScriptResult(writeSets, winTransfer) | |
227 | 224 | } | |
228 | 225 | else { | |
229 | 226 | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)]) | |
230 | 227 | ScriptResult(writeSets, winTransfer) | |
231 | 228 | } | |
232 | 229 | } | |
233 | 230 | } | |
234 | 231 | } | |
235 | 232 | } | |
236 | 233 | ||
237 | 234 | ||
238 | 235 | @Verifier(tx) | |
239 | 236 | func verify () = match tx { | |
240 | 237 | case _: DataTransaction => | |
241 | 238 | true | |
242 | 239 | case _: SetScriptTransaction => | |
243 | 240 | true | |
244 | 241 | case _ => | |
245 | 242 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
246 | 243 | } | |
247 | 244 |
github/deemru/w8io/169f3d6 85.07 ms ◑