tx · 9oY5NmxoJnVhcb5BB9gZ22RbR8EiHtMYcTmhPnJYe1uU 3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm: -0.01400000 Waves 2021.01.05 12:47 [1339923] smart account 3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm > SELF 0.00000000 Waves
{ "type": 13, "id": "9oY5NmxoJnVhcb5BB9gZ22RbR8EiHtMYcTmhPnJYe1uU", "fee": 1400000, "feeAssetId": null, "timestamp": 1609840068265, "version": 2, "chainId": 84, "sender": "3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm", "senderPublicKey": "FohxcSc8stwcVXsytmPwjVRthoDnmiFHbohjcgN1r4bP", "proofs": [ "iht4nLLcfdnLP9X6NgWbKZNv4MXQJRNaPUUHn9V7uQWagkjT5jQRExQpRim1EeUAt1rVbeEWMHrUQe2si7vqL7j" ], "script": "base64:AAIEAAAAAAAAACgIAhIECgIECBIDCgEEEgYKBAgICAgSBgoECAgICBIECgIICBIDCgEIAAAAHQAAAAAFY2hyaXMCAAAAIzNNc0c2alBOQ3JWSlV0WUI3WEpCeFM3dXRXc1hBZjRuOVZwAAAAAARqb2VwAgAAACMzTXptNFZMd3NOOXVad2JUTXpQajNYdXhWNmtFZkFSOFVETgAAAAAOZGFwcFJ1bm5pbmdLZXkCAAAAFGNvbmZfZGFwcF9pc19ydW5uaW5nAAAAABFtYWludGVuYW5jZU1TR0tleQIAAAAUY29uZl9tYWludGVuYW5jZV9tc2cAAAAAEndoaXRlbGlzdGVkb25seUtleQIAAAAVY29uZl93aGl0ZWxpc3RlZF9vbmx5AAAAAAtkYXBwUnVubmluZwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAR0aGlzBQAAAA5kYXBwUnVubmluZ0tleQYAAAAADm1haW50ZW5hbmNlTVNHCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAAEW1haW50ZW5hbmNlTVNHS2V5AgAAAAAAA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AAAAB2FkZHJlc3MFAAAAC3VzZXJSZW1vdmVkBQAAAANuaWwJAAACAAAAAQIAAAALTm90IGFsbG93ZWQAAAAAOCCHjA==", "height": 1339923, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: tPReMNRmDwfWUAe1gZYBQYnBqzuFVBkKqjzjMaWCoRS Next: CRAxueusVJB9jqqRv1ou6kcpExBDnM6mPqpGPK1miv9V Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = " | |
4 | + | let a = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
5 | 5 | ||
6 | - | let b = " | |
6 | + | let b = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
7 | 7 | ||
8 | - | let c = "conf_ | |
8 | + | let c = "conf_dapp_is_running" | |
9 | 9 | ||
10 | - | let d = { | |
11 | - | let e = getBoolean(this, a) | |
12 | - | if ($isInstanceOf(e, "Boolean")) | |
13 | - | then { | |
14 | - | let f = e | |
15 | - | f | |
16 | - | } | |
17 | - | else true | |
18 | - | } | |
10 | + | let d = "conf_maintenance_msg" | |
19 | 11 | ||
20 | - | let g = { | |
21 | - | let e = getString(this, b) | |
22 | - | if ($isInstanceOf(e, "String")) | |
23 | - | then { | |
24 | - | let f = e | |
25 | - | f | |
26 | - | } | |
27 | - | else "" | |
28 | - | } | |
12 | + | let e = "conf_whitelisted_only" | |
29 | 13 | ||
30 | - | let h = { | |
31 | - | let e = getBoolean(this, c) | |
32 | - | if ($isInstanceOf(e, "Boolean")) | |
33 | - | then { | |
34 | - | let f = e | |
35 | - | f | |
36 | - | } | |
37 | - | else true | |
38 | - | } | |
14 | + | let f = valueOrElse(getBoolean(this, c), true) | |
39 | 15 | ||
40 | - | let | |
16 | + | let g = valueOrElse(getString(this, d), "") | |
41 | 17 | ||
42 | - | let | |
18 | + | let h = valueOrElse(getBoolean(this, e), true) | |
43 | 19 | ||
44 | - | let | |
20 | + | let i = "ALLOWED" | |
45 | 21 | ||
46 | - | let | |
22 | + | let j = "REGISTERED" | |
47 | 23 | ||
48 | - | let | |
24 | + | let k = "VERIFIED" | |
49 | 25 | ||
50 | - | let | |
26 | + | let l = "SUSPENDED" | |
51 | 27 | ||
52 | - | let | |
28 | + | let m = "REMOVED" | |
53 | 29 | ||
54 | - | let | |
30 | + | let n = "CHANGE_REQUIRED" | |
55 | 31 | ||
56 | - | let | |
32 | + | let o = "UNREGISTERED" | |
57 | 33 | ||
58 | - | let | |
34 | + | let p = "RESET" | |
59 | 35 | ||
60 | - | ||
36 | + | func q (r) = valueOrElse(getString(this, r), "") | |
61 | 37 | ||
62 | - | func t (u) = { | |
63 | - | let e = getString(this, u) | |
64 | - | if ($isInstanceOf(e, "String")) | |
65 | - | then { | |
66 | - | let f = e | |
67 | - | f | |
68 | - | } | |
69 | - | else "" | |
38 | + | ||
39 | + | func s (r) = valueOrElse(getBoolean(this, r), false) | |
40 | + | ||
41 | + | ||
42 | + | func t (r) = valueOrElse(getInteger(this, r), 0) | |
43 | + | ||
44 | + | ||
45 | + | func u (v) = ("user_" + v) | |
46 | + | ||
47 | + | ||
48 | + | func w (v) = ("user_name_" + v) | |
49 | + | ||
50 | + | ||
51 | + | func x (v) = ("user_desc_" + v) | |
52 | + | ||
53 | + | ||
54 | + | func y (v) = ("user_social_" + v) | |
55 | + | ||
56 | + | ||
57 | + | func z (v) = ("user_thumb_" + v) | |
58 | + | ||
59 | + | ||
60 | + | func A (v) = ("user_status_" + v) | |
61 | + | ||
62 | + | ||
63 | + | func B (v) = ("user_date_" + v) | |
64 | + | ||
65 | + | ||
66 | + | func C (v,D,E,F) = if (if ((D == "")) | |
67 | + | then true | |
68 | + | else (E == "")) | |
69 | + | then throw("Name and description cannot be empty") | |
70 | + | else if ((size(E) > 600)) | |
71 | + | then throw("600 Char. max description") | |
72 | + | else if ((size(D) > 45)) | |
73 | + | then throw("45 Char. max name") | |
74 | + | else { | |
75 | + | let G = q(A(v)) | |
76 | + | if (if ((G == l)) | |
77 | + | then true | |
78 | + | else (G == m)) | |
79 | + | then throw("Account suspended/ removed.") | |
80 | + | else if (if (!(F)) | |
81 | + | then (G == j) | |
82 | + | else false) | |
83 | + | then throw("Already registered") | |
84 | + | else if (if (if (!(F)) | |
85 | + | then (G == "") | |
86 | + | else false) | |
87 | + | then h | |
88 | + | else false) | |
89 | + | then throw("Can't register, get approved first.") | |
90 | + | else if (if (if (F) | |
91 | + | then (G == "") | |
92 | + | else false) | |
93 | + | then true | |
94 | + | else if (F) | |
95 | + | then (G == i) | |
96 | + | else false) | |
97 | + | then throw("Register first") | |
98 | + | else true | |
99 | + | } | |
100 | + | ||
101 | + | ||
102 | + | func H (G,I,J) = { | |
103 | + | let K = [k, j, l, m, i, n] | |
104 | + | let L = if (containsElement(K, G)) | |
105 | + | then G | |
106 | + | else if (if ((G == p)) | |
107 | + | then (J == i) | |
108 | + | else false) | |
109 | + | then "" | |
110 | + | else throw("Unknown status") | |
111 | + | let M = t(B(I)) | |
112 | + | if (if ((M == 0)) | |
113 | + | then (L != i) | |
114 | + | else false) | |
115 | + | then throw("You cant set this status, user is not registered.") | |
116 | + | else if (if ((J == i)) | |
117 | + | then (L == i) | |
118 | + | else false) | |
119 | + | then throw("User already allowed") | |
120 | + | else if (if ((J == j)) | |
121 | + | then (L == i) | |
122 | + | else false) | |
123 | + | then throw("User already allowed & registered") | |
124 | + | else if (if ((J == k)) | |
125 | + | then (L == i) | |
126 | + | else false) | |
127 | + | then throw("User already allowed & verified") | |
128 | + | else L | |
70 | 129 | } | |
71 | 130 | ||
72 | 131 | ||
73 | - | func v (u) = { | |
74 | - | let e = getBoolean(this, u) | |
75 | - | if ($isInstanceOf(e, "Boolean")) | |
76 | - | then { | |
77 | - | let f = e | |
78 | - | f | |
79 | - | } | |
80 | - | else false | |
81 | - | } | |
132 | + | func N (D,O,P) = (((((("{\"user_name\": \"" + D) + "\", \"user_thumb\":\"") + O) + "\",\"user_date\":\"") + P) + "\"}") | |
82 | 133 | ||
83 | 134 | ||
84 | - | func w (u) = { | |
85 | - | let e = getInteger(this, u) | |
86 | - | if ($isInstanceOf(e, "Int")) | |
87 | - | then { | |
88 | - | let x = e | |
89 | - | x | |
90 | - | } | |
91 | - | else 0 | |
92 | - | } | |
93 | - | ||
94 | - | ||
95 | - | func y (z) = if (if ((75 > size(z))) | |
96 | - | then (60 > size(split(z, "/")[0])) | |
97 | - | else false) | |
98 | - | then (16 > size(split(z, "/")[1])) | |
99 | - | else false | |
100 | - | ||
101 | - | ||
102 | - | func A (B) = ("user_" + B) | |
103 | - | ||
104 | - | ||
105 | - | func C (B) = ("user_name_" + B) | |
106 | - | ||
107 | - | ||
108 | - | func D (B) = ("user_desc_" + B) | |
109 | - | ||
110 | - | ||
111 | - | func E (B) = ("user_social_" + B) | |
112 | - | ||
113 | - | ||
114 | - | func F (B) = ("user_thumb_" + B) | |
115 | - | ||
116 | - | ||
117 | - | func G (B) = ("user_status_" + B) | |
118 | - | ||
119 | - | ||
120 | - | func H (B) = ("user_date_" + B) | |
121 | - | ||
122 | - | ||
123 | - | @Callable(x) | |
124 | - | func appRunning (I,J) = { | |
125 | - | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
126 | - | let K = toBase58String(x.transactionId) | |
127 | - | if (containsElement([j, k, toString(this)], B)) | |
128 | - | then [BooleanEntry(a, I), StringEntry(b, J)] | |
135 | + | @Callable(Q) | |
136 | + | func appRunning (R,S) = { | |
137 | + | let v = toString(addressFromPublicKey(Q.callerPublicKey)) | |
138 | + | let T = toBase58String(Q.transactionId) | |
139 | + | if (containsElement([a, b, toString(this)], v)) | |
140 | + | then [BooleanEntry(c, R), StringEntry(d, S)] | |
129 | 141 | else throw("You are not allowed to change this") | |
130 | 142 | } | |
131 | 143 | ||
132 | 144 | ||
133 | 145 | ||
134 | - | @Callable( | |
135 | - | func registrationMode ( | |
136 | - | let | |
137 | - | let | |
138 | - | if (containsElement([ | |
139 | - | then [BooleanEntry( | |
146 | + | @Callable(Q) | |
147 | + | func registrationMode (U) = { | |
148 | + | let v = toString(addressFromPublicKey(Q.callerPublicKey)) | |
149 | + | let T = toBase58String(Q.transactionId) | |
150 | + | if (containsElement([a, toString(this)], v)) | |
151 | + | then [BooleanEntry(e, U)] | |
140 | 152 | else throw("You are not allowed to change this") | |
141 | 153 | } | |
142 | 154 | ||
143 | 155 | ||
144 | 156 | ||
145 | - | @Callable( | |
146 | - | func registerUser ( | |
157 | + | @Callable(Q) | |
158 | + | func registerUser (D,E,O,V) = if (!(f)) | |
147 | 159 | then throw(g) | |
148 | 160 | else { | |
149 | - | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
150 | - | let Q = t(G(B)) | |
151 | - | let K = toBase58String(x.transactionId) | |
152 | - | let R = lastBlock.timestamp | |
153 | - | if (if ((Q == o)) | |
154 | - | then true | |
155 | - | else (Q == p)) | |
156 | - | then throw("Account suspended/ removed.") | |
157 | - | else if ((Q == m)) | |
158 | - | then throw("Already registered") | |
159 | - | else if (if ((Q == "")) | |
160 | - | then h | |
161 | - | else false) | |
162 | - | then throw("Can't register, get approved first.") | |
163 | - | else if (if ((M == "")) | |
164 | - | then true | |
165 | - | else (N == "")) | |
166 | - | then throw("Name and description cannot be empty") | |
167 | - | else if ((size(N) > 600)) | |
168 | - | then throw("600 Char. max description") | |
169 | - | else if ((size(M) > 45)) | |
170 | - | then throw("45 Char. max name") | |
171 | - | else [IntegerEntry(H(B), R), StringEntry(A(B), ((K + "_") + toString(R))), StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O), StringEntry(G(B), m)] | |
161 | + | let v = toString(addressFromPublicKey(Q.callerPublicKey)) | |
162 | + | let T = toBase58String(Q.transactionId) | |
163 | + | let W = lastBlock.timestamp | |
164 | + | if (!(C(v, D, E, false))) | |
165 | + | then throw("Something went wrong") | |
166 | + | else { | |
167 | + | let X = N(toBase64String(toBytes(D)), toBase64String(toBytes(O)), toString(W)) | |
168 | + | [IntegerEntry(B(v), W), StringEntry(u(v), ((T + "_") + toString(W))), StringEntry(w(v), D), StringEntry(x(v), E), StringEntry(y(v), V), StringEntry(z(v), O), StringEntry(A(v), j), DeleteEntry(("ALLOWED_" + v)), StringEntry(((j + "_") + v), X)] | |
169 | + | } | |
172 | 170 | } | |
173 | 171 | ||
174 | 172 | ||
175 | 173 | ||
176 | - | @Callable( | |
177 | - | func updateUser ( | |
174 | + | @Callable(Q) | |
175 | + | func updateUser (D,E,O,V) = if (!(f)) | |
178 | 176 | then throw(g) | |
179 | 177 | else { | |
180 | - | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
181 | - | let K = toBase58String(x.transactionId) | |
182 | - | let S = t(G(B)) | |
183 | - | if (if ((S == o)) | |
184 | - | then true | |
185 | - | else (S == p)) | |
186 | - | then throw("Account suspended/ removed.") | |
187 | - | else if (if ((S == "")) | |
188 | - | then true | |
189 | - | else (S == l)) | |
190 | - | then throw("Register first") | |
191 | - | else if (if ((M == "")) | |
192 | - | then true | |
193 | - | else (N == "")) | |
194 | - | then throw("Name & description cannot be empty") | |
195 | - | else if ((size(N) > 600)) | |
196 | - | then throw("600 Char. max for description") | |
197 | - | else if ((size(M) > 45)) | |
198 | - | then throw("45 Char. max name") | |
199 | - | else [StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O)] | |
178 | + | let v = toString(addressFromPublicKey(Q.callerPublicKey)) | |
179 | + | let T = toBase58String(Q.transactionId) | |
180 | + | let G = q(A(v)) | |
181 | + | if (!(C(v, D, E, true))) | |
182 | + | then throw("Something went wrong") | |
183 | + | else { | |
184 | + | let P = t(B(v)) | |
185 | + | let X = N(toBase64String(toBytes(D)), toBase64String(toBytes(O)), toString(P)) | |
186 | + | [StringEntry(w(v), D), StringEntry(x(v), E), StringEntry(y(v), V), StringEntry(z(v), O), StringEntry(((G + "_") + v), X)] | |
187 | + | } | |
200 | 188 | } | |
201 | 189 | ||
202 | 190 | ||
203 | 191 | ||
204 | - | @Callable( | |
205 | - | func changeUserStatus ( | |
192 | + | @Callable(Q) | |
193 | + | func changeUserStatus (I,G) = if (!(f)) | |
206 | 194 | then throw(g) | |
207 | 195 | else { | |
208 | - | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
209 | - | let K = toBase58String(x.transactionId) | |
210 | - | let V = t(G(T)) | |
211 | - | let W = if ((U == n)) | |
212 | - | then n | |
213 | - | else if ((U == m)) | |
214 | - | then m | |
215 | - | else if ((U == o)) | |
216 | - | then o | |
217 | - | else if ((U == p)) | |
218 | - | then p | |
219 | - | else if ((U == l)) | |
220 | - | then l | |
221 | - | else if ((U == q)) | |
222 | - | then q | |
223 | - | else if (if ((U == s)) | |
224 | - | then (V == l) | |
225 | - | else false) | |
226 | - | then "" | |
227 | - | else throw("Unknown status") | |
228 | - | let X = w(H(T)) | |
229 | - | if (if ((X == 0)) | |
230 | - | then (U != l) | |
231 | - | else false) | |
232 | - | then throw("You cant set this status, user is not registered.") | |
233 | - | else if (if ((V == l)) | |
234 | - | then (U == l) | |
235 | - | else false) | |
236 | - | then throw("User already allowed") | |
237 | - | else if (if ((V == m)) | |
238 | - | then (U == l) | |
239 | - | else false) | |
240 | - | then throw("User already allowed & registered") | |
241 | - | else if (if ((V == n)) | |
242 | - | then (U == l) | |
243 | - | else false) | |
244 | - | then throw("User already allowed & verified") | |
245 | - | else if (containsElement([j, k, toString(this)], B)) | |
246 | - | then [StringEntry(G(T), W)] | |
247 | - | else throw("Not allowed to change user status") | |
196 | + | let v = toString(addressFromPublicKey(Q.callerPublicKey)) | |
197 | + | let T = toBase58String(Q.transactionId) | |
198 | + | let J = q(A(I)) | |
199 | + | let L = H(G, I, J) | |
200 | + | let D = toBase64String(toBytes(q(w(I)))) | |
201 | + | let O = toBase64String(toBytes(q(z(I)))) | |
202 | + | let P = t(B(I)) | |
203 | + | let X = N(D, O, toString(P)) | |
204 | + | if (containsElement([a, b, toString(this)], v)) | |
205 | + | then [StringEntry(A(I), L), DeleteEntry(((J + "_") + I)), StringEntry(((L + "_") + I), X)] | |
206 | + | else throw("Not allowed to change user status") | |
248 | 207 | } | |
249 | 208 | ||
250 | 209 | ||
251 | 210 | ||
252 | - | @Callable(x) | |
253 | - | func creditUser (T) = { | |
254 | - | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
255 | - | let K = toBase58String(x.transactionId) | |
256 | - | if (containsElement([j, k], B)) | |
257 | - | then [ScriptTransfer(Address(fromBase58String(T)), 30000000000, i)] | |
211 | + | @Callable(Q) | |
212 | + | func deleteUser (I) = { | |
213 | + | let v = toString(addressFromPublicKey(Q.callerPublicKey)) | |
214 | + | let T = toBase58String(Q.transactionId) | |
215 | + | let J = q(A(I)) | |
216 | + | if (containsElement([a, toString(this)], v)) | |
217 | + | then [DeleteEntry(B(I)), DeleteEntry(u(I)), DeleteEntry(w(I)), DeleteEntry(x(I)), DeleteEntry(y(I)), DeleteEntry(z(I)), DeleteEntry(((J + "_") + I)), StringEntry(A(I), m)] | |
258 | 218 | else throw("Not allowed") | |
259 | - | } | |
260 | - | ||
261 | - | ||
262 | - | ||
263 | - | @Callable(x) | |
264 | - | func deleteUser (T) = { | |
265 | - | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
266 | - | let K = toBase58String(x.transactionId) | |
267 | - | if (containsElement([j, k, toString(this)], B)) | |
268 | - | then [DeleteEntry(H(T)), DeleteEntry(A(T)), DeleteEntry(C(T)), DeleteEntry(D(T)), DeleteEntry(E(T)), DeleteEntry(F(T)), StringEntry(G(T), p)] | |
269 | - | else throw("Not allowed") | |
270 | - | } | |
271 | - | ||
272 | - | ||
273 | - | ||
274 | - | @Callable(x) | |
275 | - | func deleteEntry (Y) = { | |
276 | - | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
277 | - | if ((B == j)) | |
278 | - | then [DeleteEntry(Y)] | |
279 | - | else throw("no") | |
280 | 219 | } | |
281 | 220 | ||
282 | 221 |
github/deemru/w8io/026f985 46.63 ms ◑