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