tx · 3W5FXzqH6BQqhWQKZW425yfwCqh4SyMGLuqtHh49dTUs 3MxDZyaTeq2tmRiUjYpUMDVPouwNuxTgy9o: -0.01400000 Waves 2021.10.23 00:25 [1758049] smart account 3MxDZyaTeq2tmRiUjYpUMDVPouwNuxTgy9o > SELF 0.00000000 Waves
{ "type": 13, "id": "3W5FXzqH6BQqhWQKZW425yfwCqh4SyMGLuqtHh49dTUs", "fee": 1400000, "feeAssetId": null, "timestamp": 1634937947573, "version": 2, "chainId": 84, "sender": "3MxDZyaTeq2tmRiUjYpUMDVPouwNuxTgy9o", "senderPublicKey": "2r5AmvKGTf8CAqq9Z2wuRCmchMxu1pxYgRktf1US1t89", "proofs": [ "5v3mvqv7QczzYrA3XCRTkdvTDuFWWyjCWG64XUcxMYiwBwoqcf2HKuiA29bp1cW2Nb2gmkiyeQ2A7xw7xXwgw8e8" ], "script": "base64:AAIEAAAAAAAAAAoIAhIAEgASABIAAAAAEgAAAAADQTRBAQAAACD+xBrh3u/naSJ9Eujvd+1d33EPvCCH0lpodP3xbghYNwAAAAAITW9udGgwVFMAAAABfD3Dk8AAAAAABHdlZWsAAAAAAGwljAAAAAAACXBhdXNldGltZQAAAAAAAAHUwAAAAAAMY3VycmVudG1vbnRoCQAAZAAAAAIJAABpAAAAAgkAAGUAAAACCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAUAAAAITW9udGgwVFMFAAAABHdlZWsAAAAAAAAAAAEAAAAACHN0cm1vbnRoCQABpAAAAAEFAAAADGN1cnJlbnRtb250aAAAAAAPVFNVcHRvUGFzdE1vbnRoCQAAZAAAAAIFAAAACE1vbnRoMFRTCQAAaAAAAAIJAABlAAAAAgUAAAAMY3VycmVudG1vbnRoAAAAAAAAAAABBQAAAAR3ZWVrAAAAAA92b3RpbmdwYXVzZXRpbWUJAABkAAAAAgUAAAAPVFNVcHRvUGFzdE1vbnRoBQAAAAlwYXVzZXRpbWUAAAAAA21zZwIAAAAvPGgxPllvdXIgVm90Z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AQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UFAAAAA21zZwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmCLUb6", "height": 1758049, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GSS8SQRQjCL5ndmB1Eww7ew1Dpc7rRVJfND41JkCUpQW Next: CrP4KQxWwbqwrEVKqFmQMZa47ujjEgCcZKBhmXpTsLD5 Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let c = 1814400000 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = 120000 | |
11 | 11 | ||
12 | 12 | let e = (((lastBlock.timestamp - b) / c) + 1) | |
13 | 13 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'J9VzWPfRSQyCbEv5oWpxLSihigbpbJsGBHJZV9Ct8ook' | |
5 | 5 | ||
6 | 6 | let b = 1633123800000 | |
7 | 7 | ||
8 | 8 | let c = 1814400000 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = 120000 | |
11 | 11 | ||
12 | 12 | let e = (((lastBlock.timestamp - b) / c) + 1) | |
13 | 13 | ||
14 | 14 | let f = toString(e) | |
15 | 15 | ||
16 | 16 | let g = (b + ((e - 1) * c)) | |
17 | 17 | ||
18 | 18 | let h = (g + d) | |
19 | 19 | ||
20 | 20 | let i = "<h1>Your Voted Successfully (Monthly)!</h1><br>" | |
21 | 21 | ||
22 | 22 | let j = "DApp Need 0.001 A4A Token as Attach payment[1]." | |
23 | 23 | ||
24 | 24 | let k = "Min. 1 A4A required on Your Address to Vote. Please Mint or hold min. 1 A4A on this Address." | |
25 | 25 | ||
26 | 26 | let l = (("Incorrect asset attach, please attach " + toBase58String(a)) + " AssetID Only.") | |
27 | 27 | ||
28 | 28 | let m = "Please Attach Exact 0.0001 A4A To Vote." | |
29 | 29 | ||
30 | 30 | let n = (("Voting is paused for Next " + toString(((h - lastBlock.timestamp) / 60000))) + " Minutes") | |
31 | 31 | ||
32 | 32 | let o = { | |
33 | 33 | let p = getInteger(this, "Total_Txns") | |
34 | 34 | if ($isInstanceOf(p, "Int")) | |
35 | 35 | then { | |
36 | 36 | let q = p | |
37 | 37 | q | |
38 | 38 | } | |
39 | 39 | else 0 | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | let r = (o + 1) | |
43 | 43 | ||
44 | 44 | let s = { | |
45 | 45 | let p = getInteger(this, (f + "_Total_Txns")) | |
46 | 46 | if ($isInstanceOf(p, "Int")) | |
47 | 47 | then { | |
48 | 48 | let q = p | |
49 | 49 | q | |
50 | 50 | } | |
51 | 51 | else 0 | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | let t = (s + 1) | |
55 | 55 | ||
56 | 56 | @Callable(u) | |
57 | 57 | func ARRR () = { | |
58 | 58 | let v = "PirateChain" | |
59 | 59 | let w = if ((size(u.payments) == 1)) | |
60 | 60 | then u.payments[0] | |
61 | 61 | else throw(j) | |
62 | 62 | let x = toBase58String(u.caller.bytes) | |
63 | 63 | let y = assetBalance(addressFromPublicKey(u.callerPublicKey), a) | |
64 | 64 | let z = { | |
65 | 65 | let p = getInteger(this, ((f + "_User_Total_Votes_") + x)) | |
66 | 66 | if ($isInstanceOf(p, "Int")) | |
67 | 67 | then { | |
68 | 68 | let q = p | |
69 | 69 | q | |
70 | 70 | } | |
71 | 71 | else 0 | |
72 | 72 | } | |
73 | 73 | let A = (z + 1) | |
74 | 74 | let B = { | |
75 | 75 | let p = getInteger(this, ((((f + "_User_Total_Votes_") + x) + "-") + v)) | |
76 | 76 | if ($isInstanceOf(p, "Int")) | |
77 | 77 | then { | |
78 | 78 | let q = p | |
79 | 79 | q | |
80 | 80 | } | |
81 | 81 | else 0 | |
82 | 82 | } | |
83 | 83 | let C = (B + 1) | |
84 | 84 | let D = { | |
85 | 85 | let p = getInteger(this, ("User_Total_Votes_" + x)) | |
86 | 86 | if ($isInstanceOf(p, "Int")) | |
87 | 87 | then { | |
88 | 88 | let q = p | |
89 | 89 | q | |
90 | 90 | } | |
91 | 91 | else 0 | |
92 | 92 | } | |
93 | 93 | let E = (D + 1) | |
94 | 94 | let F = { | |
95 | 95 | let p = getInteger(this, ((("User_Total_Asset_Votes_" + x) + "_") + v)) | |
96 | 96 | if ($isInstanceOf(p, "Int")) | |
97 | 97 | then { | |
98 | 98 | let q = p | |
99 | 99 | q | |
100 | 100 | } | |
101 | 101 | else 0 | |
102 | 102 | } | |
103 | 103 | let G = (F + 1) | |
104 | 104 | let H = { | |
105 | 105 | let p = getInteger(this, ("Total_Votes_" + v)) | |
106 | 106 | if ($isInstanceOf(p, "Int")) | |
107 | 107 | then { | |
108 | 108 | let q = p | |
109 | 109 | q | |
110 | 110 | } | |
111 | 111 | else 0 | |
112 | 112 | } | |
113 | 113 | let I = (H + 1) | |
114 | 114 | let J = { | |
115 | 115 | let p = getInteger(this, ((f + "_Total_Votes_") + v)) | |
116 | 116 | if ($isInstanceOf(p, "Int")) | |
117 | 117 | then { | |
118 | 118 | let q = p | |
119 | 119 | q | |
120 | 120 | } | |
121 | 121 | else 0 | |
122 | 122 | } | |
123 | 123 | let K = (J + 1) | |
124 | 124 | if ((100000000 > y)) | |
125 | 125 | then throw(k) | |
126 | 126 | else if ((w.assetId != a)) | |
127 | 127 | then throw(l) | |
128 | 128 | else if ((w.amount != 100000)) | |
129 | 129 | then throw(m) | |
130 | 130 | else if ((h > lastBlock.timestamp)) | |
131 | 131 | then throw(n) | |
132 | 132 | else [IntegerEntry("Total_Txns", r), IntegerEntry((f + "_Total_Txns"), t), IntegerEntry("Current_Voting_Month", e), IntegerEntry(("Total_Votes_" + v), I), IntegerEntry(((f + "_Total_Votes_") + v), K), IntegerEntry(("User_Total_Votes_" + x), E), IntegerEntry(((f + "_User_Total_Votes_") + x), A), IntegerEntry(((((f + "_User_Total_Votes_") + x) + "-") + v), C), IntegerEntry(((("User_Total_Asset_Votes_" + x) + "_") + v), G), StringEntry("message", i)] | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(u) | |
138 | 138 | func BAT () = { | |
139 | 139 | let v = "AttentionToken" | |
140 | 140 | let w = if ((size(u.payments) == 1)) | |
141 | 141 | then u.payments[0] | |
142 | 142 | else throw(j) | |
143 | 143 | let x = toBase58String(u.caller.bytes) | |
144 | 144 | let y = assetBalance(addressFromPublicKey(u.callerPublicKey), a) | |
145 | 145 | let z = { | |
146 | 146 | let p = getInteger(this, ((f + "_User_Total_Votes_") + x)) | |
147 | 147 | if ($isInstanceOf(p, "Int")) | |
148 | 148 | then { | |
149 | 149 | let q = p | |
150 | 150 | q | |
151 | 151 | } | |
152 | 152 | else 0 | |
153 | 153 | } | |
154 | 154 | let A = (z + 1) | |
155 | 155 | let B = { | |
156 | 156 | let p = getInteger(this, ((((f + "_User_Total_Votes_") + x) + "-") + v)) | |
157 | 157 | if ($isInstanceOf(p, "Int")) | |
158 | 158 | then { | |
159 | 159 | let q = p | |
160 | 160 | q | |
161 | 161 | } | |
162 | 162 | else 0 | |
163 | 163 | } | |
164 | 164 | let C = (B + 1) | |
165 | 165 | let D = { | |
166 | 166 | let p = getInteger(this, ("User_Total_Votes_" + x)) | |
167 | 167 | if ($isInstanceOf(p, "Int")) | |
168 | 168 | then { | |
169 | 169 | let q = p | |
170 | 170 | q | |
171 | 171 | } | |
172 | 172 | else 0 | |
173 | 173 | } | |
174 | 174 | let E = (D + 1) | |
175 | 175 | let F = { | |
176 | 176 | let p = getInteger(this, ((("User_Total_Asset_Votes_" + x) + "_") + v)) | |
177 | 177 | if ($isInstanceOf(p, "Int")) | |
178 | 178 | then { | |
179 | 179 | let q = p | |
180 | 180 | q | |
181 | 181 | } | |
182 | 182 | else 0 | |
183 | 183 | } | |
184 | 184 | let G = (F + 1) | |
185 | 185 | let H = { | |
186 | 186 | let p = getInteger(this, ("Total_Votes_" + v)) | |
187 | 187 | if ($isInstanceOf(p, "Int")) | |
188 | 188 | then { | |
189 | 189 | let q = p | |
190 | 190 | q | |
191 | 191 | } | |
192 | 192 | else 0 | |
193 | 193 | } | |
194 | 194 | let I = (H + 1) | |
195 | 195 | let J = { | |
196 | 196 | let p = getInteger(this, ((f + "_Total_Votes_") + v)) | |
197 | 197 | if ($isInstanceOf(p, "Int")) | |
198 | 198 | then { | |
199 | 199 | let q = p | |
200 | 200 | q | |
201 | 201 | } | |
202 | 202 | else 0 | |
203 | 203 | } | |
204 | 204 | let K = (J + 1) | |
205 | 205 | if ((100000000 > y)) | |
206 | 206 | then throw(k) | |
207 | 207 | else if ((w.assetId != a)) | |
208 | 208 | then throw(l) | |
209 | 209 | else if ((w.amount != 100000)) | |
210 | 210 | then throw(m) | |
211 | 211 | else if ((h > lastBlock.timestamp)) | |
212 | 212 | then throw(n) | |
213 | 213 | else [IntegerEntry("Total_Txns", r), IntegerEntry((f + "_Total_Txns"), t), IntegerEntry("Current_Voting_Month", e), IntegerEntry(("Total_Votes_" + v), I), IntegerEntry(((f + "_Total_Votes_") + v), K), IntegerEntry(("User_Total_Votes_" + x), E), IntegerEntry(((f + "_User_Total_Votes_") + x), A), IntegerEntry(((((f + "_User_Total_Votes_") + x) + "-") + v), C), IntegerEntry(((("User_Total_Asset_Votes_" + x) + "_") + v), G), StringEntry("message", i)] | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | ||
218 | 218 | @Callable(u) | |
219 | 219 | func PRCY () = { | |
220 | 220 | let v = "Privacy" | |
221 | 221 | let w = if ((size(u.payments) == 1)) | |
222 | 222 | then u.payments[0] | |
223 | 223 | else throw(j) | |
224 | 224 | let x = toBase58String(u.caller.bytes) | |
225 | 225 | let y = assetBalance(addressFromPublicKey(u.callerPublicKey), a) | |
226 | 226 | let z = { | |
227 | 227 | let p = getInteger(this, ((f + "_User_Total_Votes_") + x)) | |
228 | 228 | if ($isInstanceOf(p, "Int")) | |
229 | 229 | then { | |
230 | 230 | let q = p | |
231 | 231 | q | |
232 | 232 | } | |
233 | 233 | else 0 | |
234 | 234 | } | |
235 | 235 | let A = (z + 1) | |
236 | 236 | let B = { | |
237 | 237 | let p = getInteger(this, ((((f + "_User_Total_Votes_") + x) + "-") + v)) | |
238 | 238 | if ($isInstanceOf(p, "Int")) | |
239 | 239 | then { | |
240 | 240 | let q = p | |
241 | 241 | q | |
242 | 242 | } | |
243 | 243 | else 0 | |
244 | 244 | } | |
245 | 245 | let C = (B + 1) | |
246 | 246 | let D = { | |
247 | 247 | let p = getInteger(this, ("User_Total_Votes_" + x)) | |
248 | 248 | if ($isInstanceOf(p, "Int")) | |
249 | 249 | then { | |
250 | 250 | let q = p | |
251 | 251 | q | |
252 | 252 | } | |
253 | 253 | else 0 | |
254 | 254 | } | |
255 | 255 | let E = (D + 1) | |
256 | 256 | let F = { | |
257 | 257 | let p = getInteger(this, ((("User_Total_Asset_Votes_" + x) + "_") + v)) | |
258 | 258 | if ($isInstanceOf(p, "Int")) | |
259 | 259 | then { | |
260 | 260 | let q = p | |
261 | 261 | q | |
262 | 262 | } | |
263 | 263 | else 0 | |
264 | 264 | } | |
265 | 265 | let G = (F + 1) | |
266 | 266 | let H = { | |
267 | 267 | let p = getInteger(this, ("Total_Votes_" + v)) | |
268 | 268 | if ($isInstanceOf(p, "Int")) | |
269 | 269 | then { | |
270 | 270 | let q = p | |
271 | 271 | q | |
272 | 272 | } | |
273 | 273 | else 0 | |
274 | 274 | } | |
275 | 275 | let I = (H + 1) | |
276 | 276 | let J = { | |
277 | 277 | let p = getInteger(this, ((f + "_Total_Votes_") + v)) | |
278 | 278 | if ($isInstanceOf(p, "Int")) | |
279 | 279 | then { | |
280 | 280 | let q = p | |
281 | 281 | q | |
282 | 282 | } | |
283 | 283 | else 0 | |
284 | 284 | } | |
285 | 285 | let K = (J + 1) | |
286 | 286 | if ((100000000 > y)) | |
287 | 287 | then throw(k) | |
288 | 288 | else if ((w.assetId != a)) | |
289 | 289 | then throw(l) | |
290 | 290 | else if ((w.amount != 100000)) | |
291 | 291 | then throw(m) | |
292 | 292 | else if ((h > lastBlock.timestamp)) | |
293 | 293 | then throw(n) | |
294 | 294 | else [IntegerEntry("Total_Txns", r), IntegerEntry((f + "_Total_Txns"), t), IntegerEntry("Current_Voting_Month", e), IntegerEntry(("Total_Votes_" + v), I), IntegerEntry(((f + "_Total_Votes_") + v), K), IntegerEntry(("User_Total_Votes_" + x), E), IntegerEntry(((f + "_User_Total_Votes_") + x), A), IntegerEntry(((((f + "_User_Total_Votes_") + x) + "-") + v), C), IntegerEntry(((("User_Total_Asset_Votes_" + x) + "_") + v), G), StringEntry("message", i)] | |
295 | 295 | } | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | ||
299 | 299 | @Callable(u) | |
300 | 300 | func Haven () = { | |
301 | 301 | let v = "Haven" | |
302 | 302 | let w = if ((size(u.payments) == 1)) | |
303 | 303 | then u.payments[0] | |
304 | 304 | else throw(j) | |
305 | 305 | let x = toBase58String(u.caller.bytes) | |
306 | 306 | let y = assetBalance(addressFromPublicKey(u.callerPublicKey), a) | |
307 | 307 | let z = { | |
308 | 308 | let p = getInteger(this, ((f + "_User_Total_Votes_") + x)) | |
309 | 309 | if ($isInstanceOf(p, "Int")) | |
310 | 310 | then { | |
311 | 311 | let q = p | |
312 | 312 | q | |
313 | 313 | } | |
314 | 314 | else 0 | |
315 | 315 | } | |
316 | 316 | let A = (z + 1) | |
317 | 317 | let B = { | |
318 | 318 | let p = getInteger(this, ((((f + "_User_Total_Votes_") + x) + "-") + v)) | |
319 | 319 | if ($isInstanceOf(p, "Int")) | |
320 | 320 | then { | |
321 | 321 | let q = p | |
322 | 322 | q | |
323 | 323 | } | |
324 | 324 | else 0 | |
325 | 325 | } | |
326 | 326 | let C = (B + 1) | |
327 | 327 | let D = { | |
328 | 328 | let p = getInteger(this, ("User_Total_Votes_" + x)) | |
329 | 329 | if ($isInstanceOf(p, "Int")) | |
330 | 330 | then { | |
331 | 331 | let q = p | |
332 | 332 | q | |
333 | 333 | } | |
334 | 334 | else 0 | |
335 | 335 | } | |
336 | 336 | let E = (D + 1) | |
337 | 337 | let F = { | |
338 | 338 | let p = getInteger(this, ((("User_Total_Asset_Votes_" + x) + "_") + v)) | |
339 | 339 | if ($isInstanceOf(p, "Int")) | |
340 | 340 | then { | |
341 | 341 | let q = p | |
342 | 342 | q | |
343 | 343 | } | |
344 | 344 | else 0 | |
345 | 345 | } | |
346 | 346 | let G = (F + 1) | |
347 | 347 | let H = { | |
348 | 348 | let p = getInteger(this, ("Total_Votes_" + v)) | |
349 | 349 | if ($isInstanceOf(p, "Int")) | |
350 | 350 | then { | |
351 | 351 | let q = p | |
352 | 352 | q | |
353 | 353 | } | |
354 | 354 | else 0 | |
355 | 355 | } | |
356 | 356 | let I = (H + 1) | |
357 | 357 | let J = { | |
358 | 358 | let p = getInteger(this, ((f + "_Total_Votes_") + v)) | |
359 | 359 | if ($isInstanceOf(p, "Int")) | |
360 | 360 | then { | |
361 | 361 | let q = p | |
362 | 362 | q | |
363 | 363 | } | |
364 | 364 | else 0 | |
365 | 365 | } | |
366 | 366 | let K = (J + 1) | |
367 | 367 | if ((100000000 > y)) | |
368 | 368 | then throw(k) | |
369 | 369 | else if ((w.assetId != a)) | |
370 | 370 | then throw(l) | |
371 | 371 | else if ((w.amount != 100000)) | |
372 | 372 | then throw(m) | |
373 | 373 | else if ((h > lastBlock.timestamp)) | |
374 | 374 | then throw(n) | |
375 | 375 | else [IntegerEntry("Total_Txns", r), IntegerEntry((f + "_Total_Txns"), t), IntegerEntry("Current_Voting_Month", e), IntegerEntry(("Total_Votes_" + v), I), IntegerEntry(((f + "_Total_Votes_") + v), K), IntegerEntry(("User_Total_Votes_" + x), E), IntegerEntry(((f + "_User_Total_Votes_") + x), A), IntegerEntry(((((f + "_User_Total_Votes_") + x) + "-") + v), C), IntegerEntry(((("User_Total_Asset_Votes_" + x) + "_") + v), G), StringEntry("message", i)] | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | @Verifier(L) | |
380 | 380 | func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey) | |
381 | 381 |
github/deemru/w8io/169f3d6 40.86 ms ◑