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