tx · FxpTD6CqdFx5zzYUAy17iJ4ZwEjF6ZL83MmrFznWXTxD

3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj:  -0.01400000 Waves

2022.02.24 06:15 [1937194] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves

{ "type": 13, "id": "FxpTD6CqdFx5zzYUAy17iJ4ZwEjF6ZL83MmrFznWXTxD", "fee": 1400000, "feeAssetId": null, "timestamp": 1645672556007, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "3v1dGZGHeyenPtCWqXrsmSX5FWqHY6qP8y9Ena8ES9t7WoVJws8FWn5d88oAdyo5pKVi5S1PCkScGRnBPuhr1cA4" ], "script": "base64:AAIFAAAAAAAAADwIAhIECgIECBIDCgEEEgYKBAgICAgSBgoECAgICBIFCgMICAgSAwoBCBIGCgQICAEBEgQKAggIEgMKAQgAAAAiAAAAAAVjaHJpcwIAAAAjM01zRzZqUE5DclZKVXRZQjdYSkJ4Uzd1dFdzWEFmNG45VnAAAAAABGpvZXACAAAAIzNNem00Vkx3c045dVp3YlRNelBqM1h1eFY2a0VmQVI4VUROAAAAAA5kYXBwUnVubmluZ0tleQIAAAAUY29uZl9kYXBwX2lzX3J1bm5pbmcAAAAAEW1haW50ZW5hbmNlTVNHS2V5AgAAABRjb25mX21haW50ZW5hbmNlX21zZwAAAAASd2hpdGVsaXN0ZWRvbmx5S2V5AgAAABVjb25mX3doaXRlbGlzdGVkX29ubHkAAAAAC2RhcHBSdW5uaW5nCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAADmRhcHBSdW5uaW5nS2V5BgAAAAAObWFpbnRlbmFuY2VNU0cJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwUAAA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XJlAAAAAQUAAAAKYXJ0aXN0QWRkcgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAARa2V5U2Vjb25kYXJ5U2hhcmUAAAABBQAAAAphcnRpc3RBZGRyBQAAAANuaWwJAAACAAAAAQIAAAATWW91IGFyZSBub3QgYWxsb3dlZAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAAABXjhL", "height": 1937194, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E5u5nwiAB94LGxKhJL8rYQinEh8zHNdHh3dwguiF7B1M Next: 3hNEnh3ny9Yhqo732NqogU8mSMW43eZ6oj2RsHM1nTxf Diff:
OldNewDifferences
263263
264264
265265 @Callable(i)
266-func unsetAgent (artistAddr,agentAddr,primaryShare,secondaryShare) = if (!(dappRunning))
266+func unsetAgent (artistAddr,agentAddr) = if (!(dappRunning))
267267 then throw(maintenanceMSG)
268268 else {
269269 let caller = toString(addressFromPublicKey(i.callerPublicKey))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
55
66 let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
77
88 let dappRunningKey = "conf_dapp_is_running"
99
1010 let maintenanceMSGKey = "conf_maintenance_msg"
1111
1212 let whitelistedonlyKey = "conf_whitelisted_only"
1313
1414 let dappRunning = valueOrElse(getBoolean(this, dappRunningKey), true)
1515
1616 let maintenanceMSG = valueOrElse(getString(this, maintenanceMSGKey), "")
1717
1818 let whitelistedonly = valueOrElse(getBoolean(this, whitelistedonlyKey), true)
1919
2020 let userAllowed = "ALLOWED"
2121
2222 let userRegistered = "REGISTERED"
2323
2424 let userVerified = "VERIFIED"
2525
2626 let userSuspended = "SUSPENDED"
2727
2828 let userRemoved = "REMOVED"
2929
3030 let userChangeRequired = "CHANGE_REQUIRED"
3131
3232 let userUnregistered = "UNREGISTERED"
3333
3434 let userReset = "RESET"
3535
3636 func getStringByKey (key) = valueOrElse(getString(this, key), "")
3737
3838
3939 func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
4040
4141
4242 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
4343
4444
4545 func keyUserAddr (caller) = ("user_" + caller)
4646
4747
4848 func keyUserName (caller) = ("user_name_" + caller)
4949
5050
5151 func keyUserDesc (caller) = ("user_desc_" + caller)
5252
5353
5454 func keyUserSocial (caller) = ("user_social_" + caller)
5555
5656
5757 func keyUserThumb (caller) = ("user_thumb_" + caller)
5858
5959
6060 func keyUserStatus (caller) = ("user_status_" + caller)
6161
6262
6363 func keyUserDate (caller) = ("user_date_" + caller)
6464
6565
6666 func keyArtistAgentAddr (artistAddr) = ("artist_agent_" + artistAddr)
6767
6868
6969 func keyAgentArtistAddr (agentAddr,artistAddr) = ((("agent_" + agentAddr) + "_") + artistAddr)
7070
7171
7272 func keyPrimaryShare (artistAddr) = ("artist_agent_primary_" + artistAddr)
7373
7474
7575 func keySecondaryShare (artistAddr) = ("artist_agent_secondary" + artistAddr)
7676
7777
7878 func validateCID (cid) = if (contains(cid, "/"))
7979 then if (if ((76 > size(cid)))
8080 then (size(split(cid, "/")[0]) == 59)
8181 else false)
8282 then (16 > size(split(cid, "/")[1]))
8383 else false
8484 else false
8585
8686
8787 func validUserData (caller,name,description,thumb,isAnUpdate) = {
8888 let validCID = if ((size(thumb) != 0))
8989 then validateCID(thumb)
9090 else true
9191 if (!(validCID))
9292 then throw("CID don't match requirement!")
9393 else if (if ((name == ""))
9494 then true
9595 else (description == ""))
9696 then throw("Name and description cannot be empty")
9797 else if ((size(description) > 600))
9898 then throw("600 Char. max description")
9999 else if ((size(name) > 45))
100100 then throw("45 Char. max name")
101101 else {
102102 let status = getStringByKey(keyUserStatus(caller))
103103 if (if ((status == userSuspended))
104104 then true
105105 else (status == userRemoved))
106106 then throw("Account suspended/ removed.")
107107 else if (if (!(isAnUpdate))
108108 then (status == userRegistered)
109109 else false)
110110 then throw("Already registered")
111111 else if (if (if (!(isAnUpdate))
112112 then (status == "")
113113 else false)
114114 then whitelistedonly
115115 else false)
116116 then throw("Can't register, get approved first.")
117117 else if (if (if (isAnUpdate)
118118 then (status == "")
119119 else false)
120120 then true
121121 else if (isAnUpdate)
122122 then (status == userAllowed)
123123 else false)
124124 then throw("Register first")
125125 else true
126126 }
127127 }
128128
129129
130130 func validateNewStatus (status,address,currentStatus) = {
131131 let allStatus = [userVerified, userRegistered, userSuspended, userRemoved, userAllowed, userChangeRequired]
132132 let statusToSet = if (containsElement(allStatus, status))
133133 then status
134134 else if (if ((status == userReset))
135135 then (currentStatus == userAllowed)
136136 else false)
137137 then ""
138138 else throw("Unknown status")
139139 let userIsRegistered = getIntegerByKey(keyUserDate(address))
140140 if (if ((userIsRegistered == 0))
141141 then (statusToSet != userAllowed)
142142 else false)
143143 then throw("You cant set this status, user is not registered.")
144144 else if (if ((currentStatus == userAllowed))
145145 then (statusToSet == userAllowed)
146146 else false)
147147 then throw("User already allowed")
148148 else if (if ((currentStatus == userRegistered))
149149 then (statusToSet == userAllowed)
150150 else false)
151151 then throw("User already allowed & registered")
152152 else if (if ((currentStatus == userVerified))
153153 then (statusToSet == userAllowed)
154154 else false)
155155 then throw("User already allowed & verified")
156156 else statusToSet
157157 }
158158
159159
160160 func makeJSON (name,thumb,date) = (((((("{\"user_name\": \"" + name) + "\", \"user_thumb\":\"") + thumb) + "\",\"user_date\":\"") + date) + "\"}")
161161
162162
163163 @Callable(invoke)
164164 func appRunning (isLive,message) = {
165165 let caller = toString(addressFromPublicKey(invoke.callerPublicKey))
166166 let id = toBase58String(invoke.transactionId)
167167 if (containsElement([chris, joep, toString(this)], caller))
168168 then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
169169 else throw("You are not allowed to change this")
170170 }
171171
172172
173173
174174 @Callable(invoke)
175175 func registrationMode (WLonly) = {
176176 let caller = toString(addressFromPublicKey(invoke.callerPublicKey))
177177 let id = toBase58String(invoke.transactionId)
178178 if (containsElement([chris, toString(this)], caller))
179179 then [BooleanEntry(whitelistedonlyKey, WLonly)]
180180 else throw("You are not allowed to change this")
181181 }
182182
183183
184184
185185 @Callable(invoke)
186186 func registerUser (name,description,thumb,social) = if (!(dappRunning))
187187 then throw(maintenanceMSG)
188188 else {
189189 let caller = toString(addressFromPublicKey(invoke.callerPublicKey))
190190 let id = toBase58String(invoke.transactionId)
191191 let timestamp = lastBlock.timestamp
192192 if (!(validUserData(caller, name, description, thumb, false)))
193193 then throw("Something went wrong")
194194 else {
195195 let json = makeJSON(toBase64String(toBytes(name)), toBase64String(toBytes(thumb)), toString(timestamp))
196196 [IntegerEntry(keyUserDate(caller), timestamp), StringEntry(keyUserAddr(caller), ((id + "_") + toString(timestamp))), StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry(keyUserStatus(caller), userRegistered), DeleteEntry(("ALLOWED_" + caller)), StringEntry(((userRegistered + "_") + caller), json)]
197197 }
198198 }
199199
200200
201201
202202 @Callable(invoke)
203203 func updateUser (name,description,thumb,social) = if (!(dappRunning))
204204 then throw(maintenanceMSG)
205205 else {
206206 let caller = toString(addressFromPublicKey(invoke.callerPublicKey))
207207 let id = toBase58String(invoke.transactionId)
208208 let status = getStringByKey(keyUserStatus(caller))
209209 if (!(validUserData(caller, name, description, thumb, true)))
210210 then throw("Something went wrong")
211211 else {
212212 let date = getIntegerByKey(keyUserDate(caller))
213213 let json = makeJSON(toBase64String(toBytes(name)), toBase64String(toBytes(thumb)), toString(date))
214214 [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry(((status + "_") + caller), json)]
215215 }
216216 }
217217
218218
219219
220220 @Callable(invoke)
221221 func changeUserStatus (address,status,note) = {
222222 let caller = toString(addressFromPublicKey(invoke.callerPublicKey))
223223 let id = toBase58String(invoke.transactionId)
224224 let currentStatus = getStringByKey(keyUserStatus(address))
225225 let statusToSet = validateNewStatus(status, address, currentStatus)
226226 let name = toBase64String(toBytes(getStringByKey(keyUserName(address))))
227227 let thumb = toBase64String(toBytes(getStringByKey(keyUserThumb(address))))
228228 let date = getIntegerByKey(keyUserDate(address))
229229 let json = makeJSON(name, thumb, toString(date))
230230 if (containsElement([chris, joep, toString(this)], caller))
231231 then [StringEntry(keyUserStatus(address), statusToSet), DeleteEntry(((currentStatus + "_") + address)), StringEntry(((statusToSet + "_") + address), json), StringEntry(("user_note_" + address), note)]
232232 else throw("Not allowed to change user status")
233233 }
234234
235235
236236
237237 @Callable(invoke)
238238 func deleteUser (address) = {
239239 let caller = toString(addressFromPublicKey(invoke.callerPublicKey))
240240 let id = toBase58String(invoke.transactionId)
241241 let currentStatus = getStringByKey(keyUserStatus(address))
242242 if (containsElement([chris, toString(this)], caller))
243243 then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), DeleteEntry(("user_note_" + address)), DeleteEntry(((currentStatus + "_") + address)), StringEntry(keyUserStatus(address), userRemoved)]
244244 else throw("Not allowed")
245245 }
246246
247247
248248
249249 @Callable(i)
250250 func setAgent (artistAddr,agentAddr,primaryShare,secondaryShare) = if (!(dappRunning))
251251 then throw(maintenanceMSG)
252252 else {
253253 let caller = toString(addressFromPublicKey(i.callerPublicKey))
254254 if (containsElement([chris, toString(this)], caller))
255255 then if (if ((size(artistAddr) != 35))
256256 then true
257257 else (size(agentAddr) != 35))
258258 then throw("Wrong address")
259259 else [StringEntry(keyArtistAgentAddr(artistAddr), agentAddr), StringEntry(keyAgentArtistAddr(agentAddr, artistAddr), artistAddr), IntegerEntry(keyPrimaryShare(artistAddr), primaryShare), IntegerEntry(keySecondaryShare(artistAddr), secondaryShare)]
260260 else throw("You are not allowed")
261261 }
262262
263263
264264
265265 @Callable(i)
266-func unsetAgent (artistAddr,agentAddr,primaryShare,secondaryShare) = if (!(dappRunning))
266+func unsetAgent (artistAddr,agentAddr) = if (!(dappRunning))
267267 then throw(maintenanceMSG)
268268 else {
269269 let caller = toString(addressFromPublicKey(i.callerPublicKey))
270270 if (containsElement([chris, toString(this)], caller))
271271 then if (if ((size(artistAddr) != 35))
272272 then true
273273 else (size(agentAddr) != 35))
274274 then throw("Wrong address")
275275 else [DeleteEntry(keyArtistAgentAddr(artistAddr)), DeleteEntry(keyAgentArtistAddr(agentAddr, artistAddr)), DeleteEntry(keyPrimaryShare(artistAddr)), DeleteEntry(keySecondaryShare(artistAddr))]
276276 else throw("You are not allowed")
277277 }
278278
279279
280280
281281 @Callable(i)
282282 func deleteEntry (entry) = {
283283 let caller = toString(addressFromPublicKey(i.callerPublicKey))
284284 if ((caller == chris))
285285 then [DeleteEntry(entry)]
286286 else throw("no")
287287 }
288288
289289

github/deemru/w8io/026f985 
43.97 ms