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