tx · ERn1r7yVZGrP31ycuv6gQap9c2DYq66PEYC8zjj6dw4k 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc: -0.04000000 Waves 2022.07.11 14:45 [2135034] smart account 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc > SELF 0.00000000 Waves
{ "type": 13, "id": "ERn1r7yVZGrP31ycuv6gQap9c2DYq66PEYC8zjj6dw4k", "fee": 4000000, "feeAssetId": null, "timestamp": 1657539970215, "version": 1, "sender": "3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc", "senderPublicKey": "H3EzJ6fSm7jHKo92xYdNTXaaQYKj9z5q2DJFovRDLJpf", "proofs": [ "4ptutVp3aT9bWeJWA3A2rTE2zyYNGhm2cUrKxTP35waxoGejcjGM1c9KPgfL1Y1wwNWnggmzd5ydKS3dJ3TzJCoV" ], "script": "base64:AAIFAAAAAAAAACQIAhIECgIICBIECgIIARIDCgEIEgUKAwgBCBIDCgEIEgMKAQgAAAAJAAAAAANTRVACAAAAAl9fAQAAABFrZXlDb250cm9sQWRkcmVzcwAAAAACAAAAHCVzJXNfX2NvbmZpZ19fY29udHJvbEFkZHJlc3MBAAAADmtleVJlc3RBZGRyZXNzAAAAAAIAAAAZJXMlc19fY29uZmlnX19yZXN0QWRkcmVzcwEAAAAMZ2V0U3RyT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACAgAAAA9NYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVkAQAAABBnZXRBZGRyZXNzT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABCYAAAABCQEAAAAMZ2V0U3RyT3JGYWlsAAAAAQUAAAADa2V5CQABLAAAAAICAAAAH2ZhaWwgdG8gcGFyc2UgYWRkcmVzcy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ABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgUAAAAFJGFjYzAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAIAAAAAAAAAAAMAAAAAAAAAAAQAAAAAAAAAAAUAAAAAAAAAAAYAAAAAAAAAAAcAAAAAAAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoJAAUUAAAAAgUAAAADbmlsCQEAAAALcHJvZHVjZUpzb24AAAABBQAAAA5pbnZva2VzUmVzdWx0cwAAAACUxmgW", "chainId": 84, "height": 2135034, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FHyT84G87XCHwkuN9rtemCuVBhaFtUxgKJ3xKCDcwioG Next: 8YptqF3vp7GuUqgbALUMN6ba46xctqbzkUBN56bE18Z5 Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | $Tuple2(nil, k(["gnsbtInfoREADONLY", F, "neutrinoStatsREADONLY", H, "buySurfREADONLY", K])) | |
97 | + | let L = g(invoke(z, "neutrinoConfigREADONLY", nil, nil)) | |
98 | + | $Tuple2(nil, k(["gnsbtInfoREADONLY", F, "neutrinoStatsREADONLY", H, "buySurfREADONLY", K, "neutrinoConfigREADONLY", L])) | |
98 | 99 | } | |
99 | 100 | ||
100 | 101 | ||
101 | 102 | ||
102 | 103 | @Callable(A) | |
103 | - | func walletPageREADONLY ( | |
104 | - | let | |
105 | - | $Tuple2(nil, k(["walletInfoREADONLY", | |
104 | + | func walletPageREADONLY (M) = { | |
105 | + | let N = g(invoke(z, "walletInfoREADONLY", [M], nil)) | |
106 | + | $Tuple2(nil, k(["walletInfoREADONLY", N])) | |
106 | 107 | } | |
107 | 108 | ||
108 | 109 | ||
109 | 110 | ||
110 | 111 | @Callable(A) | |
111 | - | func genericREADONLY ( | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | func | |
117 | - | then | |
112 | + | func genericREADONLY (O) = { | |
113 | + | let P = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
114 | + | let Q = [1, 3, 5, 7, 9, 11] | |
115 | + | let R = split(O, a) | |
116 | + | let S = size(R) | |
117 | + | func T (U,V) = if ((V >= S)) | |
118 | + | then U | |
118 | 119 | else { | |
119 | - | let | |
120 | - | let | |
121 | - | let | |
122 | - | let | |
123 | - | let | |
124 | - | let | |
125 | - | func | |
126 | - | then | |
120 | + | let W = R[V] | |
121 | + | let X = split(W, "+") | |
122 | + | let Y = addressFromStringValue(X[0]) | |
123 | + | let Z = X[1] | |
124 | + | let aa = split(X[2], ":") | |
125 | + | let ab = size(aa) | |
126 | + | func ac (ad,ae) = if ((ae >= ab)) | |
127 | + | then ad | |
127 | 128 | else { | |
128 | - | let | |
129 | - | then | |
130 | - | else parseIntValue( | |
131 | - | ( | |
129 | + | let af = if ((aa[(ae - 1)] == "s")) | |
130 | + | then aa[ae] | |
131 | + | else parseIntValue(aa[ae]) | |
132 | + | (ad :+ af) | |
132 | 133 | } | |
133 | 134 | ||
134 | - | let | |
135 | - | let r = | |
135 | + | let ag = { | |
136 | + | let r = Q | |
136 | 137 | let s = size(r) | |
137 | 138 | let t = nil | |
138 | 139 | func u (v,w) = if ((w >= s)) | |
139 | 140 | then v | |
140 | - | else | |
141 | + | else ac(v, r[w]) | |
141 | 142 | ||
142 | 143 | func x (v,w) = if ((w >= s)) | |
143 | 144 | then v | |
145 | 146 | ||
146 | 147 | x(u(u(u(u(u(u(t, 0), 1), 2), 3), 4), 5), 6) | |
147 | 148 | } | |
148 | - | let | |
149 | - | ( | |
149 | + | let ah = g(invoke(Y, Z, ag, nil)) | |
150 | + | (U ++ [Z, ah]) | |
150 | 151 | } | |
151 | 152 | ||
152 | - | let | |
153 | - | let r = | |
153 | + | let ai = { | |
154 | + | let r = P | |
154 | 155 | let s = size(r) | |
155 | 156 | let t = nil | |
156 | 157 | func u (v,w) = if ((w >= s)) | |
157 | 158 | then v | |
158 | - | else | |
159 | + | else T(v, r[w]) | |
159 | 160 | ||
160 | 161 | func x (v,w) = if ((w >= s)) | |
161 | 162 | then v | |
163 | 164 | ||
164 | 165 | x(u(u(u(u(u(u(u(u(u(u(t, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
165 | 166 | } | |
166 | - | $Tuple2(nil, k( | |
167 | + | $Tuple2(nil, k(ai)) | |
167 | 168 | } | |
168 | 169 | ||
169 | 170 |
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 | - | $Tuple2(nil, k(["gnsbtInfoREADONLY", F, "neutrinoStatsREADONLY", H, "buySurfREADONLY", K])) | |
97 | + | let L = g(invoke(z, "neutrinoConfigREADONLY", nil, nil)) | |
98 | + | $Tuple2(nil, k(["gnsbtInfoREADONLY", F, "neutrinoStatsREADONLY", H, "buySurfREADONLY", K, "neutrinoConfigREADONLY", L])) | |
98 | 99 | } | |
99 | 100 | ||
100 | 101 | ||
101 | 102 | ||
102 | 103 | @Callable(A) | |
103 | - | func walletPageREADONLY ( | |
104 | - | let | |
105 | - | $Tuple2(nil, k(["walletInfoREADONLY", | |
104 | + | func walletPageREADONLY (M) = { | |
105 | + | let N = g(invoke(z, "walletInfoREADONLY", [M], nil)) | |
106 | + | $Tuple2(nil, k(["walletInfoREADONLY", N])) | |
106 | 107 | } | |
107 | 108 | ||
108 | 109 | ||
109 | 110 | ||
110 | 111 | @Callable(A) | |
111 | - | func genericREADONLY ( | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | func | |
117 | - | then | |
112 | + | func genericREADONLY (O) = { | |
113 | + | let P = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
114 | + | let Q = [1, 3, 5, 7, 9, 11] | |
115 | + | let R = split(O, a) | |
116 | + | let S = size(R) | |
117 | + | func T (U,V) = if ((V >= S)) | |
118 | + | then U | |
118 | 119 | else { | |
119 | - | let | |
120 | - | let | |
121 | - | let | |
122 | - | let | |
123 | - | let | |
124 | - | let | |
125 | - | func | |
126 | - | then | |
120 | + | let W = R[V] | |
121 | + | let X = split(W, "+") | |
122 | + | let Y = addressFromStringValue(X[0]) | |
123 | + | let Z = X[1] | |
124 | + | let aa = split(X[2], ":") | |
125 | + | let ab = size(aa) | |
126 | + | func ac (ad,ae) = if ((ae >= ab)) | |
127 | + | then ad | |
127 | 128 | else { | |
128 | - | let | |
129 | - | then | |
130 | - | else parseIntValue( | |
131 | - | ( | |
129 | + | let af = if ((aa[(ae - 1)] == "s")) | |
130 | + | then aa[ae] | |
131 | + | else parseIntValue(aa[ae]) | |
132 | + | (ad :+ af) | |
132 | 133 | } | |
133 | 134 | ||
134 | - | let | |
135 | - | let r = | |
135 | + | let ag = { | |
136 | + | let r = Q | |
136 | 137 | let s = size(r) | |
137 | 138 | let t = nil | |
138 | 139 | func u (v,w) = if ((w >= s)) | |
139 | 140 | then v | |
140 | - | else | |
141 | + | else ac(v, r[w]) | |
141 | 142 | ||
142 | 143 | func x (v,w) = if ((w >= s)) | |
143 | 144 | then v | |
144 | 145 | else throw("List size exceeds 6") | |
145 | 146 | ||
146 | 147 | x(u(u(u(u(u(u(t, 0), 1), 2), 3), 4), 5), 6) | |
147 | 148 | } | |
148 | - | let | |
149 | - | ( | |
149 | + | let ah = g(invoke(Y, Z, ag, nil)) | |
150 | + | (U ++ [Z, ah]) | |
150 | 151 | } | |
151 | 152 | ||
152 | - | let | |
153 | - | let r = | |
153 | + | let ai = { | |
154 | + | let r = P | |
154 | 155 | let s = size(r) | |
155 | 156 | let t = nil | |
156 | 157 | func u (v,w) = if ((w >= s)) | |
157 | 158 | then v | |
158 | - | else | |
159 | + | else T(v, r[w]) | |
159 | 160 | ||
160 | 161 | func x (v,w) = if ((w >= s)) | |
161 | 162 | then v | |
162 | 163 | else throw("List size exceeds 10") | |
163 | 164 | ||
164 | 165 | x(u(u(u(u(u(u(u(u(u(u(t, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
165 | 166 | } | |
166 | - | $Tuple2(nil, k( | |
167 | + | $Tuple2(nil, k(ai)) | |
167 | 168 | } | |
168 | 169 | ||
169 | 170 |
github/deemru/w8io/169f3d6 53.07 ms ◑