tx · 813k9FhNj8ofc8sa15eeheF5H5M2uZo6f9mofQwqYd39

3Mrvz9iRPwQG2asueNNCYMjJnko227TqQDw:  -0.01400000 Waves

2023.04.06 12:52 [2522546] smart account 3Mrvz9iRPwQG2asueNNCYMjJnko227TqQDw > SELF 0.00000000 Waves

{ "type": 13, "id": "813k9FhNj8ofc8sa15eeheF5H5M2uZo6f9mofQwqYd39", "fee": 1400000, "feeAssetId": null, "timestamp": 1680774803643, "version": 2, "chainId": 84, "sender": "3Mrvz9iRPwQG2asueNNCYMjJnko227TqQDw", "senderPublicKey": "Cin1vNbYtepAcdipQipLcqKhT69yfrzdyCUwhQA4RW5n", "proofs": [ "21aKCcg8C47GmPbij93ji76fLnrBeeyazdc6Gn6muq8YLjzmSTb8tqjnsQZY6wqXTYRhn9Pp9kqrvhMwY9Hqp2eq" ], "script": "base64:AAIEAAAAAAAAABMIAhIFCgMIAQESAwoBARIDCgEIAAAACQAAAAAEVk9URQEAAAAgCGWEtw/wimoa8+Jo6C4IkCTD0ydYA80s9i5eC9/aFaQAAAAAInZvdGluZ190aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkBAAAAIBu9S76H7YCzeS6A6ExALdu+B5uJ7eQOaVtSWu8sVA9tAAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAInZvdGluZ190aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkAAAAADGxhdW5jaF9lcnJvcgIAAAAkRGFwcCB3aWxsIHN0YXJ0IFZvdGluZyBhdCBUaW1lc3RhbXAgAAAAAANtc2cCAAAALjxoMT5Zb3VyIFZvdGUgU3VibWl0dGVkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4AAAAACXB5bXRlcnJvcgIAAAA1REFwcCBOZWVkIDAuMDAwMDAwMDEgVk9URSBUb2tlbiBhcyBBdHRhY2ggcGF5bWVudFsxXS4AAAAAC21pbmJhbGVycm9yAgAAAHBNaW4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pZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTp3+Ew=", "height": 2522546, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HKN61wgzZussm121xetFsG2rAx11AAknUUA3ZzNjR4ds Next: none Diff:
OldNewDifferences
6464 }
6565 let z = (y + w.amount)
6666 let A = {
67- let r = getInteger(this, ((("User_Total_Votes_" + p) + "_") + toString(u)))
67+ let r = getInteger(this, ((("Total_" + v) + "_") + toString(u)))
6868 if ($isInstanceOf(r, "Int"))
6969 then {
7070 let s = r
7373 else 0
7474 }
7575 let B = (A + w.amount)
76- let C = {
77- let r = getInteger(this, ((((("User_Total_Votes_" + p) + "_") + toString(u)) + "-") + v))
78- if ($isInstanceOf(r, "Int"))
79- then {
80- let s = r
81- s
82- }
83- else 0
84- }
85- let D = (C + w.amount)
86- let E = {
87- let r = getInteger(this, ((((("User_Total_Asset_Votes_" + p) + "_") + toString(u)) + "_") + v))
88- if ($isInstanceOf(r, "Int"))
89- then {
90- let s = r
91- s
92- }
93- else 0
94- }
95- let F = (E + w.amount)
96- let G = {
97- let r = getInteger(this, ((("Total_Votes_" + toString(u)) + "_") + v))
98- if ($isInstanceOf(r, "Int"))
99- then {
100- let s = r
101- s
102- }
103- else 0
104- }
105- let H = (G + w.amount)
10676 if ((n > lastBlock.timestamp))
10777 then throw((d + toString(n)))
10878 else if ((1 > x))
11181 then throw(h)
11282 else if ((lastBlock.timestamp > o))
11383 then throw(i)
114- else [IntegerEntry(("Total_Votes_" + toString(u)), z), IntegerEntry(((("Total_Votes_" + toString(u)) + "_") + v), H), IntegerEntry(((("User_Total_Votes_" + p) + "_") + toString(u)), B), IntegerEntry(((((("User_Total_Votes_" + p) + "_") + toString(u)) + "-") + v), D), IntegerEntry(((((("User_Total_Asset_Votes_" + p) + "_") + toString(u)) + "_") + v), F), StringEntry("message", e)]
84+ else [IntegerEntry(("Total_Votes_" + toString(u)), z), IntegerEntry(((("Total_Votes_" + v) + "_") + toString(u)), B), StringEntry("message", e)]
11585 }
11686
11787
11888
11989 @Callable(j)
120-func No () = {
121- let v = "No"
122- let n = getIntegerValue(this, "Voting_Start_TimeStamp")
123- let o = getIntegerValue(this, "Voting_End_TimeStamp")
124- let p = toBase58String(j.caller.bytes)
125- let w = if ((size(j.payments) == 1))
126- then j.payments[0]
127- else throw(f)
128- let x = assetBalance(addressFromPublicKey(j.callerPublicKey), a)
129- let y = {
130- let r = getInteger(this, "Total_Votes")
131- if ($isInstanceOf(r, "Int"))
132- then {
133- let s = r
134- s
135- }
136- else 0
137- }
138- let z = (y + w.amount)
139- let A = {
140- let r = getInteger(this, ("User_Total_Votes_" + p))
141- if ($isInstanceOf(r, "Int"))
142- then {
143- let s = r
144- s
145- }
146- else 0
147- }
148- let B = (A + w.amount)
149- let C = {
150- let r = getInteger(this, ((("User_Total_Votes_" + p) + "-") + v))
151- if ($isInstanceOf(r, "Int"))
152- then {
153- let s = r
154- s
155- }
156- else 0
157- }
158- let D = (C + w.amount)
159- let E = {
160- let r = getInteger(this, ((("User_Total_Asset_Votes_" + p) + "_") + v))
161- if ($isInstanceOf(r, "Int"))
162- then {
163- let s = r
164- s
165- }
166- else 0
167- }
168- let F = (E + w.amount)
169- let G = {
170- let r = getInteger(this, ("Total_Votes_" + v))
171- if ($isInstanceOf(r, "Int"))
172- then {
173- let s = r
174- s
175- }
176- else 0
177- }
178- let H = (G + w.amount)
179- if ((n > lastBlock.timestamp))
180- then throw((d + toString(n)))
181- else if ((1 > x))
182- then throw(g)
183- else if ((w.assetId != a))
184- then throw(h)
185- else if ((lastBlock.timestamp > o))
186- then throw(i)
187- else [IntegerEntry("Total_Votes", z), IntegerEntry(("Total_Votes_" + v), H), IntegerEntry(("User_Total_Votes_" + p), B), IntegerEntry(((("User_Total_Votes_" + p) + "-") + v), D), IntegerEntry(((("User_Total_Asset_Votes_" + p) + "_") + v), F), StringEntry("message", e)]
188- }
90+func DeleteKey (C) = [DeleteEntry("Proposal Data_1"), DeleteEntry("Proposal Data_2"), DeleteEntry("Proposal_Data_3"), DeleteEntry(C)]
18991
19092
191-
192-@Callable(j)
193-func Abstain () = {
194- let v = "Abstain"
195- let n = getIntegerValue(this, "Voting_Start_TimeStamp")
196- let o = getIntegerValue(this, "Voting_End_TimeStamp")
197- let p = toBase58String(j.caller.bytes)
198- let w = if ((size(j.payments) == 1))
199- then j.payments[0]
200- else throw(f)
201- let x = assetBalance(addressFromPublicKey(j.callerPublicKey), a)
202- let y = {
203- let r = getInteger(this, "Total_Votes")
204- if ($isInstanceOf(r, "Int"))
205- then {
206- let s = r
207- s
208- }
209- else 0
210- }
211- let z = (y + w.amount)
212- let A = {
213- let r = getInteger(this, ("User_Total_Votes_" + p))
214- if ($isInstanceOf(r, "Int"))
215- then {
216- let s = r
217- s
218- }
219- else 0
220- }
221- let B = (A + w.amount)
222- let C = {
223- let r = getInteger(this, ((("User_Total_Votes_" + p) + "-") + v))
224- if ($isInstanceOf(r, "Int"))
225- then {
226- let s = r
227- s
228- }
229- else 0
230- }
231- let D = (C + w.amount)
232- let E = {
233- let r = getInteger(this, ((("User_Total_Asset_Votes_" + p) + "_") + v))
234- if ($isInstanceOf(r, "Int"))
235- then {
236- let s = r
237- s
238- }
239- else 0
240- }
241- let F = (E + w.amount)
242- let G = {
243- let r = getInteger(this, ("Total_Votes_" + v))
244- if ($isInstanceOf(r, "Int"))
245- then {
246- let s = r
247- s
248- }
249- else 0
250- }
251- let H = (G + w.amount)
252- if ((n > lastBlock.timestamp))
253- then throw((d + toString(n)))
254- else if ((1 > x))
255- then throw(g)
256- else if ((w.assetId != a))
257- then throw(h)
258- else if ((lastBlock.timestamp > o))
259- then throw(i)
260- else [IntegerEntry("Total_Votes", z), IntegerEntry(("Total_Votes_" + v), H), IntegerEntry(("User_Total_Votes_" + p), B), IntegerEntry(((("User_Total_Votes_" + p) + "-") + v), D), IntegerEntry(((("User_Total_Asset_Votes_" + p) + "_") + v), F), StringEntry("message", e)]
261- }
262-
263-
264-@Verifier(I)
265-func J () = sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey)
93+@Verifier(D)
94+func E () = sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey)
26695
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
55
66 let b = base58'2sHRUrJCMpDhAQEcN7Zhk3LqnD9zizebpxeQXpPoscQU'
77
88 let c = addressFromPublicKey(b)
99
1010 let d = "Dapp will start Voting at Timestamp "
1111
1212 let e = "<h1>Your Vote Submitted Successfully!</h1><br>"
1313
1414 let f = "DApp Need 0.00000001 VOTE Token as Attach payment[1]."
1515
1616 let g = "Min. 0.00000001 VOTE required on Your Address to Vote. Please Mint or hold min. 0.00000001 VOTE on this Address."
1717
1818 let h = (("Incorrect asset attach, please attach " + toBase58String(a)) + " AssetID Only.")
1919
2020 let i = "Voting is Over for this Dapp."
2121
2222 @Callable(j)
2323 func SetVotingTimeStamps (k,l,m) = {
2424 let n = l
2525 let o = m
2626 let p = toBase58String(j.caller.bytes)
2727 let q = {
2828 let r = getInteger(this, "Total_Proposals")
2929 if ($isInstanceOf(r, "Int"))
3030 then {
3131 let s = r
3232 s
3333 }
3434 else 0
3535 }
3636 let t = (q + 1)
3737 if ((size(k) > 5100))
3838 then throw("Subject Char Limits are Over. Reduce length less than 5100 Char.")
3939 else if ((j.caller != c))
4040 then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it."))
4141 else [StringEntry(("Proposal_Data_" + toString(t)), k), IntegerEntry("Total_Proposals", t), StringEntry(("Proposer_" + toString(t)), p), IntegerEntry(("Voting_Start_TimeStamp_" + toString(t)), n), IntegerEntry(("Voting_End_TimeStamp_" + toString(t)), o)]
4242 }
4343
4444
4545
4646 @Callable(j)
4747 func Yes (u) = {
4848 let v = "Yes"
4949 let n = getIntegerValue(this, ("Voting_Start_TimeStamp_" + toString(u)))
5050 let o = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(u)))
5151 let p = toBase58String(j.caller.bytes)
5252 let w = if ((size(j.payments) == 1))
5353 then j.payments[0]
5454 else throw(f)
5555 let x = assetBalance(addressFromPublicKey(j.callerPublicKey), a)
5656 let y = {
5757 let r = getInteger(this, ("Total_Votes_" + toString(u)))
5858 if ($isInstanceOf(r, "Int"))
5959 then {
6060 let s = r
6161 s
6262 }
6363 else 0
6464 }
6565 let z = (y + w.amount)
6666 let A = {
67- let r = getInteger(this, ((("User_Total_Votes_" + p) + "_") + toString(u)))
67+ let r = getInteger(this, ((("Total_" + v) + "_") + toString(u)))
6868 if ($isInstanceOf(r, "Int"))
6969 then {
7070 let s = r
7171 s
7272 }
7373 else 0
7474 }
7575 let B = (A + w.amount)
76- let C = {
77- let r = getInteger(this, ((((("User_Total_Votes_" + p) + "_") + toString(u)) + "-") + v))
78- if ($isInstanceOf(r, "Int"))
79- then {
80- let s = r
81- s
82- }
83- else 0
84- }
85- let D = (C + w.amount)
86- let E = {
87- let r = getInteger(this, ((((("User_Total_Asset_Votes_" + p) + "_") + toString(u)) + "_") + v))
88- if ($isInstanceOf(r, "Int"))
89- then {
90- let s = r
91- s
92- }
93- else 0
94- }
95- let F = (E + w.amount)
96- let G = {
97- let r = getInteger(this, ((("Total_Votes_" + toString(u)) + "_") + v))
98- if ($isInstanceOf(r, "Int"))
99- then {
100- let s = r
101- s
102- }
103- else 0
104- }
105- let H = (G + w.amount)
10676 if ((n > lastBlock.timestamp))
10777 then throw((d + toString(n)))
10878 else if ((1 > x))
10979 then throw(g)
11080 else if ((w.assetId != a))
11181 then throw(h)
11282 else if ((lastBlock.timestamp > o))
11383 then throw(i)
114- else [IntegerEntry(("Total_Votes_" + toString(u)), z), IntegerEntry(((("Total_Votes_" + toString(u)) + "_") + v), H), IntegerEntry(((("User_Total_Votes_" + p) + "_") + toString(u)), B), IntegerEntry(((((("User_Total_Votes_" + p) + "_") + toString(u)) + "-") + v), D), IntegerEntry(((((("User_Total_Asset_Votes_" + p) + "_") + toString(u)) + "_") + v), F), StringEntry("message", e)]
84+ else [IntegerEntry(("Total_Votes_" + toString(u)), z), IntegerEntry(((("Total_Votes_" + v) + "_") + toString(u)), B), StringEntry("message", e)]
11585 }
11686
11787
11888
11989 @Callable(j)
120-func No () = {
121- let v = "No"
122- let n = getIntegerValue(this, "Voting_Start_TimeStamp")
123- let o = getIntegerValue(this, "Voting_End_TimeStamp")
124- let p = toBase58String(j.caller.bytes)
125- let w = if ((size(j.payments) == 1))
126- then j.payments[0]
127- else throw(f)
128- let x = assetBalance(addressFromPublicKey(j.callerPublicKey), a)
129- let y = {
130- let r = getInteger(this, "Total_Votes")
131- if ($isInstanceOf(r, "Int"))
132- then {
133- let s = r
134- s
135- }
136- else 0
137- }
138- let z = (y + w.amount)
139- let A = {
140- let r = getInteger(this, ("User_Total_Votes_" + p))
141- if ($isInstanceOf(r, "Int"))
142- then {
143- let s = r
144- s
145- }
146- else 0
147- }
148- let B = (A + w.amount)
149- let C = {
150- let r = getInteger(this, ((("User_Total_Votes_" + p) + "-") + v))
151- if ($isInstanceOf(r, "Int"))
152- then {
153- let s = r
154- s
155- }
156- else 0
157- }
158- let D = (C + w.amount)
159- let E = {
160- let r = getInteger(this, ((("User_Total_Asset_Votes_" + p) + "_") + v))
161- if ($isInstanceOf(r, "Int"))
162- then {
163- let s = r
164- s
165- }
166- else 0
167- }
168- let F = (E + w.amount)
169- let G = {
170- let r = getInteger(this, ("Total_Votes_" + v))
171- if ($isInstanceOf(r, "Int"))
172- then {
173- let s = r
174- s
175- }
176- else 0
177- }
178- let H = (G + w.amount)
179- if ((n > lastBlock.timestamp))
180- then throw((d + toString(n)))
181- else if ((1 > x))
182- then throw(g)
183- else if ((w.assetId != a))
184- then throw(h)
185- else if ((lastBlock.timestamp > o))
186- then throw(i)
187- else [IntegerEntry("Total_Votes", z), IntegerEntry(("Total_Votes_" + v), H), IntegerEntry(("User_Total_Votes_" + p), B), IntegerEntry(((("User_Total_Votes_" + p) + "-") + v), D), IntegerEntry(((("User_Total_Asset_Votes_" + p) + "_") + v), F), StringEntry("message", e)]
188- }
90+func DeleteKey (C) = [DeleteEntry("Proposal Data_1"), DeleteEntry("Proposal Data_2"), DeleteEntry("Proposal_Data_3"), DeleteEntry(C)]
18991
19092
191-
192-@Callable(j)
193-func Abstain () = {
194- let v = "Abstain"
195- let n = getIntegerValue(this, "Voting_Start_TimeStamp")
196- let o = getIntegerValue(this, "Voting_End_TimeStamp")
197- let p = toBase58String(j.caller.bytes)
198- let w = if ((size(j.payments) == 1))
199- then j.payments[0]
200- else throw(f)
201- let x = assetBalance(addressFromPublicKey(j.callerPublicKey), a)
202- let y = {
203- let r = getInteger(this, "Total_Votes")
204- if ($isInstanceOf(r, "Int"))
205- then {
206- let s = r
207- s
208- }
209- else 0
210- }
211- let z = (y + w.amount)
212- let A = {
213- let r = getInteger(this, ("User_Total_Votes_" + p))
214- if ($isInstanceOf(r, "Int"))
215- then {
216- let s = r
217- s
218- }
219- else 0
220- }
221- let B = (A + w.amount)
222- let C = {
223- let r = getInteger(this, ((("User_Total_Votes_" + p) + "-") + v))
224- if ($isInstanceOf(r, "Int"))
225- then {
226- let s = r
227- s
228- }
229- else 0
230- }
231- let D = (C + w.amount)
232- let E = {
233- let r = getInteger(this, ((("User_Total_Asset_Votes_" + p) + "_") + v))
234- if ($isInstanceOf(r, "Int"))
235- then {
236- let s = r
237- s
238- }
239- else 0
240- }
241- let F = (E + w.amount)
242- let G = {
243- let r = getInteger(this, ("Total_Votes_" + v))
244- if ($isInstanceOf(r, "Int"))
245- then {
246- let s = r
247- s
248- }
249- else 0
250- }
251- let H = (G + w.amount)
252- if ((n > lastBlock.timestamp))
253- then throw((d + toString(n)))
254- else if ((1 > x))
255- then throw(g)
256- else if ((w.assetId != a))
257- then throw(h)
258- else if ((lastBlock.timestamp > o))
259- then throw(i)
260- else [IntegerEntry("Total_Votes", z), IntegerEntry(("Total_Votes_" + v), H), IntegerEntry(("User_Total_Votes_" + p), B), IntegerEntry(((("User_Total_Votes_" + p) + "-") + v), D), IntegerEntry(((("User_Total_Asset_Votes_" + p) + "_") + v), F), StringEntry("message", e)]
261- }
262-
263-
264-@Verifier(I)
265-func J () = sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey)
93+@Verifier(D)
94+func E () = sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey)
26695

github/deemru/w8io/026f985 
54.71 ms