tx · JQUSrNwvcpHMkBi1rwd9mRYKvJi3KS2oLTNKoJ6VLzM 3MwwmRTwTh2hpQprGouEAzmDUnjb83PtzVG: -0.01000000 Waves 2021.08.12 16:35 [1655223] smart account 3MwwmRTwTh2hpQprGouEAzmDUnjb83PtzVG > SELF 0.00000000 Waves
{ "type": 13, "id": "JQUSrNwvcpHMkBi1rwd9mRYKvJi3KS2oLTNKoJ6VLzM", "fee": 1000000, "feeAssetId": null, "timestamp": 1628775327977, "version": 2, "chainId": 84, "sender": "3MwwmRTwTh2hpQprGouEAzmDUnjb83PtzVG", "senderPublicKey": "6pJkrwfWyhZjm3LoQWRjjNVaLt5CQzqfggzXyqr7nrwA", "proofs": [ "5t6dMJZBakMrwhiYu9ZPojjEoWoTodGqY5No66PAg8uuzYv2i4QzC4fpm19bwCq9hvQu32guS4qvyU6kM9y8Umxy" ], "script": "base64:AAIFAAAAAAAAABIIAhIICgYICAgICAESBAoCCAEAAAAXAAAAAANTRVACAAAAAl9fAAAAAApQb29sQWN0aXZlAAAAAAAAAAABAAAAAA9Qb29sUHV0RGlzYWJsZWQAAAAAAAAAAAIAAAAAE1Bvb2xNYXRjaGVyRGlzYWJsZWQAAAAAAAAAAAMAAAAADFBvb2xTaHV0ZG93bgAAAAAAAAAABAAAAAASaWR4SW50ZXJuYWxBc3NldElkAAAAAAAAAAABAAAAAA9pZHhSZXN1dEFjdGlvbnMAAAAAAAAAAAIAAAAAIGlkeElmQXNzZXRJZENhbGN1bGF0aW9uUGVyZm9ybWVkAAAAAAAAAAADAQAAABZrZXlOZXh0SW50ZXJuYWxBc3NldElkAAAAAAIAAAAXJXNfX25leHRJbnRlcm5hbEFzc2V0SWQBAAAAEWtleVBvb2xTY3JpcHRIYXNoAAAAAAIAAAAWJXMlc19fcG9vbF9fc2NyaXB0SGFzaAEAAAAfa2V5TWFwcGluZ3NJbnRlcm5hbDJiYXNlQXNzZXRJZAAAAAEAAAARaW50ZXJuYWxCYXNlQXNzZXQJAAEsAAAAA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AAEnBlcm1pc3Npb25zIGRlbmllZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXldMQtc", "height": 1655223, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "__" | |
5 | + | ||
6 | + | let b = 1 | |
7 | + | ||
8 | + | let c = 2 | |
9 | + | ||
10 | + | let d = 3 | |
11 | + | ||
12 | + | let e = 4 | |
13 | + | ||
14 | + | let f = 1 | |
15 | + | ||
16 | + | let g = 2 | |
17 | + | ||
18 | + | let h = 3 | |
19 | + | ||
20 | + | func i () = "%s__nextInternalAssetId" | |
21 | + | ||
22 | + | ||
23 | + | func j () = "%s%s__pool__scriptHash" | |
24 | + | ||
25 | + | ||
26 | + | func k (l) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(l)) | |
27 | + | ||
28 | + | ||
29 | + | func m (n) = ("%s%s%s__mappings__baseAsset2internalId__" + n) | |
30 | + | ||
31 | + | ||
32 | + | func o (p,q) = (((("%d%d%s__" + p) + "__") + q) + "__config") | |
33 | + | ||
34 | + | ||
35 | + | func r (s) = (("%s%s%s__" + s) + "__mappings__lpAsset2Pool") | |
36 | + | ||
37 | + | ||
38 | + | func t (u,v) = (((("%d%d%s%s__" + u) + "__") + v) + "__mappings__lpAsset2Pool") | |
39 | + | ||
40 | + | ||
41 | + | func w (x) = (("%s%s%s__" + x) + "__mappings__poolContract2LpAsset") | |
42 | + | ||
43 | + | ||
44 | + | func y (u,v) = (((("%d%d%s%s__" + toString(u)) + "__") + toString(v)) + "__mappings__lpAsset2PoolContract") | |
45 | + | ||
46 | + | ||
47 | + | func z (A) = valueOrErrorMessage(getString(this, A), ("No data for this.key=" + A)) | |
48 | + | ||
49 | + | ||
50 | + | func B (A) = valueOrErrorMessage(getBoolean(this, A), ("No data for this.key=" + A)) | |
51 | + | ||
52 | + | ||
53 | + | func C (A) = valueOrErrorMessage(getInteger(this, A), ("No data for this.key=" + A)) | |
54 | + | ||
55 | + | ||
56 | + | func D (E,F,G,H,I,J,K,L,M,N) = makeString(["%s%d%s%s%s%d%d%d%d%d%d", E, F, G, H, I, toString(J), toString(K), toString(L), toString(M), toString(N)], a) | |
57 | + | ||
58 | + | ||
59 | + | func O (P,Q) = makeString(["%d%d", toString(P), toString(Q)], a) | |
60 | + | ||
61 | + | ||
62 | + | func R (S,T) = { | |
63 | + | let U = valueOrElse(getInteger(this, m(S)), 0) | |
64 | + | let V = valueOrElse(getInteger(this, i()), 0) | |
65 | + | let W = if ((U == 0)) | |
66 | + | then { | |
67 | + | let X = (V + T) | |
68 | + | $Tuple3(X, [IntegerEntry(i(), X), IntegerEntry(m(S), X), StringEntry(k(X), S)], true) | |
69 | + | } | |
70 | + | else $Tuple3(U, nil, false) | |
71 | + | W | |
72 | + | } | |
73 | + | ||
74 | + | ||
75 | + | @Callable(Y) | |
76 | + | func activateNewPool (E,H,I,Z,aa,N) = if ((Y.caller != this)) | |
77 | + | then throw("permissions denied") | |
78 | + | else if (isDefined(getString(w(E)))) | |
79 | + | then throw((("Pool address " + E) + " already registered.")) | |
80 | + | else { | |
81 | + | let ab = R(H, 1) | |
82 | + | let ac = ab._1 | |
83 | + | let ad = R(I, if (ab._3) | |
84 | + | then 2 | |
85 | + | else 1) | |
86 | + | let ae = ad._1 | |
87 | + | let af = valueOrErrorMessage(scriptHash(addressFromStringValue(E)), ("No script has been found on pool account " + E)) | |
88 | + | let ag = getBinaryValue(j()) | |
89 | + | let ah = getString(this, o(toString(ac), toString(ae))) | |
90 | + | if (isDefined(ah)) | |
91 | + | then throw((((("Pool " + H) + "/") + I) + " has already been activated.")) | |
92 | + | else { | |
93 | + | let ai = value(getString(this, o(toString(ac), toString(ae)))) | |
94 | + | let aj = invoke(addressFromStringValue(E), "activate", [H, I, Z, aa, N], nil) | |
95 | + | if ((aj == aj)) | |
96 | + | then { | |
97 | + | let ak = valueOrElse(aj, "") | |
98 | + | if ((ak == "")) | |
99 | + | then throw("Failure during dapp2dapp call activate on Pool.") | |
100 | + | else { | |
101 | + | let al = if ((H == "")) | |
102 | + | then 8 | |
103 | + | else value(assetInfo(fromBase58String(H))).decimals | |
104 | + | let am = value(assetInfo(fromBase58String(I))).decimals | |
105 | + | $Tuple2(((ab._2 ++ ad._2) ++ [StringEntry(o(toString(ac), toString(ae)), D(E, toString(b), ak, H, I, al, am, ac, ae, N)), StringEntry(r(ak), O(ac, ae)), StringEntry(t(toString(ac), toString(ae)), ("%s__" + ak)), StringEntry(w(E), O(ac, ae)), StringEntry(y(ac, ae), ("%s__" + E))]), "success") | |
106 | + | } | |
107 | + | } | |
108 | + | else throw("Strict value is not equal to itself.") | |
109 | + | } | |
110 | + | } | |
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | @Callable(Y) | |
115 | + | func managePool (an,ao) = if ((Y.caller != this)) | |
116 | + | then throw("permissions denied") | |
117 | + | else nil | |
118 | + | ||
119 | + | ||
120 | + | @Verifier(ap) | |
121 | + | func aq () = sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey) | |
122 | + |
github/deemru/w8io/169f3d6 53.68 ms ◑