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