tx · FXyb9cC93JsUk7dFhh9VEeP6VCoP1fFL7gsAfHA8qabK

3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ:  -0.01400000 Waves

2021.09.29 08:24 [1723805] smart account 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ > SELF 0.00000000 Waves

{ "type": 13, "id": "FXyb9cC93JsUk7dFhh9VEeP6VCoP1fFL7gsAfHA8qabK", "fee": 1400000, "feeAssetId": null, "timestamp": 1632893079104, "version": 2, "chainId": 84, "sender": "3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ", "senderPublicKey": "BMLuSYJ8rvQD55waCoKpzCBhJAbY8s9pp4V5ZgxuzCBD", "proofs": [ "4NJKhvemrbQnAdDoR4QKwDK8iFfcGbSDF1FpKkVUrF4XZN12UAWxxFRQNakLuYG6QN2NaDbqTjB1DVa9hvRdhFu4" ], "script": "base64:AAIEAAAAAAAAAAoIAhIAEgASABIAAAAABQAAAAAKQTRBQXNzZXRJRAEAAAAg/sQa4d7v52kifRLo73ftXd9xD7wgh9JaaHT98W4IWDcAAAAADldlZWswVGltZXN0YW1wAAAAAXsihc/AAAAAAAhlYWNod2VlawAAAAAAJAyEAAAAAAAIZWFjaGhvdXIAAAAAAAA27oAAAAAACXBhdXNldGltZQAAAAAAANu6AAAAAAQAAAABaQEAAAAJQ2hhaW5saW5rAAAAAAQAAAAORmF2b3VyaXRlQXNzZXQCAAAACUNoYWlubGluawQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAOVdlZWtseSBWb3RlIE5lZWQgMC4wMDAxIEE0QSBUb2tlbiBhcyBBdHRhY2hlZCBwYXltZW50WzFdLgQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAABJjdXJyZW50cnVubmluZ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YmxpY0tleW6qZ2s=", "height": 1723805, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FwwA5q5GhNHi6K5hN7hLz7tgfGbp1Er8sGttpK5iMUXx Next: 2XdjN8S44VgohMiTrzCCXvFSko9em7zG6gCrbGDpyaAb Diff:
OldNewDifferences
8888 0
8989 }
9090 let totaltxns = (fetchtotaltxns + 1)
91+ let fetchuserweeklyvotes = match getInteger(this, ((toString(currentrunningweek) + "_User_Total_Votes_") + currentKey)) {
92+ case a: Int =>
93+ a
94+ case _ =>
95+ 0
96+ }
97+ let usertotalweeklyvotes = (fetchuserweeklyvotes + 1)
9198 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
9299 case a: Int =>
93100 a
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let A4AAssetID = base58'J9VzWPfRSQyCbEv5oWpxLSihigbpbJsGBHJZV9Ct8ook'
55
66 let Week0Timestamp = 1628371800000
77
88 let eachweek = 604800000
99
1010 let eachhour = 3600000
1111
1212 let pausetime = 14400000
1313
1414 @Callable(i)
1515 func Chainlink () = {
1616 let FavouriteAsset = "Chainlink"
1717 let pmt = if ((size(i.payments) == 1))
1818 then i.payments[0]
1919 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
2020 let currentKey = toBase58String(i.caller.bytes)
2121 let currentrunningweek = (((lastBlock.timestamp - Week0Timestamp) / eachweek) + 1)
2222 let TSUptoPastWeek = (Week0Timestamp + ((currentrunningweek - 1) * eachweek))
2323 let votingpausetime = (TSUptoPastWeek + pausetime)
2424 let checkassetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4AAssetID)
2525 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
2626 case a: Int =>
2727 a
2828 case _ =>
2929 0
3030 }
3131 let totaltxns = (fetchtotaltxns + 1)
3232 let fetchuserweeklyvotes = match getInteger(this, ((toString(currentrunningweek) + "_User_Total_Votes_") + currentKey)) {
3333 case a: Int =>
3434 a
3535 case _ =>
3636 0
3737 }
3838 let usertotalweeklyvotes = (fetchuserweeklyvotes + 1)
3939 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
4040 case a: Int =>
4141 a
4242 case _ =>
4343 0
4444 }
4545 let usertotalvotes = (fetchuservotes + 1)
4646 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
4747 case a: Int =>
4848 a
4949 case _ =>
5050 0
5151 }
5252 let usertotalvotesforasset = (fetchuservotesforasset + 1)
5353 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
5454 case a: Int =>
5555 a
5656 case _ =>
5757 0
5858 }
5959 let assettotalvotes = (fetchtotalvotes + 1)
6060 if ((100000000 > checkassetbal))
6161 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
6262 else if ((pmt.assetId != A4AAssetID))
6363 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
6464 else if ((pmt.amount != 10000))
6565 then throw("Please Attach Exact 0.0001 A4A To Vote.")
6666 else if ((votingpausetime > lastBlock.timestamp))
6767 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
6868 else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry("Current_Voting_Week", currentrunningweek), IntegerEntry(("Total_Votes_" + FavouriteAsset), assettotalvotes), IntegerEntry(("User_Total_Votes_" + currentKey), usertotalvotes), IntegerEntry(((toString(currentrunningweek) + "_User_Total_Votes_") + currentKey), usertotalweeklyvotes), IntegerEntry(((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset), usertotalvotesforasset), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")]
6969 }
7070
7171
7272
7373 @Callable(i)
7474 func Dent () = {
7575 let FavouriteAsset = "Dent"
7676 let pmt = if ((size(i.payments) == 1))
7777 then i.payments[0]
7878 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
7979 let currentKey = toBase58String(i.caller.bytes)
8080 let currentrunningweek = (((lastBlock.timestamp - Week0Timestamp) / eachweek) + 1)
8181 let TSUptoPastWeek = (Week0Timestamp + ((currentrunningweek - 1) * eachweek))
8282 let votingpausetime = (TSUptoPastWeek + pausetime)
8383 let checkassetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4AAssetID)
8484 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
8585 case a: Int =>
8686 a
8787 case _ =>
8888 0
8989 }
9090 let totaltxns = (fetchtotaltxns + 1)
91+ let fetchuserweeklyvotes = match getInteger(this, ((toString(currentrunningweek) + "_User_Total_Votes_") + currentKey)) {
92+ case a: Int =>
93+ a
94+ case _ =>
95+ 0
96+ }
97+ let usertotalweeklyvotes = (fetchuserweeklyvotes + 1)
9198 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
9299 case a: Int =>
93100 a
94101 case _ =>
95102 0
96103 }
97104 let usertotalvotes = (fetchuservotes + 1)
98105 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
99106 case a: Int =>
100107 a
101108 case _ =>
102109 0
103110 }
104111 let usertotalvotesforasset = (fetchuservotesforasset + 1)
105112 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
106113 case a: Int =>
107114 a
108115 case _ =>
109116 0
110117 }
111118 let assettotalvotes = (fetchtotalvotes + 1)
112119 if ((100000000 > checkassetbal))
113120 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
114121 else if ((pmt.assetId != A4AAssetID))
115122 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
116123 else if ((pmt.amount != 10000))
117124 then throw("Please Attach Exact 0.0001 A4A To Vote.")
118125 else if ((votingpausetime > lastBlock.timestamp))
119126 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
120127 else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry("Current_Voting_Week", currentrunningweek), IntegerEntry(("Total_Votes_" + FavouriteAsset), assettotalvotes), IntegerEntry(("User_Total_Votes_" + currentKey), usertotalvotes), IntegerEntry(((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset), usertotalvotesforasset), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")]
121128 }
122129
123130
124131
125132 @Callable(i)
126133 func Sushi () = {
127134 let FavouriteAsset = "Sushi"
128135 let pmt = if ((size(i.payments) == 1))
129136 then i.payments[0]
130137 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
131138 let currentKey = toBase58String(i.caller.bytes)
132139 let currentrunningweek = (((lastBlock.timestamp - Week0Timestamp) / eachweek) + 1)
133140 let TSUptoPastWeek = (Week0Timestamp + ((currentrunningweek - 1) * eachweek))
134141 let votingpausetime = (TSUptoPastWeek + pausetime)
135142 let checkassetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4AAssetID)
136143 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
137144 case a: Int =>
138145 a
139146 case _ =>
140147 0
141148 }
142149 let totaltxns = (fetchtotaltxns + 1)
143150 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
144151 case a: Int =>
145152 a
146153 case _ =>
147154 0
148155 }
149156 let usertotalvotes = (fetchuservotes + 1)
150157 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
151158 case a: Int =>
152159 a
153160 case _ =>
154161 0
155162 }
156163 let usertotalvotesforasset = (fetchuservotesforasset + 1)
157164 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
158165 case a: Int =>
159166 a
160167 case _ =>
161168 0
162169 }
163170 let assettotalvotes = (fetchtotalvotes + 1)
164171 if ((100000000 > checkassetbal))
165172 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
166173 else if ((pmt.assetId != A4AAssetID))
167174 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
168175 else if ((pmt.amount != 10000))
169176 then throw("Please Attach Exact 0.0001 A4A To Vote.")
170177 else if ((votingpausetime > lastBlock.timestamp))
171178 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
172179 else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry("Current_Voting_Week", currentrunningweek), IntegerEntry(("Total_Votes_" + FavouriteAsset), assettotalvotes), IntegerEntry(("User_Total_Votes_" + currentKey), usertotalvotes), IntegerEntry(((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset), usertotalvotesforasset), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")]
173180 }
174181
175182
176183
177184 @Callable(i)
178185 func Compound () = {
179186 let FavouriteAsset = "Compound"
180187 let pmt = if ((size(i.payments) == 1))
181188 then i.payments[0]
182189 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
183190 let currentKey = toBase58String(i.caller.bytes)
184191 let currentrunningweek = (((lastBlock.timestamp - Week0Timestamp) / eachweek) + 1)
185192 let TSUptoPastWeek = (Week0Timestamp + ((currentrunningweek - 1) * eachweek))
186193 let votingpausetime = (TSUptoPastWeek + pausetime)
187194 let checkassetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4AAssetID)
188195 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
189196 case a: Int =>
190197 a
191198 case _ =>
192199 0
193200 }
194201 let totaltxns = (fetchtotaltxns + 1)
195202 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
196203 case a: Int =>
197204 a
198205 case _ =>
199206 0
200207 }
201208 let usertotalvotes = (fetchuservotes + 1)
202209 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
203210 case a: Int =>
204211 a
205212 case _ =>
206213 0
207214 }
208215 let usertotalvotesforasset = (fetchuservotesforasset + 1)
209216 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
210217 case a: Int =>
211218 a
212219 case _ =>
213220 0
214221 }
215222 let assettotalvotes = (fetchtotalvotes + 1)
216223 if ((100000000 > checkassetbal))
217224 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
218225 else if ((pmt.assetId != A4AAssetID))
219226 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
220227 else if ((pmt.amount != 10000))
221228 then throw("Please Attach Exact 0.0001 A4A To Vote.")
222229 else if ((votingpausetime > lastBlock.timestamp))
223230 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
224231 else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry("Current_Voting_Week", currentrunningweek), IntegerEntry(("Total_Votes_" + FavouriteAsset), assettotalvotes), IntegerEntry(("User_Total_Votes_" + currentKey), usertotalvotes), IntegerEntry(((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset), usertotalvotesforasset), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")]
225232 }
226233
227234
228235 @Verifier(tx)
229236 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
230237

github/deemru/w8io/026f985 
36.05 ms