tx · CPg5SDyvgavNYjfiuHqFe5673zTJGLPKJCE61HBrWc4S 3NBPbSmScU4UfqVrnYc79wvxjtivfmgnSgG: -0.01000000 Waves 2021.08.24 18:04 [1672561] smart account 3NBPbSmScU4UfqVrnYc79wvxjtivfmgnSgG > SELF 0.00000000 Waves
{ "type": 13, "id": "CPg5SDyvgavNYjfiuHqFe5673zTJGLPKJCE61HBrWc4S", "fee": 1000000, "feeAssetId": null, "timestamp": 1629817520015, "version": 2, "chainId": 84, "sender": "3NBPbSmScU4UfqVrnYc79wvxjtivfmgnSgG", "senderPublicKey": "9fAgVgqqBXvhU4AHgH1dUeXAVzGPhHV7iiKYkW2RUth2", "proofs": [ "beM395Nox4t3tqW4DFV8Nv4tv5Ae6xvDMQ8AK6RC9WXH3dKFG89rr2QXcf8kHP6ZWoLceyWsxF74F545G3bwDQS" ], "script": "base64:AAIFAAAAAAAAABMIAhIJCgcICAgICAEBEgQKAggBAAAAGgAAAAADU0VQAgAAAAJfXwAAAAAKUG9vbEFjdGl2ZQAAAAAAAAAAAQAAAAAPUG9vbFB1dERpc2FibGVkAAAAAAAAAAACAAAAABNQb29sTWF0Y2hlckRpc2FibGVkAAAAAAAAAAADAAAAAAxQb29sU2h1dGRvd24AAAAAAAAAAAQAAAAAEmlkeEludGVybmFsQXNzZXRJZAAAAAAAAAAAAQAAAAAPaWR4UmVzdXRBY3Rpb25zAAAAAAAAAAACAAAAACBpZHhJZkFzc2V0SWRDYWxjdWxhdGlvblBlcmZvcm1lZAAAAAAAAAAAAwEAAAATa2V5TWF0Y2hlclB1YmxpY0tleQAAAAACAAAAFCVzX19tYXRjaGVyUHVibGljS2V5AQAAABFrZXlQb29sU2NyaXB0SGFzaAAAAAACAAAAFiVzJXNfX3Bvb2xfX3NjcmlwdEhhc2gBAAAAEGtleVByaWNlRGVjaW1hbHMAAAAAAgAAABElc19fcHJpY2VEZWNpbWFscwEAAAATa2V5QWxsUG9vbHNTaHV0ZG93bgAAAAACAAAADCVzX19zaH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zZXRJZAkAAaQAAAABBQAAABRpbnRlcm5hbFByaWNlQXNzZXRJZAkAASwAAAACAgAAAAQlc19fBQAAAAxscEFzc2V0SWRTdHIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAKWtleU1hcHBpbmdQb29sQ29udHJhY3RBZGRyZXNzVG9Qb29sQXNzZXRzAAAAAQUAAAALcG9vbEFkZHJlc3MJAQAAABVkYXRhTWFwcGluZ1Bvb2xBc3NldHMAAAACBQAAABVpbnRlcm5hbEFtb3VudEFzc2V0SWQFAAAAFGludGVybmFsUHJpY2VBc3NldElkBQAAAANuaWwCAAAAB3N1Y2Nlc3MJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAWkBAAAACm1hbmFnZVBvb2wAAAACAAAAEWxwQ29udHJhY3RBZGRyZXNzAAAACW5ld1N0YXR1cwMJAQAAAAIhPQAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAEdGhpcwkAAAIAAAABAgAAABJwZXJtaXNzaW9ucyBkZW5pZWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5RvabNg==", "height": 1672561, "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__matcherPublicKey" | |
21 | + | ||
22 | + | ||
23 | + | func j () = "%s%s__pool__scriptHash" | |
24 | + | ||
25 | + | ||
26 | + | func k () = "%s__priceDecimals" | |
27 | + | ||
28 | + | ||
29 | + | func l () = "%s__shutdown" | |
30 | + | ||
31 | + | ||
32 | + | func m () = "%s__nextInternalAssetId" | |
33 | + | ||
34 | + | ||
35 | + | func n (o) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(o)) | |
36 | + | ||
37 | + | ||
38 | + | func p (q) = ("%s%s%s__mappings__baseAsset2internalId__" + q) | |
39 | + | ||
40 | + | ||
41 | + | func r (s,t) = (((("%d%d%s__" + s) + "__") + t) + "__config") | |
42 | + | ||
43 | + | ||
44 | + | func u (v) = (("%s%s%s__" + v) + "__mappings__lpAsset2Pool") | |
45 | + | ||
46 | + | ||
47 | + | func w (x,y) = (((("%d%d%s%s__" + x) + "__") + y) + "__mappings__PoolAssets2LpAsset") | |
48 | + | ||
49 | + | ||
50 | + | func z (A) = (("%s%s%s__" + A) + "__mappings__poolContract2LpAsset") | |
51 | + | ||
52 | + | ||
53 | + | func B (x,y) = (((("%d%d%s%s__" + toString(x)) + "__") + toString(y)) + "__mappings__lpAsset2PoolContract") | |
54 | + | ||
55 | + | ||
56 | + | func C (D) = valueOrErrorMessage(getString(this, D), ("No data for this.key=" + D)) | |
57 | + | ||
58 | + | ||
59 | + | func E (D) = valueOrErrorMessage(getBoolean(this, D), ("No data for this.key=" + D)) | |
60 | + | ||
61 | + | ||
62 | + | func F (D) = valueOrErrorMessage(getInteger(this, D), ("No data for this.key=" + D)) | |
63 | + | ||
64 | + | ||
65 | + | func G (H,I,J,K,L,M,N,O,P,Q,R,S,T) = makeString(["%s%d%s%s%s%d%d%d%d%d%d%s", H, I, J, K, L, toString(M), toString(N), toString(O), toString(P), toString(Q), toString(R), S, toString(T)], a) | |
66 | + | ||
67 | + | ||
68 | + | func U (V,W) = makeString(["%d%d", toString(V), toString(W)], a) | |
69 | + | ||
70 | + | ||
71 | + | func X (Y,Z) = { | |
72 | + | let aa = valueOrElse(getInteger(this, p(Y)), 0) | |
73 | + | let ab = valueOrElse(getInteger(this, m()), 0) | |
74 | + | let ac = if ((aa == 0)) | |
75 | + | then { | |
76 | + | let ad = (ab + Z) | |
77 | + | $Tuple3(ad, [IntegerEntry(m(), ad), IntegerEntry(p(Y), ad), StringEntry(n(ad), Y)], true) | |
78 | + | } | |
79 | + | else $Tuple3(aa, nil, false) | |
80 | + | ac | |
81 | + | } | |
82 | + | ||
83 | + | ||
84 | + | @Callable(ae) | |
85 | + | func activateNewPool (H,K,L,af,ag,Q,ah) = if ((ae.caller != this)) | |
86 | + | then throw("permissions denied") | |
87 | + | else if (isDefined(getString(z(H)))) | |
88 | + | then throw((("Pool address " + H) + " already registered.")) | |
89 | + | else { | |
90 | + | let S = valueOrErrorMessage(getString(i()), "No matcher public key injected to factory state.") | |
91 | + | let ai = X(K, 1) | |
92 | + | let aj = ai._1 | |
93 | + | let ak = X(L, if (ai._3) | |
94 | + | then 2 | |
95 | + | else 1) | |
96 | + | let al = ak._1 | |
97 | + | let am = valueOrErrorMessage(scriptHash(addressFromStringValue(H)), ("No script has been found on pool account " + H)) | |
98 | + | let an = getBinaryValue(j()) | |
99 | + | let ao = getString(this, r(toString(aj), toString(al))) | |
100 | + | if (isDefined(ao)) | |
101 | + | then throw((((("Pool " + K) + "/") + L) + " has already been activated.")) | |
102 | + | else { | |
103 | + | let ap = value(getString(this, r(toString(aj), toString(al)))) | |
104 | + | let aq = invoke(addressFromStringValue(H), "activate", [K, L, af, ag, Q], nil) | |
105 | + | if ((aq == aq)) | |
106 | + | then { | |
107 | + | let ar = valueOrElse(aq, "") | |
108 | + | if ((ar == "")) | |
109 | + | then throw("Failure during dapp2dapp call activate on Pool.") | |
110 | + | else { | |
111 | + | let as = if ((K == "")) | |
112 | + | then 8 | |
113 | + | else value(assetInfo(fromBase58String(K))).decimals | |
114 | + | let at = value(assetInfo(fromBase58String(L))).decimals | |
115 | + | $Tuple2(((ai._2 ++ ak._2) ++ [StringEntry(r(toString(aj), toString(al)), G(H, toString(b), ar, K, L, as, at, aj, al, Q, 8, S, ah)), StringEntry(u(ar), U(aj, al)), StringEntry(w(toString(aj), toString(al)), ("%s__" + ar)), StringEntry(z(H), U(aj, al))]), "success") | |
116 | + | } | |
117 | + | } | |
118 | + | else throw("Strict value is not equal to itself.") | |
119 | + | } | |
120 | + | } | |
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | @Callable(ae) | |
125 | + | func managePool (au,av) = if ((ae.caller != this)) | |
126 | + | then throw("permissions denied") | |
127 | + | else nil | |
128 | + | ||
129 | + | ||
130 | + | @Verifier(aw) | |
131 | + | func ax () = sigVerify(aw.bodyBytes, aw.proofs[0], aw.senderPublicKey) | |
132 | + |
github/deemru/w8io/169f3d6 20.90 ms ◑