tx · EBEDX1aWLVsTzv1S45YfMHBHU6J4vu6c19qPzYCzx6to

3Mx6Fhgx2b7Vrcg5cPwmcGx2UTrCsGy16hX:  -0.01000000 Waves

2019.08.21 11:25 [640644] smart account 3Mx6Fhgx2b7Vrcg5cPwmcGx2UTrCsGy16hX > SELF 0.00000000 Waves

{ "type": 13, "id": "EBEDX1aWLVsTzv1S45YfMHBHU6J4vu6c19qPzYCzx6to", "fee": 1000000, "feeAssetId": null, "timestamp": 1566375780859, "version": 1, "sender": "3Mx6Fhgx2b7Vrcg5cPwmcGx2UTrCsGy16hX", "senderPublicKey": "rbQBcP925Nu3mB58D4Zw36LLDks2LgrcbshyaiSJSHy", "proofs": [ "3DNDDJze9P1U3685F4L48R9g3j5uPD3LQJPHcrC6KDcJsqSbjqRVEsBTCHMrQzYhniYgMDDXhhSTXEmqPM7FdevQ" ], "script": "base64:AAIDAAAAAAAAAAAAAAAIAAAAAAROT05FAgAAAARub25lAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFuBQAAAAckbWF0Y2gwBQAAAAFuAAAAAAAAAAAAAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzBQAAAAROT05FAQAAAApnZXRLZXlJdGVtAAAAAgAAAAhzdXBwbGllcgAAAAV0aXRsZQkAASwAAAACAgAAAAVpdGVtXwkAAlgAAAABCQAB9wAAAAEJAAGbAAAAAQkAASwAAAACBQAAAAhzdXBwbGllcgUAAAAFdGl0bGUBAAAAEmdldEtleUl0ZW1TdXBwbGllcgAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpd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AAARpdGVtBQAAAARkYXRhBQAAAANuaWwAAAAAtsHUjQ==", "chainId": 84, "height": 640644, "spentComplexity": 0 } View: original | compacted Prev: none Next: C4Y9dZCGzspCU3mkj5WL2GPupYGkTG6ggYAZU6aT3h4k Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "none"
5+
6+func b (c) = {
7+ let d = getInteger(this, c)
8+ if ($isInstanceOf(d, "Int"))
9+ then {
10+ let e = d
11+ e
12+ }
13+ else 0
14+ }
15+
16+
17+func f (c) = {
18+ let d = getString(this, c)
19+ if ($isInstanceOf(d, "String"))
20+ then {
21+ let g = d
22+ g
23+ }
24+ else a
25+ }
26+
27+
28+func h (i,j) = ("item_" + toBase58String(sha256(toBytes((i + j)))))
29+
30+
31+func k (l) = (l + "_owner")
32+
33+
34+func m (l) = (l + "_price")
35+
36+
37+func n (l) = (l + "_data")
38+
39+
40+func o (l) = f(k(l))
41+
42+
43+@Callable(p)
44+func addItem (j,q,r) = {
45+ let s = toBase58String(p.caller.bytes)
46+ let l = h(s, j)
47+ if ((0 >= q))
48+ then throw("purchase amount cannot be ess than item price")
49+ else if ((o(l) != a))
50+ then throw("an item already exists")
51+ else WriteSet([DataEntry(k(l), s), DataEntry(m(l), q), DataEntry(n(l), r)])
52+ }
53+
54+

github/deemru/w8io/169f3d6 
36.91 ms