tx · DjFXPaQdrcPYN4gz6aNTTiLZe19kFBaUUZBsPB7Ht2Nm 3MuMTmGoACSiyXJzcioMw4sYoXk2Ui4aanJ: -0.01700000 Waves 2022.08.31 00:13 [2207707] smart account 3MuMTmGoACSiyXJzcioMw4sYoXk2Ui4aanJ > SELF 0.00000000 Waves
{ "type": 13, "id": "DjFXPaQdrcPYN4gz6aNTTiLZe19kFBaUUZBsPB7Ht2Nm", "fee": 1700000, "feeAssetId": null, "timestamp": 1661893983168, "version": 2, "chainId": 84, "sender": "3MuMTmGoACSiyXJzcioMw4sYoXk2Ui4aanJ", "senderPublicKey": "7opDBgjwGmchRaJn7irNojWPe6uCjvWZc3JGS9FGsd9p", "proofs": [ "4bMFr9pu27XPEgN5o5tWEuxyLASRxmxnsJ5Cx9v4DB3mePHqkNxCPjhyqJwrisV9gCGAY2hscS1E3JabX3jNkPhH" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAeAAAAAAlnYW1lVG9rZW4BAAAAIJeJnkMy+NLP5OT6k3WKNNG/oDTmgYr0XJzGEku3CrKZAAAAABNnYW1lTWFzdGVyUHVibGljS2V5AQAAACBlJDgo+Fq7PRSc0ciebD/XFlx5Eoi6BjIFEFF4VxVLDwAAAAAXZ2FtZU1hc3RlclB1YmxpY0tleVRlc3QBAAAAIGUkOCj4Wrs9FJzRyJ5sP9cWXHkSiLoGMgUQUXhXFUsPAAAAAAx0b2tlbkFzc2V0SWQCAAAALEJDWUdwM3VmQVk2WVdHektZbWl0ckpTY0FDTjdKWmQzZnBmbWYyZmNYN3EyAAAAAAlnYW1lSW5kZXgCAAAABkdBUkxJQwAAAAAIdG9rZW5BSWQJAAEsAAAAAgkAASwAAAACBQAAAAlnYW1lSW5kZXgCAAAAAV8CAAAAFWYyTXdybU40ZmRzZjQzMkZWOWtTZQAAAAAIdG9rZW5CSWQJAAEsAAAAAgkAASwAAAACBQAAAAlnYW1lSW5kZXgCAAAAAV8CAAAAFWYxTXp3cm1OZGY0MzR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YXRpb25zIHlvdSB3b24hPC9oMT48YnI+PHA+WW91IGhhdmUgd29uIAUAAAAOY29udmVydGVkUHJpY2UCAAAAASAFAAAADHRva2VuQXNzZXRJZAIAAAAEITxwPgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAEmxvdHRlcnlQcmljZVRva2VuQgkAAlkAAAABBQAAAAx0b2tlbkFzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAABpMYXN0IGJsb2NrIGRvZXMgbm90IGV4aXN0LgkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAicGF5bWVudCBpcyBub3QgaW4gY29ycmVjdCBhc3NldElkIAkAAlgAAAABBQAAAAlnYW1lVG9rZW4CAAAAAS4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkK7rjM", "height": 2207707, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7u5r5CLbBY6CsE3xKTwk8dnWp4h2LZH7udEFTqf5So8M Next: 53KeKKBTbngaqKrG5jMUk3dpMp6wm6MiPBGCXKi6G4uf Diff:
Old | New | Differences | |
---|---|---|---|
165 | 165 | if ((10000000000 > al)) | |
166 | 166 | then throw("Amount is less than 100 GRLC, not enough Amount.") | |
167 | 167 | else if (if ((size(aj.payments) != 1)) | |
168 | - | then ( | |
168 | + | then (100000000 > am.amount) | |
169 | 169 | else false) | |
170 | 170 | then throw((("Payment not attached or there is more then 1 payment attached with minimum 1 GRLC.[" + toString(i)) + "-Int]")) | |
171 | 171 | else { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'BCYGp3ufAY6YWGzKYmitrJScACN7JZd3fpfmf2fcX7q2' | |
5 | 5 | ||
6 | 6 | let b = base58'7opDBgjwGmchRaJn7irNojWPe6uCjvWZc3JGS9FGsd9p' | |
7 | 7 | ||
8 | 8 | let c = base58'7opDBgjwGmchRaJn7irNojWPe6uCjvWZc3JGS9FGsd9p' | |
9 | 9 | ||
10 | 10 | let d = "BCYGp3ufAY6YWGzKYmitrJScACN7JZd3fpfmf2fcX7q2" | |
11 | 11 | ||
12 | 12 | let e = "GARLIC" | |
13 | 13 | ||
14 | 14 | let f = ((e + "_") + "f2MwrmN4fdsf432FV9kSe") | |
15 | 15 | ||
16 | 16 | let g = ((e + "_") + "f1MzwrmNdf434Ffsdfs-0") | |
17 | 17 | ||
18 | 18 | let h = ((e + "_") + "f3MzwrmN4widf434Ffsdw") | |
19 | 19 | ||
20 | 20 | let i = 100000000 | |
21 | 21 | ||
22 | 22 | let j = "_probability" | |
23 | 23 | ||
24 | 24 | let k = "_probability_decimal" | |
25 | 25 | ||
26 | 26 | let l = (e + "_winning_address") | |
27 | 27 | ||
28 | 28 | let m = "_price" | |
29 | 29 | ||
30 | 30 | let n = ((e + "_") + "lottery_prices") | |
31 | 31 | ||
32 | 32 | let o = ((e + "_") + "lottery_asset_id") | |
33 | 33 | ||
34 | 34 | let p = ((e + "_") + "garlic_count_prices") | |
35 | 35 | ||
36 | 36 | let q = ((e + "_") + "SPIN_COUNTER") | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = ((e + "_") + "total_prizes_pool") | |
41 | 41 | ||
42 | 42 | func t (u) = (u != b) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func v (w) = (((e + "_") + toString(w)) + "_SPIN_RANDOM_HASH") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func x (w) = getString(this, v(w)) | |
49 | 49 | ||
50 | 50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F2ZXNUZWFtVjI", "V2F2ZXNMb3Nzb1Yy", "V2F2ZXNMb3Nzb1Yy", "V2F2ZXNMb3Nzb1Yy", "V2F2ZXNUZWFtVjI", "V2F2ZXNUZWFtVjI", "V2F2ZXNMb3R0b1Yy", "V2F2ZXNMb3R0b1Yy", "V2F2ZXNUZWFtVjI", "V2F2ZXNUZWFtVjI", "TWF2ZXNNb3Nzb1Yy", "TWF2ZXNNb3Nzb1Yy", "TWF2ZXNNb3Nzb1Yy", "V2F2ZXNUZWFtVjI", "V2F2ZXNUZWFtVjI"] | |
55 | 55 | ||
56 | 56 | func A (B,C) = { | |
57 | 57 | let D = (((((C + B.transactionId) + B.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
58 | 58 | sha256(D) | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func E (F) = if ((F == 1)) | |
63 | 63 | then "0.0" | |
64 | 64 | else if ((F == 2)) | |
65 | 65 | then "0.00" | |
66 | 66 | else if ((F == 3)) | |
67 | 67 | then "0.000" | |
68 | 68 | else if ((F == 4)) | |
69 | 69 | then "0.0000" | |
70 | 70 | else if ((F == 5)) | |
71 | 71 | then "0.00000" | |
72 | 72 | else if ((F == 6)) | |
73 | 73 | then "0.000000" | |
74 | 74 | else if ((F == 7)) | |
75 | 75 | then "0.0000000" | |
76 | 76 | else throw("exceed number") | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func G () = { | |
80 | 80 | let H = { | |
81 | 81 | let I = getString(this, n) | |
82 | 82 | if ($isInstanceOf(I, "String")) | |
83 | 83 | then { | |
84 | 84 | let J = I | |
85 | 85 | J | |
86 | 86 | } | |
87 | 87 | else if ($isInstanceOf(I, "Unit")) | |
88 | 88 | then "" | |
89 | 89 | else throw("Match error") | |
90 | 90 | } | |
91 | 91 | let K = size(H) | |
92 | 92 | if ((K == 0)) | |
93 | 93 | then nil | |
94 | 94 | else { | |
95 | 95 | let L = take(H, (size(H) - 1)) | |
96 | 96 | let M = split(L, ",") | |
97 | 97 | M | |
98 | 98 | } | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func N () = assetBalance(this, fromBase58String(d)) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func O (P,Q) = if (if (isDefined(Q)) | |
106 | 106 | then true | |
107 | 107 | else (Q != "")) | |
108 | 108 | then { | |
109 | 109 | let R = getIntegerValue(this, (Q + j)) | |
110 | 110 | let S = getIntegerValue(this, (Q + k)) | |
111 | 111 | let T = size(P) | |
112 | 112 | if ((T == 1)) | |
113 | 113 | then { | |
114 | 114 | let U = P[0] | |
115 | 115 | let V = fromBase64String(U) | |
116 | 116 | let W = (S * 500) | |
117 | 117 | let X = (toInt(V) % W) | |
118 | 118 | if ((R > X)) | |
119 | 119 | then Q :: P | |
120 | 120 | else P | |
121 | 121 | } | |
122 | 122 | else P | |
123 | 123 | } | |
124 | 124 | else P | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func Y (Z,aa) = { | |
128 | 128 | let ab = size(toString(Z)) | |
129 | 129 | if ((ab > aa)) | |
130 | 130 | then { | |
131 | 131 | let ac = takeRight(toString(Z), aa) | |
132 | 132 | let ad = take(toString(Z), (size(toString(Z)) - aa)) | |
133 | 133 | let ae = ((ad + ".") + ac) | |
134 | 134 | ae | |
135 | 135 | } | |
136 | 136 | else if ((ab == aa)) | |
137 | 137 | then { | |
138 | 138 | let af = (aa - ab) | |
139 | 139 | let ag = ("0." + toString(Z)) | |
140 | 140 | ag | |
141 | 141 | } | |
142 | 142 | else { | |
143 | 143 | let ah = (aa - ab) | |
144 | 144 | let ai = E(ah) | |
145 | 145 | let ag = (ai + toString(Z)) | |
146 | 146 | ag | |
147 | 147 | } | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | @Callable(aj) | |
152 | 152 | func setGarlicCoinLottery () = if (t(aj.callerPublicKey)) | |
153 | 153 | then throw((("initGame_FORBBIDEN, Only owner of Pubkey [" + toBase58String(b)) + "] is allowded to Set Factors.")) | |
154 | 154 | else { | |
155 | 155 | let ak = (((((f + ",") + g) + ",") + h) + ",") | |
156 | 156 | [IntegerEntry((f + j), 69), IntegerEntry((f + m), 69), IntegerEntry((f + k), 100), StringEntry((f + o), d), IntegerEntry((g + j), 69), IntegerEntry((g + m), 6900000000), IntegerEntry((g + k), 10), StringEntry((g + o), d), IntegerEntry((h + j), 69), IntegerEntry((h + m), 500000000), IntegerEntry((h + k), 1), StringEntry((h + o), d), StringEntry(n, ak), IntegerEntry(p, 3), IntegerEntry(q, 0)] | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | ||
161 | 161 | @Callable(aj) | |
162 | 162 | func startGarlicLotto () = { | |
163 | 163 | let al = N() | |
164 | 164 | let am = aj.payments[0] | |
165 | 165 | if ((10000000000 > al)) | |
166 | 166 | then throw("Amount is less than 100 GRLC, not enough Amount.") | |
167 | 167 | else if (if ((size(aj.payments) != 1)) | |
168 | - | then ( | |
168 | + | then (100000000 > am.amount) | |
169 | 169 | else false) | |
170 | 170 | then throw((("Payment not attached or there is more then 1 payment attached with minimum 1 GRLC.[" + toString(i)) + "-Int]")) | |
171 | 171 | else { | |
172 | 172 | let an = (am.amount + aj.fee) | |
173 | 173 | if ((aj.payments[0].assetId == a)) | |
174 | 174 | then { | |
175 | 175 | let I = blockInfoByHeight((lastBlock.height - 1)) | |
176 | 176 | if ($isInstanceOf(I, "BlockInfo")) | |
177 | 177 | then { | |
178 | 178 | let ao = I | |
179 | 179 | let ap = { | |
180 | 180 | let aq = y() | |
181 | 181 | if ($isInstanceOf(aq, "Int")) | |
182 | 182 | then { | |
183 | 183 | let ar = aq | |
184 | 184 | ar | |
185 | 185 | } | |
186 | 186 | else if ($isInstanceOf(aq, "Unit")) | |
187 | 187 | then throw("Garlic lottery has not been initialed yet- missing spin") | |
188 | 188 | else throw("Match error") | |
189 | 189 | } | |
190 | 190 | let as = (toInt(sha256((take(aj.transactionId, 16) + take(lastBlock.generationSignature, 16)))) % 17728) | |
191 | 191 | let at = ((toInt(toBytes(pow(as, 0, 2, 0, 0, UP))) + ap) % 64) | |
192 | 192 | let au = G() | |
193 | 193 | let av = { | |
194 | 194 | let aq = x(as) | |
195 | 195 | if ($isInstanceOf(aq, "String")) | |
196 | 196 | then { | |
197 | 197 | let aw = aq | |
198 | 198 | aw | |
199 | 199 | } | |
200 | 200 | else z[at] | |
201 | 201 | } | |
202 | 202 | let ax = A(aj, toBytes(av)) | |
203 | 203 | let ay = toBase64String(ax) | |
204 | 204 | let az = fromBase64String(ay) | |
205 | 205 | let aA = [ay] | |
206 | 206 | let aB = { | |
207 | 207 | let aC = au | |
208 | 208 | let aD = size(aC) | |
209 | 209 | let aE = aA | |
210 | 210 | func aF (aG,aH) = if ((aH >= aD)) | |
211 | 211 | then aG | |
212 | 212 | else O(aG, aC[aH]) | |
213 | 213 | ||
214 | 214 | func aI (aG,aH) = if ((aH >= aD)) | |
215 | 215 | then aG | |
216 | 216 | else throw("List size exceeds 3") | |
217 | 217 | ||
218 | 218 | aI(aF(aF(aF(aE, 0), 1), 2), 3) | |
219 | 219 | } | |
220 | 220 | let aJ = size(aB) | |
221 | 221 | let aK = (500 * 1) | |
222 | 222 | let aL = (toInt(az) % aK) | |
223 | 223 | if ((aJ == 1)) | |
224 | 224 | then [StringEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), StringEntry(v(at), toBase64String(ax)), IntegerEntry((toString((ap + 1)) + "_last_hash_number"), aL), IntegerEntry((toString((ap + 1)) + "_last_selected_number"), at), IntegerEntry(q, (ap + 1))] | |
225 | 225 | else { | |
226 | 226 | let Q = aB[0] | |
227 | 227 | let aM = toBase58String(aj.caller.bytes) | |
228 | 228 | let aN = N() | |
229 | 229 | if ((aN == 0)) | |
230 | 230 | then throw("Not Enough Garlic Coin") | |
231 | 231 | else if ((Q == f)) | |
232 | 232 | then { | |
233 | 233 | let aO = { | |
234 | 234 | let aq = getInteger(this, (f + m)) | |
235 | 235 | if ($isInstanceOf(aq, "Int")) | |
236 | 236 | then { | |
237 | 237 | let aP = aq | |
238 | 238 | aP | |
239 | 239 | } | |
240 | 240 | else if ($isInstanceOf(aq, "Unit")) | |
241 | 241 | then 0 | |
242 | 242 | else throw("Match error") | |
243 | 243 | } | |
244 | 244 | let aQ = ((aO * aN) / 100) | |
245 | 245 | let aR = { | |
246 | 246 | let aq = assetInfo(fromBase58String(d)) | |
247 | 247 | if ($isInstanceOf(aq, "Asset")) | |
248 | 248 | then { | |
249 | 249 | let aS = aq | |
250 | 250 | aS.decimals | |
251 | 251 | } | |
252 | 252 | else if ($isInstanceOf(aq, "Unit")) | |
253 | 253 | then throw("Can't find asset") | |
254 | 254 | else throw("Match error") | |
255 | 255 | } | |
256 | 256 | let aT = Y(aQ, aR) | |
257 | 257 | [StringEntry((Q + l), aM), StringEntry(v(at), toBase64String(ax)), IntegerEntry(q, (ap + 1)), StringEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + aT) + " ") + d) + "!<p>")), ScriptTransfer(aj.caller, aQ, fromBase58String(d))] | |
258 | 258 | } | |
259 | 259 | else { | |
260 | 260 | let aU = { | |
261 | 261 | let aq = getInteger(this, (Q + m)) | |
262 | 262 | if ($isInstanceOf(aq, "Int")) | |
263 | 263 | then { | |
264 | 264 | let aP = aq | |
265 | 265 | aP | |
266 | 266 | } | |
267 | 267 | else if ($isInstanceOf(aq, "Unit")) | |
268 | 268 | then 0 | |
269 | 269 | else throw("Match error") | |
270 | 270 | } | |
271 | 271 | let aR = { | |
272 | 272 | let aq = assetInfo(fromBase58String(d)) | |
273 | 273 | if ($isInstanceOf(aq, "Asset")) | |
274 | 274 | then { | |
275 | 275 | let aS = aq | |
276 | 276 | aS.decimals | |
277 | 277 | } | |
278 | 278 | else if ($isInstanceOf(aq, "Unit")) | |
279 | 279 | then throw("Can't find asset") | |
280 | 280 | else throw("Match error") | |
281 | 281 | } | |
282 | 282 | let aT = Y(aU, aR) | |
283 | 283 | [StringEntry((Q + l), aM), StringEntry(v(at), toBase64String(ax)), IntegerEntry(q, (ap + 1)), StringEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + aT) + " ") + d) + "!<p>")), ScriptTransfer(aj.caller, aU, fromBase58String(d))] | |
284 | 284 | } | |
285 | 285 | } | |
286 | 286 | } | |
287 | 287 | else throw("Last block does not exist.") | |
288 | 288 | } | |
289 | 289 | else throw((("payment is not in correct assetId " + toBase58String(a)) + ".")) | |
290 | 290 | } | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | @Verifier(aV) | |
295 | 295 | func aW () = { | |
296 | 296 | let I = aV | |
297 | 297 | sigVerify(aV.bodyBytes, aV.proofs[0], aV.senderPublicKey) | |
298 | 298 | } | |
299 | 299 |
github/deemru/w8io/169f3d6 94.25 ms ◑