tx · 2X9nmjTMtSMHrKJ7MYWetJn6NXHp5JMzdeUBcoZYq5Cz

3NBLecFWuYaQuc56Nt6nZm8jdPt9f8vfyFr:  -0.01400000 Waves

2023.03.13 12:44 [2488090] smart account 3NBLecFWuYaQuc56Nt6nZm8jdPt9f8vfyFr > SELF 0.00000000 Waves

{ "type": 13, "id": "2X9nmjTMtSMHrKJ7MYWetJn6NXHp5JMzdeUBcoZYq5Cz", "fee": 1400000, "feeAssetId": null, "timestamp": 1678700696284, "version": 2, "chainId": 84, "sender": "3NBLecFWuYaQuc56Nt6nZm8jdPt9f8vfyFr", "senderPublicKey": "GV3FbBXZru1WpaCa9x1zhwSWrXSDrxKMVEV7BML6EzY1", "proofs": [ "4PfUet7QkfnGw1DNHRWCcwfJB5XbF8v3te9dXajohKzTMkqFCsFKe3Y46JUDp3fhjtgS4ZpEBLL5DSCMzhgPhNvN" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAADQAAAAAEVk9URQEAAAAgCGWEtw/wimoa8+Jo6C4IkCTD0ydYA80s9i5eC9/aFaQAAAAAB1N0YXJ0VFMAAAABhvxQ0AAAAAAABUVuZFRTAAAAAYdJkDQAAAAAAAxsYXVuY2hfZXJyb3IJAAEsAAAAAgIAAAAkRGFwcCB3aWxsIHN0YXJ0IFZvdGluZyBhdCBUaW1lc3RhbXAgCQABpAAAAAEFAAAAB1N0YXJ0VFMAAAAAA21zZwIAAAAtPGgxPllvdSBWb3RlIFN1Ym1pdHRlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+AAAAAAlweW10ZXJyb3ICAAAALERBcHAgTmVlZCAxIFZPVEUgVG9rZW4gYXMgQXR0YWNoIHBheW1lbnRbMV0uAAAAAAttaW5iYWxlcnJvcgIAAABeTWluLiAxIFZPVEUgcmVxdWlyZWQgb24gWW91ciBBZGRyZXNzIHRvIFZvdGUuIFBsZWFzZSBNaW50IG9yIGhvbGQgbWluLiAxIFZPVEUgb24gdGhpcyBBZGRyZXNzLgAAAAA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AAAAGcHVia2V5AgAAAAFfBQAAAAdWb3RlQXN0BQAAAAVVVFZGQQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlBQAAAANtc2cFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V52wG8WA==", "height": 2488090, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 8Z8WHoZXjWQ7338p2LtYh8DNKJrfo34TQAqfsgcRB3Ve Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
5+
6+let b = 1679270400000
7+
8+let c = 1680566400000
9+
10+let d = ("Dapp will start Voting at Timestamp " + toString(b))
11+
12+let e = "<h1>You Vote Submitted Successfully!</h1><br>"
13+
14+let f = "DApp Need 1 VOTE Token as Attach payment[1]."
15+
16+let g = "Min. 1 VOTE required on Your Address to Vote. Please Mint or hold min. 1 VOTE on this Address."
17+
18+let h = (("Incorrect asset attach, please attach " + toBase58String(a)) + " AssetID Only.")
19+
20+let i = "Please Attach Exact 1 VOTE To Vote."
21+
22+let j = "Voting is Over for this Dapp."
23+
24+let k = "You have Already Voted from this address."
25+
26+let l = {
27+ let m = getInteger(this, "Total_Votes")
28+ if ($isInstanceOf(m, "Int"))
29+ then {
30+ let n = m
31+ n
32+ }
33+ else 0
34+ }
35+
36+let o = (l + 1)
37+
38+@Callable(p)
39+func Option1 () = {
40+ let q = "OPTION_1"
41+ let r = if ((size(p.payments) == 1))
42+ then p.payments[0]
43+ else throw(f)
44+ let s = toBase58String(p.caller.bytes)
45+ let t = assetBalance(addressFromPublicKey(p.callerPublicKey), a)
46+ let u = {
47+ let m = getInteger(this, ("User_Total_Votes_" + s))
48+ if ($isInstanceOf(m, "Int"))
49+ then {
50+ let n = m
51+ n
52+ }
53+ else 0
54+ }
55+ let v = (u + 1)
56+ let w = {
57+ let m = getInteger(this, ((("User_Total_Votes_" + s) + "-") + q))
58+ if ($isInstanceOf(m, "Int"))
59+ then {
60+ let n = m
61+ n
62+ }
63+ else 0
64+ }
65+ let x = (w + 1)
66+ let y = {
67+ let m = getInteger(this, ((("User_Total_Asset_Votes_" + s) + "_") + q))
68+ if ($isInstanceOf(m, "Int"))
69+ then {
70+ let n = m
71+ n
72+ }
73+ else 0
74+ }
75+ let z = (y + 1)
76+ let A = {
77+ let m = getInteger(this, ("Total_Votes_" + q))
78+ if ($isInstanceOf(m, "Int"))
79+ then {
80+ let n = m
81+ n
82+ }
83+ else 0
84+ }
85+ let B = (A + 1)
86+ if ((b > lastBlock.timestamp))
87+ then throw(d)
88+ else if ((1 > t))
89+ then throw(g)
90+ else if ((r.assetId != a))
91+ then throw(h)
92+ else if ((r.amount != 1))
93+ then throw(i)
94+ else if ((v > 1))
95+ then throw(k)
96+ else if ((c > lastBlock.timestamp))
97+ then throw(j)
98+ else [IntegerEntry("Total_Votes", o), IntegerEntry(("Total_Votes_" + q), B), IntegerEntry(("User_Total_Votes_" + s), v), IntegerEntry(((("User_Total_Votes_" + s) + "-") + q), x), IntegerEntry(((("User_Total_Asset_Votes_" + s) + "_") + q), z), StringEntry("message", e)]
99+ }
100+
101+
102+@Verifier(C)
103+func D () = sigVerify(C.bodyBytes, C.proofs[0], C.senderPublicKey)
104+

github/deemru/w8io/169f3d6 
19.69 ms