tx · DTPU6auPHB1WsKPt6xdSAG12kUb1w7Di5UhiqzMLoaJv 3Mrvz9iRPwQG2asueNNCYMjJnko227TqQDw: -0.01400000 Waves 2023.04.05 22:54 [2521691] smart account 3Mrvz9iRPwQG2asueNNCYMjJnko227TqQDw > SELF 0.00000000 Waves
{ "type": 13, "id": "DTPU6auPHB1WsKPt6xdSAG12kUb1w7Di5UhiqzMLoaJv", "fee": 1400000, "feeAssetId": null, "timestamp": 1680724531465, "version": 2, "chainId": 84, "sender": "3Mrvz9iRPwQG2asueNNCYMjJnko227TqQDw", "senderPublicKey": "Cin1vNbYtepAcdipQipLcqKhT69yfrzdyCUwhQA4RW5n", "proofs": [ "4TjFMX9FC4YeidoTKJeegsLwiFmj3Tn3JdUxC7QVXVjHUGwuaRkbxdno6M2s1mimLzWzcE2h2981h1JQcsvGC3oJ" ], "script": "base64:AAIEAAAAAAAAAA8IAhIFCgMIAQESABIAEgAAAAAJAAAAAARWT1RFAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAAAAAAidm90aW5nX3RpbWVzdGFtcF9jb250cm9sbGVyX3B1YmtleQEAAAAgG71LvoftgLN5LoDoTEAt274Hm4nt5A5pW1Ja7yxUD20AAAAAEmNvbnRyb2xsZXJfYWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAidm90aW5nX3RpbWVzdGFtcF9jb250cm9sbGVyX3B1YmtleQAAAAAMbGF1bmNoX2Vycm9yAgAAACREYXBwIHdpbGwgc3RhcnQgVm90aW5nIGF0IFRpbWVzdGFtcCAAAAAAA21zZwIAAAAtPGgxPllvdSBWb3RlIFN1Ym1pdHRlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+AAAAAAlweW10ZXJyb3ICAAAANURBcHAgTmVlZCAwLjAwMDAwMDAxIFZPVEUgVG9rZW4gYXMgQXR0YWNoIHBheW1lbnRbMV0uAAAAAAttaW5iYWxlcnJvcgIAAABwTWluL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yX1RvdGFsX1ZvdGVzXwUAAAAGcHVia2V5BQAAABBVc2VyX3RvdGFsX1ZvdGVzCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABFVc2VyX1RvdGFsX1ZvdGVzXwUAAAAGcHVia2V5AgAAAAEtBQAAAAdWb3RlQXN0BQAAAAZVVFdWRkEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAF1VzZXJfVG90YWxfQXNzZXRfVm90ZXNfBQAAAAZwdWJrZXkCAAAAAV8FAAAAB1ZvdGVBc3QFAAAABVVUVkZBCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UFAAAAA21zZwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlEwAhh", "height": 2521691, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Co8eB7DL89TRnYxMu48KgcZaMvYGFSypTtLWMJmu2B7J Next: 4FV5NKEDcSAsBmSXzRHmJVdb9osbZpkwrkL8MEnL6bCd Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let VOTE = base58' | |
4 | + | let VOTE = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | 5 | ||
6 | 6 | let voting_timestamp_controller_pubkey = base58'2sHRUrJCMpDhAQEcN7Zhk3LqnD9zizebpxeQXpPoscQU' | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let VOTE = base58' | |
4 | + | let VOTE = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | 5 | ||
6 | 6 | let voting_timestamp_controller_pubkey = base58'2sHRUrJCMpDhAQEcN7Zhk3LqnD9zizebpxeQXpPoscQU' | |
7 | 7 | ||
8 | 8 | let controller_address = addressFromPublicKey(voting_timestamp_controller_pubkey) | |
9 | 9 | ||
10 | 10 | let launch_error = "Dapp will start Voting at Timestamp " | |
11 | 11 | ||
12 | 12 | let msg = "<h1>You Vote Submitted Successfully!</h1><br>" | |
13 | 13 | ||
14 | 14 | let pymterror = "DApp Need 0.00000001 VOTE Token as Attach payment[1]." | |
15 | 15 | ||
16 | 16 | let minbalerror = "Min. 0.00000001 VOTE required on Your Address to Vote. Please Mint or hold min. 0.00000001 VOTE on this Address." | |
17 | 17 | ||
18 | 18 | let asseterr = (("Incorrect asset attach, please attach " + toBase58String(VOTE)) + " AssetID Only.") | |
19 | 19 | ||
20 | 20 | let voteErr = "Voting is Over for this Dapp." | |
21 | 21 | ||
22 | 22 | @Callable(i) | |
23 | 23 | func SetVotingTimeStamps (Proposal,Voting_Start_TimeStamp,Voting_End_TimeStamp) = { | |
24 | 24 | let StartTS = Voting_Start_TimeStamp | |
25 | 25 | let EndTS = Voting_End_TimeStamp | |
26 | 26 | let pubkey = toBase58String(i.caller.bytes) | |
27 | 27 | let Previoustotalproposals = match getInteger(this, "Total_Proposals") { | |
28 | 28 | case a: Int => | |
29 | 29 | a | |
30 | 30 | case _ => | |
31 | 31 | 0 | |
32 | 32 | } | |
33 | 33 | let totalproposals = (Previoustotalproposals + 1) | |
34 | 34 | if ((size(Proposal) > 30000)) | |
35 | 35 | then throw("Subject Char Limits are Over. Reduce length less than 30k Char.") | |
36 | 36 | else if ((i.caller != controller_address)) | |
37 | 37 | then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it.")) | |
38 | 38 | else [StringEntry(("Proposal Data_" + toString(totalproposals)), Proposal), IntegerEntry("Total_Proposals", totalproposals), StringEntry(("Proposer_" + toString(totalproposals)), pubkey), IntegerEntry(("Voting_Start_TimeStamp_" + toString(totalproposals)), StartTS), IntegerEntry(("Voting_End_TimeStamp_" + toString(totalproposals)), EndTS)] | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | ||
43 | 43 | @Callable(i) | |
44 | 44 | func Yes () = { | |
45 | 45 | let VoteAst = "Yes" | |
46 | 46 | let StartTS = getIntegerValue(this, "Voting_Start_TimeStamp") | |
47 | 47 | let EndTS = getIntegerValue(this, "Voting_End_TimeStamp") | |
48 | 48 | let pubkey = toBase58String(i.caller.bytes) | |
49 | 49 | let pmt = if ((size(i.payments) == 1)) | |
50 | 50 | then i.payments[0] | |
51 | 51 | else throw(pymterror) | |
52 | 52 | let assetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), VOTE) | |
53 | 53 | let Previoustotalvotes = match getInteger(this, "Total_Votes") { | |
54 | 54 | case a: Int => | |
55 | 55 | a | |
56 | 56 | case _ => | |
57 | 57 | 0 | |
58 | 58 | } | |
59 | 59 | let totalvotes = (Previoustotalvotes + pmt.amount) | |
60 | 60 | let Previous_User_total_Votes = match getInteger(this, ("User_Total_Votes_" + pubkey)) { | |
61 | 61 | case a: Int => | |
62 | 62 | a | |
63 | 63 | case _ => | |
64 | 64 | 0 | |
65 | 65 | } | |
66 | 66 | let User_total_Votes = (Previous_User_total_Votes + pmt.amount) | |
67 | 67 | let UWVFA = match getInteger(this, ((("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 + pmt.amount) | |
74 | 74 | let FUVFA = match getInteger(this, ((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst)) { | |
75 | 75 | case a: Int => | |
76 | 76 | a | |
77 | 77 | case _ => | |
78 | 78 | 0 | |
79 | 79 | } | |
80 | 80 | let UTVFA = (FUVFA + pmt.amount) | |
81 | 81 | let FTVO = match getInteger(this, ("Total_Votes_" + VoteAst)) { | |
82 | 82 | case a: Int => | |
83 | 83 | a | |
84 | 84 | case _ => | |
85 | 85 | 0 | |
86 | 86 | } | |
87 | 87 | let ATVO = (FTVO + pmt.amount) | |
88 | 88 | if ((StartTS > lastBlock.timestamp)) | |
89 | 89 | then throw((launch_error + toString(StartTS))) | |
90 | 90 | else if ((1 > assetbal)) | |
91 | 91 | then throw(minbalerror) | |
92 | 92 | else if ((pmt.assetId != VOTE)) | |
93 | 93 | then throw(asseterr) | |
94 | 94 | else if ((lastBlock.timestamp > EndTS)) | |
95 | 95 | then throw(voteErr) | |
96 | 96 | else [IntegerEntry("Total_Votes", totalvotes), IntegerEntry(("Total_Votes_" + VoteAst), ATVO), IntegerEntry(("User_Total_Votes_" + pubkey), User_total_Votes), IntegerEntry(((("User_Total_Votes_" + pubkey) + "-") + VoteAst), UTWVFA), IntegerEntry(((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst), UTVFA), StringEntry("message", msg)] | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | ||
101 | 101 | @Callable(i) | |
102 | 102 | func No () = { | |
103 | 103 | let VoteAst = "No" | |
104 | 104 | let StartTS = getIntegerValue(this, "Voting_Start_TimeStamp") | |
105 | 105 | let EndTS = getIntegerValue(this, "Voting_End_TimeStamp") | |
106 | 106 | let pubkey = toBase58String(i.caller.bytes) | |
107 | 107 | let pmt = if ((size(i.payments) == 1)) | |
108 | 108 | then i.payments[0] | |
109 | 109 | else throw(pymterror) | |
110 | 110 | let assetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), VOTE) | |
111 | 111 | let Previoustotalvotes = match getInteger(this, "Total_Votes") { | |
112 | 112 | case a: Int => | |
113 | 113 | a | |
114 | 114 | case _ => | |
115 | 115 | 0 | |
116 | 116 | } | |
117 | 117 | let totalvotes = (Previoustotalvotes + pmt.amount) | |
118 | 118 | let Previous_User_total_Votes = match getInteger(this, ("User_Total_Votes_" + pubkey)) { | |
119 | 119 | case a: Int => | |
120 | 120 | a | |
121 | 121 | case _ => | |
122 | 122 | 0 | |
123 | 123 | } | |
124 | 124 | let User_total_Votes = (Previous_User_total_Votes + pmt.amount) | |
125 | 125 | let UWVFA = match getInteger(this, ((("User_Total_Votes_" + pubkey) + "-") + VoteAst)) { | |
126 | 126 | case a: Int => | |
127 | 127 | a | |
128 | 128 | case _ => | |
129 | 129 | 0 | |
130 | 130 | } | |
131 | 131 | let UTWVFA = (UWVFA + pmt.amount) | |
132 | 132 | let FUVFA = match getInteger(this, ((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst)) { | |
133 | 133 | case a: Int => | |
134 | 134 | a | |
135 | 135 | case _ => | |
136 | 136 | 0 | |
137 | 137 | } | |
138 | 138 | let UTVFA = (FUVFA + pmt.amount) | |
139 | 139 | let FTVO = match getInteger(this, ("Total_Votes_" + VoteAst)) { | |
140 | 140 | case a: Int => | |
141 | 141 | a | |
142 | 142 | case _ => | |
143 | 143 | 0 | |
144 | 144 | } | |
145 | 145 | let ATVO = (FTVO + pmt.amount) | |
146 | 146 | if ((StartTS > lastBlock.timestamp)) | |
147 | 147 | then throw((launch_error + toString(StartTS))) | |
148 | 148 | else if ((1 > assetbal)) | |
149 | 149 | then throw(minbalerror) | |
150 | 150 | else if ((pmt.assetId != VOTE)) | |
151 | 151 | then throw(asseterr) | |
152 | 152 | else if ((lastBlock.timestamp > EndTS)) | |
153 | 153 | then throw(voteErr) | |
154 | 154 | else [IntegerEntry("Total_Votes", totalvotes), IntegerEntry(("Total_Votes_" + VoteAst), ATVO), IntegerEntry(("User_Total_Votes_" + pubkey), User_total_Votes), IntegerEntry(((("User_Total_Votes_" + pubkey) + "-") + VoteAst), UTWVFA), IntegerEntry(((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst), UTVFA), StringEntry("message", msg)] | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(i) | |
160 | 160 | func Abstain () = { | |
161 | 161 | let VoteAst = "Abstain" | |
162 | 162 | let StartTS = getIntegerValue(this, "Voting_Start_TimeStamp") | |
163 | 163 | let EndTS = getIntegerValue(this, "Voting_End_TimeStamp") | |
164 | 164 | let pubkey = toBase58String(i.caller.bytes) | |
165 | 165 | let pmt = if ((size(i.payments) == 1)) | |
166 | 166 | then i.payments[0] | |
167 | 167 | else throw(pymterror) | |
168 | 168 | let assetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), VOTE) | |
169 | 169 | let Previoustotalvotes = match getInteger(this, "Total_Votes") { | |
170 | 170 | case a: Int => | |
171 | 171 | a | |
172 | 172 | case _ => | |
173 | 173 | 0 | |
174 | 174 | } | |
175 | 175 | let totalvotes = (Previoustotalvotes + pmt.amount) | |
176 | 176 | let Previous_User_total_Votes = match getInteger(this, ("User_Total_Votes_" + pubkey)) { | |
177 | 177 | case a: Int => | |
178 | 178 | a | |
179 | 179 | case _ => | |
180 | 180 | 0 | |
181 | 181 | } | |
182 | 182 | let User_total_Votes = (Previous_User_total_Votes + pmt.amount) | |
183 | 183 | let UWVFA = match getInteger(this, ((("User_Total_Votes_" + pubkey) + "-") + VoteAst)) { | |
184 | 184 | case a: Int => | |
185 | 185 | a | |
186 | 186 | case _ => | |
187 | 187 | 0 | |
188 | 188 | } | |
189 | 189 | let UTWVFA = (UWVFA + pmt.amount) | |
190 | 190 | let FUVFA = match getInteger(this, ((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst)) { | |
191 | 191 | case a: Int => | |
192 | 192 | a | |
193 | 193 | case _ => | |
194 | 194 | 0 | |
195 | 195 | } | |
196 | 196 | let UTVFA = (FUVFA + pmt.amount) | |
197 | 197 | let FTVO = match getInteger(this, ("Total_Votes_" + VoteAst)) { | |
198 | 198 | case a: Int => | |
199 | 199 | a | |
200 | 200 | case _ => | |
201 | 201 | 0 | |
202 | 202 | } | |
203 | 203 | let ATVO = (FTVO + pmt.amount) | |
204 | 204 | if ((StartTS > lastBlock.timestamp)) | |
205 | 205 | then throw((launch_error + toString(StartTS))) | |
206 | 206 | else if ((1 > assetbal)) | |
207 | 207 | then throw(minbalerror) | |
208 | 208 | else if ((pmt.assetId != VOTE)) | |
209 | 209 | then throw(asseterr) | |
210 | 210 | else if ((lastBlock.timestamp > EndTS)) | |
211 | 211 | then throw(voteErr) | |
212 | 212 | else [IntegerEntry("Total_Votes", totalvotes), IntegerEntry(("Total_Votes_" + VoteAst), ATVO), IntegerEntry(("User_Total_Votes_" + pubkey), User_total_Votes), IntegerEntry(((("User_Total_Votes_" + pubkey) + "-") + VoteAst), UTWVFA), IntegerEntry(((("User_Total_Asset_Votes_" + pubkey) + "_") + VoteAst), UTVFA), StringEntry("message", msg)] | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | @Verifier(tx) | |
217 | 217 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
218 | 218 |
github/deemru/w8io/026f985 58.03 ms ◑