tx · H5rxLjrNfF82eXjrv4FpSaT5EnMa5XBhLnWfLQArFCNn 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ: -0.01400000 Waves 2021.09.29 08:31 [1723814] smart account 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ > SELF 0.00000000 Waves
{ "type": 13, "id": "H5rxLjrNfF82eXjrv4FpSaT5EnMa5XBhLnWfLQArFCNn", "fee": 1400000, "feeAssetId": null, "timestamp": 1632893485218, "version": 2, "chainId": 84, "sender": "3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ", "senderPublicKey": "BMLuSYJ8rvQD55waCoKpzCBhJAbY8s9pp4V5ZgxuzCBD", "proofs": [ "2CawMDRx7a931fFgdj6wqQAZVpuF4KNMdHW2uCUpiKjfHgLcFUDRcPhv7J2rnTgemxTL3CCKi8XH4Wf38up2RzHm" ], "script": "base64:AAIEAAAAAAAAAAoIAhIAEgASABIAAAAABQAAAAAKQTRBQXNzZXRJRAEAAAAg/sQa4d7v52kifRLo73ftXd9xD7wgh9JaaHT98W4IWDcAAAAADldlZWswVGltZXN0YW1wAAAAAXsihc/AAAAAAAhlYWNod2VlawAAAAAAJAyEAAAAAAAIZWFjaGhvdXIAAAAAAAA27oAAAAAACXBhdXNldGltZQAAAAAAANu6AAAAAAQAAAABaQEAAAAJQ2hhaW5saW5rAAAAAAQAAAAORmF2b3VyaXRlQXNzZXQCAAAACUNoYWlubGluawQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAOVdlZWtseSBWb3RlIE5lZWQgMC4wMDAxIEE0QSBUb2tlbiBhcyBBdHRhY2hlZCBwYXltZW50WzFdLgQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAABJjdXJyZW50cnVubmluZ3dl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pbnV0ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAClRvdGFsX1R4bnMFAAAACXRvdGFsdHhucwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAATQ3VycmVudF9Wb3RpbmdfV2VlawUAAAASY3VycmVudHJ1bm5pbmd3ZWVrCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADFRvdGFsX1ZvdGVzXwUAAAAORmF2b3VyaXRlQXNzZXQFAAAAD2Fzc2V0dG90YWx2b3RlcwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAABFVc2VyX1RvdGFsX1ZvdGVzXwUAAAAKY3VycmVudEtleQUAAAAOdXNlcnRvdGFsdm90ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAF1VzZXJfVG90YWxfQXNzZXRfVm90ZXNfBQAAAApjdXJyZW50S2V5AgAAAAFfBQAAAA5GYXZvdXJpdGVBc3NldAUAAAAWdXNlcnRvdGFsdm90ZXNmb3Jhc3NldAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlAgAAACQ8aDE+WW91IFZvdGVkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5on+6xQ==", "height": 1723814, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2XdjN8S44VgohMiTrzCCXvFSko9em7zG6gCrbGDpyaAb Next: 4ecZtEY6aeuPUg4XHW88rvwc7C6cdYnCzAtcYQR9xQDk Diff:
Old | New | Differences | |
---|---|---|---|
43 | 43 | } | |
44 | 44 | let s = (r + 1) | |
45 | 45 | let t = { | |
46 | - | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
46 | + | let o = getInteger(this, ((((toString(j) + "_User_Total_Votes_") + i) + "_") + g)) | |
47 | 47 | if ($isInstanceOf(o, "Int")) | |
48 | 48 | then { | |
49 | 49 | let p = o | |
53 | 53 | } | |
54 | 54 | let u = (t + 1) | |
55 | 55 | let v = { | |
56 | - | let o = getInteger(this, ( | |
56 | + | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
57 | 57 | if ($isInstanceOf(o, "Int")) | |
58 | 58 | then { | |
59 | 59 | let p = o | |
63 | 63 | } | |
64 | 64 | let w = (v + 1) | |
65 | 65 | let x = { | |
66 | + | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
67 | + | if ($isInstanceOf(o, "Int")) | |
68 | + | then { | |
69 | + | let p = o | |
70 | + | p | |
71 | + | } | |
72 | + | else 0 | |
73 | + | } | |
74 | + | let y = (x + 1) | |
75 | + | let z = { | |
66 | 76 | let o = getInteger(this, ("Total_Votes_" + g)) | |
67 | 77 | if ($isInstanceOf(o, "Int")) | |
68 | 78 | then { | |
71 | 81 | } | |
72 | 82 | else 0 | |
73 | 83 | } | |
74 | - | let | |
84 | + | let A = (z + 1) | |
75 | 85 | if ((100000000 > m)) | |
76 | 86 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
77 | 87 | else if ((h.assetId != a)) | |
80 | 90 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
81 | 91 | else if ((l > lastBlock.timestamp)) | |
82 | 92 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
83 | - | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), | |
93 | + | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((toString(j) + "_User_Total_Votes_") + i), s), IntegerEntry(((((toString(j) + "_User_Total_Votes_") + i) + "_") + g), u), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
84 | 94 | } | |
85 | 95 | ||
86 | 96 | ||
116 | 126 | else 0 | |
117 | 127 | } | |
118 | 128 | let s = (r + 1) | |
119 | - | let | |
129 | + | let v = { | |
120 | 130 | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
121 | - | if ($isInstanceOf(o, "Int")) | |
122 | - | then { | |
123 | - | let p = o | |
124 | - | p | |
125 | - | } | |
126 | - | else 0 | |
127 | - | } | |
128 | - | let u = (t + 1) | |
129 | - | let v = { | |
130 | - | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
131 | 131 | if ($isInstanceOf(o, "Int")) | |
132 | 132 | then { | |
133 | 133 | let p = o | |
137 | 137 | } | |
138 | 138 | let w = (v + 1) | |
139 | 139 | let x = { | |
140 | + | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
141 | + | if ($isInstanceOf(o, "Int")) | |
142 | + | then { | |
143 | + | let p = o | |
144 | + | p | |
145 | + | } | |
146 | + | else 0 | |
147 | + | } | |
148 | + | let y = (x + 1) | |
149 | + | let z = { | |
140 | 150 | let o = getInteger(this, ("Total_Votes_" + g)) | |
141 | 151 | if ($isInstanceOf(o, "Int")) | |
142 | 152 | then { | |
145 | 155 | } | |
146 | 156 | else 0 | |
147 | 157 | } | |
148 | - | let | |
158 | + | let A = (z + 1) | |
149 | 159 | if ((100000000 > m)) | |
150 | 160 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
151 | 161 | else if ((h.assetId != a)) | |
154 | 164 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
155 | 165 | else if ((l > lastBlock.timestamp)) | |
156 | 166 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
157 | - | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), | |
167 | + | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((toString(j) + "_User_Total_Votes_") + i), s), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
158 | 168 | } | |
159 | 169 | ||
160 | 170 | ||
180 | 190 | else 0 | |
181 | 191 | } | |
182 | 192 | let q = (n + 1) | |
183 | - | let | |
193 | + | let v = { | |
184 | 194 | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
185 | - | if ($isInstanceOf(o, "Int")) | |
186 | - | then { | |
187 | - | let p = o | |
188 | - | p | |
189 | - | } | |
190 | - | else 0 | |
191 | - | } | |
192 | - | let u = (t + 1) | |
193 | - | let v = { | |
194 | - | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
195 | 195 | if ($isInstanceOf(o, "Int")) | |
196 | 196 | then { | |
197 | 197 | let p = o | |
201 | 201 | } | |
202 | 202 | let w = (v + 1) | |
203 | 203 | let x = { | |
204 | + | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
205 | + | if ($isInstanceOf(o, "Int")) | |
206 | + | then { | |
207 | + | let p = o | |
208 | + | p | |
209 | + | } | |
210 | + | else 0 | |
211 | + | } | |
212 | + | let y = (x + 1) | |
213 | + | let z = { | |
204 | 214 | let o = getInteger(this, ("Total_Votes_" + g)) | |
205 | 215 | if ($isInstanceOf(o, "Int")) | |
206 | 216 | then { | |
209 | 219 | } | |
210 | 220 | else 0 | |
211 | 221 | } | |
212 | - | let | |
222 | + | let A = (z + 1) | |
213 | 223 | if ((100000000 > m)) | |
214 | 224 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
215 | 225 | else if ((h.assetId != a)) | |
218 | 228 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
219 | 229 | else if ((l > lastBlock.timestamp)) | |
220 | 230 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
221 | - | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), | |
231 | + | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
222 | 232 | } | |
223 | 233 | ||
224 | 234 | ||
244 | 254 | else 0 | |
245 | 255 | } | |
246 | 256 | let q = (n + 1) | |
247 | - | let | |
257 | + | let v = { | |
248 | 258 | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
249 | - | if ($isInstanceOf(o, "Int")) | |
250 | - | then { | |
251 | - | let p = o | |
252 | - | p | |
253 | - | } | |
254 | - | else 0 | |
255 | - | } | |
256 | - | let u = (t + 1) | |
257 | - | let v = { | |
258 | - | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
259 | 259 | if ($isInstanceOf(o, "Int")) | |
260 | 260 | then { | |
261 | 261 | let p = o | |
265 | 265 | } | |
266 | 266 | let w = (v + 1) | |
267 | 267 | let x = { | |
268 | + | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
269 | + | if ($isInstanceOf(o, "Int")) | |
270 | + | then { | |
271 | + | let p = o | |
272 | + | p | |
273 | + | } | |
274 | + | else 0 | |
275 | + | } | |
276 | + | let y = (x + 1) | |
277 | + | let z = { | |
268 | 278 | let o = getInteger(this, ("Total_Votes_" + g)) | |
269 | 279 | if ($isInstanceOf(o, "Int")) | |
270 | 280 | then { | |
273 | 283 | } | |
274 | 284 | else 0 | |
275 | 285 | } | |
276 | - | let | |
286 | + | let A = (z + 1) | |
277 | 287 | if ((100000000 > m)) | |
278 | 288 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
279 | 289 | else if ((h.assetId != a)) | |
282 | 292 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
283 | 293 | else if ((l > lastBlock.timestamp)) | |
284 | 294 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
285 | - | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), | |
295 | + | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
286 | 296 | } | |
287 | 297 | ||
288 | 298 | ||
289 | - | @Verifier( | |
290 | - | func | |
299 | + | @Verifier(B) | |
300 | + | func C () = sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey) | |
291 | 301 |
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 = 1628371800000 | |
7 | 7 | ||
8 | 8 | let c = 604800000 | |
9 | 9 | ||
10 | 10 | let d = 3600000 | |
11 | 11 | ||
12 | 12 | let e = 14400000 | |
13 | 13 | ||
14 | 14 | @Callable(f) | |
15 | 15 | func Chainlink () = { | |
16 | 16 | let g = "Chainlink" | |
17 | 17 | let h = if ((size(f.payments) == 1)) | |
18 | 18 | then f.payments[0] | |
19 | 19 | else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].") | |
20 | 20 | let i = toBase58String(f.caller.bytes) | |
21 | 21 | let j = (((lastBlock.timestamp - b) / c) + 1) | |
22 | 22 | let k = (b + ((j - 1) * c)) | |
23 | 23 | let l = (k + e) | |
24 | 24 | let m = assetBalance(addressFromPublicKey(f.callerPublicKey), a) | |
25 | 25 | let n = { | |
26 | 26 | let o = getInteger(this, "Total_Txns") | |
27 | 27 | if ($isInstanceOf(o, "Int")) | |
28 | 28 | then { | |
29 | 29 | let p = o | |
30 | 30 | p | |
31 | 31 | } | |
32 | 32 | else 0 | |
33 | 33 | } | |
34 | 34 | let q = (n + 1) | |
35 | 35 | let r = { | |
36 | 36 | let o = getInteger(this, ((toString(j) + "_User_Total_Votes_") + i)) | |
37 | 37 | if ($isInstanceOf(o, "Int")) | |
38 | 38 | then { | |
39 | 39 | let p = o | |
40 | 40 | p | |
41 | 41 | } | |
42 | 42 | else 0 | |
43 | 43 | } | |
44 | 44 | let s = (r + 1) | |
45 | 45 | let t = { | |
46 | - | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
46 | + | let o = getInteger(this, ((((toString(j) + "_User_Total_Votes_") + i) + "_") + g)) | |
47 | 47 | if ($isInstanceOf(o, "Int")) | |
48 | 48 | then { | |
49 | 49 | let p = o | |
50 | 50 | p | |
51 | 51 | } | |
52 | 52 | else 0 | |
53 | 53 | } | |
54 | 54 | let u = (t + 1) | |
55 | 55 | let v = { | |
56 | - | let o = getInteger(this, ( | |
56 | + | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
57 | 57 | if ($isInstanceOf(o, "Int")) | |
58 | 58 | then { | |
59 | 59 | let p = o | |
60 | 60 | p | |
61 | 61 | } | |
62 | 62 | else 0 | |
63 | 63 | } | |
64 | 64 | let w = (v + 1) | |
65 | 65 | let x = { | |
66 | + | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
67 | + | if ($isInstanceOf(o, "Int")) | |
68 | + | then { | |
69 | + | let p = o | |
70 | + | p | |
71 | + | } | |
72 | + | else 0 | |
73 | + | } | |
74 | + | let y = (x + 1) | |
75 | + | let z = { | |
66 | 76 | let o = getInteger(this, ("Total_Votes_" + g)) | |
67 | 77 | if ($isInstanceOf(o, "Int")) | |
68 | 78 | then { | |
69 | 79 | let p = o | |
70 | 80 | p | |
71 | 81 | } | |
72 | 82 | else 0 | |
73 | 83 | } | |
74 | - | let | |
84 | + | let A = (z + 1) | |
75 | 85 | if ((100000000 > m)) | |
76 | 86 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
77 | 87 | else if ((h.assetId != a)) | |
78 | 88 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only.")) | |
79 | 89 | else if ((h.amount != 10000)) | |
80 | 90 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
81 | 91 | else if ((l > lastBlock.timestamp)) | |
82 | 92 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
83 | - | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), | |
93 | + | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((toString(j) + "_User_Total_Votes_") + i), s), IntegerEntry(((((toString(j) + "_User_Total_Votes_") + i) + "_") + g), u), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
84 | 94 | } | |
85 | 95 | ||
86 | 96 | ||
87 | 97 | ||
88 | 98 | @Callable(f) | |
89 | 99 | func Dent () = { | |
90 | 100 | let g = "Dent" | |
91 | 101 | let h = if ((size(f.payments) == 1)) | |
92 | 102 | then f.payments[0] | |
93 | 103 | else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].") | |
94 | 104 | let i = toBase58String(f.caller.bytes) | |
95 | 105 | let j = (((lastBlock.timestamp - b) / c) + 1) | |
96 | 106 | let k = (b + ((j - 1) * c)) | |
97 | 107 | let l = (k + e) | |
98 | 108 | let m = assetBalance(addressFromPublicKey(f.callerPublicKey), a) | |
99 | 109 | let n = { | |
100 | 110 | let o = getInteger(this, "Total_Txns") | |
101 | 111 | if ($isInstanceOf(o, "Int")) | |
102 | 112 | then { | |
103 | 113 | let p = o | |
104 | 114 | p | |
105 | 115 | } | |
106 | 116 | else 0 | |
107 | 117 | } | |
108 | 118 | let q = (n + 1) | |
109 | 119 | let r = { | |
110 | 120 | let o = getInteger(this, ((toString(j) + "_User_Total_Votes_") + i)) | |
111 | 121 | if ($isInstanceOf(o, "Int")) | |
112 | 122 | then { | |
113 | 123 | let p = o | |
114 | 124 | p | |
115 | 125 | } | |
116 | 126 | else 0 | |
117 | 127 | } | |
118 | 128 | let s = (r + 1) | |
119 | - | let | |
129 | + | let v = { | |
120 | 130 | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
121 | - | if ($isInstanceOf(o, "Int")) | |
122 | - | then { | |
123 | - | let p = o | |
124 | - | p | |
125 | - | } | |
126 | - | else 0 | |
127 | - | } | |
128 | - | let u = (t + 1) | |
129 | - | let v = { | |
130 | - | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
131 | 131 | if ($isInstanceOf(o, "Int")) | |
132 | 132 | then { | |
133 | 133 | let p = o | |
134 | 134 | p | |
135 | 135 | } | |
136 | 136 | else 0 | |
137 | 137 | } | |
138 | 138 | let w = (v + 1) | |
139 | 139 | let x = { | |
140 | + | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
141 | + | if ($isInstanceOf(o, "Int")) | |
142 | + | then { | |
143 | + | let p = o | |
144 | + | p | |
145 | + | } | |
146 | + | else 0 | |
147 | + | } | |
148 | + | let y = (x + 1) | |
149 | + | let z = { | |
140 | 150 | let o = getInteger(this, ("Total_Votes_" + g)) | |
141 | 151 | if ($isInstanceOf(o, "Int")) | |
142 | 152 | then { | |
143 | 153 | let p = o | |
144 | 154 | p | |
145 | 155 | } | |
146 | 156 | else 0 | |
147 | 157 | } | |
148 | - | let | |
158 | + | let A = (z + 1) | |
149 | 159 | if ((100000000 > m)) | |
150 | 160 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
151 | 161 | else if ((h.assetId != a)) | |
152 | 162 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only.")) | |
153 | 163 | else if ((h.amount != 10000)) | |
154 | 164 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
155 | 165 | else if ((l > lastBlock.timestamp)) | |
156 | 166 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
157 | - | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), | |
167 | + | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((toString(j) + "_User_Total_Votes_") + i), s), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
158 | 168 | } | |
159 | 169 | ||
160 | 170 | ||
161 | 171 | ||
162 | 172 | @Callable(f) | |
163 | 173 | func Sushi () = { | |
164 | 174 | let g = "Sushi" | |
165 | 175 | let h = if ((size(f.payments) == 1)) | |
166 | 176 | then f.payments[0] | |
167 | 177 | else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].") | |
168 | 178 | let i = toBase58String(f.caller.bytes) | |
169 | 179 | let j = (((lastBlock.timestamp - b) / c) + 1) | |
170 | 180 | let k = (b + ((j - 1) * c)) | |
171 | 181 | let l = (k + e) | |
172 | 182 | let m = assetBalance(addressFromPublicKey(f.callerPublicKey), a) | |
173 | 183 | let n = { | |
174 | 184 | let o = getInteger(this, "Total_Txns") | |
175 | 185 | if ($isInstanceOf(o, "Int")) | |
176 | 186 | then { | |
177 | 187 | let p = o | |
178 | 188 | p | |
179 | 189 | } | |
180 | 190 | else 0 | |
181 | 191 | } | |
182 | 192 | let q = (n + 1) | |
183 | - | let | |
193 | + | let v = { | |
184 | 194 | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
185 | - | if ($isInstanceOf(o, "Int")) | |
186 | - | then { | |
187 | - | let p = o | |
188 | - | p | |
189 | - | } | |
190 | - | else 0 | |
191 | - | } | |
192 | - | let u = (t + 1) | |
193 | - | let v = { | |
194 | - | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
195 | 195 | if ($isInstanceOf(o, "Int")) | |
196 | 196 | then { | |
197 | 197 | let p = o | |
198 | 198 | p | |
199 | 199 | } | |
200 | 200 | else 0 | |
201 | 201 | } | |
202 | 202 | let w = (v + 1) | |
203 | 203 | let x = { | |
204 | + | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
205 | + | if ($isInstanceOf(o, "Int")) | |
206 | + | then { | |
207 | + | let p = o | |
208 | + | p | |
209 | + | } | |
210 | + | else 0 | |
211 | + | } | |
212 | + | let y = (x + 1) | |
213 | + | let z = { | |
204 | 214 | let o = getInteger(this, ("Total_Votes_" + g)) | |
205 | 215 | if ($isInstanceOf(o, "Int")) | |
206 | 216 | then { | |
207 | 217 | let p = o | |
208 | 218 | p | |
209 | 219 | } | |
210 | 220 | else 0 | |
211 | 221 | } | |
212 | - | let | |
222 | + | let A = (z + 1) | |
213 | 223 | if ((100000000 > m)) | |
214 | 224 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
215 | 225 | else if ((h.assetId != a)) | |
216 | 226 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only.")) | |
217 | 227 | else if ((h.amount != 10000)) | |
218 | 228 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
219 | 229 | else if ((l > lastBlock.timestamp)) | |
220 | 230 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
221 | - | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), | |
231 | + | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
222 | 232 | } | |
223 | 233 | ||
224 | 234 | ||
225 | 235 | ||
226 | 236 | @Callable(f) | |
227 | 237 | func Compound () = { | |
228 | 238 | let g = "Compound" | |
229 | 239 | let h = if ((size(f.payments) == 1)) | |
230 | 240 | then f.payments[0] | |
231 | 241 | else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].") | |
232 | 242 | let i = toBase58String(f.caller.bytes) | |
233 | 243 | let j = (((lastBlock.timestamp - b) / c) + 1) | |
234 | 244 | let k = (b + ((j - 1) * c)) | |
235 | 245 | let l = (k + e) | |
236 | 246 | let m = assetBalance(addressFromPublicKey(f.callerPublicKey), a) | |
237 | 247 | let n = { | |
238 | 248 | let o = getInteger(this, "Total_Txns") | |
239 | 249 | if ($isInstanceOf(o, "Int")) | |
240 | 250 | then { | |
241 | 251 | let p = o | |
242 | 252 | p | |
243 | 253 | } | |
244 | 254 | else 0 | |
245 | 255 | } | |
246 | 256 | let q = (n + 1) | |
247 | - | let | |
257 | + | let v = { | |
248 | 258 | let o = getInteger(this, ("User_Total_Votes_" + i)) | |
249 | - | if ($isInstanceOf(o, "Int")) | |
250 | - | then { | |
251 | - | let p = o | |
252 | - | p | |
253 | - | } | |
254 | - | else 0 | |
255 | - | } | |
256 | - | let u = (t + 1) | |
257 | - | let v = { | |
258 | - | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
259 | 259 | if ($isInstanceOf(o, "Int")) | |
260 | 260 | then { | |
261 | 261 | let p = o | |
262 | 262 | p | |
263 | 263 | } | |
264 | 264 | else 0 | |
265 | 265 | } | |
266 | 266 | let w = (v + 1) | |
267 | 267 | let x = { | |
268 | + | let o = getInteger(this, ((("User_Total_Asset_Votes_" + i) + "_") + g)) | |
269 | + | if ($isInstanceOf(o, "Int")) | |
270 | + | then { | |
271 | + | let p = o | |
272 | + | p | |
273 | + | } | |
274 | + | else 0 | |
275 | + | } | |
276 | + | let y = (x + 1) | |
277 | + | let z = { | |
268 | 278 | let o = getInteger(this, ("Total_Votes_" + g)) | |
269 | 279 | if ($isInstanceOf(o, "Int")) | |
270 | 280 | then { | |
271 | 281 | let p = o | |
272 | 282 | p | |
273 | 283 | } | |
274 | 284 | else 0 | |
275 | 285 | } | |
276 | - | let | |
286 | + | let A = (z + 1) | |
277 | 287 | if ((100000000 > m)) | |
278 | 288 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
279 | 289 | else if ((h.assetId != a)) | |
280 | 290 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only.")) | |
281 | 291 | else if ((h.amount != 10000)) | |
282 | 292 | then throw("Please Attach Exact 0.0001 A4A To Vote.") | |
283 | 293 | else if ((l > lastBlock.timestamp)) | |
284 | 294 | then throw((("Voting is paused for Next " + toString(((l - lastBlock.timestamp) / 60000))) + " Minutes")) | |
285 | - | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), | |
295 | + | else [IntegerEntry("Total_Txns", q), IntegerEntry("Current_Voting_Week", j), IntegerEntry(("Total_Votes_" + g), A), IntegerEntry(("User_Total_Votes_" + i), w), IntegerEntry(((("User_Total_Asset_Votes_" + i) + "_") + g), y), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")] | |
286 | 296 | } | |
287 | 297 | ||
288 | 298 | ||
289 | - | @Verifier( | |
290 | - | func | |
299 | + | @Verifier(B) | |
300 | + | func C () = sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey) | |
291 | 301 |
github/deemru/w8io/026f985 56.01 ms ◑