tx · CboHuC5FEDn67NKj5dZDf27moNKES8Y5dGj4kp6qEfK5

3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj:  -0.01400000 Waves

2022.07.04 11:47 [2124710] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves

{ "type": 13, "id": "CboHuC5FEDn67NKj5dZDf27moNKES8Y5dGj4kp6qEfK5", "fee": 1400000, "feeAssetId": null, "timestamp": 1656924438078, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "3vf2T6QoAhWAWqbeQR6cL8Mzi2Xp2D22HmbzyigUa8z9NyBwWHxnjGRNbuFiAni8WKSCVcQva2bHqsiF31BSgfpc" ], "script": "base64:AAIFAAAAAAAAADwIAhIECgIECBIDCgEEEgYKBAgICAgSBgoECAgICBIFCgMICAgSAwoBCBIGCgQICAEBEgQKAggIEgMKAQgAAAAiAAAAAAVjaHJpcwIAAAAjM01zRzZqUE5DclZKVXRZQjdYSkJ4Uzd1dFdzWEFmNG45VnAAAAAABGpvZXACAAAAIzNNem00Vkx3c045dVp3YlRNelBqM1h1eFY2a0VmQVI4VUROAAAAAA5kYXBwUnVubmluZ0tleQIAAAAUY29uZl9kYXBwX2lzX3J1bm5pbmcAAAAAEW1haW50ZW5hbmNlTVNHS2V5AgAAABRjb25mX21haW50ZW5hbmNlX21zZwAAAAASd2hpdGVsaXN0ZWRvbmx5S2V5AgAAABVjb25mX3doaXRlbGlzdGVkX29ubHkAAAAAC2RhcHBSdW5uaW5nCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAADmRhcHBSdW5uaW5nS2V5BgAAAAAObWFpbnRlbmFuY2VNU0cJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwUAAAARbWFpbn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QAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAA9rZXlQcmltYXJ5U2hhcmUAAAABBQAAAAphcnRpc3RBZGRyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAABFrZXlTZWNvbmRhcnlTaGFyZQAAAAEFAAAACmFydGlzdEFkZHIFAAAAA25pbAkAAAIAAAABAgAAABNZb3UgYXJlIG5vdCBhbGxvd2VkAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAADU2aq4=", "height": 2124710, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cpe3ZdDPrZPjNNkbYaUEz3uMMTLjwE8BFBtfbTiRXJbU Next: FypCAwDCH8Qrmuq8vacKrmeCQbgQHNoZPqKimj236517 Diff:
OldNewDifferences
188188 func registerUser (L,M,N,ae) = if (!(f))
189189 then throw(g)
190190 else {
191- let v = toString(addressFromPublicKey(Z.originCallerPublicKey))
191+ let v = toString(addressFromPublicKey(Z.callerPublicKey))
192192 let ac = toBase58String(Z.transactionId)
193193 let af = lastBlock.timestamp
194194 if (!(K(v, L, M, N, false)))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
55
66 let b = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
77
88 let c = "conf_dapp_is_running"
99
1010 let d = "conf_maintenance_msg"
1111
1212 let e = "conf_whitelisted_only"
1313
1414 let f = valueOrElse(getBoolean(this, c), true)
1515
1616 let g = valueOrElse(getString(this, d), "")
1717
1818 let h = valueOrElse(getBoolean(this, e), true)
1919
2020 let i = "ALLOWED"
2121
2222 let j = "REGISTERED"
2323
2424 let k = "VERIFIED"
2525
2626 let l = "SUSPENDED"
2727
2828 let m = "REMOVED"
2929
3030 let n = "CHANGE_REQUIRED"
3131
3232 let o = "UNREGISTERED"
3333
3434 let p = "RESET"
3535
3636 func q (r) = valueOrElse(getString(this, r), "")
3737
3838
3939 func s (r) = valueOrElse(getBoolean(this, r), false)
4040
4141
4242 func t (r) = valueOrElse(getInteger(this, r), 0)
4343
4444
4545 func u (v) = ("user_" + v)
4646
4747
4848 func w (v) = ("user_name_" + v)
4949
5050
5151 func x (v) = ("user_desc_" + v)
5252
5353
5454 func y (v) = ("user_social_" + v)
5555
5656
5757 func z (v) = ("user_thumb_" + v)
5858
5959
6060 func A (v) = ("user_status_" + v)
6161
6262
6363 func B (v) = ("user_date_" + v)
6464
6565
6666 func C (D) = ("artist_agent_" + D)
6767
6868
6969 func E (F,D) = ((("agent_" + F) + "_") + D)
7070
7171
7272 func G (D) = ("artist_agent_primary_" + D)
7373
7474
7575 func H (D) = ("artist_agent_secondary_" + D)
7676
7777
7878 func I (J) = if (contains(J, "/"))
7979 then if (if ((76 > size(J)))
8080 then (size(split(J, "/")[0]) == 59)
8181 else false)
8282 then (16 > size(split(J, "/")[1]))
8383 else false
8484 else false
8585
8686
8787 func K (v,L,M,N,O) = {
8888 let P = if ((size(N) != 0))
8989 then I(N)
9090 else true
9191 if (!(P))
9292 then throw("CID don't match requirement!")
9393 else if (if ((L == ""))
9494 then true
9595 else (M == ""))
9696 then throw("Name and description cannot be empty")
9797 else if ((size(M) > 600))
9898 then throw("600 Char. max description")
9999 else if ((size(L) > 45))
100100 then throw("45 Char. max name")
101101 else {
102102 let Q = q(A(v))
103103 if (true)
104104 then throw(((("caller = " + v) + " status = ") + Q))
105105 else if (if ((Q == l))
106106 then true
107107 else (Q == m))
108108 then throw("Account suspended/ removed.")
109109 else if (if (!(O))
110110 then (Q == j)
111111 else false)
112112 then throw("Already registered")
113113 else if (if (if (!(O))
114114 then (Q == "")
115115 else false)
116116 then h
117117 else false)
118118 then throw("Can't register, get approved first.")
119119 else if (if (if (O)
120120 then (Q == "")
121121 else false)
122122 then true
123123 else if (O)
124124 then (Q == i)
125125 else false)
126126 then throw("Register first")
127127 else true
128128 }
129129 }
130130
131131
132132 func R (Q,S,T) = {
133133 let U = [k, j, l, m, i, n]
134134 let V = if (containsElement(U, Q))
135135 then Q
136136 else if (if ((Q == p))
137137 then (T == i)
138138 else false)
139139 then ""
140140 else throw("Unknown status")
141141 let W = t(B(S))
142142 if (if ((W == 0))
143143 then (V != i)
144144 else false)
145145 then throw("You cant set this status, user is not registered.")
146146 else if (if ((T == i))
147147 then (V == i)
148148 else false)
149149 then throw("User already allowed")
150150 else if (if ((T == j))
151151 then (V == i)
152152 else false)
153153 then throw("User already allowed & registered")
154154 else if (if ((T == k))
155155 then (V == i)
156156 else false)
157157 then throw("User already allowed & verified")
158158 else V
159159 }
160160
161161
162162 func X (L,N,Y) = (((((("{\"user_name\": \"" + L) + "\", \"user_thumb\":\"") + N) + "\",\"user_date\":\"") + Y) + "\"}")
163163
164164
165165 @Callable(Z)
166166 func appRunning (aa,ab) = {
167167 let v = toString(addressFromPublicKey(Z.callerPublicKey))
168168 let ac = toBase58String(Z.transactionId)
169169 if (containsElement([a, b, toString(this)], v))
170170 then [BooleanEntry(c, aa), StringEntry(d, ab)]
171171 else throw("You are not allowed to change this")
172172 }
173173
174174
175175
176176 @Callable(Z)
177177 func registrationMode (ad) = {
178178 let v = toString(addressFromPublicKey(Z.callerPublicKey))
179179 let ac = toBase58String(Z.transactionId)
180180 if (containsElement([a, toString(this)], v))
181181 then [BooleanEntry(e, ad)]
182182 else throw("You are not allowed to change this")
183183 }
184184
185185
186186
187187 @Callable(Z)
188188 func registerUser (L,M,N,ae) = if (!(f))
189189 then throw(g)
190190 else {
191- let v = toString(addressFromPublicKey(Z.originCallerPublicKey))
191+ let v = toString(addressFromPublicKey(Z.callerPublicKey))
192192 let ac = toBase58String(Z.transactionId)
193193 let af = lastBlock.timestamp
194194 if (!(K(v, L, M, N, false)))
195195 then throw("Something went wrong")
196196 else {
197197 let ag = X(toBase64String(toBytes(L)), toBase64String(toBytes(N)), toString(af))
198198 [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)]
199199 }
200200 }
201201
202202
203203
204204 @Callable(Z)
205205 func updateUser (L,M,N,ae) = if (!(f))
206206 then throw(g)
207207 else {
208208 let v = toString(addressFromPublicKey(Z.callerPublicKey))
209209 let ac = toBase58String(Z.transactionId)
210210 let Q = q(A(v))
211211 if (!(K(v, L, M, N, true)))
212212 then throw("Something went wrong")
213213 else {
214214 let Y = t(B(v))
215215 let ag = X(toBase64String(toBytes(L)), toBase64String(toBytes(N)), toString(Y))
216216 [StringEntry(w(v), L), StringEntry(x(v), M), StringEntry(y(v), ae), StringEntry(z(v), N), StringEntry(((Q + "_") + v), ag)]
217217 }
218218 }
219219
220220
221221
222222 @Callable(Z)
223223 func changeUserStatus (S,Q,ah) = {
224224 let v = toString(addressFromPublicKey(Z.callerPublicKey))
225225 let ac = toBase58String(Z.transactionId)
226226 let T = q(A(S))
227227 let V = R(Q, S, T)
228228 let L = toBase64String(toBytes(q(w(S))))
229229 let N = toBase64String(toBytes(q(z(S))))
230230 let Y = t(B(S))
231231 let ag = X(L, N, toString(Y))
232232 if (containsElement([a, b, toString(this)], v))
233233 then [StringEntry(A(S), V), DeleteEntry(((T + "_") + S)), StringEntry(((V + "_") + S), ag), StringEntry(("user_note_" + S), ah)]
234234 else throw("Not allowed to change user status")
235235 }
236236
237237
238238
239239 @Callable(Z)
240240 func deleteUser (S) = {
241241 let v = toString(addressFromPublicKey(Z.callerPublicKey))
242242 let ac = toBase58String(Z.transactionId)
243243 let T = q(A(S))
244244 if (containsElement([a, toString(this)], v))
245245 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)]
246246 else throw("Not allowed")
247247 }
248248
249249
250250
251251 @Callable(ai)
252252 func setAgent (D,F,aj,ak) = if (!(f))
253253 then throw(g)
254254 else {
255255 let v = toString(addressFromPublicKey(ai.callerPublicKey))
256256 if (containsElement([a, toString(this)], v))
257257 then if (if ((size(D) != 35))
258258 then true
259259 else (size(F) != 35))
260260 then throw("Wrong address")
261261 else [StringEntry(C(D), F), StringEntry(E(F, D), D), IntegerEntry(G(D), aj), IntegerEntry(H(D), ak)]
262262 else throw("You are not allowed")
263263 }
264264
265265
266266
267267 @Callable(ai)
268268 func unsetAgent (D,F) = if (!(f))
269269 then throw(g)
270270 else {
271271 let v = toString(addressFromPublicKey(ai.callerPublicKey))
272272 if (containsElement([a, toString(this)], v))
273273 then if (if ((size(D) != 35))
274274 then true
275275 else (size(F) != 35))
276276 then throw("Wrong address")
277277 else [DeleteEntry(C(D)), DeleteEntry(E(F, D)), DeleteEntry(G(D)), DeleteEntry(H(D))]
278278 else throw("You are not allowed")
279279 }
280280
281281
282282
283283 @Callable(ai)
284284 func deleteEntry (al) = {
285285 let v = toString(addressFromPublicKey(ai.callerPublicKey))
286286 if ((v == a))
287287 then [DeleteEntry(al)]
288288 else throw("no")
289289 }
290290
291291

github/deemru/w8io/026f985 
56.32 ms