tx · Hn4ct6ft3JtikTH573GJNcgPtwjzNr4cux66mMVvhsom

3NBTfJX2TCCN9os2B4JXDmxsXxLfCunkeJ7:  -0.01000000 Waves

2019.07.03 18:21 [569408] smart account 3NBTfJX2TCCN9os2B4JXDmxsXxLfCunkeJ7 > SELF 0.00000000 Waves

{ "type": 13, "id": "Hn4ct6ft3JtikTH573GJNcgPtwjzNr4cux66mMVvhsom", "fee": 1000000, "feeAssetId": null, "timestamp": 1562167299891, "version": 1, "sender": "3NBTfJX2TCCN9os2B4JXDmxsXxLfCunkeJ7", "senderPublicKey": "5ttyBBtcmv9J4Xzt6xFNZw6KHkDV8E67uQMampRBJTUw", "proofs": [ "4kcswmSYoLgfpTnhmSsjYCY4gCpkXKFmxJwL93HKswwT9BBRHCYPKo8AUKzGhEV3d2nmqW3LwwED3GBMaPyYkH5z" ], "script": "base64:AAIDAAAAAAAAAAAAAAAhAAAAAAROT05FAgAAAARub25lAAAAAAZWT1RFUlMAAAAAAAAAAAMAAAAABlFVT1JVTQAAAAAAAAAAAgAAAAAGVk9USU5HAgAAAAZ2b3RpbmcAAAAABlJFVkVBTAIAAAAGcmV2ZWFsAAAAAAhGRUFUVVJFRAIAAAAIZmVhdHVyZWQAAAAACERFTElTVEVEAgAAAAhkZWxpc3RlZAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAADbnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABQAAAANudW0BAAAAC2dldFN0ckJ5S2V5AAAAAQAAAANrZXkEAAAAA3N0cgQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQUAAAADc3R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569408, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "none"
5+
6+let b = 3
7+
8+let c = 2
9+
10+let d = "voting"
11+
12+let e = "reveal"
13+
14+let f = "featured"
15+
16+let g = "delisted"
17+
18+func h (i) = {
19+ let j = {
20+ let k = getInteger(this, i)
21+ if ($isInstanceOf(k, "Int"))
22+ then {
23+ let l = k
24+ l
25+ }
26+ else 0
27+ }
28+ j
29+ }
30+
31+
32+func m (i) = {
33+ let n = {
34+ let k = getString(this, i)
35+ if ($isInstanceOf(k, "String"))
36+ then {
37+ let l = k
38+ l
39+ }
40+ else a
41+ }
42+ n
43+ }
44+
45+
46+func o (p) = (p + "_price")
47+
48+
49+func q (p) = h(o(p))
50+
51+
52+func r (s,p) = (((p + "_") + s) + "_cnt")
53+
54+
55+func t (s,p) = h(r(s, p))
56+
57+
58+func u (v,w) = ("item_" + toBase58String(sha256(toBytes((v + w)))))
59+
60+
61+func x (p) = (p + "_data")
62+
63+
64+func y (p) = (p + "_owner")
65+
66+
67+func z (p) = m(y(p))
68+
69+
70+func A (B) = (B + "_balanace")
71+
72+
73+func C (B) = h(A(B))
74+
75+
76+func D (p,s) = (((p + "_") + s) + "_commit")
77+
78+
79+func E (p,s) = m(D(p, s))
80+
81+
82+func F (p) = (p + "_comcnt")
83+
84+
85+func G (p) = h(F(p))
86+
87+
88+func H (p,s) = (((p + "_") + s) + "_reveal")
89+
90+
91+func I (p,s) = m(H(p, s))
92+
93+
94+func J (p) = (p + "_status")
95+
96+
97+func K (p) = m(J(p))
98+
99+
100+func L (p,M) = ((p + "_res:") + M)
101+
102+
103+func N (p,M) = h(L(p, M))
104+
105+
106+func O () = extract(addressFromString("3MvxG7PEiAW4NfKByTSAXnDnawTVZ2A6433"))
107+
108+
109+let P = "blacklist"
110+
111+func Q (B) = (B + "_verifier_status")
112+
113+
114+func R (S,B) = {
115+ let n = {
116+ let k = getString(S, Q(B))
117+ if ($isInstanceOf(k, "String"))
118+ then {
119+ let l = k
120+ l
121+ }
122+ else a
123+ }
124+ n
125+ }
126+
127+
128+@Callable(T)
129+func addItem (w,U,V) = {
130+ let W = toBase58String(T.caller.bytes)
131+ let p = u(W, w)
132+ let X = R(O(), W)
133+ if ((0 >= U))
134+ then throw("purchase ammount cannnot be less than item price")
135+ else if ((z(p) != a))
136+ then throw("an item is already exist")
137+ else if ((X == P))
138+ then throw("supplier's account has been blacklisted")
139+ else WriteSet([DataEntry(y(p), W), DataEntry(o(p), U), DataEntry(x(p), V), DataEntry(Q(W), X)])
140+ }
141+
142+

github/deemru/w8io/169f3d6 
25.02 ms