tx · 2uYSJzBE6rbMPYuJbfk18kZddNyVEcCPvsshNocgTZao

3Mr6BddWEDfzKwNabpYbyd8Qos8LGEAAUvi:  -0.01000000 Waves

2021.03.30 15:43 [1460513] smart account 3Mr6BddWEDfzKwNabpYbyd8Qos8LGEAAUvi > SELF 0.00000000 Waves

{ "type": 13, "id": "2uYSJzBE6rbMPYuJbfk18kZddNyVEcCPvsshNocgTZao", "fee": 1000000, "feeAssetId": null, "timestamp": 1617108237704, "version": 2, "chainId": 84, "sender": "3Mr6BddWEDfzKwNabpYbyd8Qos8LGEAAUvi", "senderPublicKey": "67g8QvRPYuamqapXiuKkxSS48uG3e8k28EPFUiKCtwpv", "proofs": [ "4zAY2zwpweA3jCcJ1kwJ69PXP5xQyJJ88TQV9vtv9F6HsCK7CYkfsRKvhPzxt1Tb7xm76CiLs3waqwdjsvPSSh7J" ], "script": "base64:AAIEAAAAAAAAAA4IAhIECgIICBIECgIICAAAAAoAAAAADGFkbWluUHViS2V5MQEAAAAgugnXO4lZpNFdoP/xuzPQquE5aQ/L4r2R1jvuT16o4BMAAAAADGFkbWluUHViS2V5MgEAAAAgwpFEmbPSsLQNIqWRWL2IvKE3uwjL/92M5pTvWxYOfkAAAAAADGFkbWluUHViS2V5MwEAAAAgjh4XLnixBzv0SE56Myhgdih3/JnlkjCjIMLPqKvpDlUAAAAAEGtleVBvb2xzTGlzdE5hbWUCAAAABXBvb2xzAAAAABFrZXlQcmVmaXhQb29sTmFtZQIAAAAFcG9vbF8AAAAAEmtleVByZWZpeFBvb2xJbmRleAIAAAAGaW5kZXhfAAAAAAVwb29scwQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAABBrZXlQb29sc0xpc3ROYW1lAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAABnN0cmluZwUAAAAHJG1hdGNoMAkABLUAAAACBQAAAAZzdHJpbmcCAAAAASwEAAAAB25vdGhpbmcFAAAAByRtYXRjaDAFAAAAA25p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hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcpAno50=", "height": 1460513, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA'
5+
6+let b = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7'
7+
8+let c = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ'
9+
10+let d = "pools"
11+
12+let e = "pool_"
13+
14+let f = "index_"
15+
16+let g = {
17+ let h = getString(this, d)
18+ if ($isInstanceOf(h, "String"))
19+ then {
20+ let i = h
21+ split(i, ",")
22+ }
23+ else {
24+ let j = h
25+ nil
26+ }
27+ }
28+
29+func k (l) = if ((l.caller == this))
30+ then unit
31+ else throw("Only the Oracle itself can invoke this function")
32+
33+
34+func m (n) = {
35+ let o = valueOrElse(indexOf(n, "_"), -1)
36+ let p = valueOrElse(lastIndexOf(n, "_"), -1)
37+ let q = if (if ((o == p))
38+ then (o > 0)
39+ else false)
40+ then (o != (size(n) - 1))
41+ else false
42+ if (q)
43+ then n
44+ else throw("Pool name must consist of two asset names separated by an underscore character")
45+ }
46+
47+
48+func r (s) = toString(valueOrErrorMessage(addressFromString(s), (("Can't parse \"" + s) + "\" as address")))
49+
50+
51+@Callable(l)
52+func addPool (t,n) = valueOrElse(k(l), {
53+ let u = r(t)
54+ let v = (e + u)
55+ let w = (f + u)
56+ let x = getString(this, v)
57+ if (isDefined(x))
58+ then throw((((("Pool with address \"" + u) + "\" is already defined with name \"") + value(x)) + "\""))
59+ else [IntegerEntry(w, size(g)), StringEntry(v, m(n)), StringEntry(d, makeString((g :+ u), ","))]
60+ })
61+
62+
63+
64+@Callable(l)
65+func renamePool (t,y) = valueOrElse(k(l), {
66+ let u = r(t)
67+ let v = (e + u)
68+ let x = getString(this, v)
69+ if (isDefined(x))
70+ then [StringEntry(v, m(y))]
71+ else throw((("Pool with address \"" + u) + "\" has not yet been added"))
72+ })
73+
74+
75+@Verifier(z)
76+func A () = {
77+ let h = z
78+ if ($isInstanceOf(h, "InvokeScriptTransaction"))
79+ then {
80+ let B = h
81+ let C = if ((B.dApp == this))
82+ then containsElement(["addPool", "renamePool"], B.function)
83+ else false
84+ if ((size(B.payments) == 0))
85+ then C
86+ else false
87+ }
88+ else if (if ($isInstanceOf(h, "Order"))
89+ then true
90+ else if ($isInstanceOf(h, "DataTransaction"))
91+ then true
92+ else if ($isInstanceOf(h, "SponsorFeeTransaction"))
93+ then true
94+ else if ($isInstanceOf(h, "SetScriptTransaction"))
95+ then true
96+ else if ($isInstanceOf(h, "CreateAliasTransaction"))
97+ then true
98+ else if ($isInstanceOf(h, "LeaseCancelTransaction"))
99+ then true
100+ else if ($isInstanceOf(h, "LeaseTransaction"))
101+ then true
102+ else if ($isInstanceOf(h, "IssueTransaction"))
103+ then true
104+ else if ($isInstanceOf(h, "UpdateAssetInfoTransaction"))
105+ then true
106+ else if ($isInstanceOf(h, "InvokeScriptTransaction"))
107+ then true
108+ else if ($isInstanceOf(h, "SetAssetScriptTransaction"))
109+ then true
110+ else if ($isInstanceOf(h, "TransferTransaction"))
111+ then true
112+ else if ($isInstanceOf(h, "ExchangeTransaction"))
113+ then true
114+ else if ($isInstanceOf(h, "MassTransferTransaction"))
115+ then true
116+ else if ($isInstanceOf(h, "BurnTransaction"))
117+ then true
118+ else $isInstanceOf(h, "ReissueTransaction"))
119+ then sigVerify(z.bodyBytes, z.proofs[0], z.senderPublicKey)
120+ else throw("Match error")
121+ }
122+

github/deemru/w8io/169f3d6 
39.12 ms