tx · FwNhKqUi76beVEZHVSPZKzBT7QSGDorU4Kctj2KpN6oR

3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg:  -0.01000000 Waves

2021.08.24 00:54 [1671542] smart account 3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg > SELF 0.00000000 Waves

{ "type": 13, "id": "FwNhKqUi76beVEZHVSPZKzBT7QSGDorU4Kctj2KpN6oR", "fee": 1000000, "feeAssetId": null, "timestamp": 1629755671187, "version": 2, "chainId": 84, "sender": "3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg", "senderPublicKey": "4adRtnahFnRGxzn67XppfF97pKLyUFPtNw5aCZ4NM9UV", "proofs": [ "652KFC7nqzH9FVC9bmaS8A6EEyrszN7JcRvVcw2cZFjCNsytiKWMouvLwB2yNt6MZDyLxNBN8KZb9KkgehzLztPc" ], "script": "base64:AAIFAAAAAAAAABgIAhIECgIIGBIDCgEIEgMKAQgSBAoCCAQAAAAHAAAAAAZjb25maWcJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAZjb25maWcCAAAAF05vIGtleSBjb25maWcgd2FzIGZvdW5kAAAAAAVhZG1pbgkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABmNvbmZpZwIAAAAFYWRtaW4CAAAAFk5vIGtleSBhZG1pbiB3YXMgZm91bmQAAAAABXBvb2xzCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwIAAAAFcG9vbHMCAAAAFk5vIGtleSBhZG1pbiB3YXMgZm91bmQBAAAAB2lzQWRtaW4AAAABAAAADWNhbGxlckFkZHJlc3MDCQAAAAAAAAIFAAAADWNhbGxlckFkZHJlc3MJAAJZAAAAAQUAAAAFYWRtaW4GBwEAAAAJY2hlY2tQb29sAAAAAQAAAAdwb29sQW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AAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXQFAAAAByRtYXRjaDAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAF0CQACWQAAAAEFAAAAB3Rva2VuSWQFAAAAA25pbAkAAAIAAAABAgAAABhJbmNvcnJlY3QgaW52b2tlIHJlc3VsdCEJAAACAAAAAQIAAAAUTm8gcGF5bWVudCBhdHRhY2hlZCEJAAACAAAAAQIAAAAXUG9vbCBhZGRyZXNzIG5vdCBmb3VuZCEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleUyihSk=", "height": 1671542, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: CejJNuSNQadgkTEHPMQ3NhKkv5tXQ6xqSaYtAjNHcrbT Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = valueOrErrorMessage(getString(this, "config"), "No key config was found")
5+
6+let b = valueOrErrorMessage(getString(addressFromStringValue(a), "admin"), "No key admin was found")
7+
8+let c = valueOrErrorMessage(getString(this, "pools"), "No key admin was found")
9+
10+func d (e) = if ((e == fromBase58String(b)))
11+ then true
12+ else false
13+
14+
15+func f (g) = if (contains(c, g))
16+ then true
17+ else false
18+
19+
20+func h (i,j) = StringEntry(i, j)
21+
22+
23+func k (i,l) = IntegerEntry(i, l)
24+
25+
26+@Callable(m)
27+func setup (n,c) = if (if (d(m.caller.bytes))
28+ then true
29+ else (0 >= size(b)))
30+ then [h("config", n), h("poolsStrg", makeString(c, ";"))]
31+ else throw("Address does not match with admin address!")
32+
33+
34+
35+@Callable(m)
36+func addPool (o) = if (d(m.caller.bytes))
37+ then {
38+ let p = split(c, ";")
39+ if ((containsElement(p, o) == false))
40+ then {
41+ let q = (p :+ o)
42+[h("pools", makeString(q, ";"))]
43+ }
44+ else throw("Pool already exists!")
45+ }
46+ else throw("Address does not match with admin address!")
47+
48+
49+
50+@Callable(m)
51+func updateConfig (n) = if (d(m.caller.bytes))
52+ then [h("config", n)]
53+ else throw("Address does not match with admin address!")
54+
55+
56+
57+@Callable(m)
58+func depositAt (o,r) = if (f(o))
59+ then if ((size(m.payments) > 0))
60+ then {
61+ let s = toBase58String(m.caller.bytes)
62+ let t = invoke(addressFromStringValue(o), "deposit", [s, r], m.payments)
63+ let u = getStringValue(addressFromStringValue(o), "dTokenId")
64+ let v = t
65+ if ($isInstanceOf(v, "Int"))
66+ then {
67+ let w = v
68+[ScriptTransfer(m.caller, w, fromBase58String(u))]
69+ }
70+ else throw("Incorrect invoke result!")
71+ }
72+ else throw("No payment attached!")
73+ else throw("Pool address not found!")
74+
75+
76+@Verifier(x)
77+func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
78+

github/deemru/w8io/169f3d6 
17.02 ms