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