tx · HL1JWwebVDzowEywmMAPjvXLQpZqBUZH5nbHTPKpCtbN

3N1PfpVubU6fVmRVRGFNArEvahccMSUDRn7:  -0.01200000 Waves

2022.07.08 14:27 [2130665] smart account 3N1PfpVubU6fVmRVRGFNArEvahccMSUDRn7 > SELF 0.00000000 Waves

{ "type": 13, "id": "HL1JWwebVDzowEywmMAPjvXLQpZqBUZH5nbHTPKpCtbN", "fee": 1200000, "feeAssetId": null, "timestamp": 1657279696550, "version": 2, "chainId": 84, "sender": "3N1PfpVubU6fVmRVRGFNArEvahccMSUDRn7", "senderPublicKey": "FNbeUwB5m7fPoMsYP71MfhN7orLRD9v3RhP3HeYjw92n", "proofs": [ "3BTSYTh7bKp6vtsC2tK6czckumJ1NbKNm9n9ovnTcF3WsshwzE4dRDcuXDSM5cC4VBZmhurkNDcAWhHc4kX7yQ8G" ], "script": "base64:AAIFAAAAAAAAACUIAhIDCgEIEgUKAwgIARIDCgEIEgASBAoCCAESAwoBCBIDCgEIAAAAGAAAAAAHdG9rZW5JZAEAAAAFZP9n63sAAAAACm11bHRpcGxpZXIAAAAAAAAAAAoAAAAAD2Ftb3VudEdldFRva2VucwAAAAAAAA9CQAAAAAAJc2VwYXJhdG9yAgAAAAFfAQAAAA9nZXRXaGl0ZUxpc3RLZXkAAAABAAAABGFkZHIJAAS5AAAAAgkABEwAAAACAgAAAAJ3bAkABEwAAAACBQAAAARhZGRyBQAAAANuaWwFAAAACXNlcGFyYXRvcgEAAAARZ2V0V2hpdGVMaXN0VmFsdWUAAAABAAAABGFkZHIJAQAAABFAZXh0ck5hdGl2ZSgxMDUxKQAAAAIFAAAABHRoaXMJAQAAAA9nZXRXaGl0ZUxpc3RLZXkAAAABBQAAAARhZGRyAQAAAA9nZXRCbGFja0xpc3RLZXkAAAABAAAABGFkZHIJAAS5AAAAAgkABEwAAAACAgAAAAJibAkABEwAAAACBQAAAARhZGRyBQAAAANuaWwFAAAACXNlcGFyYXRvcgEAAAARZ2V0QmxhY2tMaXN0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AAAA5nZXRJdGVtU29sZEtleQAAAAEFAAAABml0ZW1JZAkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAA25pbAkAAAIAAAABAgAAABVXcm9uZyBwYXltZW50IGFzc2V0SWQJAAACAAAAAQIAAAAVQ2FsbGVyIGZyb20gYmxhY2tMaXN0AAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAADZHR4BQAAAAckbWF0Y2gwAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQkABBMAAAACCAUAAAADZHR4AAAABGRhdGECAAAABWFkbWluCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAVhZG1pbgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAANtdHgFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABWFkbWluCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleVtqY/c=", "height": 2130665, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 2cNNxQgszSgRouWynfiLJex1tE67Lx9QVu5MfyDW6xuc Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = base58'CPtoken'
5+
6+let b = 10
7+
8+let c = 1000000
9+
10+let d = "_"
11+
12+func e (f) = makeString(["wl", f], d)
13+
14+
15+func g (f) = getBooleanValue(this, e(f))
16+
17+
18+func h (f) = makeString(["bl", f], d)
19+
20+
21+func i (f) = valueOrElse(getBoolean(this, h(f)), false)
22+
23+
24+func j (f) = makeString(["ticket", f], d)
25+
26+
27+func k (f) = getBinaryValue(this, j(f))
28+
29+
30+func l (m) = makeString(["item", m], d)
31+
32+
33+func n (m) = getIntegerValue(this, l(m))
34+
35+
36+func o (p) = makeString(["votingDetails", p], d)
37+
38+
39+func q (m) = makeString(["sold", "item", m], d)
40+
41+
42+func r (p) = makeString(["votingEnd", p], d)
43+
44+
45+func s (p) = getIntegerValue(this, r(p))
46+
47+
48+func t (p,u) = makeString(["votingId", p, "variant", toString(u)], d)
49+
50+
51+func v (p,u) = getIntegerValue(this, t(p, u))
52+
53+
54+func w (p,x) = makeString(["votingId", p, x], d)
55+
56+
57+func y (z) = {
58+ let A = getString(this, "admin")
59+ if (!(isDefined(A)))
60+ then throw("init first")
61+ else (addressFromPublicKey(fromBase58String(value(A))) == z)
62+ }
63+
64+
65+func B (p) = {
66+ let C = value(blockInfoByHeight(height)).timestamp
67+ let D = s(p)
68+ (C >= D)
69+ }
70+
71+
72+func E (p,F) = !(isDefined(getBoolean(this, w(p, toString(F)))))
73+
74+
75+func G (F) = i(toString(F))
76+
77+
78+func H (p,F,I) = {
79+ let J = k(toString(F))
80+ let K = value(I.assetId)
81+ if ((J == K))
82+ then {
83+ let L = (assetBalance(F, a) * b)
84+ $Tuple4(L, Burn(value(I.assetId), 1), DeleteEntry(j(toString(F))), BooleanEntry(w(p, toString(F)), true))
85+ }
86+ else throw("Wrong attachment asset")
87+ }
88+
89+
90+@Callable(M)
91+func init (N) = {
92+ let A = getString(this, "admin")
93+ if (!(isDefined(A)))
94+ then if ((M.caller == this))
95+ then [StringEntry("admin", N)]
96+ else throw("Only admin")
97+ else throw("Already inited")
98+ }
99+
100+
101+
102+@Callable(M)
103+func startVoting (p,O,P) = if (y(M.caller))
104+ then {
105+ let C = value(blockInfoByHeight(height)).timestamp
106+[StringEntry(o(p), O), IntegerEntry(r(p), (C + P)), IntegerEntry(t(p, 1), 0), IntegerEntry(t(p, 2), 0), IntegerEntry(t(p, 3), 0)]
107+ }
108+ else throw("Only admin")
109+
110+
111+
112+@Callable(M)
113+func issueNft (Q) = if (if (y(M.caller))
114+ then !(G(addressFromStringValue(Q)))
115+ else false)
116+ then {
117+ let R = j(Q)
118+ if (!(isDefined(getBinary(this, R))))
119+ then {
120+ let S = Issue("Ticket", "Multiplier for voting", 1, 0, false)
121+ let T = calculateAssetId(S)
122+[S, ScriptTransfer(addressFromStringValue(Q), 1, T), BinaryEntry(R, T)]
123+ }
124+ else throw("Already granted")
125+ }
126+ else throw("Only admin")
127+
128+
129+
130+@Callable(M)
131+func getTokens () = {
132+ let U = e(toString(M.caller))
133+ let V = g(toString(M.caller))
134+ if (!(V))
135+ then [BooleanEntry(U, true), ScriptTransfer(M.caller, c, a)]
136+ else throw("Already got")
137+ }
138+
139+
140+
141+@Callable(M)
142+func vote (p,u) = if (!(B(p)))
143+ then if (E(p, M.caller))
144+ then {
145+ let W = t(p, u)
146+ let X = v(p, u)
147+ let Y = h(toString(M.caller))
148+ if ((size(M.payments) != 1))
149+ then {
150+ let L = assetBalance(M.caller, a)
151+[BooleanEntry(Y, false), BooleanEntry(w(p, toString(M.caller)), true), IntegerEntry(W, (X + L))]
152+ }
153+ else {
154+ let Z = H(p, M.caller, M.payments[0])
155+ let aa = Z._1
156+ let ab = Z._2
157+ let ac = Z._3
158+ let ad = Z._4
159+[ab, ac, ad, BooleanEntry(Y, false), IntegerEntry(W, (X + aa))]
160+ }
161+ }
162+ else throw("Invalid voter")
163+ else throw("Voting is ended")
164+
165+
166+
167+@Callable(M)
168+func joinProgram (ae) = {
169+ let af = g(ae)
170+ if (if (af)
171+ then !(G(M.caller))
172+ else false)
173+ then {
174+ let U = e(toString(M.caller))
175+ let ag = e(ae)
176+ let ah = getBoolean(this, U)
177+ if (!(isDefined(ah)))
178+ then [BooleanEntry(U, true), BooleanEntry(ag, false), ScriptTransfer(M.caller, c, a)]
179+ else throw("Already in program")
180+ }
181+ else throw("Wrong patron or caller from blackList")
182+ }
183+
184+
185+
186+@Callable(M)
187+func buyItem (m) = if (!(G(M.caller)))
188+ then {
189+ let ai = M.payments[0]
190+ let aj = ai.amount
191+ let ak = n(m)
192+ if (if ((value(ai.assetId) == a))
193+ then (ak == aj)
194+ else false)
195+ then [Burn(a, aj), StringEntry(q(m), toString(M.caller))]
196+ else throw("Wrong payment assetId")
197+ }
198+ else throw("Caller from blackList")
199+
200+
201+@Verifier(al)
202+func am () = {
203+ let an = al
204+ if ($isInstanceOf(an, "DataTransaction"))
205+ then {
206+ let ao = an
207+ if (!(isDefined(getString(ao.data, "admin"))))
208+ then sigVerify(al.bodyBytes, al.proofs[0], fromBase58String(getStringValue(this, "admin")))
209+ else false
210+ }
211+ else if ($isInstanceOf(an, "MassTransferTransaction"))
212+ then {
213+ let ap = an
214+ sigVerify(al.bodyBytes, al.proofs[0], fromBase58String(getStringValue(this, "admin")))
215+ }
216+ else sigVerify(al.bodyBytes, al.proofs[0], al.senderPublicKey)
217+ }
218+

github/deemru/w8io/026f985 
25.91 ms