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