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