tx · 83geuWDdtp2aDqcmBo8swMRtoJoYyMxqj7uXH5LxpQp6 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj: -0.01400000 Waves 2020.12.09 07:30 [1300648] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves
{ "type": 13, "id": "83geuWDdtp2aDqcmBo8swMRtoJoYyMxqj7uXH5LxpQp6", "fee": 1400000, "feeAssetId": null, "timestamp": 1607488264629, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "5zw8Nank4v7PvkctHQoB3FSG28F3RnkS1fyFqEGdJZFWsBeeoRBBgp4atGk5bayPhfB666kZepK8EjV39rkdmLKB" ], "script": "base64:AAIEAAAAAAAAADIIAhIECgIECBIDCgEEEgYKBAgICAgSBgoECAgICBIECgIICBIDCgEIEgMKAQgSAwoBCAAAABwAAAAADmRhcHBSdW5uaW5nS2V5AgAAABRjb25mX2RhcHBfaXNfcnVubmluZwAAAAARbWFpbnRlbmFuY2VNU0dLZXkCAAAAFGNvbmZfbWFpbnRlbmFuY2VfbXNnAAAAABJ3aGl0ZWxpc3RlZG9ubHlLZXkCAAAAFWNvbmZfd2hpdGVsaXN0ZWRfb25seQAAAAALZGFwcFJ1bm5pbmcEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAAOZGFwcFJ1bm5pbmdLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEGAAAAAA5tYWludGVuYW5jZU1TRwQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAABFtYWludGVuYW5jZU1TR0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAA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UVudHJ5AAAAAQkBAAAAC2tleVVzZXJBZGRyAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAALa2V5VXNlck5hbWUAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAtrZXlVc2VyRGVzYwAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAADWtleVVzZXJTb2NpYWwAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAxrZXlVc2VyVGh1bWIAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAA1rZXlVc2VyU3RhdHVzAAAAAQUAAAAHYWRkcmVzcwUAAAALdXNlclJlbW92ZWQFAAAAA25pbAkAAAIAAAABAgAAAAtOb3QgYWxsb3dlZAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAADEMq4w", "height": 1300648, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FnXXQH1q98dBfE2dCUdkaUivuDJuzMLFmG2BGN2T9tyr Next: 3DoAavhzuc2ypXbtqW7qNxgTr2MrLF5nXUPawTWq7zYE Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b) = { | |
5 | - | let c = getString(this, b) | |
6 | - | if ($isInstanceOf(c, "String")) | |
4 | + | let a = "conf_dapp_is_running" | |
5 | + | ||
6 | + | let b = "conf_maintenance_msg" | |
7 | + | ||
8 | + | let c = "conf_whitelisted_only" | |
9 | + | ||
10 | + | let d = { | |
11 | + | let e = getBoolean(this, a) | |
12 | + | if ($isInstanceOf(e, "Boolean")) | |
7 | 13 | then { | |
8 | - | let d = c | |
9 | - | d | |
14 | + | let f = e | |
15 | + | f | |
16 | + | } | |
17 | + | else true | |
18 | + | } | |
19 | + | ||
20 | + | let g = { | |
21 | + | let e = getString(this, b) | |
22 | + | if ($isInstanceOf(e, "String")) | |
23 | + | then { | |
24 | + | let f = e | |
25 | + | f | |
26 | + | } | |
27 | + | else "" | |
28 | + | } | |
29 | + | ||
30 | + | let h = { | |
31 | + | let e = getBoolean(this, c) | |
32 | + | if ($isInstanceOf(e, "Boolean")) | |
33 | + | then { | |
34 | + | let f = e | |
35 | + | f | |
36 | + | } | |
37 | + | else true | |
38 | + | } | |
39 | + | ||
40 | + | let i = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
41 | + | ||
42 | + | let j = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
43 | + | ||
44 | + | let k = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
45 | + | ||
46 | + | let l = "ALLOWED" | |
47 | + | ||
48 | + | let m = "REGISTERED" | |
49 | + | ||
50 | + | let n = "VERIFIED" | |
51 | + | ||
52 | + | let o = "SUSPENDED" | |
53 | + | ||
54 | + | let p = "REMOVED" | |
55 | + | ||
56 | + | let q = "CHANGE_REQUIRED" | |
57 | + | ||
58 | + | let r = "UNREGISTERED" | |
59 | + | ||
60 | + | let s = "RESET" | |
61 | + | ||
62 | + | func t (u) = { | |
63 | + | let e = getString(this, u) | |
64 | + | if ($isInstanceOf(e, "String")) | |
65 | + | then { | |
66 | + | let f = e | |
67 | + | f | |
10 | 68 | } | |
11 | 69 | else "" | |
12 | 70 | } | |
13 | 71 | ||
14 | 72 | ||
15 | - | func | |
16 | - | let | |
17 | - | if ($isInstanceOf( | |
73 | + | func v (u) = { | |
74 | + | let e = getBoolean(this, u) | |
75 | + | if ($isInstanceOf(e, "Boolean")) | |
18 | 76 | then { | |
19 | - | let | |
20 | - | | |
77 | + | let f = e | |
78 | + | f | |
21 | 79 | } | |
22 | 80 | else false | |
23 | 81 | } | |
24 | 82 | ||
25 | 83 | ||
26 | - | func | |
27 | - | let | |
28 | - | if ($isInstanceOf( | |
84 | + | func w (u) = { | |
85 | + | let e = getInteger(this, u) | |
86 | + | if ($isInstanceOf(e, "Int")) | |
29 | 87 | then { | |
30 | - | let | |
31 | - | | |
88 | + | let x = e | |
89 | + | x | |
32 | 90 | } | |
33 | 91 | else 0 | |
34 | 92 | } | |
35 | 93 | ||
36 | 94 | ||
37 | - | func | |
38 | - | then (60 > size(split( | |
95 | + | func y (z) = if (if ((75 > size(z))) | |
96 | + | then (60 > size(split(z, "/")[0])) | |
39 | 97 | else false) | |
40 | - | then (16 > size(split( | |
98 | + | then (16 > size(split(z, "/")[1])) | |
41 | 99 | else false | |
42 | 100 | ||
43 | - | ||
44 | - | let j = "conf_dapp_is_running" | |
45 | - | ||
46 | - | let k = "conf_maintenance_msg" | |
47 | - | ||
48 | - | let l = "conf_whitelisted_only" | |
49 | - | ||
50 | - | let m = e(j) | |
51 | - | ||
52 | - | let n = a(k) | |
53 | - | ||
54 | - | let o = e(l) | |
55 | - | ||
56 | - | let p = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
57 | - | ||
58 | - | let q = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
59 | - | ||
60 | - | let r = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
61 | - | ||
62 | - | let s = "ALLOWED" | |
63 | - | ||
64 | - | let t = "REGISTERED" | |
65 | - | ||
66 | - | let u = "VERIFIED" | |
67 | - | ||
68 | - | let v = "SUSPENDED" | |
69 | - | ||
70 | - | let w = "REMOVED" | |
71 | - | ||
72 | - | let x = "CHANGE_REQUIRED" | |
73 | - | ||
74 | - | let y = "UNREGISTERED" | |
75 | - | ||
76 | - | let z = "RESET" | |
77 | 101 | ||
78 | 102 | func A (B) = ("user_" + B) | |
79 | 103 | ||
96 | 120 | func H (B) = ("user_date_" + B) | |
97 | 121 | ||
98 | 122 | ||
99 | - | @Callable( | |
123 | + | @Callable(x) | |
100 | 124 | func appRunning (I,J) = { | |
101 | - | let B = toString(addressFromPublicKey( | |
102 | - | let K = toBase58String( | |
103 | - | if (containsElement([ | |
104 | - | then [BooleanEntry( | |
125 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
126 | + | let K = toBase58String(x.transactionId) | |
127 | + | if (containsElement([j, k, toString(this)], B)) | |
128 | + | then [BooleanEntry(a, I), StringEntry(b, J)] | |
105 | 129 | else throw("You are not allowed to change this") | |
106 | 130 | } | |
107 | 131 | ||
108 | 132 | ||
109 | 133 | ||
110 | - | @Callable( | |
134 | + | @Callable(x) | |
111 | 135 | func registrationMode (L) = { | |
112 | - | let B = toString(addressFromPublicKey( | |
113 | - | let K = toBase58String( | |
114 | - | if (containsElement([ | |
115 | - | then [BooleanEntry( | |
136 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
137 | + | let K = toBase58String(x.transactionId) | |
138 | + | if (containsElement([j, k, toString(this)], B)) | |
139 | + | then [BooleanEntry(c, h)] | |
116 | 140 | else throw("You are not allowed to change this") | |
117 | 141 | } | |
118 | 142 | ||
119 | 143 | ||
120 | 144 | ||
121 | - | @Callable( | |
122 | - | func registerUser (M,N,O,P) = if (!( | |
123 | - | then throw( | |
145 | + | @Callable(x) | |
146 | + | func registerUser (M,N,O,P) = if (!(d)) | |
147 | + | then throw(g) | |
124 | 148 | else { | |
125 | - | let B = toString(addressFromPublicKey( | |
126 | - | let Q = | |
127 | - | let K = toBase58String( | |
149 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
150 | + | let Q = t(G(B)) | |
151 | + | let K = toBase58String(x.transactionId) | |
128 | 152 | let R = lastBlock.timestamp | |
129 | - | if (if ((Q == | |
153 | + | if (if ((Q == o)) | |
130 | 154 | then true | |
131 | - | else (Q == | |
155 | + | else (Q == p)) | |
132 | 156 | then throw("Account suspended/ removed.") | |
133 | - | else if ((Q == | |
157 | + | else if ((Q == m)) | |
134 | 158 | then throw("Already registered") | |
135 | 159 | else if (if ((Q == "")) | |
136 | - | then | |
160 | + | then h | |
137 | 161 | else false) | |
138 | 162 | then throw("Can't register, get approved first.") | |
139 | 163 | else if (if ((M == "")) | |
144 | 168 | then throw("600 Char. max description") | |
145 | 169 | else if ((size(M) > 45)) | |
146 | 170 | then throw("45 Char. max name") | |
147 | - | else [IntegerEntry(H(B), R), StringEntry(A(B), ((K + "_") + toString(R))), StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O), StringEntry(G(B), | |
171 | + | else [IntegerEntry(H(B), R), StringEntry(A(B), ((K + "_") + toString(R))), StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O), StringEntry(G(B), m)] | |
148 | 172 | } | |
149 | 173 | ||
150 | 174 | ||
151 | 175 | ||
152 | - | @Callable( | |
153 | - | func updateUser (M,N,O,P) = if (!( | |
154 | - | then throw( | |
176 | + | @Callable(x) | |
177 | + | func updateUser (M,N,O,P) = if (!(d)) | |
178 | + | then throw(g) | |
155 | 179 | else { | |
156 | - | let B = toString(addressFromPublicKey( | |
157 | - | let K = toBase58String( | |
158 | - | let S = | |
159 | - | if (if ((S == | |
180 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
181 | + | let K = toBase58String(x.transactionId) | |
182 | + | let S = t(G(B)) | |
183 | + | if (if ((S == o)) | |
160 | 184 | then true | |
161 | - | else (S == | |
185 | + | else (S == p)) | |
162 | 186 | then throw("Account suspended/ removed.") | |
163 | 187 | else if (if ((S == "")) | |
164 | 188 | then true | |
165 | - | else (S == | |
189 | + | else (S == l)) | |
166 | 190 | then throw("Register first") | |
167 | 191 | else if (if ((M == "")) | |
168 | 192 | then true | |
177 | 201 | ||
178 | 202 | ||
179 | 203 | ||
180 | - | @Callable( | |
181 | - | func changeUserStatus (T,U) = if (!( | |
182 | - | then throw( | |
204 | + | @Callable(x) | |
205 | + | func changeUserStatus (T,U) = if (!(d)) | |
206 | + | then throw(g) | |
183 | 207 | else { | |
184 | - | let B = toString(addressFromPublicKey( | |
185 | - | let K = toBase58String( | |
186 | - | let V = | |
187 | - | let W = if ((U == | |
188 | - | then | |
189 | - | else if ((U == | |
190 | - | then | |
191 | - | else if ((U == | |
192 | - | then | |
193 | - | else if ((U == | |
194 | - | then | |
195 | - | else if ((U == | |
196 | - | then | |
197 | - | else if ((U == | |
198 | - | then | |
199 | - | else if (if ((U == | |
200 | - | then (V == | |
208 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
209 | + | let K = toBase58String(x.transactionId) | |
210 | + | let V = t(G(T)) | |
211 | + | let W = if ((U == n)) | |
212 | + | then n | |
213 | + | else if ((U == m)) | |
214 | + | then m | |
215 | + | else if ((U == o)) | |
216 | + | then o | |
217 | + | else if ((U == p)) | |
218 | + | then p | |
219 | + | else if ((U == l)) | |
220 | + | then l | |
221 | + | else if ((U == q)) | |
222 | + | then q | |
223 | + | else if (if ((U == s)) | |
224 | + | then (V == l) | |
201 | 225 | else false) | |
202 | 226 | then "" | |
203 | 227 | else throw("Unknown status") | |
204 | - | let X = | |
228 | + | let X = w(H(T)) | |
205 | 229 | if (if ((X == 0)) | |
206 | - | then (U != | |
230 | + | then (U != l) | |
207 | 231 | else false) | |
208 | 232 | then throw("You cant set this status, user is not registered.") | |
209 | - | else if (if ((V == | |
210 | - | then (U == | |
233 | + | else if (if ((V == l)) | |
234 | + | then (U == l) | |
211 | 235 | else false) | |
212 | 236 | then throw("User already allowed") | |
213 | - | else if (if ((V == | |
214 | - | then (U == | |
237 | + | else if (if ((V == m)) | |
238 | + | then (U == l) | |
215 | 239 | else false) | |
216 | 240 | then throw("User already allowed & registered") | |
217 | - | else if (if ((V == | |
218 | - | then (U == | |
241 | + | else if (if ((V == n)) | |
242 | + | then (U == l) | |
219 | 243 | else false) | |
220 | 244 | then throw("User already allowed & verified") | |
221 | - | else if (containsElement([ | |
245 | + | else if (containsElement([j, k, toString(this)], B)) | |
222 | 246 | then [StringEntry(G(T), W)] | |
223 | 247 | else throw("Not allowed to change user status") | |
224 | 248 | } | |
225 | 249 | ||
226 | 250 | ||
227 | 251 | ||
228 | - | @Callable( | |
252 | + | @Callable(x) | |
229 | 253 | func creditUser (T) = { | |
230 | - | let B = toString(addressFromPublicKey( | |
231 | - | let K = toBase58String( | |
232 | - | if (containsElement([ | |
233 | - | then [ScriptTransfer(Address(fromBase58String(T)), 30000000000, | |
254 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
255 | + | let K = toBase58String(x.transactionId) | |
256 | + | if (containsElement([j, k], B)) | |
257 | + | then [ScriptTransfer(Address(fromBase58String(T)), 30000000000, i)] | |
234 | 258 | else throw("Not allowed") | |
235 | 259 | } | |
236 | 260 | ||
237 | 261 | ||
238 | 262 | ||
239 | - | @Callable( | |
263 | + | @Callable(x) | |
240 | 264 | func deleteUser (T) = { | |
241 | - | let B = toString(addressFromPublicKey( | |
242 | - | let K = toBase58String( | |
243 | - | if (containsElement([ | |
244 | - | then [DeleteEntry(H(T)), DeleteEntry(A(T)), DeleteEntry(C(T)), DeleteEntry(D(T)), DeleteEntry(E(T)), DeleteEntry(F(T)), StringEntry(G(T), | |
265 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
266 | + | let K = toBase58String(x.transactionId) | |
267 | + | if (containsElement([j, k, toString(this)], B)) | |
268 | + | then [DeleteEntry(H(T)), DeleteEntry(A(T)), DeleteEntry(C(T)), DeleteEntry(D(T)), DeleteEntry(E(T)), DeleteEntry(F(T)), StringEntry(G(T), p)] | |
245 | 269 | else throw("Not allowed") | |
246 | 270 | } | |
247 | 271 | ||
248 | 272 | ||
249 | 273 | ||
250 | - | @Callable( | |
274 | + | @Callable(x) | |
251 | 275 | func deleteEntry (Y) = { | |
252 | - | let B = toString(addressFromPublicKey( | |
253 | - | if ((B == | |
276 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
277 | + | if ((B == j)) | |
254 | 278 | then [DeleteEntry(Y)] | |
255 | 279 | else throw("no") | |
256 | 280 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b) = { | |
5 | - | let c = getString(this, b) | |
6 | - | if ($isInstanceOf(c, "String")) | |
4 | + | let a = "conf_dapp_is_running" | |
5 | + | ||
6 | + | let b = "conf_maintenance_msg" | |
7 | + | ||
8 | + | let c = "conf_whitelisted_only" | |
9 | + | ||
10 | + | let d = { | |
11 | + | let e = getBoolean(this, a) | |
12 | + | if ($isInstanceOf(e, "Boolean")) | |
7 | 13 | then { | |
8 | - | let d = c | |
9 | - | d | |
14 | + | let f = e | |
15 | + | f | |
16 | + | } | |
17 | + | else true | |
18 | + | } | |
19 | + | ||
20 | + | let g = { | |
21 | + | let e = getString(this, b) | |
22 | + | if ($isInstanceOf(e, "String")) | |
23 | + | then { | |
24 | + | let f = e | |
25 | + | f | |
26 | + | } | |
27 | + | else "" | |
28 | + | } | |
29 | + | ||
30 | + | let h = { | |
31 | + | let e = getBoolean(this, c) | |
32 | + | if ($isInstanceOf(e, "Boolean")) | |
33 | + | then { | |
34 | + | let f = e | |
35 | + | f | |
36 | + | } | |
37 | + | else true | |
38 | + | } | |
39 | + | ||
40 | + | let i = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
41 | + | ||
42 | + | let j = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
43 | + | ||
44 | + | let k = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
45 | + | ||
46 | + | let l = "ALLOWED" | |
47 | + | ||
48 | + | let m = "REGISTERED" | |
49 | + | ||
50 | + | let n = "VERIFIED" | |
51 | + | ||
52 | + | let o = "SUSPENDED" | |
53 | + | ||
54 | + | let p = "REMOVED" | |
55 | + | ||
56 | + | let q = "CHANGE_REQUIRED" | |
57 | + | ||
58 | + | let r = "UNREGISTERED" | |
59 | + | ||
60 | + | let s = "RESET" | |
61 | + | ||
62 | + | func t (u) = { | |
63 | + | let e = getString(this, u) | |
64 | + | if ($isInstanceOf(e, "String")) | |
65 | + | then { | |
66 | + | let f = e | |
67 | + | f | |
10 | 68 | } | |
11 | 69 | else "" | |
12 | 70 | } | |
13 | 71 | ||
14 | 72 | ||
15 | - | func | |
16 | - | let | |
17 | - | if ($isInstanceOf( | |
73 | + | func v (u) = { | |
74 | + | let e = getBoolean(this, u) | |
75 | + | if ($isInstanceOf(e, "Boolean")) | |
18 | 76 | then { | |
19 | - | let | |
20 | - | | |
77 | + | let f = e | |
78 | + | f | |
21 | 79 | } | |
22 | 80 | else false | |
23 | 81 | } | |
24 | 82 | ||
25 | 83 | ||
26 | - | func | |
27 | - | let | |
28 | - | if ($isInstanceOf( | |
84 | + | func w (u) = { | |
85 | + | let e = getInteger(this, u) | |
86 | + | if ($isInstanceOf(e, "Int")) | |
29 | 87 | then { | |
30 | - | let | |
31 | - | | |
88 | + | let x = e | |
89 | + | x | |
32 | 90 | } | |
33 | 91 | else 0 | |
34 | 92 | } | |
35 | 93 | ||
36 | 94 | ||
37 | - | func | |
38 | - | then (60 > size(split( | |
95 | + | func y (z) = if (if ((75 > size(z))) | |
96 | + | then (60 > size(split(z, "/")[0])) | |
39 | 97 | else false) | |
40 | - | then (16 > size(split( | |
98 | + | then (16 > size(split(z, "/")[1])) | |
41 | 99 | else false | |
42 | 100 | ||
43 | - | ||
44 | - | let j = "conf_dapp_is_running" | |
45 | - | ||
46 | - | let k = "conf_maintenance_msg" | |
47 | - | ||
48 | - | let l = "conf_whitelisted_only" | |
49 | - | ||
50 | - | let m = e(j) | |
51 | - | ||
52 | - | let n = a(k) | |
53 | - | ||
54 | - | let o = e(l) | |
55 | - | ||
56 | - | let p = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
57 | - | ||
58 | - | let q = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
59 | - | ||
60 | - | let r = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
61 | - | ||
62 | - | let s = "ALLOWED" | |
63 | - | ||
64 | - | let t = "REGISTERED" | |
65 | - | ||
66 | - | let u = "VERIFIED" | |
67 | - | ||
68 | - | let v = "SUSPENDED" | |
69 | - | ||
70 | - | let w = "REMOVED" | |
71 | - | ||
72 | - | let x = "CHANGE_REQUIRED" | |
73 | - | ||
74 | - | let y = "UNREGISTERED" | |
75 | - | ||
76 | - | let z = "RESET" | |
77 | 101 | ||
78 | 102 | func A (B) = ("user_" + B) | |
79 | 103 | ||
80 | 104 | ||
81 | 105 | func C (B) = ("user_name_" + B) | |
82 | 106 | ||
83 | 107 | ||
84 | 108 | func D (B) = ("user_desc_" + B) | |
85 | 109 | ||
86 | 110 | ||
87 | 111 | func E (B) = ("user_social_" + B) | |
88 | 112 | ||
89 | 113 | ||
90 | 114 | func F (B) = ("user_thumb_" + B) | |
91 | 115 | ||
92 | 116 | ||
93 | 117 | func G (B) = ("user_status_" + B) | |
94 | 118 | ||
95 | 119 | ||
96 | 120 | func H (B) = ("user_date_" + B) | |
97 | 121 | ||
98 | 122 | ||
99 | - | @Callable( | |
123 | + | @Callable(x) | |
100 | 124 | func appRunning (I,J) = { | |
101 | - | let B = toString(addressFromPublicKey( | |
102 | - | let K = toBase58String( | |
103 | - | if (containsElement([ | |
104 | - | then [BooleanEntry( | |
125 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
126 | + | let K = toBase58String(x.transactionId) | |
127 | + | if (containsElement([j, k, toString(this)], B)) | |
128 | + | then [BooleanEntry(a, I), StringEntry(b, J)] | |
105 | 129 | else throw("You are not allowed to change this") | |
106 | 130 | } | |
107 | 131 | ||
108 | 132 | ||
109 | 133 | ||
110 | - | @Callable( | |
134 | + | @Callable(x) | |
111 | 135 | func registrationMode (L) = { | |
112 | - | let B = toString(addressFromPublicKey( | |
113 | - | let K = toBase58String( | |
114 | - | if (containsElement([ | |
115 | - | then [BooleanEntry( | |
136 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
137 | + | let K = toBase58String(x.transactionId) | |
138 | + | if (containsElement([j, k, toString(this)], B)) | |
139 | + | then [BooleanEntry(c, h)] | |
116 | 140 | else throw("You are not allowed to change this") | |
117 | 141 | } | |
118 | 142 | ||
119 | 143 | ||
120 | 144 | ||
121 | - | @Callable( | |
122 | - | func registerUser (M,N,O,P) = if (!( | |
123 | - | then throw( | |
145 | + | @Callable(x) | |
146 | + | func registerUser (M,N,O,P) = if (!(d)) | |
147 | + | then throw(g) | |
124 | 148 | else { | |
125 | - | let B = toString(addressFromPublicKey( | |
126 | - | let Q = | |
127 | - | let K = toBase58String( | |
149 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
150 | + | let Q = t(G(B)) | |
151 | + | let K = toBase58String(x.transactionId) | |
128 | 152 | let R = lastBlock.timestamp | |
129 | - | if (if ((Q == | |
153 | + | if (if ((Q == o)) | |
130 | 154 | then true | |
131 | - | else (Q == | |
155 | + | else (Q == p)) | |
132 | 156 | then throw("Account suspended/ removed.") | |
133 | - | else if ((Q == | |
157 | + | else if ((Q == m)) | |
134 | 158 | then throw("Already registered") | |
135 | 159 | else if (if ((Q == "")) | |
136 | - | then | |
160 | + | then h | |
137 | 161 | else false) | |
138 | 162 | then throw("Can't register, get approved first.") | |
139 | 163 | else if (if ((M == "")) | |
140 | 164 | then true | |
141 | 165 | else (N == "")) | |
142 | 166 | then throw("Name and description cannot be empty") | |
143 | 167 | else if ((size(N) > 600)) | |
144 | 168 | then throw("600 Char. max description") | |
145 | 169 | else if ((size(M) > 45)) | |
146 | 170 | then throw("45 Char. max name") | |
147 | - | else [IntegerEntry(H(B), R), StringEntry(A(B), ((K + "_") + toString(R))), StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O), StringEntry(G(B), | |
171 | + | else [IntegerEntry(H(B), R), StringEntry(A(B), ((K + "_") + toString(R))), StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O), StringEntry(G(B), m)] | |
148 | 172 | } | |
149 | 173 | ||
150 | 174 | ||
151 | 175 | ||
152 | - | @Callable( | |
153 | - | func updateUser (M,N,O,P) = if (!( | |
154 | - | then throw( | |
176 | + | @Callable(x) | |
177 | + | func updateUser (M,N,O,P) = if (!(d)) | |
178 | + | then throw(g) | |
155 | 179 | else { | |
156 | - | let B = toString(addressFromPublicKey( | |
157 | - | let K = toBase58String( | |
158 | - | let S = | |
159 | - | if (if ((S == | |
180 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
181 | + | let K = toBase58String(x.transactionId) | |
182 | + | let S = t(G(B)) | |
183 | + | if (if ((S == o)) | |
160 | 184 | then true | |
161 | - | else (S == | |
185 | + | else (S == p)) | |
162 | 186 | then throw("Account suspended/ removed.") | |
163 | 187 | else if (if ((S == "")) | |
164 | 188 | then true | |
165 | - | else (S == | |
189 | + | else (S == l)) | |
166 | 190 | then throw("Register first") | |
167 | 191 | else if (if ((M == "")) | |
168 | 192 | then true | |
169 | 193 | else (N == "")) | |
170 | 194 | then throw("Name & description cannot be empty") | |
171 | 195 | else if ((size(N) > 600)) | |
172 | 196 | then throw("600 Char. max for description") | |
173 | 197 | else if ((size(M) > 45)) | |
174 | 198 | then throw("45 Char. max name") | |
175 | 199 | else [StringEntry(C(B), M), StringEntry(D(B), N), StringEntry(E(B), P), StringEntry(F(B), O)] | |
176 | 200 | } | |
177 | 201 | ||
178 | 202 | ||
179 | 203 | ||
180 | - | @Callable( | |
181 | - | func changeUserStatus (T,U) = if (!( | |
182 | - | then throw( | |
204 | + | @Callable(x) | |
205 | + | func changeUserStatus (T,U) = if (!(d)) | |
206 | + | then throw(g) | |
183 | 207 | else { | |
184 | - | let B = toString(addressFromPublicKey( | |
185 | - | let K = toBase58String( | |
186 | - | let V = | |
187 | - | let W = if ((U == | |
188 | - | then | |
189 | - | else if ((U == | |
190 | - | then | |
191 | - | else if ((U == | |
192 | - | then | |
193 | - | else if ((U == | |
194 | - | then | |
195 | - | else if ((U == | |
196 | - | then | |
197 | - | else if ((U == | |
198 | - | then | |
199 | - | else if (if ((U == | |
200 | - | then (V == | |
208 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
209 | + | let K = toBase58String(x.transactionId) | |
210 | + | let V = t(G(T)) | |
211 | + | let W = if ((U == n)) | |
212 | + | then n | |
213 | + | else if ((U == m)) | |
214 | + | then m | |
215 | + | else if ((U == o)) | |
216 | + | then o | |
217 | + | else if ((U == p)) | |
218 | + | then p | |
219 | + | else if ((U == l)) | |
220 | + | then l | |
221 | + | else if ((U == q)) | |
222 | + | then q | |
223 | + | else if (if ((U == s)) | |
224 | + | then (V == l) | |
201 | 225 | else false) | |
202 | 226 | then "" | |
203 | 227 | else throw("Unknown status") | |
204 | - | let X = | |
228 | + | let X = w(H(T)) | |
205 | 229 | if (if ((X == 0)) | |
206 | - | then (U != | |
230 | + | then (U != l) | |
207 | 231 | else false) | |
208 | 232 | then throw("You cant set this status, user is not registered.") | |
209 | - | else if (if ((V == | |
210 | - | then (U == | |
233 | + | else if (if ((V == l)) | |
234 | + | then (U == l) | |
211 | 235 | else false) | |
212 | 236 | then throw("User already allowed") | |
213 | - | else if (if ((V == | |
214 | - | then (U == | |
237 | + | else if (if ((V == m)) | |
238 | + | then (U == l) | |
215 | 239 | else false) | |
216 | 240 | then throw("User already allowed & registered") | |
217 | - | else if (if ((V == | |
218 | - | then (U == | |
241 | + | else if (if ((V == n)) | |
242 | + | then (U == l) | |
219 | 243 | else false) | |
220 | 244 | then throw("User already allowed & verified") | |
221 | - | else if (containsElement([ | |
245 | + | else if (containsElement([j, k, toString(this)], B)) | |
222 | 246 | then [StringEntry(G(T), W)] | |
223 | 247 | else throw("Not allowed to change user status") | |
224 | 248 | } | |
225 | 249 | ||
226 | 250 | ||
227 | 251 | ||
228 | - | @Callable( | |
252 | + | @Callable(x) | |
229 | 253 | func creditUser (T) = { | |
230 | - | let B = toString(addressFromPublicKey( | |
231 | - | let K = toBase58String( | |
232 | - | if (containsElement([ | |
233 | - | then [ScriptTransfer(Address(fromBase58String(T)), 30000000000, | |
254 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
255 | + | let K = toBase58String(x.transactionId) | |
256 | + | if (containsElement([j, k], B)) | |
257 | + | then [ScriptTransfer(Address(fromBase58String(T)), 30000000000, i)] | |
234 | 258 | else throw("Not allowed") | |
235 | 259 | } | |
236 | 260 | ||
237 | 261 | ||
238 | 262 | ||
239 | - | @Callable( | |
263 | + | @Callable(x) | |
240 | 264 | func deleteUser (T) = { | |
241 | - | let B = toString(addressFromPublicKey( | |
242 | - | let K = toBase58String( | |
243 | - | if (containsElement([ | |
244 | - | then [DeleteEntry(H(T)), DeleteEntry(A(T)), DeleteEntry(C(T)), DeleteEntry(D(T)), DeleteEntry(E(T)), DeleteEntry(F(T)), StringEntry(G(T), | |
265 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
266 | + | let K = toBase58String(x.transactionId) | |
267 | + | if (containsElement([j, k, toString(this)], B)) | |
268 | + | then [DeleteEntry(H(T)), DeleteEntry(A(T)), DeleteEntry(C(T)), DeleteEntry(D(T)), DeleteEntry(E(T)), DeleteEntry(F(T)), StringEntry(G(T), p)] | |
245 | 269 | else throw("Not allowed") | |
246 | 270 | } | |
247 | 271 | ||
248 | 272 | ||
249 | 273 | ||
250 | - | @Callable( | |
274 | + | @Callable(x) | |
251 | 275 | func deleteEntry (Y) = { | |
252 | - | let B = toString(addressFromPublicKey( | |
253 | - | if ((B == | |
276 | + | let B = toString(addressFromPublicKey(x.callerPublicKey)) | |
277 | + | if ((B == j)) | |
254 | 278 | then [DeleteEntry(Y)] | |
255 | 279 | else throw("no") | |
256 | 280 | } | |
257 | 281 | ||
258 | 282 |
github/deemru/w8io/169f3d6 79.71 ms ◑