tx · JAazgqjEsJD1hFmhQLmzHAyfdA5Fhd5nHZiY1gEt6kvR

3N73tkvUNfXBEp9oQNeVHBuTAp9LGy47QdV:  -0.01400000 Waves

2019.07.03 14:29 [569171] smart account 3N73tkvUNfXBEp9oQNeVHBuTAp9LGy47QdV > SELF 0.00000000 Waves

{ "type": 13, "id": "JAazgqjEsJD1hFmhQLmzHAyfdA5Fhd5nHZiY1gEt6kvR", "fee": 1400000, "feeAssetId": null, "timestamp": 1562153345572, "version": 1, "sender": "3N73tkvUNfXBEp9oQNeVHBuTAp9LGy47QdV", "senderPublicKey": "BcueYnpwLoucxCCHwQ3wEjKzQCEFrouAbAzpYgJ4pALk", "proofs": [ "3CugLXQPUWSF4qXCDLUJCMLB9yWo6ezuRG85T6ktP2mefPZWGa2ta44RFSPbFn3AGVWwfZnSvQ5hD8xuWKLw3pJ9" ], "script": "base64:AAIDAAAAAAAAAAAAAAARAAAAAAROT05FAgAAAARub25lAAAAAAtCTEFDS0xJU1RFRAIAAAAJYmxhY2tsaXN0AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQnlLZXkAAAABAAAAA2tleQQAAAADc3RyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAANzdHIBAAAAD2dldEtleUl0ZW1QcmljZQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAAAZfcHJpY2UBAAAAEWdldFZhbHVlSXRlbVByaWNlAAAAAQAAAARpdGVtCQEAAAAOZ2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cHBsaWVyAAAAAQUAAAAEaXRlbQUAAAAETk9ORQkAAAIAAAABAgAAABhhbiBpdGVtIGlzIGFscmVhZHkgZXhpc3QDCQAAAAAAAAIFAAAAEXN1cHBsaWVyd2hpdGVsaXN0BQAAAAtCTEFDS0xJU1RFRAkAAAIAAAABAgAAACdzdXBwbGllcidzIGFjY291bnQgaGFzIGJlZW4gYmxhY2tsaXN0ZWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAABJnZXRLZXlJdGVtU3VwcGxpZXIAAAABBQAAAARpdGVtBQAAAA9zdXBwbGllckFkZHJlc3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAA9nZXRLZXlJdGVtUHJpY2UAAAABBQAAAARpdGVtBQAAAAVwcmljZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAADmdldEtleUl0ZW1EYXRhAAAAAQUAAAAEaXRlbQUAAAAEZGF0YQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAHGdldEV4dEtleUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAA9zdXBwbGllckFkZHJlc3MFAAAAEXN1cHBsaWVyd2hpdGVsaXN0BQAAAANuaWwAAAAAtuilxw==", "chainId": 84, "height": 569171, "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 = "blacklist"
7+
8+func c (d) = {
9+ let e = {
10+ let f = getInteger(this, d)
11+ if ($isInstanceOf(f, "Int"))
12+ then {
13+ let g = f
14+ g
15+ }
16+ else 0
17+ }
18+ e
19+ }
20+
21+
22+func h (d) = {
23+ let i = {
24+ let f = getString(this, d)
25+ if ($isInstanceOf(f, "String"))
26+ then {
27+ let g = f
28+ g
29+ }
30+ else a
31+ }
32+ i
33+ }
34+
35+
36+func j (k) = (k + "_price")
37+
38+
39+func l (k) = c(j(k))
40+
41+
42+func m (n,k) = (((k + "_") + n) + "_cnt")
43+
44+
45+func o (n,k) = c(m(n, k))
46+
47+
48+func p (q,r) = ("item_" + toBase58String(sha256(toBytes((q + r)))))
49+
50+
51+func s (k) = (k + "_data")
52+
53+
54+func t (k) = (k + "_owner")
55+
56+
57+func u (k) = h(t(k))
58+
59+
60+func v (w) = (w + "_balance")
61+
62+
63+func x (w) = c(v(w))
64+
65+
66+func y () = extract(addressFromString("3N4sHbDeS1vHdESb7XPSXJeiUHgNZwMXZYo"))
67+
68+
69+func z (w) = (w + "_verifier_status")
70+
71+
72+func A (B,w) = {
73+ let i = {
74+ let f = getString(B, z(w))
75+ if ($isInstanceOf(f, "String"))
76+ then {
77+ let g = f
78+ g
79+ }
80+ else a
81+ }
82+ i
83+ }
84+
85+
86+@Callable(C)
87+func addItem (r,D,E) = {
88+ let F = toBase58String(C.caller.bytes)
89+ let k = p(F, r)
90+ let G = A(y(), F)
91+ if ((0 >= D))
92+ then throw("purchase amount cannot be less than item price")
93+ else if ((u(k) != a))
94+ then throw("an item is already exist")
95+ else if ((G == b))
96+ then throw("supplier's account has been blacklisted")
97+ else WriteSet([DataEntry(t(k), F), DataEntry(j(k), D), DataEntry(s(k), E), DataEntry(z(F), G)])
98+ }
99+
100+

github/deemru/w8io/169f3d6 
23.23 ms