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