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/AAAAAAAhlYWNod2VlawAAAAAAJAyEAAAAAAAIZWFjaGhvdXIAAAAAAAA27oAAAAAACXBhdXNldGltZQAAAAAAANu6AAAAAAQAAAABaQEAAAAJQ2hhaW5saW5rAAAAAAQAAAAORmF2b3VyaXRlQXNzZXQCAAAACUNoYWlubGluawQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAOVdlZWtseSBWb3RlIE5lZWQgMC4wMDAxIEE0QSBUb2tlbiBhcyBBdHRhY2hlZCBwYXltZW50WzFdLgQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAABJjdXJyZW50cnVubmluZ3d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1pbnV0ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAClRvdGFsX1R4bnMFAAAACXRvdGFsdHhucwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAATQ3VycmVudF9Wb3RpbmdfV2VlawUAAAASY3VycmVudHJ1bm5pbmd3ZWVrCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADFRvdGFsX1ZvdGVzXwUAAAAORmF2b3VyaXRlQXNzZXQFAAAAD2Fzc2V0dG90YWx2b3RlcwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAABFVc2VyX1RvdGFsX1ZvdGVzXwUAAAAKY3VycmVudEtleQUAAAAOdXNlcnRvdGFsdm90ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAF1VzZXJfVG90YWxfQXNzZXRfVm90ZXNfBQAAAApjdXJyZW50S2V5AgAAAAFfBQAAAA5GYXZvdXJpdGVBc3NldAUAAAAWdXNlcnRvdGFsdm90ZXNmb3Jhc3NldAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlAgAAACQ8aDE+WW91IFZvdGVkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5on+6xQ==", "height": 1723814, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2XdjN8S44VgohMiTrzCCXvFSko9em7zG6gCrbGDpyaAb Next: 4ecZtEY6aeuPUg4XHW88rvwc7C6cdYnCzAtcYQR9xQDk Diff:
OldNewDifferences
3636 0
3737 }
3838 let usertotalweeklyvotes = (fetchuserweeklyvotes + 1)
39+ let fetchuserweeklyvotesforasset = match getInteger(this, ((((toString(currentrunningweek) + "_User_Total_Votes_") + currentKey) + "_") + FavouriteAsset)) {
40+ case a: Int =>
41+ a
42+ case _ =>
43+ 0
44+ }
45+ let usertotalweeklyvotesforasset = (fetchuserweeklyvotesforasset + 1)
3946 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
4047 case a: Int =>
4148 a
6572 then throw("Please Attach Exact 0.0001 A4A To Vote.")
6673 else if ((votingpausetime > lastBlock.timestamp))
6774 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
68- 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>")]
75+ 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(((((toString(currentrunningweek) + "_User_Total_Votes_") + currentKey) + "_") + FavouriteAsset), usertotalweeklyvotesforasset), IntegerEntry(((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset), usertotalvotesforasset), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")]
6976 }
7077
7178
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)
39+ let fetchuserweeklyvotesforasset = match getInteger(this, ((((toString(currentrunningweek) + "_User_Total_Votes_") + currentKey) + "_") + FavouriteAsset)) {
40+ case a: Int =>
41+ a
42+ case _ =>
43+ 0
44+ }
45+ let usertotalweeklyvotesforasset = (fetchuserweeklyvotesforasset + 1)
3946 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
4047 case a: Int =>
4148 a
4249 case _ =>
4350 0
4451 }
4552 let usertotalvotes = (fetchuservotes + 1)
4653 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
4754 case a: Int =>
4855 a
4956 case _ =>
5057 0
5158 }
5259 let usertotalvotesforasset = (fetchuservotesforasset + 1)
5360 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
5461 case a: Int =>
5562 a
5663 case _ =>
5764 0
5865 }
5966 let assettotalvotes = (fetchtotalvotes + 1)
6067 if ((100000000 > checkassetbal))
6168 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
6269 else if ((pmt.assetId != A4AAssetID))
6370 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
6471 else if ((pmt.amount != 10000))
6572 then throw("Please Attach Exact 0.0001 A4A To Vote.")
6673 else if ((votingpausetime > lastBlock.timestamp))
6774 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
68- 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>")]
75+ 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(((((toString(currentrunningweek) + "_User_Total_Votes_") + currentKey) + "_") + FavouriteAsset), usertotalweeklyvotesforasset), IntegerEntry(((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset), usertotalvotesforasset), StringEntry("message", "<h1>You Voted Successfully!</h1><br>")]
6976 }
7077
7178
7279
7380 @Callable(i)
7481 func Dent () = {
7582 let FavouriteAsset = "Dent"
7683 let pmt = if ((size(i.payments) == 1))
7784 then i.payments[0]
7885 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
7986 let currentKey = toBase58String(i.caller.bytes)
8087 let currentrunningweek = (((lastBlock.timestamp - Week0Timestamp) / eachweek) + 1)
8188 let TSUptoPastWeek = (Week0Timestamp + ((currentrunningweek - 1) * eachweek))
8289 let votingpausetime = (TSUptoPastWeek + pausetime)
8390 let checkassetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4AAssetID)
8491 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
8592 case a: Int =>
8693 a
8794 case _ =>
8895 0
8996 }
9097 let totaltxns = (fetchtotaltxns + 1)
9198 let fetchuserweeklyvotes = match getInteger(this, ((toString(currentrunningweek) + "_User_Total_Votes_") + currentKey)) {
9299 case a: Int =>
93100 a
94101 case _ =>
95102 0
96103 }
97104 let usertotalweeklyvotes = (fetchuserweeklyvotes + 1)
98105 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
99106 case a: Int =>
100107 a
101108 case _ =>
102109 0
103110 }
104111 let usertotalvotes = (fetchuservotes + 1)
105112 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
106113 case a: Int =>
107114 a
108115 case _ =>
109116 0
110117 }
111118 let usertotalvotesforasset = (fetchuservotesforasset + 1)
112119 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
113120 case a: Int =>
114121 a
115122 case _ =>
116123 0
117124 }
118125 let assettotalvotes = (fetchtotalvotes + 1)
119126 if ((100000000 > checkassetbal))
120127 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
121128 else if ((pmt.assetId != A4AAssetID))
122129 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
123130 else if ((pmt.amount != 10000))
124131 then throw("Please Attach Exact 0.0001 A4A To Vote.")
125132 else if ((votingpausetime > lastBlock.timestamp))
126133 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
127134 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>")]
128135 }
129136
130137
131138
132139 @Callable(i)
133140 func Sushi () = {
134141 let FavouriteAsset = "Sushi"
135142 let pmt = if ((size(i.payments) == 1))
136143 then i.payments[0]
137144 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
138145 let currentKey = toBase58String(i.caller.bytes)
139146 let currentrunningweek = (((lastBlock.timestamp - Week0Timestamp) / eachweek) + 1)
140147 let TSUptoPastWeek = (Week0Timestamp + ((currentrunningweek - 1) * eachweek))
141148 let votingpausetime = (TSUptoPastWeek + pausetime)
142149 let checkassetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4AAssetID)
143150 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
144151 case a: Int =>
145152 a
146153 case _ =>
147154 0
148155 }
149156 let totaltxns = (fetchtotaltxns + 1)
150157 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
151158 case a: Int =>
152159 a
153160 case _ =>
154161 0
155162 }
156163 let usertotalvotes = (fetchuservotes + 1)
157164 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
158165 case a: Int =>
159166 a
160167 case _ =>
161168 0
162169 }
163170 let usertotalvotesforasset = (fetchuservotesforasset + 1)
164171 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
165172 case a: Int =>
166173 a
167174 case _ =>
168175 0
169176 }
170177 let assettotalvotes = (fetchtotalvotes + 1)
171178 if ((100000000 > checkassetbal))
172179 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
173180 else if ((pmt.assetId != A4AAssetID))
174181 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
175182 else if ((pmt.amount != 10000))
176183 then throw("Please Attach Exact 0.0001 A4A To Vote.")
177184 else if ((votingpausetime > lastBlock.timestamp))
178185 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
179186 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>")]
180187 }
181188
182189
183190
184191 @Callable(i)
185192 func Compound () = {
186193 let FavouriteAsset = "Compound"
187194 let pmt = if ((size(i.payments) == 1))
188195 then i.payments[0]
189196 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
190197 let currentKey = toBase58String(i.caller.bytes)
191198 let currentrunningweek = (((lastBlock.timestamp - Week0Timestamp) / eachweek) + 1)
192199 let TSUptoPastWeek = (Week0Timestamp + ((currentrunningweek - 1) * eachweek))
193200 let votingpausetime = (TSUptoPastWeek + pausetime)
194201 let checkassetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4AAssetID)
195202 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
196203 case a: Int =>
197204 a
198205 case _ =>
199206 0
200207 }
201208 let totaltxns = (fetchtotaltxns + 1)
202209 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
203210 case a: Int =>
204211 a
205212 case _ =>
206213 0
207214 }
208215 let usertotalvotes = (fetchuservotes + 1)
209216 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
210217 case a: Int =>
211218 a
212219 case _ =>
213220 0
214221 }
215222 let usertotalvotesforasset = (fetchuservotesforasset + 1)
216223 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
217224 case a: Int =>
218225 a
219226 case _ =>
220227 0
221228 }
222229 let assettotalvotes = (fetchtotalvotes + 1)
223230 if ((100000000 > checkassetbal))
224231 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
225232 else if ((pmt.assetId != A4AAssetID))
226233 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
227234 else if ((pmt.amount != 10000))
228235 then throw("Please Attach Exact 0.0001 A4A To Vote.")
229236 else if ((votingpausetime > lastBlock.timestamp))
230237 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
231238 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>")]
232239 }
233240
234241
235242 @Verifier(tx)
236243 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
237244

github/deemru/w8io/026f985 
51.03 ms