tx · CEkpSyQVj2TBPc7zpAUDBeUsqrEbqXpACg9hKXAYzCy6

3N5SvV5gLbCNEM8hLKhajqK7G2S44CwAHeR:  -0.01000000 Waves

2021.01.05 12:18 [1339897] smart account 3N5SvV5gLbCNEM8hLKhajqK7G2S44CwAHeR > SELF 0.00000000 Waves

{ "type": 13, "id": "CEkpSyQVj2TBPc7zpAUDBeUsqrEbqXpACg9hKXAYzCy6", "fee": 1000000, "feeAssetId": null, "timestamp": 1609838395156, "version": 2, "chainId": 84, "sender": "3N5SvV5gLbCNEM8hLKhajqK7G2S44CwAHeR", "senderPublicKey": "CS5EXJsCzXJdSvUdPSL8r7VcrzDLDnTNmCQR2UDxhNyd", "proofs": [ "Lh9fGvX2Q51rxqFBNRSxWmGQX7CRjHSBQdLtBoMaqbsPAWWx18YpACLRwD3xVSWjZW7VBwVLir6vws94VgDVQyc" ], "script": "base64:AAIEAAAAAAAAACgIAhIECgIECBIDCgEEEgYKBAgICAgSBgoECAgICBIECgIICBIDCgEIAAAAHAAAAAAFY2hyaXMCAAAAIzNNc0c2alBOQ3JWSlV0WUI3WEpCeFM3dXRXc1hBZjRuOVZwAAAAAARqb2VwAgAAACMzTXptNFZMd3NOOXVad2JUTXpQajNYdXhWNmtFZkFSOFVETgAAAAAOZGFwcFJ1bm5pbmdLZXkCAAAAFGNvbmZfZGFwcF9pc19ydW5uaW5nAAAAABFtYWludGVuYW5jZU1TR0tleQIAAAAUY29uZl9tYWludGVuYW5jZV9tc2cAAAAAEndoaXRlbGlzdGVkb25seUtleQIAAAAVY29uZl93aGl0ZWxpc3RlZF9vbmx5AAAAAAtkYXBwUnVubmluZwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAR0aGlzBQAAAA5kYXBwUnVubmluZ0tleQYAAAAADm1haW50ZW5hbmNlTVNHCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAAEW1haW50ZW5hbmNlTVNHS2V5AgAAAAAA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MAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADWtleVVzZXJTdGF0dXMAAAABBQAAAAdhZGRyZXNzBQAAAAt1c2VyUmVtb3ZlZAUAAAADbmlsCQAAAgAAAAECAAAAC05vdCBhbGxvd2VkAAAAAMzR6j0=", "height": 1339897, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
5+
6+let b = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
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 (v,D,E,F) = if (if ((D == ""))
67+ then true
68+ else (E == ""))
69+ then throw("Name and description cannot be empty")
70+ else if ((size(E) > 600))
71+ then throw("600 Char. max description")
72+ else if ((size(D) > 45))
73+ then throw("45 Char. max name")
74+ else {
75+ let G = q(A(v))
76+ if (if ((G == l))
77+ then true
78+ else (G == m))
79+ then throw("Account suspended/ removed.")
80+ else if (if (!(F))
81+ then (G == j)
82+ else false)
83+ then throw("Already registered")
84+ else if (if (if (!(F))
85+ then (G == "")
86+ else false)
87+ then h
88+ else false)
89+ then throw("Can't register, get approved first.")
90+ else if (if (if (F)
91+ then (G == "")
92+ else false)
93+ then true
94+ else (G == i))
95+ then throw("Register first")
96+ else true
97+ }
98+
99+
100+func H (G,I,J) = {
101+ let K = [k, j, l, m, i, n]
102+ let L = if (containsElement(K, G))
103+ then G
104+ else if (if ((G == p))
105+ then (J == i)
106+ else false)
107+ then ""
108+ else throw("Unknown status")
109+ let M = t(B(I))
110+ if (if ((M == 0))
111+ then (G != i)
112+ else false)
113+ then throw("You cant set this status, user is not registered.")
114+ else if (if ((J == i))
115+ then (G == i)
116+ else false)
117+ then throw("User already allowed")
118+ else if (if ((J == j))
119+ then (G == i)
120+ else false)
121+ then throw("User already allowed & registered")
122+ else if (if ((J == k))
123+ then (G == i)
124+ else false)
125+ then throw("User already allowed & verified")
126+ else true
127+ }
128+
129+
130+@Callable(N)
131+func appRunning (O,P) = {
132+ let v = toString(addressFromPublicKey(N.callerPublicKey))
133+ let Q = toBase58String(N.transactionId)
134+ if (containsElement([a, b, toString(this)], v))
135+ then [BooleanEntry(c, O), StringEntry(d, P)]
136+ else throw("You are not allowed to change this")
137+ }
138+
139+
140+
141+@Callable(N)
142+func registrationMode (R) = {
143+ let v = toString(addressFromPublicKey(N.callerPublicKey))
144+ let Q = toBase58String(N.transactionId)
145+ if (containsElement([a, toString(this)], v))
146+ then [BooleanEntry(e, R)]
147+ else throw("You are not allowed to change this")
148+ }
149+
150+
151+
152+@Callable(N)
153+func registerUser (D,E,S,T) = if (!(f))
154+ then throw(g)
155+ else {
156+ let v = toString(addressFromPublicKey(N.callerPublicKey))
157+ let Q = toBase58String(N.transactionId)
158+ let U = lastBlock.timestamp
159+ if (!(C(v, D, E, false)))
160+ then throw("Something went wrong")
161+ else {
162+ let V = (((((("{\"user_name\": \"" + toBase64String(toBytes(D))) + "\", \"user_thumb\":\"") + toBase64String(toBytes(S))) + "\",\"user_date\":\"") + toString(U)) + "\"}")
163+[IntegerEntry(B(v), U), StringEntry(u(v), ((Q + "_") + toString(U))), StringEntry(w(v), D), StringEntry(x(v), E), StringEntry(y(v), T), StringEntry(z(v), S), StringEntry(A(v), j), DeleteEntry(("ALLOWED_" + v)), StringEntry(((j + "_") + v), V)]
164+ }
165+ }
166+
167+
168+
169+@Callable(N)
170+func updateUser (D,E,S,T) = if (!(f))
171+ then throw(g)
172+ else {
173+ let v = toString(addressFromPublicKey(N.callerPublicKey))
174+ let Q = toBase58String(N.transactionId)
175+ let G = q(A(v))
176+ if (!(C(v, D, E, true)))
177+ then throw("Something went wrong")
178+ else {
179+ let W = t(B(v))
180+ let V = (((((("{\"user_name\": \"" + toBase64String(toBytes(D))) + "\", \"user_thumb\":\"") + toBase64String(toBytes(S))) + "\",\"user_date\":\"") + toString(W)) + "\"}")
181+[StringEntry(w(v), D), StringEntry(x(v), E), StringEntry(y(v), T), StringEntry(z(v), S), StringEntry(((G + "_") + v), V)]
182+ }
183+ }
184+
185+
186+
187+@Callable(N)
188+func changeUserStatus (I,G) = if (!(f))
189+ then throw(g)
190+ else {
191+ let v = toString(addressFromPublicKey(N.callerPublicKey))
192+ let Q = toBase58String(N.transactionId)
193+ let J = q(A(I))
194+ let L = if (!(H(G, I, J)))
195+ then throw("Something went wrong!")
196+ else G
197+ let D = toBase64String(toBytes(q(w(I))))
198+ let S = toBase64String(toBytes(q(z(I))))
199+ let W = t(B(I))
200+ let V = (((((("{\"user_name\": \"" + D) + "\", \"user_thumb\":\"") + S) + "\",\"user_date\":\"") + toString(W)) + "\"}")
201+ if (containsElement([a, b, toString(this)], v))
202+ then [StringEntry(A(I), L), DeleteEntry(((J + "_") + I)), StringEntry(((L + "_") + I), V)]
203+ else throw("Not allowed to change user status")
204+ }
205+
206+
207+
208+@Callable(N)
209+func deleteUser (I) = {
210+ let v = toString(addressFromPublicKey(N.callerPublicKey))
211+ let Q = toBase58String(N.transactionId)
212+ let J = q(A(I))
213+ if (containsElement([a, toString(this)], v))
214+ then [DeleteEntry(B(I)), DeleteEntry(u(I)), DeleteEntry(w(I)), DeleteEntry(x(I)), DeleteEntry(y(I)), DeleteEntry(z(I)), DeleteEntry(((J + "_") + I)), StringEntry(A(I), m)]
215+ else throw("Not allowed")
216+ }
217+
218+

github/deemru/w8io/026f985 
26.95 ms