tx · npn3zUSY7zetmEtDjeh9MMkHej2pe1GN59bzsMT6nsL

3N86AryjXNvAuNs3mV9xKPTjXnAYQimiHDF:  -0.01000000 Waves

2023.09.18 14:09 [2760748] smart account 3N86AryjXNvAuNs3mV9xKPTjXnAYQimiHDF > SELF 0.00000000 Waves

{ "type": 13, "id": "npn3zUSY7zetmEtDjeh9MMkHej2pe1GN59bzsMT6nsL", "fee": 1000000, "feeAssetId": null, "timestamp": 1695035443553, "version": 2, "chainId": 84, "sender": "3N86AryjXNvAuNs3mV9xKPTjXnAYQimiHDF", "senderPublicKey": "7Zo8C4qkZishvcPg5SUixQPySKeM49Jeui21Tih7iPr9", "proofs": [ "5ZHAMesmvzXcwvwJSvGR3Np11Ys4JAsTzLJqBKvAZXXS3rXCLjyHJDDco4z3eUi796Mgi1bGJTMaXta28HHkrGPH" ], "script": "base64:BgIVCAISABIDCgEBEgQKAggIEgQKAgEEFQADU0VQAgJfXwAPcmVwdXRhdGlvbkFzc2V0ASBp6x+DcpBVAG0dTZ5QIAuA7CaS8wuiEOK6KQOBSERbTgAMcHJvcG9zYWxUaW1lCQBoAgkAaAIJAGgCCQBoAgDoBwA8ADwAGAADARJ1bmxvY2tUaW1lc3RhbXBLZXkBB2FkZHJlc3MJALkJAgkAzAgCAgJ1dAkAzAgCCQDYBAEFB2FkZHJlc3MFA25pbAUDU0VQARFjb3VudFByb3Bvc2Fsc0tleQACAmNwARBwcm9wb3NhbFRpdGxlS2V5AQJpZAkAuQkCCQDMCAICA3B0aQkAzAgCCQCkAwEFAmlkBQNuaWwFA1NFUAEPcHJvcG9zYWxUZXh0S2V5AQJpZAkAuQkCCQDMCAICA3B0ZQkAzAgCCQCkAwEFAmlkBQNuaWwFA1NFUAEccHJvcG9zYWxUaW1lc3RhbXBDcmVhdGlvbktleQECaWQJALkJAgkAzAgCAgNwdGMJAMwIAgkApAMBBQJpZAUDbmlsBQNTRVABGHByb3Bvc2FsQ291bnRWb3Rlc0ZvcktleQECaWQJALkJAg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FbnRyeQIJARN1c2VyUHJvcG9zYWxWb3RlS2V5AggIBQFpBmNhbGxlcgVieXRlcwUCaWQFBHZvdGUJAMwIAgkBDEludGVnZXJFbnRyeQIJARh1c2VyUHJvcG9zYWxWb3RlUG93ZXJLZXkCCAgFAWkGY2FsbGVyBWJ5dGVzBQJpZAkBFmJhbGFuY2VSZXB1dGF0aW9uQXNzZXQBCAgFAWkGY2FsbGVyBWJ5dGVzBQNuaWwJAMwIAgkBDEludGVnZXJFbnRyeQIJARxwcm9wb3NhbENvdW50Vm90ZXNBZ2FpbnN0S2V5AQUCaWQJAGQCCQERY291bnRWb3Rlc0FnYWluc3QBBQJpZAkBFmJhbGFuY2VSZXB1dGF0aW9uQXNzZXQBCAgFAWkGY2FsbGVyBWJ5dGVzCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQESdW5sb2NrVGltZXN0YW1wS2V5AQgIBQFpBmNhbGxlcgVieXRlcwUKdW5sb2NrVGltZQkAzAgCCQEMQm9vbGVhbkVudHJ5AgkBE3VzZXJQcm9wb3NhbFZvdGVLZXkCCAgFAWkGY2FsbGVyBWJ5dGVzBQJpZAUEdm90ZQkAzAgCCQEMSW50ZWdlckVudHJ5AgkBGHVzZXJQcm9wb3NhbFZvdGVQb3dlcktleQIICAUBaQZjYWxsZXIFYnl0ZXMFAmlkCQEWYmFsYW5jZVJlcHV0YXRpb25Bc3NldAEICAUBaQZjYWxsZXIFYnl0ZXMFA25pbAkAAgECEHByb3Bvc2FsTm90QWxpdmUBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V54Dd+WQ==", "height": 2760748, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 3b6YjoVMye43yA3vMbLB12odXsBhdWNVAD7fze31aWNR Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "__"
5+
6+let b = base58'88Tkdpqchhiqc9tNNG3SWQ2gfhZB4rBJKhMNS5Xmxhqw'
7+
8+let c = ((((1000 * 60) * 60) * 24) * 3)
9+
10+func d (e) = makeString(["ut", toBase58String(e)], a)
11+
12+
13+func f () = "cp"
14+
15+
16+func g (h) = makeString(["pti", toString(h)], a)
17+
18+
19+func i (h) = makeString(["pte", toString(h)], a)
20+
21+
22+func j (h) = makeString(["ptc", toString(h)], a)
23+
24+
25+func k (h) = makeString(["pcvf", toString(h)], a)
26+
27+
28+func l (h) = makeString(["pcva", toString(h)], a)
29+
30+
31+func m (e,h) = makeString(["upv", toString(h), toBase58String(e)], a)
32+
33+
34+func n (e,h) = makeString(["upvp", toString(h), toBase58String(e)], a)
35+
36+
37+func o (p) = if ((size(p.payments) == 1))
38+ then if ((p.payments[0].assetId == b))
39+ then true
40+ else throw("only reputation assets")
41+ else throw("only 1 payment")
42+
43+
44+func q (e) = {
45+ let r = getInteger(this, d(e))
46+ if ($isInstanceOf(r, "Int"))
47+ then {
48+ let s = r
49+ s
50+ }
51+ else 0
52+ }
53+
54+
55+func t () = {
56+ let r = getInteger(this, f())
57+ if ($isInstanceOf(r, "Int"))
58+ then {
59+ let s = r
60+ s
61+ }
62+ else 0
63+ }
64+
65+
66+func u (h) = {
67+ let r = getInteger(this, k(h))
68+ if ($isInstanceOf(r, "Int"))
69+ then {
70+ let s = r
71+ s
72+ }
73+ else 0
74+ }
75+
76+
77+func v (h) = {
78+ let r = getInteger(this, l(h))
79+ if ($isInstanceOf(r, "Int"))
80+ then {
81+ let s = r
82+ s
83+ }
84+ else 0
85+ }
86+
87+
88+func w (e,h) = {
89+ let r = getInteger(this, n(e, h))
90+ if ($isInstanceOf(r, "Int"))
91+ then {
92+ let s = r
93+ s
94+ }
95+ else 0
96+ }
97+
98+
99+func x (e) = {
100+ let r = getInteger(this, toBase58String(e))
101+ if ($isInstanceOf(r, "Int"))
102+ then {
103+ let s = r
104+ s
105+ }
106+ else 0
107+ }
108+
109+
110+func y (h) = {
111+ let r = getInteger(this, j(h))
112+ if ($isInstanceOf(r, "Int"))
113+ then {
114+ let s = r
115+ s
116+ }
117+ else throw("proposal not created")
118+ }
119+
120+
121+func z (h) = if (if ((t() > h))
122+ then ((y(h) + c) > lastBlock.timestamp)
123+ else false)
124+ then true
125+ else throw("proposalNotAlive")
126+
127+
128+@Callable(p)
129+func deposit () = {
130+ let A = [o(p)]
131+ if ((A == A))
132+ then {
133+ let B = toBase58String(p.caller.bytes)
134+ let C = x(p.caller.bytes)
135+ let D = (C + p.payments[0].amount)
136+[IntegerEntry(B, D)]
137+ }
138+ else throw("onlyReputationAsset")
139+ }
140+
141+
142+
143+@Callable(p)
144+func withdraw (E) = {
145+ let B = toBase58String(p.caller.bytes)
146+ let C = {
147+ let r = getInteger(this, B)
148+ if ($isInstanceOf(r, "Int"))
149+ then {
150+ let s = r
151+ s
152+ }
153+ else 0
154+ }
155+ let D = (C - E)
156+ if ((0 > E))
157+ then throw("Can't withdraw negative amount")
158+ else if ((q(p.caller.bytes) > lastBlock.timestamp))
159+ then throw("Locked")
160+ else if ((0 > D))
161+ then throw("Not enough balance")
162+ else [IntegerEntry(B, D), ScriptTransfer(p.caller, E, b)]
163+ }
164+
165+
166+
167+@Callable(p)
168+func createProposal (F,G) = {
169+ let H = t()
170+[StringEntry(g(H), F), StringEntry(i(H), G), IntegerEntry(j(H), lastBlock.timestamp), IntegerEntry(f(), (H + 1))]
171+ }
172+
173+
174+
175+@Callable(p)
176+func vote (h,I) = if (z(h))
177+ then {
178+ let J = max([(y(h) + c), q(p.caller.bytes)])
179+ let K = {
180+ let r = getBoolean(this, m(p.caller.bytes, h))
181+ if ($isInstanceOf(r, "Boolean"))
182+ then {
183+ let s = r
184+ if (s)
185+ then IntegerEntry(k(h), (u(h) - w(p.caller.bytes, h)))
186+ else IntegerEntry(l(h), (u(h) - w(p.caller.bytes, h)))
187+ }
188+ else unit
189+ }
190+ if ((I == true))
191+ then [IntegerEntry(k(h), (u(h) + x(p.caller.bytes))), IntegerEntry(d(p.caller.bytes), J), BooleanEntry(m(p.caller.bytes, h), I), IntegerEntry(n(p.caller.bytes, h), x(p.caller.bytes))]
192+ else [IntegerEntry(l(h), (v(h) + x(p.caller.bytes))), IntegerEntry(d(p.caller.bytes), J), BooleanEntry(m(p.caller.bytes, h), I), IntegerEntry(n(p.caller.bytes, h), x(p.caller.bytes))]
193+ }
194+ else throw("proposalNotAlive")
195+
196+
197+@Verifier(L)
198+func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey)
199+

github/deemru/w8io/026f985 
19.49 ms