tx · 8tNuu3QdenXanEmqb62MoLvwwJTeAJyuUkSqw666ckd9

3NBLecFWuYaQuc56Nt6nZm8jdPt9f8vfyFr:  -0.01400000 Waves

2023.03.13 14:21 [2488184] smart account 3NBLecFWuYaQuc56Nt6nZm8jdPt9f8vfyFr > SELF 0.00000000 Waves

{ "type": 13, "id": "8tNuu3QdenXanEmqb62MoLvwwJTeAJyuUkSqw666ckd9", "fee": 1400000, "feeAssetId": null, "timestamp": 1678706571915, "version": 2, "chainId": 84, "sender": "3NBLecFWuYaQuc56Nt6nZm8jdPt9f8vfyFr", "senderPublicKey": "GV3FbBXZru1WpaCa9x1zhwSWrXSDrxKMVEV7BML6EzY1", "proofs": [ "5QzFP6xjv7dfBThNELTcMk4SiPNccNHapKTwWShp2v2QSnvDCh5VSRRV5jxhPrHcxNxzi2UyheSRhhQDS9AhdMif" ], "script": "base64:AAIEAAAAAAAAAAsIAhIFCgMBAQESAAAAAA0AAAAABFZPVEUBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACAbvUu+h+2As3kugOhMQC3bvgebie3kDmlbUlrvLFQPbQAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAAxsYXVuY2hfZXJyb3ICAAAAJERhcHAgd2lsbCBzdGFydCBWb3RpbmcgYXQgVGltZXN0YW1wIAAAAAADbXNnAgAAAC08aDE+WW91IFZvdGUgU3VibWl0dGVkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4AAAAACXB5bXRlcnJvcgIAAAAsREFwcCBOZWVkIDEgVk9URSBUb2tlbiBhcyBBdHRhY2ggcGF5bWVudFsxXS4AAAAAC21pbmJhbGVycm9yAgAAAF5NaW4uIDEgVk9URSByZ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GVBc3QFAAAABVVUVkZBCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UFAAAAA21zZwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlZ4dhD", "height": 2488184, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E5kiUeHyKV9F7vGadeFsTYDN4qaqbb8GVvGWAGQeLiLG Next: DrW6RfPzSEUDwitFouUtoTkR3gTwDedwgSUHmsUBN68W Diff:
OldNewDifferences
104104 then throw(h)
105105 else if ((x.amount != 1))
106106 then throw(i)
107- else if ((A > 1))
108- then throw(k)
109- else if ((lastBlock.timestamp > u))
110- then throw(j)
111- else [IntegerEntry("Total_Votes", o), IntegerEntry(("Total_Votes_" + v), G), IntegerEntry(("User_Total_Votes_" + w), A), IntegerEntry(((("User_Total_Votes_" + w) + "-") + v), C), IntegerEntry(((("User_Total_Asset_Votes_" + w) + "_") + v), E), StringEntry("message", e)]
107+ else if ((lastBlock.timestamp > u))
108+ then throw(j)
109+ else [IntegerEntry("Total_Votes", o), IntegerEntry(("Total_Votes_" + v), G), IntegerEntry(("User_Total_Votes_" + w), A), IntegerEntry(((("User_Total_Votes_" + w) + "-") + v), C), IntegerEntry(((("User_Total_Asset_Votes_" + w) + "_") + v), E), StringEntry("message", e)]
112110 }
113111
114112
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>You Vote Submitted Successfully!</h1><br>"
1313
1414 let f = "DApp Need 1 VOTE Token as Attach payment[1]."
1515
1616 let g = "Min. 1 VOTE required on Your Address to Vote. Please Mint or hold min. 1 VOTE on this Address."
1717
1818 let h = (("Incorrect asset attach, please attach " + toBase58String(a)) + " AssetID Only.")
1919
2020 let i = "Please Attach Exact 1 VOTE To Vote."
2121
2222 let j = "Voting is Over for this Dapp."
2323
2424 let k = "You have Already Voted from this address."
2525
2626 let l = {
2727 let m = getInteger(this, "Total_Votes")
2828 if ($isInstanceOf(m, "Int"))
2929 then {
3030 let n = m
3131 n
3232 }
3333 else 0
3434 }
3535
3636 let o = (l + 1)
3737
3838 @Callable(p)
3939 func SetVotingTimeStamps (q,r,s) = {
4040 let t = q
4141 let u = r
4242 if ((p.caller != c))
4343 then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it."))
4444 else [IntegerEntry("Voting_Start_TimeStamp", t), IntegerEntry("Voting_End_TimeStamp", u), IntegerEntry("Total_Tokens_Distributed", s)]
4545 }
4646
4747
4848
4949 @Callable(p)
5050 func Option1 () = {
5151 let v = "OPTION1"
5252 let t = getIntegerValue(this, "Voting_Start_TimeStamp")
5353 let u = getIntegerValue(this, "Voting_End_TimeStamp")
5454 let w = toBase58String(p.caller.bytes)
5555 let x = if ((size(p.payments) == 1))
5656 then p.payments[0]
5757 else throw(f)
5858 let y = assetBalance(addressFromPublicKey(p.callerPublicKey), a)
5959 let z = {
6060 let m = getInteger(this, ("User_Total_Votes_" + w))
6161 if ($isInstanceOf(m, "Int"))
6262 then {
6363 let n = m
6464 n
6565 }
6666 else 0
6767 }
6868 let A = (z + 1)
6969 let B = {
7070 let m = getInteger(this, ((("User_Total_Votes_" + w) + "-") + v))
7171 if ($isInstanceOf(m, "Int"))
7272 then {
7373 let n = m
7474 n
7575 }
7676 else 0
7777 }
7878 let C = (B + 1)
7979 let D = {
8080 let m = getInteger(this, ((("User_Total_Asset_Votes_" + w) + "_") + v))
8181 if ($isInstanceOf(m, "Int"))
8282 then {
8383 let n = m
8484 n
8585 }
8686 else 0
8787 }
8888 let E = (D + 1)
8989 let F = {
9090 let m = getInteger(this, ("Total_Votes_" + v))
9191 if ($isInstanceOf(m, "Int"))
9292 then {
9393 let n = m
9494 n
9595 }
9696 else 0
9797 }
9898 let G = (F + 1)
9999 if ((t > lastBlock.timestamp))
100100 then throw((d + toString(t)))
101101 else if ((1 > y))
102102 then throw(g)
103103 else if ((x.assetId != a))
104104 then throw(h)
105105 else if ((x.amount != 1))
106106 then throw(i)
107- else if ((A > 1))
108- then throw(k)
109- else if ((lastBlock.timestamp > u))
110- then throw(j)
111- else [IntegerEntry("Total_Votes", o), IntegerEntry(("Total_Votes_" + v), G), IntegerEntry(("User_Total_Votes_" + w), A), IntegerEntry(((("User_Total_Votes_" + w) + "-") + v), C), IntegerEntry(((("User_Total_Asset_Votes_" + w) + "_") + v), E), StringEntry("message", e)]
107+ else if ((lastBlock.timestamp > u))
108+ then throw(j)
109+ else [IntegerEntry("Total_Votes", o), IntegerEntry(("Total_Votes_" + v), G), IntegerEntry(("User_Total_Votes_" + w), A), IntegerEntry(((("User_Total_Votes_" + w) + "-") + v), C), IntegerEntry(((("User_Total_Asset_Votes_" + w) + "_") + v), E), StringEntry("message", e)]
112110 }
113111
114112
115113 @Verifier(H)
116114 func I () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey)
117115

github/deemru/w8io/169f3d6 
32.09 ms