tx · 8WqcH9xD83GMuNokv26xusSoRWSX7wMXCg87V5FbRysF

3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj:  -0.01400000 Waves

2019.11.07 21:50 [754895] smart account 3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj > SELF 0.00000000 Waves

{ "type": 13, "id": "8WqcH9xD83GMuNokv26xusSoRWSX7wMXCg87V5FbRysF", "fee": 1400000, "feeAssetId": null, "timestamp": 1573152637869, "version": 1, "sender": "3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj", "senderPublicKey": "J6uUrhmBcnvdu5KYxCr6uY5XoFb6bK1CdjWR8CMBst8o", "proofs": [ "4GL831j326VAxSS8iAaLagfaCDJwMFN6sDQc4GhvECL5bg6YfhWjA9ZFGwzD3yF3A59HyQhR3XoN4Qk7nZ6jfitA" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMIAQgAAAAIAAAAAAROT05FAgAAAARub25lAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQnlLZXkAAAABAAAAA2tleQQAAAADc3RyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAANzdHIBAAAACmdldEtleUl0ZW0AAAACAAAACHN1cHBsaWVyAAAABXRpdGxlCQABLAAAAAICAAAABWl0ZW1fCQACWAAAAAEJAAH3AAAAAQkAAZsAAAABCQABLAAAAAIFAAAACHN1cHBsaWVyBQAAAAV0aXRsZQEAAAASZ2V0S2V5SXRlbVN1cHBsaWVyAA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OZ2V0S2V5SXRlbURhdGEAAAABBQAAAARpdGVtBQAAAARkYXRhBQAAAANuaWwAAAAAaX+QDQ==", "chainId": 84, "height": 754895, "spentComplexity": 0 } View: original | compacted Prev: CLMg4KtgZhDPggVkiiNMSt2f9F4pWhKhA93q4H9TVNru Next: 8p5SdUPviUe5yq4xJaokLxPLdj9KobLx6X3f9eXEyiTx Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let a = "none"
5+
6+func b (c) = {
7+ let d = {
8+ let e = getInteger(this, c)
9+ if ($isInstanceOf(e, "Int"))
10+ then {
11+ let f = e
12+ f
13+ }
14+ else 0
15+ }
16+ d
17+ }
418
519
6-@Callable(a)
7-func basico (b) = ScriptResult(WriteSet([DataEntry("idade", b)]), TransferSet([ScriptTransfer(a.caller, b, unit)]))
20+func g (c) = {
21+ let h = {
22+ let e = getString(this, c)
23+ if ($isInstanceOf(e, "String"))
24+ then {
25+ let f = e
26+ f
27+ }
28+ else a
29+ }
30+ h
31+ }
32+
33+
34+func i (j,k) = ("item_" + toBase58String(sha256(toBytes((j + k)))))
35+
36+
37+func l (m) = (m + "_owner")
38+
39+
40+func n (m) = g(l(m))
41+
42+
43+func o (m) = (m + "_price")
44+
45+
46+func p (m) = (m + "_data")
47+
48+
49+@Callable(q)
50+func addItem (k,r,s) = {
51+ let t = toBase58String(q.caller.bytes)
52+ let m = i(t, k)
53+ if ((0 >= r))
54+ then throw("Valor de compra não pode ser inferior a 0")
55+ else if ((n(m) != a))
56+ then throw("O item já existe")
57+ else WriteSet([DataEntry(l(m), t), DataEntry(o(m), r), DataEntry(p(m), s)])
58+ }
859
960

github/deemru/w8io/169f3d6 
54.85 ms