tx · H91cJxgSwGGEgqwPLK4znNw5z9mMyJnSD5bp9a8Wtsjg 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj: -0.01400000 Waves 2020.12.22 14:33 [1319857] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves
{ "type": 13, "id": "H91cJxgSwGGEgqwPLK4znNw5z9mMyJnSD5bp9a8Wtsjg", "fee": 1400000, "feeAssetId": null, "timestamp": 1608636779392, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "3vym393GH3JSbHCAaJYv5XqBKa8x4XesLeHP2iSVWb76w6xze5wwYPB7MGWFYd21EEFKwifA4tYZgaaRgxu79c4H" ], "script": "base64:AAIEAAAAAAAAACgIAhIECgIECBIDCgEEEgYKBAgICAgSBgoECAgICBIECgIICBIDCgEIAAAAHAAAAAALc2lnbkFzc2V0SWQBAAAAIOilarzKd0LycGEyNUpPRYO5uR7lmWcXw3Hq2QuhBK3rAAAAAAVjaHJpcwIAAAAjM01zRzZqUE5DclZKVXRZQjdYSkJ4Uzd1dFdzWEFmNG45VnAAAAAABGpvZXACAAAAIzNNem00Vkx3c045dVp3YlRNelBqM1h1eFY2a0VmQVI4VUROAAAAAA5kYXBwUnVubmluZ0tleQIAAAAUY29uZl9kYXBwX2lzX3J1bm5pbmcAAAAAEW1haW50ZW5hbmNlTVNHS2V5AgAAABRjb25mX21haW50ZW5hbmNlX21zZwAAAAASd2hpdGVsaXN0ZWRvbmx5S2V5AgAAABVjb25mX3doaXRlbGlzdGVkX29ubHkAAAAAC2RhcHBSdW5uaW5nBAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAADmRhcHBSdW5uaW5nS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAck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AAEFAAAABHRoaXMFAAAAA25pbAUAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAtrZXlVc2VyRGF0ZQAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAC2tleVVzZXJBZGRyAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAALa2V5VXNlck5hbWUAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAtrZXlVc2VyRGVzYwAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAADWtleVVzZXJTb2NpYWwAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAxrZXlVc2VyVGh1bWIAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgkAASwAAAACBQAAAA1jdXJyZW50U3RhdHVzAgAAAAFfBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAA1rZXlVc2VyU3RhdHVzAAAAAQUAAAAHYWRkcmVzcwUAAAALdXNlclJlbW92ZWQFAAAAA25pbAkAAAIAAAABAgAAAAtOb3QgYWxsb3dlZAAAAAA0wkCV", "height": 1319857, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6zPCs5w7cakVvN2fdCGfUoGSeuAmZ9bjVCuvjrHxkWK1 Next: 2LSYyjv5ZoECvmqcw1bCg5A53zEtnYH59CdLTJ7rsuN2 Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | else [StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O)] | |
202 | + | else { | |
203 | + | let U = w(H(B)) | |
204 | + | let S = (((((("{\"user_name\": \"" + toBase64String(toBytes(M))) + "\", \"user_thumb\":\"") + toBase64String(toBytes(O))) + "\",\"user_date\":\"") + toString(U)) + "\"}") | |
205 | + | [StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O), StringEntry(((T + "_") + B), S)] | |
206 | + | } | |
203 | 207 | } | |
204 | 208 | ||
205 | 209 | ||
206 | 210 | ||
207 | 211 | @Callable(x) | |
208 | - | func changeUserStatus ( | |
212 | + | func changeUserStatus (V,W) = if (!(g)) | |
209 | 213 | then throw(j) | |
210 | 214 | else { | |
211 | 215 | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
212 | 216 | let K = toBase58String(x.transactionId) | |
213 | - | let | |
214 | - | let | |
217 | + | let X = t(G(V)) | |
218 | + | let Y = if ((W == n)) | |
215 | 219 | then n | |
216 | - | else if (( | |
220 | + | else if ((W == m)) | |
217 | 221 | then m | |
218 | - | else if (( | |
222 | + | else if ((W == o)) | |
219 | 223 | then o | |
220 | - | else if (( | |
224 | + | else if ((W == p)) | |
221 | 225 | then p | |
222 | - | else if (( | |
226 | + | else if ((W == l)) | |
223 | 227 | then l | |
224 | - | else if (( | |
228 | + | else if ((W == q)) | |
225 | 229 | then q | |
226 | - | else if (if (( | |
227 | - | then ( | |
230 | + | else if (if ((W == s)) | |
231 | + | then (X == l) | |
228 | 232 | else false) | |
229 | 233 | then "" | |
230 | 234 | else throw("Unknown status") | |
231 | - | let | |
232 | - | if (if (( | |
233 | - | then ( | |
235 | + | let Z = w(H(V)) | |
236 | + | if (if ((Z == 0)) | |
237 | + | then (W != l) | |
234 | 238 | else false) | |
235 | 239 | then throw("You cant set this status, user is not registered.") | |
236 | - | else if (if (( | |
237 | - | then ( | |
240 | + | else if (if ((X == l)) | |
241 | + | then (W == l) | |
238 | 242 | else false) | |
239 | 243 | then throw("User already allowed") | |
240 | - | else if (if (( | |
241 | - | then ( | |
244 | + | else if (if ((X == m)) | |
245 | + | then (W == l) | |
242 | 246 | else false) | |
243 | 247 | then throw("User already allowed & registered") | |
244 | - | else if (if (( | |
245 | - | then ( | |
248 | + | else if (if ((X == n)) | |
249 | + | then (W == l) | |
246 | 250 | else false) | |
247 | 251 | then throw("User already allowed & verified") | |
248 | 252 | else { | |
249 | - | let M = toBase64String(toBytes(t(C( | |
250 | - | let O = toBase64String(toBytes(t(F( | |
251 | - | let | |
252 | - | let S = (((((("{\"user_name\": \"" + M) + "\", \"user_thumb\":\"") + O) + "\",\"user_date\":\"") + toString( | |
253 | + | let M = toBase64String(toBytes(t(C(V)))) | |
254 | + | let O = toBase64String(toBytes(t(F(V)))) | |
255 | + | let U = w(H(V)) | |
256 | + | let S = (((((("{\"user_name\": \"" + M) + "\", \"user_thumb\":\"") + O) + "\",\"user_date\":\"") + toString(U)) + "\"}") | |
253 | 257 | if (containsElement([b, c, toString(this)], B)) | |
254 | - | then [StringEntry(G( | |
258 | + | then [StringEntry(G(V), Y), DeleteEntry(((X + "_") + V)), StringEntry(((Y + "_") + V), S)] | |
255 | 259 | else throw("Not allowed to change user status") | |
256 | 260 | } | |
257 | 261 | } | |
259 | 263 | ||
260 | 264 | ||
261 | 265 | @Callable(x) | |
262 | - | func deleteUser ( | |
266 | + | func deleteUser (V) = { | |
263 | 267 | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
264 | 268 | let K = toBase58String(x.transactionId) | |
265 | - | let | |
269 | + | let X = t(G(V)) | |
266 | 270 | if (containsElement([b, toString(this)], B)) | |
267 | - | then [DeleteEntry(H( | |
271 | + | then [DeleteEntry(H(V)), DeleteEntry(A(V)), DeleteEntry(C(V)), DeleteEntry(D(V)), DeleteEntry(E(V)), DeleteEntry(F(V)), DeleteEntry(((X + "_") + V)), StringEntry(G(V), p)] | |
268 | 272 | else throw("Not allowed") | |
269 | 273 | } | |
270 | 274 |
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 | - | else [StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O)] | |
202 | + | else { | |
203 | + | let U = w(H(B)) | |
204 | + | let S = (((((("{\"user_name\": \"" + toBase64String(toBytes(M))) + "\", \"user_thumb\":\"") + toBase64String(toBytes(O))) + "\",\"user_date\":\"") + toString(U)) + "\"}") | |
205 | + | [StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O), StringEntry(((T + "_") + B), S)] | |
206 | + | } | |
203 | 207 | } | |
204 | 208 | ||
205 | 209 | ||
206 | 210 | ||
207 | 211 | @Callable(x) | |
208 | - | func changeUserStatus ( | |
212 | + | func changeUserStatus (V,W) = if (!(g)) | |
209 | 213 | then throw(j) | |
210 | 214 | else { | |
211 | 215 | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
212 | 216 | let K = toBase58String(x.transactionId) | |
213 | - | let | |
214 | - | let | |
217 | + | let X = t(G(V)) | |
218 | + | let Y = if ((W == n)) | |
215 | 219 | then n | |
216 | - | else if (( | |
220 | + | else if ((W == m)) | |
217 | 221 | then m | |
218 | - | else if (( | |
222 | + | else if ((W == o)) | |
219 | 223 | then o | |
220 | - | else if (( | |
224 | + | else if ((W == p)) | |
221 | 225 | then p | |
222 | - | else if (( | |
226 | + | else if ((W == l)) | |
223 | 227 | then l | |
224 | - | else if (( | |
228 | + | else if ((W == q)) | |
225 | 229 | then q | |
226 | - | else if (if (( | |
227 | - | then ( | |
230 | + | else if (if ((W == s)) | |
231 | + | then (X == l) | |
228 | 232 | else false) | |
229 | 233 | then "" | |
230 | 234 | else throw("Unknown status") | |
231 | - | let | |
232 | - | if (if (( | |
233 | - | then ( | |
235 | + | let Z = w(H(V)) | |
236 | + | if (if ((Z == 0)) | |
237 | + | then (W != l) | |
234 | 238 | else false) | |
235 | 239 | then throw("You cant set this status, user is not registered.") | |
236 | - | else if (if (( | |
237 | - | then ( | |
240 | + | else if (if ((X == l)) | |
241 | + | then (W == l) | |
238 | 242 | else false) | |
239 | 243 | then throw("User already allowed") | |
240 | - | else if (if (( | |
241 | - | then ( | |
244 | + | else if (if ((X == m)) | |
245 | + | then (W == l) | |
242 | 246 | else false) | |
243 | 247 | then throw("User already allowed & registered") | |
244 | - | else if (if (( | |
245 | - | then ( | |
248 | + | else if (if ((X == n)) | |
249 | + | then (W == l) | |
246 | 250 | else false) | |
247 | 251 | then throw("User already allowed & verified") | |
248 | 252 | else { | |
249 | - | let M = toBase64String(toBytes(t(C( | |
250 | - | let O = toBase64String(toBytes(t(F( | |
251 | - | let | |
252 | - | let S = (((((("{\"user_name\": \"" + M) + "\", \"user_thumb\":\"") + O) + "\",\"user_date\":\"") + toString( | |
253 | + | let M = toBase64String(toBytes(t(C(V)))) | |
254 | + | let O = toBase64String(toBytes(t(F(V)))) | |
255 | + | let U = w(H(V)) | |
256 | + | let S = (((((("{\"user_name\": \"" + M) + "\", \"user_thumb\":\"") + O) + "\",\"user_date\":\"") + toString(U)) + "\"}") | |
253 | 257 | if (containsElement([b, c, toString(this)], B)) | |
254 | - | then [StringEntry(G( | |
258 | + | then [StringEntry(G(V), Y), DeleteEntry(((X + "_") + V)), StringEntry(((Y + "_") + V), S)] | |
255 | 259 | else throw("Not allowed to change user status") | |
256 | 260 | } | |
257 | 261 | } | |
258 | 262 | ||
259 | 263 | ||
260 | 264 | ||
261 | 265 | @Callable(x) | |
262 | - | func deleteUser ( | |
266 | + | func deleteUser (V) = { | |
263 | 267 | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
264 | 268 | let K = toBase58String(x.transactionId) | |
265 | - | let | |
269 | + | let X = t(G(V)) | |
266 | 270 | if (containsElement([b, toString(this)], B)) | |
267 | - | then [DeleteEntry(H( | |
271 | + | then [DeleteEntry(H(V)), DeleteEntry(A(V)), DeleteEntry(C(V)), DeleteEntry(D(V)), DeleteEntry(E(V)), DeleteEntry(F(V)), DeleteEntry(((X + "_") + V)), StringEntry(G(V), p)] | |
268 | 272 | else throw("Not allowed") | |
269 | 273 | } | |
270 | 274 | ||
271 | 275 |
github/deemru/w8io/169f3d6 58.93 ms ◑