tx · 7LDLRphrwKGHuR855Q8mv5jLF2jKWEZ18ysDfEqu86LG 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj: -0.01400000 Waves 2020.12.22 12:11 [1319714] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves
{ "type": 13, "id": "7LDLRphrwKGHuR855Q8mv5jLF2jKWEZ18ysDfEqu86LG", "fee": 1400000, "feeAssetId": null, "timestamp": 1608628360624, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "DtvpmbCLKYCuR5ML95z8suHoGxqAmTQGyArBffBA3rUgarccZ6enLHm83Df57HV8Vc6nNKm5wfu3xQXbXmhUpD4" ], "script": "base64:AAIEAAAAAAAAAC0IAhIECgIECBIDCgEEEgYKBAgICAgSBgoECAgICBIECgIICBIDCgEIEgMKAQgAAAAcAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAABWNocmlzAgAAACMzTXNHNmpQTkNyVkpVdFlCN1hKQnhTN3V0V3NYQWY0bjlWcAAAAAAEam9lcAIAAAAjM016bTRWTHdzTjl1WndiVE16UGozWHV4VjZrRWZBUjhVRE4AAAAADmRhcHBSdW5uaW5nS2V5AgAAABRjb25mX2RhcHBfaXNfcnVubmluZwAAAAARbWFpbnRlbmFuY2VNU0dLZXkCAAAAFGNvbmZfbWFpbnRlbmFuY2VfbXNnAAAAABJ3aGl0ZWxpc3RlZG9ubHlLZXkCAAAAFWNvbmZfd2hpdGVsaXN0ZWRfb25seQAAAAALZGFwcFJ1bm5pbmcEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAAOZGFwcFJ1bm5pbmdLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW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lbnRTdGF0dXMCAAAAAV8FAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADWtleVVzZXJTdGF0dXMAAAABBQAAAAdhZGRyZXNzBQAAAAt1c2VyUmVtb3ZlZAUAAAADbmlsCQAAAgAAAAECAAAAC05vdCBhbGxvd2VkAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAAxxItU=", "height": 1319714, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GQGhbPUpBdYBzXAjVXwgCsjoJ6MoMoA5pCkRGXDDCP6r Next: CFQ3ZS7ubiDHhztWGPooDSXxzWC4raNBjxeZXR8Zezy4 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 = (((((((("{\"address\": \"" + U) + "\", \"name\": \"") + M) + "\", \"thumb\":\"") + O) + "\",\"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 = (((((((("{\"address\": \"" + U) + "\", \"name\": \"") + M) + "\", \"thumb\":\"") + O) + "\",\"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 | ||
271 | 266 | ||
272 | 267 | ||
273 | 268 | @Callable(x) | |
274 | - | func deleteEntry ( | |
269 | + | func deleteEntry (Z) = { | |
275 | 270 | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
276 | 271 | if ((B == b)) | |
277 | - | then [DeleteEntry( | |
272 | + | then [DeleteEntry(Z)] | |
278 | 273 | else throw("no") | |
279 | 274 | } | |
280 | 275 |
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 = (((((((("{\"address\": \"" + B) + "\", \"name\": \"") + toBase64String(toBytes(M))) + "\", \"thumb\":\"") + toBase64String(toBytes(O))) + "\",\"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 = (((((((("{\"address\": \"" + U) + "\", \"name\": \"") + M) + "\", \"thumb\":\"") + O) + "\",\"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 = (((((((("{\"address\": \"" + U) + "\", \"name\": \"") + M) + "\", \"thumb\":\"") + O) + "\",\"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 | ||
272 | 267 | ||
273 | 268 | @Callable(x) | |
274 | - | func deleteEntry ( | |
269 | + | func deleteEntry (Z) = { | |
275 | 270 | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
276 | 271 | if ((B == b)) | |
277 | - | then [DeleteEntry( | |
272 | + | then [DeleteEntry(Z)] | |
278 | 273 | else throw("no") | |
279 | 274 | } | |
280 | 275 | ||
281 | 276 |
github/deemru/w8io/026f985 43.41 ms ◑