tx · ApjhhNi7BGS8Ndn1zTFvwvU68s1U3rVs9CzaZSuN6au1 3MxDZyaTeq2tmRiUjYpUMDVPouwNuxTgy9o: -0.01400000 Waves 2022.02.15 06:26 [1924203] smart account 3MxDZyaTeq2tmRiUjYpUMDVPouwNuxTgy9o > SELF 0.00000000 Waves
{ "type": 13, "id": "ApjhhNi7BGS8Ndn1zTFvwvU68s1U3rVs9CzaZSuN6au1", "fee": 1400000, "feeAssetId": null, "timestamp": 1644895666708, "version": 2, "chainId": 84, "sender": "3MxDZyaTeq2tmRiUjYpUMDVPouwNuxTgy9o", "senderPublicKey": "2r5AmvKGTf8CAqq9Z2wuRCmchMxu1pxYgRktf1US1t89", "proofs": [ "4zK7sWHfC139R7nH3FsJgfMen6CnuJHYczkr3VJByLk4Av2gu6WR3KouMwNCdTCqd6B9bNnromb7jnf9JpuaFNPU" ], "script": "base64:AAIEAAAAAAAAAAoIAhIAEgASABIAAAAAFAAAAAADQTRBAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAAAAAAITW9udGgwVFMAAAABfIWlrUAAAAAABHdlZWsAAAAAAIsLtAAAAAAACXBhdXNldGltZQkAAGgAAAACAAAAAAAFJlwAAAAAAAAAAAAHAAAAAAlBdHRhY2hmZWUAAAAAAAAehIAAAAAADGN1cnJlbnRtb250aAkAAGQAAAACCQAAaQAAAAIJAABlAAAAAggFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAFAAAACE1vbnRoMFRTBQAAAAR3ZWVrAAAAAAAAAAABAAAAAAhzdHJtb250aAkAAaQAAAABBQAAAAxjdXJyZW50bW9udGgAAAAAD1RTVXB0b1Bhc3RNb250aAkAAGQAAAACBQAAAAhNb250aDBUUwkAAGgAAAACCQAAZQAAAAIFAAAADGN1cnJlbnRtb250aAAAAAAAAAAAAQUAAAAEd2VlawAAAAAPdm90aW5ncGF1c2V0aW1lCQAAZAAAAAIFAAAAD1RTVXB0b1Bhc3RNb250aAUAAAAJ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XJFbnRyeQAAAAIJAAEsAAAAAgIAAAARVXNlcl9Ub3RhbF9Wb3Rlc18FAAAABnB1YmtleQUAAAAEVVRWTwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAACHN0cm1vbnRoAgAAABJfVXNlcl9Ub3RhbF9Wb3Rlc18FAAAABnB1YmtleQUAAAAFVVRXVk8JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAIc3RybW9udGgCAAAAEl9Vc2VyX1RvdGFsX1ZvdGVzXwUAAAAGcHVia2V5AgAAAAEtBQAAAAdWb3RlQXN0BQAAAAZVVFdWRkEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAF1VzZXJfVG90YWxfQXNzZXRfVm90ZXNfBQAAAAZwdWJrZXkCAAAAAV8FAAAAB1ZvdGVBc3QFAAAABVVUVkZBCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAACkZlZUFkZHJlc3MIBQAAAANwbXQAAAAGYW1vdW50BQAAAANBNEEJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAADbXNnBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleS5jCXU=", "height": 1924203, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ck8PqZEUqe6Bgjkjeq55G5Y5kCc5uHpt9WEi93xKTGpR Next: none Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let A4A = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | 5 | ||
6 | - | let Month0TS = | |
6 | + | let Month0TS = 1634329800000 | |
7 | 7 | ||
8 | 8 | let week = 2332800000 | |
9 | 9 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let A4A = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | 5 | ||
6 | - | let Month0TS = | |
6 | + | let Month0TS = 1634329800000 | |
7 | 7 | ||
8 | 8 | let week = 2332800000 | |
9 | 9 | ||
10 | 10 | let pausetime = (86400000 * 7) | |
11 | 11 | ||
12 | 12 | let Attachfee = 2000000 | |
13 | 13 | ||
14 | 14 | let currentmonth = (((lastBlock.timestamp - Month0TS) / week) + 1) | |
15 | 15 | ||
16 | 16 | let strmonth = toString(currentmonth) | |
17 | 17 | ||
18 | 18 | let TSUptoPastMonth = (Month0TS + ((currentmonth - 1) * week)) | |
19 | 19 | ||
20 | 20 | let votingpausetime = (TSUptoPastMonth + pausetime) | |
21 | 21 | ||
22 | 22 | let msg = "<h1>You Voted Successfully (Monthly)!</h1><br>" | |
23 | 23 | ||
24 | 24 | let pymterror = "DApp Need 0.02 A4A Token as Attach payment[1]." | |
25 | 25 | ||
26 | 26 | let minbalerror = "Min. 1 A4A required on Your Address to Vote. Please Mint or hold min. 1 A4A on this Address." | |
27 | 27 | ||
28 | 28 | let asseterr = (("Incorrect asset attach, please attach " + toBase58String(A4A)) + " AssetID Only.") | |
29 | 29 | ||
30 | 30 | let minamterr = "Please Attach Exact 0.02 A4A To Vote." | |
31 | 31 | ||
32 | 32 | let voteErr = (((strmonth + "th Voting is paused for Next ") + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes") | |
33 | 33 | ||
34 | 34 | let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' | |
35 | 35 | ||
36 | 36 | let FTTX = match getInteger(this, "Total_Txns") { | |
37 | 37 | case a: Int => | |
38 | 38 | a | |
39 | 39 | case _ => | |
40 | 40 | 0 | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | let totaltxns = (FTTX + 1) | |
44 | 44 | ||
45 | 45 | let FTTXofweek = match getInteger(this, (strmonth + "_Total_Txns")) { | |
46 | 46 | case a: Int => | |
47 | 47 | a | |
48 | 48 | case _ => | |
49 | 49 | 0 | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | let TTOW = (FTTXofweek + 1) | |
53 | 53 | ||
54 | 54 | @Callable(i) | |
55 | 55 | func FIRO () = { | |
56 | 56 | let VoteAst = "Firo" | |
57 | 57 | let pmt = if ((size(i.payments) == 1)) | |
58 | 58 | then i.payments[0] | |
59 | 59 | else throw(pymterror) | |
60 | 60 | let pubkey = toBase58String(i.caller.bytes) | |
61 | 61 | let assetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4A) | |
62 | 62 | let FUWV = match getInteger(this, ((strmonth + "_User_Total_Votes_") + pubkey)) { | |
63 | 63 | case a: Int => | |
64 | 64 | a | |
65 | 65 | case _ => | |
66 | 66 | 0 | |
67 | 67 | } | |
68 | 68 | let UTWVO = (FUWV + 1) | |
69 | 69 | let UWVFA = match getInteger(this, ((((strmonth + "_User_Total_Votes_") + pubkey) + "-") + VoteAst)) { | |
70 | 70 | case a: Int => | |
71 | 71 | a | |
72 | 72 | case _ => | |
73 | 73 | 0 | |
74 | 74 | } | |
75 | 75 | let UTWVFA = (UWVFA + 1) | |
76 | 76 | let FUVO = match getInteger(this, ("User_Total_Votes_" + pubkey)) { | |
77 | 77 | case a: Int => | |
78 | 78 | a | |
79 | 79 | case _ => | |
80 | 80 | 0 | |
81 | 81 | } | |
82 | 82 | let UTVO = (FUVO + 1) | |
83 | 83 | let FUVFA = match getInteger(this, ((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst)) { | |
84 | 84 | case a: Int => | |
85 | 85 | a | |
86 | 86 | case _ => | |
87 | 87 | 0 | |
88 | 88 | } | |
89 | 89 | let UTVFA = (FUVFA + 1) | |
90 | 90 | let FTVO = match getInteger(this, ("Total_Votes_" + VoteAst)) { | |
91 | 91 | case a: Int => | |
92 | 92 | a | |
93 | 93 | case _ => | |
94 | 94 | 0 | |
95 | 95 | } | |
96 | 96 | let ATVO = (FTVO + 1) | |
97 | 97 | let WFTV = match getInteger(this, ((strmonth + "_Total_Votes_") + VoteAst)) { | |
98 | 98 | case a: Int => | |
99 | 99 | a | |
100 | 100 | case _ => | |
101 | 101 | 0 | |
102 | 102 | } | |
103 | 103 | let WATV = (WFTV + 1) | |
104 | 104 | if ((100000000 > assetbal)) | |
105 | 105 | then throw(minbalerror) | |
106 | 106 | else if ((pmt.assetId != A4A)) | |
107 | 107 | then throw(asseterr) | |
108 | 108 | else if ((pmt.amount != Attachfee)) | |
109 | 109 | then throw(minamterr) | |
110 | 110 | else if ((votingpausetime > lastBlock.timestamp)) | |
111 | 111 | then throw(voteErr) | |
112 | 112 | else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry((strmonth + "_Total_Txns"), TTOW), IntegerEntry("Current_Voting_Month", currentmonth), IntegerEntry(("Total_Votes_" + VoteAst), ATVO), IntegerEntry(((strmonth + "_Total_Votes_") + VoteAst), WATV), IntegerEntry(("User_Total_Votes_" + pubkey), UTVO), IntegerEntry(((strmonth + "_User_Total_Votes_") + pubkey), UTWVO), IntegerEntry(((((strmonth + "_User_Total_Votes_") + pubkey) + "-") + VoteAst), UTWVFA), IntegerEntry(((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst), UTVFA), ScriptTransfer(addressFromPublicKey(FeeAddress), pmt.amount, A4A), StringEntry("message", msg)] | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(i) | |
118 | 118 | func RTM () = { | |
119 | 119 | let VoteAst = "Raptoreum" | |
120 | 120 | let pmt = if ((size(i.payments) == 1)) | |
121 | 121 | then i.payments[0] | |
122 | 122 | else throw(pymterror) | |
123 | 123 | let pubkey = toBase58String(i.caller.bytes) | |
124 | 124 | let assetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4A) | |
125 | 125 | let FUWV = match getInteger(this, ((strmonth + "_User_Total_Votes_") + pubkey)) { | |
126 | 126 | case a: Int => | |
127 | 127 | a | |
128 | 128 | case _ => | |
129 | 129 | 0 | |
130 | 130 | } | |
131 | 131 | let UTWVO = (FUWV + 1) | |
132 | 132 | let UWVFA = match getInteger(this, ((((strmonth + "_User_Total_Votes_") + pubkey) + "-") + VoteAst)) { | |
133 | 133 | case a: Int => | |
134 | 134 | a | |
135 | 135 | case _ => | |
136 | 136 | 0 | |
137 | 137 | } | |
138 | 138 | let UTWVFA = (UWVFA + 1) | |
139 | 139 | let FUVO = match getInteger(this, ("User_Total_Votes_" + pubkey)) { | |
140 | 140 | case a: Int => | |
141 | 141 | a | |
142 | 142 | case _ => | |
143 | 143 | 0 | |
144 | 144 | } | |
145 | 145 | let UTVO = (FUVO + 1) | |
146 | 146 | let FUVFA = match getInteger(this, ((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst)) { | |
147 | 147 | case a: Int => | |
148 | 148 | a | |
149 | 149 | case _ => | |
150 | 150 | 0 | |
151 | 151 | } | |
152 | 152 | let UTVFA = (FUVFA + 1) | |
153 | 153 | let FTVO = match getInteger(this, ("Total_Votes_" + VoteAst)) { | |
154 | 154 | case a: Int => | |
155 | 155 | a | |
156 | 156 | case _ => | |
157 | 157 | 0 | |
158 | 158 | } | |
159 | 159 | let ATVO = (FTVO + 1) | |
160 | 160 | let WFTV = match getInteger(this, ((strmonth + "_Total_Votes_") + VoteAst)) { | |
161 | 161 | case a: Int => | |
162 | 162 | a | |
163 | 163 | case _ => | |
164 | 164 | 0 | |
165 | 165 | } | |
166 | 166 | let WATV = (WFTV + 1) | |
167 | 167 | if ((100000000 > assetbal)) | |
168 | 168 | then throw(minbalerror) | |
169 | 169 | else if ((pmt.assetId != A4A)) | |
170 | 170 | then throw(asseterr) | |
171 | 171 | else if ((pmt.amount != Attachfee)) | |
172 | 172 | then throw(minamterr) | |
173 | 173 | else if ((votingpausetime > lastBlock.timestamp)) | |
174 | 174 | then throw(voteErr) | |
175 | 175 | else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry((strmonth + "_Total_Txns"), TTOW), IntegerEntry("Current_Voting_Month", currentmonth), IntegerEntry(("Total_Votes_" + VoteAst), ATVO), IntegerEntry(((strmonth + "_Total_Votes_") + VoteAst), WATV), IntegerEntry(("User_Total_Votes_" + pubkey), UTVO), IntegerEntry(((strmonth + "_User_Total_Votes_") + pubkey), UTWVO), IntegerEntry(((((strmonth + "_User_Total_Votes_") + pubkey) + "-") + VoteAst), UTWVFA), IntegerEntry(((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst), UTVFA), ScriptTransfer(addressFromPublicKey(FeeAddress), pmt.amount, A4A), StringEntry("message", msg)] | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | ||
180 | 180 | @Callable(i) | |
181 | 181 | func BAT () = { | |
182 | 182 | let VoteAst = "AttentionToken" | |
183 | 183 | let pmt = if ((size(i.payments) == 1)) | |
184 | 184 | then i.payments[0] | |
185 | 185 | else throw(pymterror) | |
186 | 186 | let pubkey = toBase58String(i.caller.bytes) | |
187 | 187 | let assetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4A) | |
188 | 188 | let FUWV = match getInteger(this, ((strmonth + "_User_Total_Votes_") + pubkey)) { | |
189 | 189 | case a: Int => | |
190 | 190 | a | |
191 | 191 | case _ => | |
192 | 192 | 0 | |
193 | 193 | } | |
194 | 194 | let UTWVO = (FUWV + 1) | |
195 | 195 | let UWVFA = match getInteger(this, ((((strmonth + "_User_Total_Votes_") + pubkey) + "-") + VoteAst)) { | |
196 | 196 | case a: Int => | |
197 | 197 | a | |
198 | 198 | case _ => | |
199 | 199 | 0 | |
200 | 200 | } | |
201 | 201 | let UTWVFA = (UWVFA + 1) | |
202 | 202 | let FUVO = match getInteger(this, ("User_Total_Votes_" + pubkey)) { | |
203 | 203 | case a: Int => | |
204 | 204 | a | |
205 | 205 | case _ => | |
206 | 206 | 0 | |
207 | 207 | } | |
208 | 208 | let UTVO = (FUVO + 1) | |
209 | 209 | let FUVFA = match getInteger(this, ((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst)) { | |
210 | 210 | case a: Int => | |
211 | 211 | a | |
212 | 212 | case _ => | |
213 | 213 | 0 | |
214 | 214 | } | |
215 | 215 | let UTVFA = (FUVFA + 1) | |
216 | 216 | let FTVO = match getInteger(this, ("Total_Votes_" + VoteAst)) { | |
217 | 217 | case a: Int => | |
218 | 218 | a | |
219 | 219 | case _ => | |
220 | 220 | 0 | |
221 | 221 | } | |
222 | 222 | let ATVO = (FTVO + 1) | |
223 | 223 | let WFTV = match getInteger(this, ((strmonth + "_Total_Votes_") + VoteAst)) { | |
224 | 224 | case a: Int => | |
225 | 225 | a | |
226 | 226 | case _ => | |
227 | 227 | 0 | |
228 | 228 | } | |
229 | 229 | let WATV = (WFTV + 1) | |
230 | 230 | if ((100000000 > assetbal)) | |
231 | 231 | then throw(minbalerror) | |
232 | 232 | else if ((pmt.assetId != A4A)) | |
233 | 233 | then throw(asseterr) | |
234 | 234 | else if ((pmt.amount != Attachfee)) | |
235 | 235 | then throw(minamterr) | |
236 | 236 | else if ((votingpausetime > lastBlock.timestamp)) | |
237 | 237 | then throw(voteErr) | |
238 | 238 | else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry((strmonth + "_Total_Txns"), TTOW), IntegerEntry("Current_Voting_Month", currentmonth), IntegerEntry(("Total_Votes_" + VoteAst), ATVO), IntegerEntry(((strmonth + "_Total_Votes_") + VoteAst), WATV), IntegerEntry(("User_Total_Votes_" + pubkey), UTVO), IntegerEntry(((strmonth + "_User_Total_Votes_") + pubkey), UTWVO), IntegerEntry(((((strmonth + "_User_Total_Votes_") + pubkey) + "-") + VoteAst), UTWVFA), IntegerEntry(((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst), UTVFA), ScriptTransfer(addressFromPublicKey(FeeAddress), pmt.amount, A4A), StringEntry("message", msg)] | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | ||
243 | 243 | @Callable(i) | |
244 | 244 | func SUSHI () = { | |
245 | 245 | let VoteAst = "Sushi" | |
246 | 246 | let pmt = if ((size(i.payments) == 1)) | |
247 | 247 | then i.payments[0] | |
248 | 248 | else throw(pymterror) | |
249 | 249 | let pubkey = toBase58String(i.caller.bytes) | |
250 | 250 | let assetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4A) | |
251 | 251 | let FUWV = match getInteger(this, ((strmonth + "_User_Total_Votes_") + pubkey)) { | |
252 | 252 | case a: Int => | |
253 | 253 | a | |
254 | 254 | case _ => | |
255 | 255 | 0 | |
256 | 256 | } | |
257 | 257 | let UTWVO = (FUWV + 1) | |
258 | 258 | let UWVFA = match getInteger(this, ((((strmonth + "_User_Total_Votes_") + pubkey) + "-") + VoteAst)) { | |
259 | 259 | case a: Int => | |
260 | 260 | a | |
261 | 261 | case _ => | |
262 | 262 | 0 | |
263 | 263 | } | |
264 | 264 | let UTWVFA = (UWVFA + 1) | |
265 | 265 | let FUVO = match getInteger(this, ("User_Total_Votes_" + pubkey)) { | |
266 | 266 | case a: Int => | |
267 | 267 | a | |
268 | 268 | case _ => | |
269 | 269 | 0 | |
270 | 270 | } | |
271 | 271 | let UTVO = (FUVO + 1) | |
272 | 272 | let FUVFA = match getInteger(this, ((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst)) { | |
273 | 273 | case a: Int => | |
274 | 274 | a | |
275 | 275 | case _ => | |
276 | 276 | 0 | |
277 | 277 | } | |
278 | 278 | let UTVFA = (FUVFA + 1) | |
279 | 279 | let FTVO = match getInteger(this, ("Total_Votes_" + VoteAst)) { | |
280 | 280 | case a: Int => | |
281 | 281 | a | |
282 | 282 | case _ => | |
283 | 283 | 0 | |
284 | 284 | } | |
285 | 285 | let ATVO = (FTVO + 1) | |
286 | 286 | let WFTV = match getInteger(this, ((strmonth + "_Total_Votes_") + VoteAst)) { | |
287 | 287 | case a: Int => | |
288 | 288 | a | |
289 | 289 | case _ => | |
290 | 290 | 0 | |
291 | 291 | } | |
292 | 292 | let WATV = (WFTV + 1) | |
293 | 293 | if ((100000000 > assetbal)) | |
294 | 294 | then throw(minbalerror) | |
295 | 295 | else if ((pmt.assetId != A4A)) | |
296 | 296 | then throw(asseterr) | |
297 | 297 | else if ((pmt.amount != Attachfee)) | |
298 | 298 | then throw(minamterr) | |
299 | 299 | else if ((votingpausetime > lastBlock.timestamp)) | |
300 | 300 | then throw(voteErr) | |
301 | 301 | else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry((strmonth + "_Total_Txns"), TTOW), IntegerEntry("Current_Voting_Month", currentmonth), IntegerEntry(("Total_Votes_" + VoteAst), ATVO), IntegerEntry(((strmonth + "_Total_Votes_") + VoteAst), WATV), IntegerEntry(("User_Total_Votes_" + pubkey), UTVO), IntegerEntry(((strmonth + "_User_Total_Votes_") + pubkey), UTWVO), IntegerEntry(((((strmonth + "_User_Total_Votes_") + pubkey) + "-") + VoteAst), UTWVFA), IntegerEntry(((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst), UTVFA), ScriptTransfer(addressFromPublicKey(FeeAddress), pmt.amount, A4A), StringEntry("message", msg)] | |
302 | 302 | } | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | @Verifier(tx) | |
306 | 306 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
307 | 307 |
github/deemru/w8io/169f3d6 66.32 ms ◑