tx · 4vraSxi5GptroGGSYJGopcSnEuh3uya9Gci8J5CPUrSU

3Mzv4UHGRCC5KknZb8x5wfFUQzzpY9G4Gn4:  -0.01000000 Waves

2022.02.06 13:25 [1911624] smart account 3Mzv4UHGRCC5KknZb8x5wfFUQzzpY9G4Gn4 > SELF 0.00000000 Waves

{ "type": 13, "id": "4vraSxi5GptroGGSYJGopcSnEuh3uya9Gci8J5CPUrSU", "fee": 1000000, "feeAssetId": null, "timestamp": 1644143127905, "version": 2, "chainId": 84, "sender": "3Mzv4UHGRCC5KknZb8x5wfFUQzzpY9G4Gn4", "senderPublicKey": "48ubzSqKVfBfvt6nKVTSRyMM1EQ97RwF7RQcBjS1p4VB", "proofs": [ "3NUQ1cYygdu8TtFGbkQmFeQ5bGn63Ja7uZHmWUUwet6GrxPX9GLBbvVv4tVJ8cdcGiCoNaEVXG7YZ3ViTVvRRqBh" ], "script": "base64:AAIFAAAAAAAAADEIAhIECgIECBIDCgEEEgcKBQgICAgIEgcKBQgICAgIEgYKBAgICAgSAwoBCBIDCgEIAAAAHwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNcFpRanpHb2dtaWZjRUtlOG1EZDZyaWJMN254VDlBQ3llAAAAAAZvd25lcnMJAARMAAAAAgkABB0AAAACBQAAAAlvcmFjbGVGZWUCAAAABm93bmVyMQkABEwAAAACCQAEHQAAAAIFAAAACW9yYWNsZUZlZQIAAAAGb3duZXIyBQAAAANuaWwAAAAADmRhcHBSdW5uaW5nS2V5AgAAABRjb25mX2RhcHBfaXNfcnVubmluZwAAAAARbWFpbnRlbmFuY2VNU0dLZXkCAAAAFGNvbmZfbWFpbnRlbmFuY2VfbXNnAAAAABJ3aGl0ZWxpc3RlZG9ubHlLZXkCAAAAFWNvbmZfd2hpdGVsaXN0ZWRfb25seQAAAAALZGFwcFJ1bm5pbmcJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAAEdGhpcwUA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AABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgUAAAAGb3duZXJzBQAAAAZjYWxsZXIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAADVUlmW", "height": 1911624, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7kiQshw1dG31H5wq4FUx87izwMuuCvLF19q8dxaAJYCL Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = value(addressFromString("3MpZQjzGogmifcEKe8mDd6ribL7nxT9ACye"))
55
66 let b = [getString(a, "owner1"), getString(a, "owner2")]
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 = "REGISTERED"
2121
2222 let j = "VERIFIED"
2323
2424 let k = "SUSPENDED"
2525
2626 let l = "REMOVED"
2727
2828 let m = "CHANGE_REQUIRED"
2929
3030 let n = "UNREGISTERED"
3131
3232 let o = "RESET"
3333
3434 func p (q) = valueOrElse(getString(this, q), "")
3535
3636
3737 func r (q) = valueOrElse(getBoolean(this, q), false)
3838
3939
4040 func s (q) = valueOrElse(getInteger(this, q), 0)
4141
4242
4343 func t (u) = ("user_" + u)
4444
4545
4646 func v (u) = ("user_name_" + u)
4747
4848
4949 func w (u) = ("user_desc_" + u)
5050
5151
5252 func x (u) = ("user_social_" + u)
5353
5454
5555 func y (u) = ("user_thumb_" + u)
5656
5757
5858 func z (u) = ("user_banner_" + u)
5959
6060
6161 func A (u) = ("user_status_" + u)
6262
6363
6464 func B (u) = ("user_date_" + u)
6565
6666
6767 func C (D) = if (contains(D, "/"))
6868 then if (if ((63 > size(D)))
6969 then (size(split(D, "/")[0]) == 46)
7070 else false)
7171 then (16 > size(split(D, "/")[1]))
7272 else false
7373 else false
7474
7575
7676 func E (D) = if ((size(D) == 0))
7777 then true
7878 else if ((size(D) == 46))
7979 then true
8080 else false
8181
8282
8383 func F (u,G,H,I,J) = {
8484 let K = if ((size(I) != 0))
8585 then C(I)
8686 else true
8787 if (!(K))
8888 then throw("CID don't match requirement!")
8989 else if (if ((G == ""))
9090 then true
9191 else (H == ""))
9292 then throw("Name and description cannot be empty")
9393 else if ((size(H) > 600))
9494 then throw("600 Char. max description")
9595 else if ((size(G) > 45))
9696 then throw("45 Char. max name")
9797 else {
9898 let L = p(A(u))
9999 if (if ((L == k))
100100 then true
101101 else (L == l))
102102 then throw("Account suspended/ removed.")
103103 else if (if (!(J))
104104 then (L == i)
105105 else false)
106106 then throw("Already registered")
107107 else if (if (J)
108108 then (L == "")
109109 else false)
110110 then throw("Register first")
111111 else true
112112 }
113113 }
114114
115115
116116 func M (L,N,O) = {
117117 let P = [j, i, k, l, m]
118118 let Q = if (containsElement(P, L))
119119 then L
120120 else if ((L == o))
121121 then ""
122122 else throw("Unknown status")
123123 let R = s(B(N))
124124 if ((R == 0))
125125 then throw("You can't set this status, user is not registered.")
126126 else Q
127127 }
128128
129129
130130 func S (G,I,T) = (((((("{\"user_name\": \"" + G) + "\", \"user_thumb\":\"") + I) + "\",\"user_date\":\"") + T) + "\"}")
131131
132132
133133 @Callable(U)
134134 func appRunning (V,W) = {
135135 let u = toString(addressFromPublicKey(U.callerPublicKey))
136136 let X = toBase58String(U.transactionId)
137137 if (containsElement((b :+ toString(this)), u))
138138 then [BooleanEntry(c, V), StringEntry(d, W)]
139139 else throw("You are not allowed to change this")
140140 }
141141
142142
143143
144144 @Callable(U)
145145 func registrationMode (Y) = {
146146 let u = toString(addressFromPublicKey(U.callerPublicKey))
147147 let X = toBase58String(U.transactionId)
148148 if (containsElement((b :+ toString(this)), u))
149149 then [BooleanEntry(e, Y)]
150150 else throw("You are not allowed to change this")
151151 }
152152
153153
154154
155155 @Callable(U)
156156 func registerUser (G,H,I,Z,aa) = if (!(f))
157157 then throw(g)
158158 else {
159159 let u = toString(addressFromPublicKey(U.callerPublicKey))
160160 let X = toBase58String(U.transactionId)
161161 let ab = lastBlock.timestamp
162162 if (!(E(aa)))
163163 then throw("Invalid banner image!")
164164 else if (!(F(u, G, H, I, false)))
165165 then throw("Something went wrong")
166166 else {
167167 let ac = S(toBase64String(toBytes(G)), toBase64String(toBytes(I)), toString(ab))
168168 [IntegerEntry(B(u), ab), StringEntry(t(u), ((X + "_") + toString(ab))), StringEntry(v(u), G), StringEntry(w(u), H), StringEntry(x(u), Z), StringEntry(y(u), I), StringEntry(z(u), aa), StringEntry(A(u), i), StringEntry(((i + "_") + u), ac)]
169169 }
170170 }
171171
172172
173173
174174 @Callable(U)
175175 func updateUser (G,H,I,Z,aa) = if (!(f))
176176 then throw(g)
177177 else {
178178 let u = toString(addressFromPublicKey(U.callerPublicKey))
179179 let X = toBase58String(U.transactionId)
180180 let L = p(A(u))
181181 if (!(E(aa)))
182182 then throw("Invalid banner image!")
183183 else if (!(F(u, G, H, I, true)))
184184 then throw("Something went wrong")
185185 else {
186186 let T = s(B(u))
187187 let ac = S(toBase64String(toBytes(G)), toBase64String(toBytes(I)), toString(T))
188188 [StringEntry(v(u), G), StringEntry(w(u), H), StringEntry(x(u), Z), StringEntry(z(u), aa), StringEntry(y(u), I), StringEntry(((L + "_") + u), ac)]
189189 }
190190 }
191191
192192
193193
194194 @Callable(U)
195195 func changeUserStatus (N,L,ad,ae) = {
196196 let u = toString(addressFromPublicKey(U.callerPublicKey))
197197 let X = toBase58String(U.transactionId)
198198 let af = addressFromString(N)
199199 let ag = af
200200 if ($isInstanceOf(ag, "Address"))
201201 then {
202202 let af = ag
203203 let O = p(A(N))
204204 let Q = M(L, N, O)
205205 let G = toBase64String(toBytes(p(v(N))))
206206 let I = toBase64String(toBytes(p(y(N))))
207207 let T = s(B(N))
208208 let ac = S(G, I, toString(T))
209209 if (containsElement((b :+ toString(this)), u))
210210 then {
211211 let ah = if ((Q == j))
212212 then [StringEntry(("category_" + N), ae)]
213213 else [DeleteEntry(("category_" + N))]
214214 (ah ++ [StringEntry(A(N), Q), DeleteEntry(((O + "_") + N)), StringEntry(((Q + "_") + N), ac), StringEntry(("user_note_" + N), ad)])
215215 }
216216 else throw("Not allowed to change user status")
217217 }
218218 else throw("Seems to be an invalid address!")
219219 }
220220
221221
222222
223223 @Callable(U)
224224 func deleteUser (N) = {
225225 let u = toString(addressFromPublicKey(U.callerPublicKey))
226226 let X = toBase58String(U.transactionId)
227227 let O = p(A(N))
228228 if (containsElement((b :+ toString(this)), u))
229229 then [DeleteEntry(B(N)), DeleteEntry(t(N)), DeleteEntry(v(N)), DeleteEntry(w(N)), DeleteEntry(x(N)), DeleteEntry(y(N)), DeleteEntry(((O + "_") + N)), DeleteEntry(("category_" + N)), StringEntry(A(N), l)]
230230 else throw("Not allowed")
231231 }
232232
233233
234234
235235 @Callable(ai)
236236 func deleteEntry (aj) = {
237237 let u = toString(addressFromPublicKey(ai.callerPublicKey))
238238 if (containsElement(b, u))
239239 then [DeleteEntry(aj)]
240240 else throw("no")
241241 }
242242
243243

github/deemru/w8io/026f985 
37.03 ms