tx · 7P9B7HEfBPKPFANQfF6VK3KxQ3VtHuTqVFnSqREP3vnC 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ: -0.01400000 Waves 2021.09.29 08:43 [1723830] smart account 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ > SELF 0.00000000 Waves
{ "type": 13, "id": "7P9B7HEfBPKPFANQfF6VK3KxQ3VtHuTqVFnSqREP3vnC", "fee": 1400000, "feeAssetId": null, "timestamp": 1632894244453, "version": 2, "chainId": 84, "sender": "3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ", "senderPublicKey": "BMLuSYJ8rvQD55waCoKpzCBhJAbY8s9pp4V5ZgxuzCBD", "proofs": [ "5HUaLmawmWVp1vZFZuAqboAT5ffuP1C65yntHk3qXHK1itmQNwk5UDdzpBvRPxurWCkg3aHzy7sRgVQficcnTNt5" ], "script": "base64:AAIEAAAAAAAAAAoIAhIAEgASABIAAAAABQAAAAAKQTRBQXNzZXRJRAEAAAAg/sQa4d7v52kifRLo73ftXd9xD7wgh9JaaHT98W4IWDcAAAAADldlZWswVGltZXN0YW1wAAAAAXsihc/AAAAAAAhlYWNod2VlawAAAAAAJAyEAAAAAAAIZWFjaGhvdXIAAAAAAAA27oAAAAAACXBhdXNldGltZQAAAAAAANu6AAAAAAQAAAABaQEAAAAJQ2hhaW5saW5rAAAAAAQAAAAORmF2b3VyaXRlQXNzZXQCAAAACUNoYWlubGluawQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAOVdlZWtseSBWb3RlIE5lZWQgMC4wMDAxIEE0QSBUb2tlbiBhcyBBdHRhY2hlZCBwYXltZW50WzFdLgQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAABJjdXJyZW50cnVubmluZ3dl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XwUAAAAKY3VycmVudEtleQUAAAAOdXNlcnRvdGFsdm90ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAF1VzZXJfVG90YWxfQXNzZXRfVm90ZXNfBQAAAApjdXJyZW50S2V5AgAAAAFfBQAAAA5GYXZvdXJpdGVBc3NldAUAAAAWdXNlcnRvdGFsdm90ZXNmb3Jhc3NldAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlAgAAACQ8aDE+WW91IFZvdGVkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5g92gLA==", "height": 1723830, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4ecZtEY6aeuPUg4XHW88rvwc7C6cdYnCzAtcYQR9xQDk Next: 3nAZHR2WuVc4yy2qTthEfMXeT8daoPuy32mZ9LArzADq Diff:
Old | New | Differences | |
---|---|---|---|
43 | 43 | } | |
44 | 44 | let s = (r + 1) | |
45 | 45 | let t = { | |
46 | - | let o = getInteger(this, ((((toString(j) + "_User_Total_Votes_") + i) + " | |
46 | + | let o = getInteger(this, ((((toString(j) + "_User_Total_Votes_") + i) + "-") + g)) | |
47 | 47 | if ($isInstanceOf(o, "Int")) | |
48 | 48 | then { | |
49 | 49 | let p = o | |
90 | 90 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
91 | 91 | else if ((l > lastBlock.timestamp)) | |
92 | 92 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
93 | - | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((toString(j) + "_User_Total_Votes_") + i), s), IntegerEntry(((((toString(j) + "_User_Total_Votes_") + i) + " | |
93 | + | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((toString(j) + "_User_Total_Votes_") + i), s), IntegerEntry(((((toString(j) + "_User_Total_Votes_") + i) + "-") + g), u), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 |
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 = 1628371800000 | |
7 | 7 | ||
8 | 8 | let c = 604800000 | |
9 | 9 | ||
10 | 10 | let d = 3600000 | |
11 | 11 | ||
12 | 12 | let e = 14400000 | |
13 | 13 | ||
14 | 14 | @Callable(f) | |
15 | 15 | func Chainlink () = { | |
16 | 16 | let g = "Chainlink" | |
17 | 17 | let h = if ((size(f.payments) == 1)) | |
18 | 18 | then f.payments[0] | |
19 | 19 | else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].") | |
20 | 20 | let i = toBase58String(f.caller.bytes) | |
21 | 21 | let j = (((lastBlock.timestamp - b) / c) + 1) | |
22 | 22 | let k = (b + ((j - 1) * c)) | |
23 | 23 | let l = (k + e) | |
24 | 24 | let m = assetBalance(addressFromPublicKey(f.callerPublicKey), a) | |
25 | 25 | let n = { | |
26 | 26 | let o = getInteger(this, "Total_Txns") | |
27 | 27 | if ($isInstanceOf(o, "Int")) | |
28 | 28 | then { | |
29 | 29 | let p = o | |
30 | 30 | p | |
31 | 31 | } | |
32 | 32 | else 0 | |
33 | 33 | } | |
34 | 34 | let q = (n + 1) | |
35 | 35 | let r = { | |
36 | 36 | let o = getInteger(this, ((toString(j) + "_User_Total_Votes_") + i)) | |
37 | 37 | if ($isInstanceOf(o, "Int")) | |
38 | 38 | then { | |
39 | 39 | let p = o | |
40 | 40 | p | |
41 | 41 | } | |
42 | 42 | else 0 | |
43 | 43 | } | |
44 | 44 | let s = (r + 1) | |
45 | 45 | let t = { | |
46 | - | let o = getInteger(this, ((((toString(j) + "_User_Total_Votes_") + i) + " | |
46 | + | let o = getInteger(this, ((((toString(j) + "_User_Total_Votes_") + i) + "-") + g)) | |
47 | 47 | if ($isInstanceOf(o, "Int")) | |
48 | 48 | then { | |
49 | 49 | let p = o | |
50 | 50 | p | |
51 | 51 | } | |
52 | 52 | else 0 | |
53 | 53 | } | |
54 | 54 | let u = (t + 1) | |
55 | 55 | let v = { | |
56 | 56 | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
57 | 57 | if ($isInstanceOf(o, "Int")) | |
58 | 58 | then { | |
59 | 59 | let p = o | |
60 | 60 | p | |
61 | 61 | } | |
62 | 62 | else 0 | |
63 | 63 | } | |
64 | 64 | let w = (v + 1) | |
65 | 65 | let x = { | |
66 | 66 | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
67 | 67 | if ($isInstanceOf(o, "Int")) | |
68 | 68 | then { | |
69 | 69 | let p = o | |
70 | 70 | p | |
71 | 71 | } | |
72 | 72 | else 0 | |
73 | 73 | } | |
74 | 74 | let y = (x + 1) | |
75 | 75 | let z = { | |
76 | 76 | let o = getInteger(this, ("Total_Votes_" + g)) | |
77 | 77 | if ($isInstanceOf(o, "Int")) | |
78 | 78 | then { | |
79 | 79 | let p = o | |
80 | 80 | p | |
81 | 81 | } | |
82 | 82 | else 0 | |
83 | 83 | } | |
84 | 84 | let A = (z + 1) | |
85 | 85 | if ((100000000 > m)) | |
86 | 86 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
87 | 87 | else if ((h.assetId != a)) | |
88 | 88 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only.")) | |
89 | 89 | else if ((h.amount != 10000)) | |
90 | 90 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
91 | 91 | else if ((l > lastBlock.timestamp)) | |
92 | 92 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
93 | - | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((toString(j) + "_User_Total_Votes_") + i), s), IntegerEntry(((((toString(j) + "_User_Total_Votes_") + i) + " | |
93 | + | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((toString(j) + "_User_Total_Votes_") + i), s), IntegerEntry(((((toString(j) + "_User_Total_Votes_") + i) + "-") + g), u), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | ||
98 | 98 | @Callable(f) | |
99 | 99 | func Dent () = { | |
100 | 100 | let g = "Dent" | |
101 | 101 | let h = if ((size(f.payments) == 1)) | |
102 | 102 | then f.payments[0] | |
103 | 103 | else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].") | |
104 | 104 | let i = toBase58String(f.caller.bytes) | |
105 | 105 | let j = (((lastBlock.timestamp - b) / c) + 1) | |
106 | 106 | let k = (b + ((j - 1) * c)) | |
107 | 107 | let l = (k + e) | |
108 | 108 | let m = assetBalance(addressFromPublicKey(f.callerPublicKey), a) | |
109 | 109 | let n = { | |
110 | 110 | let o = getInteger(this, "Total_Txns") | |
111 | 111 | if ($isInstanceOf(o, "Int")) | |
112 | 112 | then { | |
113 | 113 | let p = o | |
114 | 114 | p | |
115 | 115 | } | |
116 | 116 | else 0 | |
117 | 117 | } | |
118 | 118 | let q = (n + 1) | |
119 | 119 | let r = { | |
120 | 120 | let o = getInteger(this, ((toString(j) + "_User_Total_Votes_") + i)) | |
121 | 121 | if ($isInstanceOf(o, "Int")) | |
122 | 122 | then { | |
123 | 123 | let p = o | |
124 | 124 | p | |
125 | 125 | } | |
126 | 126 | else 0 | |
127 | 127 | } | |
128 | 128 | let s = (r + 1) | |
129 | 129 | let t = { | |
130 | 130 | let o = getInteger(this, ((((toString(j) + "_User_Total_Votes_") + i) + "_") + g)) | |
131 | 131 | if ($isInstanceOf(o, "Int")) | |
132 | 132 | then { | |
133 | 133 | let p = o | |
134 | 134 | p | |
135 | 135 | } | |
136 | 136 | else 0 | |
137 | 137 | } | |
138 | 138 | let u = (t + 1) | |
139 | 139 | let v = { | |
140 | 140 | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
141 | 141 | if ($isInstanceOf(o, "Int")) | |
142 | 142 | then { | |
143 | 143 | let p = o | |
144 | 144 | p | |
145 | 145 | } | |
146 | 146 | else 0 | |
147 | 147 | } | |
148 | 148 | let w = (v + 1) | |
149 | 149 | let x = { | |
150 | 150 | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
151 | 151 | if ($isInstanceOf(o, "Int")) | |
152 | 152 | then { | |
153 | 153 | let p = o | |
154 | 154 | p | |
155 | 155 | } | |
156 | 156 | else 0 | |
157 | 157 | } | |
158 | 158 | let y = (x + 1) | |
159 | 159 | let z = { | |
160 | 160 | let o = getInteger(this, ("Total_Votes_" + g)) | |
161 | 161 | if ($isInstanceOf(o, "Int")) | |
162 | 162 | then { | |
163 | 163 | let p = o | |
164 | 164 | p | |
165 | 165 | } | |
166 | 166 | else 0 | |
167 | 167 | } | |
168 | 168 | let A = (z + 1) | |
169 | 169 | if ((100000000 > m)) | |
170 | 170 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
171 | 171 | else if ((h.assetId != a)) | |
172 | 172 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only.")) | |
173 | 173 | else if ((h.amount != 10000)) | |
174 | 174 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
175 | 175 | else if ((l > lastBlock.timestamp)) | |
176 | 176 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
177 | 177 | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((toString(j) + "_User_Total_Votes_") + i), s), IntegerEntry(((((toString(j) + "_User_Total_Votes_") + i) + "_") + g), u), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | ||
182 | 182 | @Callable(f) | |
183 | 183 | func Sushi () = { | |
184 | 184 | let g = "Sushi" | |
185 | 185 | let h = if ((size(f.payments) == 1)) | |
186 | 186 | then f.payments[0] | |
187 | 187 | else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].") | |
188 | 188 | let i = toBase58String(f.caller.bytes) | |
189 | 189 | let j = (((lastBlock.timestamp - b) / c) + 1) | |
190 | 190 | let k = (b + ((j - 1) * c)) | |
191 | 191 | let l = (k + e) | |
192 | 192 | let m = assetBalance(addressFromPublicKey(f.callerPublicKey), a) | |
193 | 193 | let n = { | |
194 | 194 | let o = getInteger(this, "Total_Txns") | |
195 | 195 | if ($isInstanceOf(o, "Int")) | |
196 | 196 | then { | |
197 | 197 | let p = o | |
198 | 198 | p | |
199 | 199 | } | |
200 | 200 | else 0 | |
201 | 201 | } | |
202 | 202 | let q = (n + 1) | |
203 | 203 | let v = { | |
204 | 204 | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
205 | 205 | if ($isInstanceOf(o, "Int")) | |
206 | 206 | then { | |
207 | 207 | let p = o | |
208 | 208 | p | |
209 | 209 | } | |
210 | 210 | else 0 | |
211 | 211 | } | |
212 | 212 | let w = (v + 1) | |
213 | 213 | let x = { | |
214 | 214 | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
215 | 215 | if ($isInstanceOf(o, "Int")) | |
216 | 216 | then { | |
217 | 217 | let p = o | |
218 | 218 | p | |
219 | 219 | } | |
220 | 220 | else 0 | |
221 | 221 | } | |
222 | 222 | let y = (x + 1) | |
223 | 223 | let z = { | |
224 | 224 | let o = getInteger(this, ("Total_Votes_" + g)) | |
225 | 225 | if ($isInstanceOf(o, "Int")) | |
226 | 226 | then { | |
227 | 227 | let p = o | |
228 | 228 | p | |
229 | 229 | } | |
230 | 230 | else 0 | |
231 | 231 | } | |
232 | 232 | let A = (z + 1) | |
233 | 233 | if ((100000000 > m)) | |
234 | 234 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
235 | 235 | else if ((h.assetId != a)) | |
236 | 236 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only.")) | |
237 | 237 | else if ((h.amount != 10000)) | |
238 | 238 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
239 | 239 | else if ((l > lastBlock.timestamp)) | |
240 | 240 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
241 | 241 | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | ||
246 | 246 | @Callable(f) | |
247 | 247 | func Compound () = { | |
248 | 248 | let g = "Compound" | |
249 | 249 | let h = if ((size(f.payments) == 1)) | |
250 | 250 | then f.payments[0] | |
251 | 251 | else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].") | |
252 | 252 | let i = toBase58String(f.caller.bytes) | |
253 | 253 | let j = (((lastBlock.timestamp - b) / c) + 1) | |
254 | 254 | let k = (b + ((j - 1) * c)) | |
255 | 255 | let l = (k + e) | |
256 | 256 | let m = assetBalance(addressFromPublicKey(f.callerPublicKey), a) | |
257 | 257 | let n = { | |
258 | 258 | let o = getInteger(this, "Total_Txns") | |
259 | 259 | if ($isInstanceOf(o, "Int")) | |
260 | 260 | then { | |
261 | 261 | let p = o | |
262 | 262 | p | |
263 | 263 | } | |
264 | 264 | else 0 | |
265 | 265 | } | |
266 | 266 | let q = (n + 1) | |
267 | 267 | let v = { | |
268 | 268 | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
269 | 269 | if ($isInstanceOf(o, "Int")) | |
270 | 270 | then { | |
271 | 271 | let p = o | |
272 | 272 | p | |
273 | 273 | } | |
274 | 274 | else 0 | |
275 | 275 | } | |
276 | 276 | let w = (v + 1) | |
277 | 277 | let x = { | |
278 | 278 | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
279 | 279 | if ($isInstanceOf(o, "Int")) | |
280 | 280 | then { | |
281 | 281 | let p = o | |
282 | 282 | p | |
283 | 283 | } | |
284 | 284 | else 0 | |
285 | 285 | } | |
286 | 286 | let y = (x + 1) | |
287 | 287 | let z = { | |
288 | 288 | let o = getInteger(this, ("Total_Votes_" + g)) | |
289 | 289 | if ($isInstanceOf(o, "Int")) | |
290 | 290 | then { | |
291 | 291 | let p = o | |
292 | 292 | p | |
293 | 293 | } | |
294 | 294 | else 0 | |
295 | 295 | } | |
296 | 296 | let A = (z + 1) | |
297 | 297 | if ((100000000 > m)) | |
298 | 298 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
299 | 299 | else if ((h.assetId != a)) | |
300 | 300 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only.")) | |
301 | 301 | else if ((h.amount != 10000)) | |
302 | 302 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
303 | 303 | else if ((l > lastBlock.timestamp)) | |
304 | 304 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
305 | 305 | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Verifier(B) | |
310 | 310 | func C () = sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey) | |
311 | 311 |
github/deemru/w8io/169f3d6 43.82 ms ◑