tx · 4eSPSjkGxbdm2SqLqX5w8itinbFSmaLHG3tK4CFSz9rt

3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj:  -0.01400000 Waves

2020.12.09 07:08 [1300622] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves

{ "type": 13, "id": "4eSPSjkGxbdm2SqLqX5w8itinbFSmaLHG3tK4CFSz9rt", "fee": 1400000, "feeAssetId": null, "timestamp": 1607486964219, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "2tYJEf2o7xpP2JxGWxtAVecy6faYVQt7svYSeKpyXEMSAFckN92h3G8RF1iVt6DsGv2dmStX2P2Y8iKWDWGiRYWi" ], "script": "base64:AAIEAAAAAAAAADIIAhIECgIECBIDCgEEEgYKBAgICAgSBgoECAgICBIECgIICBIDCgEIEgMKAQgSAwoBCAAAABwBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAPZ2V0Qm9vbGVhbkJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBwEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWkFAAAAByRtYXRjaDAFAAAAAWkAAAA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XJEZXNjAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAANa2V5VXNlclNvY2lhbAAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAADGtleVVzZXJUaHVtYgAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADWtleVVzZXJTdGF0dXMAAAABBQAAAAdhZGRyZXNzBQAAAAt1c2VyUmVtb3ZlZAUAAAADbmlsCQAAAgAAAAECAAAAC05vdCBhbGxvd2VkAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAGCwdMM=", "height": 1300622, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2fJifczpEwhKC8xoHRFLcuqgqGwNFNovRiXGAgLzAQUb Next: Gk337F8QUrfhg2o3fw1jqpK84rZxrypHrcoaLa2rN4dY Diff:
OldNewDifferences
178178
179179
180180 @Callable(g)
181-func changeUserStatus (S,I) = if (!(m))
181+func changeUserStatus (S,T) = if (!(m))
182182 then throw(n)
183183 else {
184184 let B = toString(addressFromPublicKey(g.callerPublicKey))
185185 let K = toBase58String(g.transactionId)
186- let T = a(G(S))
187- let U = if ((I == u))
186+ let U = a(G(S))
187+ let V = if ((T == u))
188188 then u
189- else if ((I == t))
189+ else if ((T == t))
190190 then t
191- else if ((I == v))
191+ else if ((T == v))
192192 then v
193- else if ((I == w))
193+ else if ((T == w))
194194 then w
195- else if ((I == s))
195+ else if ((T == s))
196196 then s
197- else if ((I == x))
197+ else if ((T == x))
198198 then x
199- else if (if ((I == z))
200- then (T == s)
199+ else if (if ((T == z))
200+ then (U == s)
201201 else false)
202202 then ""
203203 else throw("Unknown status")
204- let V = f(H(S))
205- if (if ((V == 0))
206- then (I != s)
204+ let W = f(H(S))
205+ if (if ((W == 0))
206+ then (T != s)
207207 else false)
208208 then throw("You cant set this status, user is not registered.")
209- else if (if ((T == s))
210- then (I == s)
209+ else if (if ((U == s))
210+ then (T == s)
211211 else false)
212212 then throw("User already allowed")
213- else if (if ((T == t))
214- then (I == s)
213+ else if (if ((U == t))
214+ then (T == s)
215215 else false)
216216 then throw("User already allowed & registered")
217- else if (if ((T == u))
218- then (I == s)
217+ else if (if ((U == u))
218+ then (T == s)
219219 else false)
220220 then throw("User already allowed & verified")
221221 else if (containsElement([q, r, toString(this)], B))
222- then [StringEntry(G(S), U)]
222+ then [StringEntry(G(S), V)]
223223 else throw("Not allowed to change user status")
224224 }
225225
248248
249249
250250 @Callable(g)
251-func deleteEntry (W) = {
251+func deleteEntry (X) = {
252252 let B = toString(addressFromPublicKey(g.callerPublicKey))
253253 if ((B == q))
254- then [DeleteEntry(W)]
254+ then [DeleteEntry(X)]
255255 else throw("no")
256256 }
257257
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = getString(this, b)
66 if ($isInstanceOf(c, "String"))
77 then {
88 let d = c
99 d
1010 }
1111 else ""
1212 }
1313
1414
1515 func e (b) = {
1616 let c = getBoolean(this, b)
1717 if ($isInstanceOf(c, "Boolean"))
1818 then {
1919 let d = c
2020 d
2121 }
2222 else false
2323 }
2424
2525
2626 func f (b) = {
2727 let c = getInteger(this, b)
2828 if ($isInstanceOf(c, "Int"))
2929 then {
3030 let g = c
3131 g
3232 }
3333 else 0
3434 }
3535
3636
3737 func h (i) = if (if ((75 > size(i)))
3838 then (60 > size(split(i, "/")[0]))
3939 else false)
4040 then (16 > size(split(i, "/")[1]))
4141 else false
4242
4343
4444 let j = "conf_dapp_is_running"
4545
4646 let k = "conf_maintenance_msg"
4747
4848 let l = "conf_whitelisted_only"
4949
5050 let m = e(j)
5151
5252 let n = a(k)
5353
5454 let o = e(l)
5555
5656 let p = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
5757
5858 let q = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
5959
6060 let r = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
6161
6262 let s = "ALLOWED"
6363
6464 let t = "REGISTERED"
6565
6666 let u = "VERIFIED"
6767
6868 let v = "SUSPENDED"
6969
7070 let w = "REMOVED"
7171
7272 let x = "CHANGE_REQUIRED"
7373
7474 let y = "UNREGISTERED"
7575
7676 let z = "RESET"
7777
7878 func A (B) = ("user_" + B)
7979
8080
8181 func C (B) = ("user_name_" + B)
8282
8383
8484 func D (B) = ("user_desc_" + B)
8585
8686
8787 func E (B) = ("user_social_" + B)
8888
8989
9090 func F (B) = ("user_thumb_" + B)
9191
9292
9393 func G (B) = ("user_status_" + B)
9494
9595
9696 func H (B) = ("user_date_" + B)
9797
9898
9999 @Callable(g)
100100 func maintenance (I,J) = {
101101 let B = toString(addressFromPublicKey(g.callerPublicKey))
102102 let K = toBase58String(g.transactionId)
103103 if (containsElement([q, r, toString(this)], B))
104104 then [BooleanEntry("conf_dapp_is_running", I), StringEntry("conf_maintenance_msg", J)]
105105 else throw("You are not allowed to change this")
106106 }
107107
108108
109109
110110 @Callable(g)
111111 func registrationMode (o) = {
112112 let B = toString(addressFromPublicKey(g.callerPublicKey))
113113 let K = toBase58String(g.transactionId)
114114 if (containsElement([q, r, toString(this)], B))
115115 then [BooleanEntry("conf_whitelisted_only", o)]
116116 else throw("You are not allowed to change this")
117117 }
118118
119119
120120
121121 @Callable(g)
122122 func registerUser (L,M,N,O) = if (!(m))
123123 then throw(n)
124124 else {
125125 let B = toString(addressFromPublicKey(g.callerPublicKey))
126126 let P = a(G(B))
127127 let K = toBase58String(g.transactionId)
128128 let Q = lastBlock.timestamp
129129 if (if ((P == v))
130130 then true
131131 else (P == w))
132132 then throw("Account suspended/ removed.")
133133 else if ((P == t))
134134 then throw("Already registered")
135135 else if (if ((P == ""))
136136 then o
137137 else false)
138138 then throw("Can't register, get approved first.")
139139 else if (if ((L == ""))
140140 then true
141141 else (M == ""))
142142 then throw("Name and description cannot be empty")
143143 else if ((size(M) > 600))
144144 then throw("600 Char. max description")
145145 else if ((size(L) > 45))
146146 then throw("45 Char. max name")
147147 else [IntegerEntry(H(B), Q), StringEntry(A(B), ((K + "_") + toString(Q))), StringEntry(C(B), L), StringEntry(D(B), M), StringEntry(E(B), O), StringEntry(F(B), N), StringEntry(G(B), t)]
148148 }
149149
150150
151151
152152 @Callable(g)
153153 func updateUser (L,M,N,O) = if (!(m))
154154 then throw(n)
155155 else {
156156 let B = toString(addressFromPublicKey(g.callerPublicKey))
157157 let K = toBase58String(g.transactionId)
158158 let R = a(G(B))
159159 if (if ((R == v))
160160 then true
161161 else (R == w))
162162 then throw("Account suspended/ removed.")
163163 else if (if ((R == ""))
164164 then true
165165 else (R == s))
166166 then throw("Register first")
167167 else if (if ((L == ""))
168168 then true
169169 else (M == ""))
170170 then throw("Name & description cannot be empty")
171171 else if ((size(M) > 600))
172172 then throw("600 Char. max for description")
173173 else if ((size(L) > 45))
174174 then throw("45 Char. max name")
175175 else [StringEntry(C(B), L), StringEntry(D(B), M), StringEntry(E(B), O), StringEntry(F(B), N)]
176176 }
177177
178178
179179
180180 @Callable(g)
181-func changeUserStatus (S,I) = if (!(m))
181+func changeUserStatus (S,T) = if (!(m))
182182 then throw(n)
183183 else {
184184 let B = toString(addressFromPublicKey(g.callerPublicKey))
185185 let K = toBase58String(g.transactionId)
186- let T = a(G(S))
187- let U = if ((I == u))
186+ let U = a(G(S))
187+ let V = if ((T == u))
188188 then u
189- else if ((I == t))
189+ else if ((T == t))
190190 then t
191- else if ((I == v))
191+ else if ((T == v))
192192 then v
193- else if ((I == w))
193+ else if ((T == w))
194194 then w
195- else if ((I == s))
195+ else if ((T == s))
196196 then s
197- else if ((I == x))
197+ else if ((T == x))
198198 then x
199- else if (if ((I == z))
200- then (T == s)
199+ else if (if ((T == z))
200+ then (U == s)
201201 else false)
202202 then ""
203203 else throw("Unknown status")
204- let V = f(H(S))
205- if (if ((V == 0))
206- then (I != s)
204+ let W = f(H(S))
205+ if (if ((W == 0))
206+ then (T != s)
207207 else false)
208208 then throw("You cant set this status, user is not registered.")
209- else if (if ((T == s))
210- then (I == s)
209+ else if (if ((U == s))
210+ then (T == s)
211211 else false)
212212 then throw("User already allowed")
213- else if (if ((T == t))
214- then (I == s)
213+ else if (if ((U == t))
214+ then (T == s)
215215 else false)
216216 then throw("User already allowed & registered")
217- else if (if ((T == u))
218- then (I == s)
217+ else if (if ((U == u))
218+ then (T == s)
219219 else false)
220220 then throw("User already allowed & verified")
221221 else if (containsElement([q, r, toString(this)], B))
222- then [StringEntry(G(S), U)]
222+ then [StringEntry(G(S), V)]
223223 else throw("Not allowed to change user status")
224224 }
225225
226226
227227
228228 @Callable(g)
229229 func creditUser (S) = {
230230 let B = toString(addressFromPublicKey(g.callerPublicKey))
231231 let K = toBase58String(g.transactionId)
232232 if (containsElement([q, r], B))
233233 then [ScriptTransfer(Address(fromBase58String(S)), 30000000000, p)]
234234 else throw("Not allowed")
235235 }
236236
237237
238238
239239 @Callable(g)
240240 func deleteUser (S) = {
241241 let B = toString(addressFromPublicKey(g.callerPublicKey))
242242 let K = toBase58String(g.transactionId)
243243 if (containsElement([q, r, toString(this)], B))
244244 then [DeleteEntry(H(S)), DeleteEntry(A(S)), DeleteEntry(C(S)), DeleteEntry(D(S)), DeleteEntry(E(S)), DeleteEntry(F(S)), StringEntry(G(S), w)]
245245 else throw("Not allowed")
246246 }
247247
248248
249249
250250 @Callable(g)
251-func deleteEntry (W) = {
251+func deleteEntry (X) = {
252252 let B = toString(addressFromPublicKey(g.callerPublicKey))
253253 if ((B == q))
254- then [DeleteEntry(W)]
254+ then [DeleteEntry(X)]
255255 else throw("no")
256256 }
257257
258258

github/deemru/w8io/169f3d6 
39.84 ms