tx · 2XdjN8S44VgohMiTrzCCXvFSko9em7zG6gCrbGDpyaAb

3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ:  -0.01400000 Waves

2021.09.29 08:26 [1723809] smart account 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ > SELF 0.00000000 Waves

{ "type": 13, "id": "2XdjN8S44VgohMiTrzCCXvFSko9em7zG6gCrbGDpyaAb", "fee": 1400000, "feeAssetId": null, "timestamp": 1632893246665, "version": 2, "chainId": 84, "sender": "3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ", "senderPublicKey": "BMLuSYJ8rvQD55waCoKpzCBhJAbY8s9pp4V5ZgxuzCBD", "proofs": [ "oHbfn7ZRg6pKeRrEcZgpM6jnkrXoAopMPvxKBpLLDETTZYA5ndHWnzX3Nrfwd4SgtHdsopPBoJzX2ufqs5e85M3" ], "script": "base64:AAIEAAAAAAAAAAoIAhIAEgASABIAAAAABQAAAAAKQTRBQXNzZXRJRAEAAAAg/sQa4d7v52kifRLo73ftXd9xD7wgh9JaaHT98W4IWDcAAAAADldlZWswVGltZXN0YW1wAAAAAXsihc/AAAAAAAhlYWNod2VlawAAAAAAJAyEAAAAAAAIZWFjaGhvdXIAAAAAAAA27oAAAAAACXBhdXNldGltZQAAAAAAANu6AAAAAAQAAAABaQEAAAAJQ2hhaW5saW5rAAAAAAQAAAAORmF2b3VyaXRlQXNzZXQCAAAACUNoYWlubGluawQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAOVdlZWtseSBWb3RlIE5lZWQgMC4wMDAxIEE0QSBUb2tlbiBhcyBBdHRhY2hlZCBwYXltZW50WzFdLgQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAABJjdXJyZW50cnVubmluZ3dl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ACQ8aDE+WW91IFZvdGVkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5bdoALQ==", "height": 1723809, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FXyb9cC93JsUk7dFhh9VEeP6VCoP1fFL7gsAfHA8qabK Next: H5rxLjrNfF82eXjrv4FpSaT5EnMa5XBhLnWfLQArFCNn Diff:
OldNewDifferences
124124 then throw("Please Attach Exact 0.0001 A4A To Vote.")
125125 else if ((votingpausetime > lastBlock.timestamp))
126126 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
127- 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>")]
127+ 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>")]
128128 }
129129
130130
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)
9191 let fetchuserweeklyvotes = match getInteger(this, ((toString(currentrunningweek) + "_User_Total_Votes_") + currentKey)) {
9292 case a: Int =>
9393 a
9494 case _ =>
9595 0
9696 }
9797 let usertotalweeklyvotes = (fetchuserweeklyvotes + 1)
9898 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
9999 case a: Int =>
100100 a
101101 case _ =>
102102 0
103103 }
104104 let usertotalvotes = (fetchuservotes + 1)
105105 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
106106 case a: Int =>
107107 a
108108 case _ =>
109109 0
110110 }
111111 let usertotalvotesforasset = (fetchuservotesforasset + 1)
112112 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
113113 case a: Int =>
114114 a
115115 case _ =>
116116 0
117117 }
118118 let assettotalvotes = (fetchtotalvotes + 1)
119119 if ((100000000 > checkassetbal))
120120 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
121121 else if ((pmt.assetId != A4AAssetID))
122122 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
123123 else if ((pmt.amount != 10000))
124124 then throw("Please Attach Exact 0.0001 A4A To Vote.")
125125 else if ((votingpausetime > lastBlock.timestamp))
126126 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
127- 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>")]
127+ 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>")]
128128 }
129129
130130
131131
132132 @Callable(i)
133133 func Sushi () = {
134134 let FavouriteAsset = "Sushi"
135135 let pmt = if ((size(i.payments) == 1))
136136 then i.payments[0]
137137 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
138138 let currentKey = toBase58String(i.caller.bytes)
139139 let currentrunningweek = (((lastBlock.timestamp - Week0Timestamp) / eachweek) + 1)
140140 let TSUptoPastWeek = (Week0Timestamp + ((currentrunningweek - 1) * eachweek))
141141 let votingpausetime = (TSUptoPastWeek + pausetime)
142142 let checkassetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4AAssetID)
143143 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
144144 case a: Int =>
145145 a
146146 case _ =>
147147 0
148148 }
149149 let totaltxns = (fetchtotaltxns + 1)
150150 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
151151 case a: Int =>
152152 a
153153 case _ =>
154154 0
155155 }
156156 let usertotalvotes = (fetchuservotes + 1)
157157 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
158158 case a: Int =>
159159 a
160160 case _ =>
161161 0
162162 }
163163 let usertotalvotesforasset = (fetchuservotesforasset + 1)
164164 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
165165 case a: Int =>
166166 a
167167 case _ =>
168168 0
169169 }
170170 let assettotalvotes = (fetchtotalvotes + 1)
171171 if ((100000000 > checkassetbal))
172172 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
173173 else if ((pmt.assetId != A4AAssetID))
174174 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
175175 else if ((pmt.amount != 10000))
176176 then throw("Please Attach Exact 0.0001 A4A To Vote.")
177177 else if ((votingpausetime > lastBlock.timestamp))
178178 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
179179 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>")]
180180 }
181181
182182
183183
184184 @Callable(i)
185185 func Compound () = {
186186 let FavouriteAsset = "Compound"
187187 let pmt = if ((size(i.payments) == 1))
188188 then i.payments[0]
189189 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
190190 let currentKey = toBase58String(i.caller.bytes)
191191 let currentrunningweek = (((lastBlock.timestamp - Week0Timestamp) / eachweek) + 1)
192192 let TSUptoPastWeek = (Week0Timestamp + ((currentrunningweek - 1) * eachweek))
193193 let votingpausetime = (TSUptoPastWeek + pausetime)
194194 let checkassetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4AAssetID)
195195 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
196196 case a: Int =>
197197 a
198198 case _ =>
199199 0
200200 }
201201 let totaltxns = (fetchtotaltxns + 1)
202202 let fetchuservotes = match getInteger(this, ("User_Total_Votes_" + currentKey)) {
203203 case a: Int =>
204204 a
205205 case _ =>
206206 0
207207 }
208208 let usertotalvotes = (fetchuservotes + 1)
209209 let fetchuservotesforasset = match getInteger(this, ((("User_Total_Asset_Votes_" + currentKey) + "_") + FavouriteAsset)) {
210210 case a: Int =>
211211 a
212212 case _ =>
213213 0
214214 }
215215 let usertotalvotesforasset = (fetchuservotesforasset + 1)
216216 let fetchtotalvotes = match getInteger(this, ("Total_Votes_" + FavouriteAsset)) {
217217 case a: Int =>
218218 a
219219 case _ =>
220220 0
221221 }
222222 let assettotalvotes = (fetchtotalvotes + 1)
223223 if ((100000000 > checkassetbal))
224224 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
225225 else if ((pmt.assetId != A4AAssetID))
226226 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " AssetID Only."))
227227 else if ((pmt.amount != 10000))
228228 then throw("Please Attach Exact 0.0001 A4A To Vote.")
229229 else if ((votingpausetime > lastBlock.timestamp))
230230 then throw((("Voting is paused for Next " + toString(((votingpausetime - lastBlock.timestamp) / 60000))) + " Minutes"))
231231 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>")]
232232 }
233233
234234
235235 @Verifier(tx)
236236 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
237237

github/deemru/w8io/026f985 
41.88 ms