tx · Gk337F8QUrfhg2o3fw1jqpK84rZxrypHrcoaLa2rN4dY

3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj:  -0.01400000 Waves

2020.12.09 07:17 [1300633] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves

{ "type": 13, "id": "Gk337F8QUrfhg2o3fw1jqpK84rZxrypHrcoaLa2rN4dY", "fee": 1400000, "feeAssetId": null, "timestamp": 1607487467889, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "WnHjMdugwgT6xPufJPkD9fiyphxCrgqVBEf97Fa7Go2tpfYAmkR5XaebL94et76WphqWS9DmvobpdN861WpSozk" ], "script": "base64:AAIEAAAAAAAAADIIAhIECgIECBIDCgEEEgYKBAgICAgSBgoECAgICBIECgIICBIDCgEIEgMKAQgSAwoBCAAAABwBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAPZ2V0Qm9vbGVhbkJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBwEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWkFAAAAByRtYXRjaDAFAAAAAWkAAAAAAAAAAAABAAA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AHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAANa2V5VXNlclNvY2lhbAAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAADGtleVVzZXJUaHVtYgAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADWtleVVzZXJTdGF0dXMAAAABBQAAAAdhZGRyZXNzBQAAAAt1c2VyUmVtb3ZlZAUAAAADbmlsCQAAAgAAAAECAAAAC05vdCBhbGxvd2VkAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAE6bWzE=", "height": 1300633, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4eSPSjkGxbdm2SqLqX5w8itinbFSmaLHG3tK4CFSz9rt Next: HtPZ5acvvyebjJsuQ6QSizzU7PUeR8PET1LjourK54TV Diff:
OldNewDifferences
8888
8989
9090 @Callable(i)
91-func maintenance (inMaintenance,message) = {
91+func appRunning (isRunning,message) = {
9292 let caller = toString(addressFromPublicKey(i.callerPublicKey))
9393 let id = toBase58String(i.transactionId)
9494 if (containsElement([chris, joep, toString(this)], caller))
95- then [BooleanEntry("conf_dapp_is_running", inMaintenance), StringEntry("conf_maintenance_msg", message)]
95+ then [BooleanEntry("conf_dapp_is_running", isRunning), StringEntry("conf_maintenance_msg", message)]
9696 else throw("You are not allowed to change this")
9797 }
9898
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getStringByKey (key) = match getString(this, key) {
55 case a: String =>
66 a
77 case _ =>
88 ""
99 }
1010
1111
1212 func getBooleanByKey (key) = match getBoolean(this, key) {
1313 case a: Boolean =>
1414 a
1515 case _ =>
1616 false
1717 }
1818
1919
2020 func getIntegerByKey (key) = match getInteger(this, key) {
2121 case i: Int =>
2222 i
2323 case _ =>
2424 0
2525 }
2626
2727
2828 func validateCID (cid) = if (if ((75 > size(cid)))
2929 then (60 > size(split(cid, "/")[0]))
3030 else false)
3131 then (16 > size(split(cid, "/")[1]))
3232 else false
3333
3434
3535 let dappRunningKey = "conf_dapp_is_running"
3636
3737 let maintenanceMSGKey = "conf_maintenance_msg"
3838
3939 let whitelistedonlyKey = "conf_whitelisted_only"
4040
4141 let dappRunning = getBooleanByKey(dappRunningKey)
4242
4343 let maintenanceMSG = getStringByKey(maintenanceMSGKey)
4444
4545 let whitelistedonly = getBooleanByKey(whitelistedonlyKey)
4646
4747 let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
4848
4949 let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
5050
5151 let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
5252
5353 let userAllowed = "ALLOWED"
5454
5555 let userRegistered = "REGISTERED"
5656
5757 let userVerified = "VERIFIED"
5858
5959 let userSuspended = "SUSPENDED"
6060
6161 let userRemoved = "REMOVED"
6262
6363 let userChangeRequired = "CHANGE_REQUIRED"
6464
6565 let userUnregistered = "UNREGISTERED"
6666
6767 let userReset = "RESET"
6868
6969 func keyUserAddr (caller) = ("user_" + caller)
7070
7171
7272 func keyUserName (caller) = ("user_name_" + caller)
7373
7474
7575 func keyUserDesc (caller) = ("user_desc_" + caller)
7676
7777
7878 func keyUserSocial (caller) = ("user_social_" + caller)
7979
8080
8181 func keyUserThumb (caller) = ("user_thumb_" + caller)
8282
8383
8484 func keyUserStatus (caller) = ("user_status_" + caller)
8585
8686
8787 func keyUserDate (caller) = ("user_date_" + caller)
8888
8989
9090 @Callable(i)
91-func maintenance (inMaintenance,message) = {
91+func appRunning (isRunning,message) = {
9292 let caller = toString(addressFromPublicKey(i.callerPublicKey))
9393 let id = toBase58String(i.transactionId)
9494 if (containsElement([chris, joep, toString(this)], caller))
95- then [BooleanEntry("conf_dapp_is_running", inMaintenance), StringEntry("conf_maintenance_msg", message)]
95+ then [BooleanEntry("conf_dapp_is_running", isRunning), StringEntry("conf_maintenance_msg", message)]
9696 else throw("You are not allowed to change this")
9797 }
9898
9999
100100
101101 @Callable(i)
102102 func registrationMode (whitelistedonly) = {
103103 let caller = toString(addressFromPublicKey(i.callerPublicKey))
104104 let id = toBase58String(i.transactionId)
105105 if (containsElement([chris, joep, toString(this)], caller))
106106 then [BooleanEntry("conf_whitelisted_only", whitelistedonly)]
107107 else throw("You are not allowed to change this")
108108 }
109109
110110
111111
112112 @Callable(i)
113113 func registerUser (name,description,thumb,social) = if (!(dappRunning))
114114 then throw(maintenanceMSG)
115115 else {
116116 let caller = toString(addressFromPublicKey(i.callerPublicKey))
117117 let canRegister = getStringByKey(keyUserStatus(caller))
118118 let id = toBase58String(i.transactionId)
119119 let timestamp = lastBlock.timestamp
120120 if (if ((canRegister == userSuspended))
121121 then true
122122 else (canRegister == userRemoved))
123123 then throw("Account suspended/ removed.")
124124 else if ((canRegister == userRegistered))
125125 then throw("Already registered")
126126 else if (if ((canRegister == ""))
127127 then whitelistedonly
128128 else false)
129129 then throw("Can't register, get approved first.")
130130 else if (if ((name == ""))
131131 then true
132132 else (description == ""))
133133 then throw("Name and description cannot be empty")
134134 else if ((size(description) > 600))
135135 then throw("600 Char. max description")
136136 else if ((size(name) > 45))
137137 then throw("45 Char. max name")
138138 else [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)]
139139 }
140140
141141
142142
143143 @Callable(i)
144144 func updateUser (name,description,thumb,social) = if (!(dappRunning))
145145 then throw(maintenanceMSG)
146146 else {
147147 let caller = toString(addressFromPublicKey(i.callerPublicKey))
148148 let id = toBase58String(i.transactionId)
149149 let canUpdate = getStringByKey(keyUserStatus(caller))
150150 if (if ((canUpdate == userSuspended))
151151 then true
152152 else (canUpdate == userRemoved))
153153 then throw("Account suspended/ removed.")
154154 else if (if ((canUpdate == ""))
155155 then true
156156 else (canUpdate == userAllowed))
157157 then throw("Register first")
158158 else if (if ((name == ""))
159159 then true
160160 else (description == ""))
161161 then throw("Name & description cannot be empty")
162162 else if ((size(description) > 600))
163163 then throw("600 Char. max for description")
164164 else if ((size(name) > 45))
165165 then throw("45 Char. max name")
166166 else [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb)]
167167 }
168168
169169
170170
171171 @Callable(i)
172172 func changeUserStatus (address,status) = if (!(dappRunning))
173173 then throw(maintenanceMSG)
174174 else {
175175 let caller = toString(addressFromPublicKey(i.callerPublicKey))
176176 let id = toBase58String(i.transactionId)
177177 let currentStatus = getStringByKey(keyUserStatus(address))
178178 let statusToSet = if ((status == userVerified))
179179 then userVerified
180180 else if ((status == userRegistered))
181181 then userRegistered
182182 else if ((status == userSuspended))
183183 then userSuspended
184184 else if ((status == userRemoved))
185185 then userRemoved
186186 else if ((status == userAllowed))
187187 then userAllowed
188188 else if ((status == userChangeRequired))
189189 then userChangeRequired
190190 else if (if ((status == userReset))
191191 then (currentStatus == userAllowed)
192192 else false)
193193 then ""
194194 else throw("Unknown status")
195195 let userIsRegistered = getIntegerByKey(keyUserDate(address))
196196 if (if ((userIsRegistered == 0))
197197 then (status != userAllowed)
198198 else false)
199199 then throw("You cant set this status, user is not registered.")
200200 else if (if ((currentStatus == userAllowed))
201201 then (status == userAllowed)
202202 else false)
203203 then throw("User already allowed")
204204 else if (if ((currentStatus == userRegistered))
205205 then (status == userAllowed)
206206 else false)
207207 then throw("User already allowed & registered")
208208 else if (if ((currentStatus == userVerified))
209209 then (status == userAllowed)
210210 else false)
211211 then throw("User already allowed & verified")
212212 else if (containsElement([chris, joep, toString(this)], caller))
213213 then [StringEntry(keyUserStatus(address), statusToSet)]
214214 else throw("Not allowed to change user status")
215215 }
216216
217217
218218
219219 @Callable(i)
220220 func creditUser (address) = {
221221 let caller = toString(addressFromPublicKey(i.callerPublicKey))
222222 let id = toBase58String(i.transactionId)
223223 if (containsElement([chris, joep], caller))
224224 then [ScriptTransfer(Address(fromBase58String(address)), 30000000000, signAssetId)]
225225 else throw("Not allowed")
226226 }
227227
228228
229229
230230 @Callable(i)
231231 func deleteUser (address) = {
232232 let caller = toString(addressFromPublicKey(i.callerPublicKey))
233233 let id = toBase58String(i.transactionId)
234234 if (containsElement([chris, joep, toString(this)], caller))
235235 then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), StringEntry(keyUserStatus(address), userRemoved)]
236236 else throw("Not allowed")
237237 }
238238
239239
240240
241241 @Callable(i)
242242 func deleteEntry (entry) = {
243243 let caller = toString(addressFromPublicKey(i.callerPublicKey))
244244 if ((caller == chris))
245245 then [DeleteEntry(entry)]
246246 else throw("no")
247247 }
248248
249249

github/deemru/w8io/026f985 
36.01 ms