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