tx · FHyT84G87XCHwkuN9rtemCuVBhaFtUxgKJ3xKCDcwioG 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc: -0.04000000 Waves 2022.07.11 10:08 [2134755] smart account 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc > SELF 0.00000000 Waves
{ "type": 13, "id": "FHyT84G87XCHwkuN9rtemCuVBhaFtUxgKJ3xKCDcwioG", "fee": 4000000, "feeAssetId": null, "timestamp": 1657523377126, "version": 1, "sender": "3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc", "senderPublicKey": "H3EzJ6fSm7jHKo92xYdNTXaaQYKj9z5q2DJFovRDLJpf", "proofs": [ "4qKADvdKxWm24EADq4wR7TUcWNK7oJX3MhbddbsSbLsFFqWgqF11F7axNdjkVe5X1z6rwhNgLM8fR1Eh8vRY1W4G" ], "script": "base64:AAIFAAAAAAAAACQIAhIECgIICBIECgIIARIDCgEIEgUKAwgBCBIDCgEIEgMKAQgAAAAJAAAAAANTRVACAAAAAl9fAQAAABFrZXlDb250cm9sQWRkcmVzcwAAAAACAAAAHCVzJXNfX2NvbmZpZ19fY29udHJvbEFkZHJlc3MBAAAADmtleVJlc3RBZGRyZXNzAAAAAAIAAAAZJXMlc19fY29uZmlnX19yZXN0QWRkcmVzcwEAAAAMZ2V0U3RyT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACAgAAAA9NYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVkAQAAABBnZXRBZGRyZXNzT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABCYAAAABCQEAAAAMZ2V0U3RyT3JGYWlsAAAAAQUAAAADa2V5CQABLAAAAAICAAAAH2ZhaWwgdG8gcGFyc2UgYWRkcmVzcyBm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QAAAAAAAAAAAUAAAAAAAAAAAYAAAAAAAAAAAcAAAAAAAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoJAAUUAAAAAgUAAAADbmlsCQEAAAALcHJvZHVjZUpzb24AAAABBQAAAA5pbnZva2VzUmVzdWx0cwAAAADH9Lt0", "chainId": 84, "height": 2134755, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2N54abUa41mC4ktzXrbmpRLi2GccJ1p5gW9b7vsUWwct Next: ERn1r7yVZGrP31ycuv6gQap9c2DYq66PEYC8zjj6dw4k Diff:
Old | New | Differences | |
---|---|---|---|
100 | 100 | ||
101 | 101 | ||
102 | 102 | @Callable(A) | |
103 | - | func genericREADONLY (L) = { | |
104 | - | let M = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
105 | - | let N = [1, 3, 5, 7, 9, 11] | |
106 | - | let O = split(L, a) | |
107 | - | let P = size(O) | |
108 | - | func Q (R,S) = if ((S >= P)) | |
109 | - | then R | |
103 | + | func walletPageREADONLY (L) = { | |
104 | + | let M = g(invoke(z, "walletInfoREADONLY", [L], nil)) | |
105 | + | $Tuple2(nil, k(["walletInfoREADONLY", M])) | |
106 | + | } | |
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | @Callable(A) | |
111 | + | func genericREADONLY (N) = { | |
112 | + | let O = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
113 | + | let P = [1, 3, 5, 7, 9, 11] | |
114 | + | let Q = split(N, a) | |
115 | + | let R = size(Q) | |
116 | + | func S (T,U) = if ((U >= R)) | |
117 | + | then T | |
110 | 118 | else { | |
111 | - | let | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | let | |
117 | - | func | |
118 | - | then | |
119 | + | let V = Q[U] | |
120 | + | let W = split(V, "+") | |
121 | + | let X = addressFromStringValue(W[0]) | |
122 | + | let Y = W[1] | |
123 | + | let Z = split(W[2], ":") | |
124 | + | let aa = size(Z) | |
125 | + | func ab (ac,ad) = if ((ad >= aa)) | |
126 | + | then ac | |
119 | 127 | else { | |
120 | - | let | |
121 | - | then | |
122 | - | else parseIntValue( | |
123 | - | ( | |
128 | + | let ae = if ((Z[(ad - 1)] == "s")) | |
129 | + | then Z[ad] | |
130 | + | else parseIntValue(Z[ad]) | |
131 | + | (ac :+ ae) | |
124 | 132 | } | |
125 | 133 | ||
126 | - | let | |
127 | - | let r = | |
134 | + | let af = { | |
135 | + | let r = P | |
128 | 136 | let s = size(r) | |
129 | 137 | let t = nil | |
130 | 138 | func u (v,w) = if ((w >= s)) | |
131 | 139 | then v | |
132 | - | else | |
140 | + | else ab(v, r[w]) | |
133 | 141 | ||
134 | 142 | func x (v,w) = if ((w >= s)) | |
135 | 143 | then v | |
137 | 145 | ||
138 | 146 | x(u(u(u(u(u(u(t, 0), 1), 2), 3), 4), 5), 6) | |
139 | 147 | } | |
140 | - | let | |
141 | - | ( | |
148 | + | let ag = g(invoke(X, Y, af, nil)) | |
149 | + | (T ++ [Y, ag]) | |
142 | 150 | } | |
143 | 151 | ||
144 | - | let | |
145 | - | let r = | |
152 | + | let ah = { | |
153 | + | let r = O | |
146 | 154 | let s = size(r) | |
147 | 155 | let t = nil | |
148 | 156 | func u (v,w) = if ((w >= s)) | |
149 | 157 | then v | |
150 | - | else | |
158 | + | else S(v, r[w]) | |
151 | 159 | ||
152 | 160 | func x (v,w) = if ((w >= s)) | |
153 | 161 | then v | |
155 | 163 | ||
156 | 164 | x(u(u(u(u(u(u(u(u(u(u(t, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
157 | 165 | } | |
158 | - | $Tuple2(nil, k( | |
166 | + | $Tuple2(nil, k(ah)) | |
159 | 167 | } | |
160 | 168 | ||
161 | 169 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | func b () = "%s%s__config__controlAddress" | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func c () = "%s%s__config__restAddress" | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func d (e) = valueOrErrorMessage(getString(this, e), (("Mandatory this." + e) + " is not defined")) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f (e) = valueOrErrorMessage(addressFromString(d(e)), ("fail to parse address for this." + e)) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func g (h) = { | |
19 | 19 | let i = h | |
20 | 20 | if ($isInstanceOf(i, "String")) | |
21 | 21 | then { | |
22 | 22 | let j = i | |
23 | 23 | j | |
24 | 24 | } | |
25 | 25 | else throw("fail to cast into String") | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func k (l) = { | |
30 | 30 | let m = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
31 | 31 | let n = size(l) | |
32 | 32 | if (((n % 2) != 0)) | |
33 | 33 | then throw("only even args size is accepeted") | |
34 | 34 | else if ((n > size(m))) | |
35 | 35 | then throw(("strMap length is greater then " + toString(size(m)))) | |
36 | 36 | else { | |
37 | 37 | func k (o,p) = if (if (((p % 2) == 0)) | |
38 | 38 | then (n >= (p + 1)) | |
39 | 39 | else false) | |
40 | 40 | then (((((o + " | |
41 | 41 | \"") + l[p]) + "\": \"") + l[(p + 1)]) + "\",") | |
42 | 42 | else o | |
43 | 43 | ||
44 | 44 | let q = { | |
45 | 45 | let r = m | |
46 | 46 | let s = size(r) | |
47 | 47 | let t = "" | |
48 | 48 | func u (v,w) = if ((w >= s)) | |
49 | 49 | then v | |
50 | 50 | else k(v, r[w]) | |
51 | 51 | ||
52 | 52 | func x (v,w) = if ((w >= s)) | |
53 | 53 | then v | |
54 | 54 | else throw("List size exceeds 20") | |
55 | 55 | ||
56 | 56 | x(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(t, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
57 | 57 | } | |
58 | 58 | (("{" + dropRight(q, 1)) + "}") | |
59 | 59 | } | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | let y = f(b()) | |
64 | 64 | ||
65 | 65 | let z = f(c()) | |
66 | 66 | ||
67 | 67 | @Callable(A) | |
68 | 68 | func constructor (B,C) = if ((A.caller != this)) | |
69 | 69 | then throw("not authorized") | |
70 | 70 | else [StringEntry(b(), B), StringEntry(c(), C)] | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | ||
74 | 74 | @Callable(A) | |
75 | 75 | func stakeNsbtPageREADONLY (D,E) = { | |
76 | 76 | let F = g(invoke(z, "gnsbtInfoREADONLY", [D, E], nil)) | |
77 | 77 | let G = g(invoke(z, "swapInfoREADONLY", [D], nil)) | |
78 | 78 | $Tuple2(nil, k(["gnsbtInfoREADONLY", F, "swapInfoREADONLY", G])) | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | ||
83 | 83 | @Callable(A) | |
84 | 84 | func buyNsbtPageREADONLY (D) = { | |
85 | 85 | let F = g(invoke(z, "gnsbtInfoREADONLY", [D, 0], nil)) | |
86 | 86 | let H = g(invoke(z, "neutrinoStatsREADONLY", nil, nil)) | |
87 | 87 | $Tuple2(nil, k(["gnsbtInfoREADONLY", F, "neutrinoStatsREADONLY", H])) | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | ||
92 | 92 | @Callable(A) | |
93 | 93 | func buySurfPageREADONLY (D,I,J) = { | |
94 | 94 | let F = g(invoke(z, "gnsbtInfoREADONLY", [D, 0], nil)) | |
95 | 95 | let H = g(invoke(z, "neutrinoStatsREADONLY", nil, nil)) | |
96 | 96 | let K = g(invoke(z, "buySurfREADONLY", [D, I, J], nil)) | |
97 | 97 | $Tuple2(nil, k(["gnsbtInfoREADONLY", F, "neutrinoStatsREADONLY", H, "buySurfREADONLY", K])) | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | ||
102 | 102 | @Callable(A) | |
103 | - | func genericREADONLY (L) = { | |
104 | - | let M = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
105 | - | let N = [1, 3, 5, 7, 9, 11] | |
106 | - | let O = split(L, a) | |
107 | - | let P = size(O) | |
108 | - | func Q (R,S) = if ((S >= P)) | |
109 | - | then R | |
103 | + | func walletPageREADONLY (L) = { | |
104 | + | let M = g(invoke(z, "walletInfoREADONLY", [L], nil)) | |
105 | + | $Tuple2(nil, k(["walletInfoREADONLY", M])) | |
106 | + | } | |
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | @Callable(A) | |
111 | + | func genericREADONLY (N) = { | |
112 | + | let O = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
113 | + | let P = [1, 3, 5, 7, 9, 11] | |
114 | + | let Q = split(N, a) | |
115 | + | let R = size(Q) | |
116 | + | func S (T,U) = if ((U >= R)) | |
117 | + | then T | |
110 | 118 | else { | |
111 | - | let | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | let | |
117 | - | func | |
118 | - | then | |
119 | + | let V = Q[U] | |
120 | + | let W = split(V, "+") | |
121 | + | let X = addressFromStringValue(W[0]) | |
122 | + | let Y = W[1] | |
123 | + | let Z = split(W[2], ":") | |
124 | + | let aa = size(Z) | |
125 | + | func ab (ac,ad) = if ((ad >= aa)) | |
126 | + | then ac | |
119 | 127 | else { | |
120 | - | let | |
121 | - | then | |
122 | - | else parseIntValue( | |
123 | - | ( | |
128 | + | let ae = if ((Z[(ad - 1)] == "s")) | |
129 | + | then Z[ad] | |
130 | + | else parseIntValue(Z[ad]) | |
131 | + | (ac :+ ae) | |
124 | 132 | } | |
125 | 133 | ||
126 | - | let | |
127 | - | let r = | |
134 | + | let af = { | |
135 | + | let r = P | |
128 | 136 | let s = size(r) | |
129 | 137 | let t = nil | |
130 | 138 | func u (v,w) = if ((w >= s)) | |
131 | 139 | then v | |
132 | - | else | |
140 | + | else ab(v, r[w]) | |
133 | 141 | ||
134 | 142 | func x (v,w) = if ((w >= s)) | |
135 | 143 | then v | |
136 | 144 | else throw("List size exceeds 6") | |
137 | 145 | ||
138 | 146 | x(u(u(u(u(u(u(t, 0), 1), 2), 3), 4), 5), 6) | |
139 | 147 | } | |
140 | - | let | |
141 | - | ( | |
148 | + | let ag = g(invoke(X, Y, af, nil)) | |
149 | + | (T ++ [Y, ag]) | |
142 | 150 | } | |
143 | 151 | ||
144 | - | let | |
145 | - | let r = | |
152 | + | let ah = { | |
153 | + | let r = O | |
146 | 154 | let s = size(r) | |
147 | 155 | let t = nil | |
148 | 156 | func u (v,w) = if ((w >= s)) | |
149 | 157 | then v | |
150 | - | else | |
158 | + | else S(v, r[w]) | |
151 | 159 | ||
152 | 160 | func x (v,w) = if ((w >= s)) | |
153 | 161 | then v | |
154 | 162 | else throw("List size exceeds 10") | |
155 | 163 | ||
156 | 164 | x(u(u(u(u(u(u(u(u(u(u(t, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
157 | 165 | } | |
158 | - | $Tuple2(nil, k( | |
166 | + | $Tuple2(nil, k(ah)) | |
159 | 167 | } | |
160 | 168 | ||
161 | 169 |
github/deemru/w8io/169f3d6 42.16 ms ◑