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