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