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