tx · 8oSWrTjydnzuPov6nrR2QzAvx2n4p81N3pTTPiBaWP48 3Mu2C9QPkCMbH6JLg6Hz7Netz8WzzsCFuer: -0.01400000 Waves 2022.07.29 20:04 [2161395] smart account 3Mu2C9QPkCMbH6JLg6Hz7Netz8WzzsCFuer > SELF 0.00000000 Waves
{ "type": 13, "id": "8oSWrTjydnzuPov6nrR2QzAvx2n4p81N3pTTPiBaWP48", "fee": 1400000, "feeAssetId": null, "timestamp": 1659114244148, "version": 2, "chainId": 84, "sender": "3Mu2C9QPkCMbH6JLg6Hz7Netz8WzzsCFuer", "senderPublicKey": "EpsQDuBHgjx87GJiEmraTUWwEdeaW4vimku5axvyr238", "proofs": [ "5Mftwzas26A1gHfbw4mh4jzhfSt3BAPZYmRL3mM993qZk9EwSmMfKZzMKbGHYsMEGJHJTvKrzqRExaF1TbxTZ45z" ], "script": "base64:AAIFAAAAAAAAADYIAhIDCgEIEgQKAgQIEgMKAQQSBwoFCAgICAgSBwoFCAgICAgSBgoECAgICBIDCgEIEgMKAQgAAAAkAAAAAAlvcmFjbGVLZXkCAAAACW9yYWNsZUtleQEAAAAGZ2V0U3RyAAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWICAAAAAAAAAAAGb3JhY2xlCQEAAAAGZ2V0U3RyAAAAAQUAAAAJb3JhY2xlS2V5AAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAAGb3JhY2xlAQAAABlnZXRJbnRlZ2VyQnlLZXlGcm9tT3JhY2xlAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABBoAAAACBQAAAAlvcmFjbGVGZWUFAAAAA2tleQIAAAAfSW50ZWdlciB1bmRlZmluZSBvciAwIGluIG9yYWNsZQA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VXNlckRlc2MAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAA1rZXlVc2VyU29jaWFsAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAMa2V5VXNlclRodW1iAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIJAAEsAAAAAgUAAAANY3VycmVudFN0YXR1cwIAAAABXwUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAICAAAACWNhdGVnb3J5XwUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAANa2V5VXNlclN0YXR1cwAAAAEFAAAAB2FkZHJlc3MFAAAAC3VzZXJSZW1vdmVkBQAAAANuaWwJAAACAAAAAQIAAAALTm90IGFsbG93ZWQAAAABaQEAAAALZGVsZXRlRW50cnkAAAABAAAABWVudHJ5BAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkBAAAAD2NvbnRhaW5zRWxlbWVudAAAAAIFAAAABm93bmVycwUAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAAHderMQ==", "height": 2161395, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G5Do4LuR7cMMuWfcxCz9wWfU2YRVc1rxvZyTHxsNN4sC Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let oracleKey = "oracleKey" | |
5 | 5 | ||
6 | 6 | func getStr (key) = match getString(this, key) { | |
7 | 7 | case b: String => | |
8 | 8 | b | |
9 | 9 | case _ => | |
10 | 10 | "" | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | let oracle = getStr(oracleKey) | |
15 | 15 | ||
16 | 16 | let oracleFee = value(addressFromString(oracle)) | |
17 | 17 | ||
18 | 18 | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | let stakeDapp = addressFromString(valueOrErrorMessage(getString(oracleFee, "stakeDapp"), "sconexDapp not found")) | |
22 | 22 | ||
23 | 23 | let owners = [getString(oracleFee, "owner1"), getString(oracleFee, "owner2")] | |
24 | 24 | ||
25 | 25 | let dappRunningKey = "conf_dapp_is_running" | |
26 | 26 | ||
27 | 27 | let maintenanceMSGKey = "conf_maintenance_msg" | |
28 | 28 | ||
29 | 29 | let whitelistedonlyKey = "conf_whitelisted_only" | |
30 | 30 | ||
31 | 31 | let dappRunning = valueOrElse(getBoolean(this, dappRunningKey), true) | |
32 | 32 | ||
33 | 33 | let maintenanceMSG = valueOrElse(getString(this, maintenanceMSGKey), "") | |
34 | 34 | ||
35 | 35 | let whitelistedonly = valueOrElse(getBoolean(this, whitelistedonlyKey), true) | |
36 | 36 | ||
37 | 37 | let userRegistered = "REGISTERED" | |
38 | 38 | ||
39 | 39 | let userVerified = "VERIFIED" | |
40 | 40 | ||
41 | 41 | let userSuspended = "SUSPENDED" | |
42 | 42 | ||
43 | 43 | let userRemoved = "REMOVED" | |
44 | 44 | ||
45 | 45 | let userChangeRequired = "CHANGE_REQUIRED" | |
46 | 46 | ||
47 | 47 | let userUnregistered = "UNREGISTERED" | |
48 | 48 | ||
49 | 49 | let userReset = "RESET" | |
50 | 50 | ||
51 | 51 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func keyUserAddr (caller) = ("user_" + caller) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func keyUserName (caller) = ("user_name_" + caller) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func keyUserDesc (caller) = ("user_desc_" + caller) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func keyUserSocial (caller) = ("user_social_" + caller) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func keyUserThumb (caller) = ("user_thumb_" + caller) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyUserBanner (caller) = ("user_banner_" + caller) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func keyUserStatus (caller) = ("user_status_" + caller) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func keyUserDate (caller) = ("user_date_" + caller) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func validateCID (cid) = if (contains(cid, "/")) | |
85 | 85 | then if (if ((250 > size(cid))) | |
86 | 86 | then (size(split(cid, "/")[0]) == 46) | |
87 | 87 | else false) | |
88 | 88 | then (203 > size(split(cid, "/")[1])) | |
89 | 89 | else false | |
90 | 90 | else false | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func validateBanner (cid) = if ((size(cid) == 0)) | |
94 | 94 | then true | |
95 | 95 | else if ((size(cid) == 46)) | |
96 | 96 | then true | |
97 | 97 | else false | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func validUserData (caller,name,description,thumb,isAnUpdate) = { | |
101 | 101 | let validCID = if ((size(thumb) != 0)) | |
102 | 102 | then validateCID(thumb) | |
103 | 103 | else true | |
104 | 104 | if (!(validCID)) | |
105 | 105 | then throw("CID don't match requirement!") | |
106 | 106 | else if (if ((name == "")) | |
107 | 107 | then true | |
108 | 108 | else (description == "")) | |
109 | 109 | then throw("Name and description cannot be empty") | |
110 | 110 | else if ((size(description) > 600)) | |
111 | 111 | then throw("600 Char. max description") | |
112 | 112 | else if ((size(name) > 45)) | |
113 | 113 | then throw("45 Char. max name") | |
114 | 114 | else { | |
115 | 115 | let status = getStringByKey(keyUserStatus(caller)) | |
116 | 116 | if (if ((status == userSuspended)) | |
117 | 117 | then true | |
118 | 118 | else (status == userRemoved)) | |
119 | 119 | then throw("Account suspended/ removed.") | |
120 | 120 | else if (if (!(isAnUpdate)) | |
121 | 121 | then (status == userRegistered) | |
122 | 122 | else false) | |
123 | 123 | then throw("Already registered") | |
124 | 124 | else if (if (isAnUpdate) | |
125 | 125 | then (status == "") | |
126 | 126 | else false) | |
127 | 127 | then throw("Register first") | |
128 | 128 | else true | |
129 | 129 | } | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func validateNewStatus (status,address,currentStatus) = { | |
134 | 134 | let allStatus = [userVerified, userRegistered, userSuspended, userRemoved, userChangeRequired] | |
135 | 135 | let statusToSet = if (containsElement(allStatus, status)) | |
136 | 136 | then status | |
137 | 137 | else if ((status == userReset)) | |
138 | 138 | then "" | |
139 | 139 | else throw("Unknown status") | |
140 | 140 | let userIsRegistered = getIntegerByKey(keyUserDate(address)) | |
141 | 141 | if ((userIsRegistered == 0)) | |
142 | 142 | then throw("You cant set this status, user is not registered.") | |
143 | 143 | else statusToSet | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func makeJSON (name,thumb,date) = (((((("{\"user_name\": \"" + name) + "\", \"user_thumb\":\"") + thumb) + "\",\"user_date\":\"") + date) + "\"}") | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | @Callable(i) | |
151 | 151 | func initDapp (dappKey) = if ((i.caller != this)) | |
152 | 152 | then throw("You cannot do this action") | |
153 | 153 | else if ((oracle != "")) | |
154 | 154 | then throw("oracle already set, you can't override!") | |
155 | 155 | else [StringEntry(oracleKey, dappKey)] | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(invoke) | |
160 | 160 | func appRunning (isLive,message) = { | |
161 | 161 | let caller = toString(addressFromPublicKey(invoke.callerPublicKey)) | |
162 | 162 | let id = toBase58String(invoke.transactionId) | |
163 | 163 | if (containsElement((owners :+ toString(this)), caller)) | |
164 | 164 | then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)] | |
165 | 165 | else throw("You are not allowed to change this") | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | ||
170 | 170 | @Callable(invoke) | |
171 | 171 | func registrationMode (WLonly) = { | |
172 | 172 | let caller = toString(addressFromPublicKey(invoke.callerPublicKey)) | |
173 | 173 | let id = toBase58String(invoke.transactionId) | |
174 | 174 | if (containsElement((owners :+ toString(this)), caller)) | |
175 | 175 | then [BooleanEntry(whitelistedonlyKey, WLonly)] | |
176 | 176 | else throw("You are not allowed to change this") | |
177 | 177 | } | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | ||
181 | 181 | @Callable(i) | |
182 | 182 | func registerUser (name,description,thumb,social,banner) = if (!(dappRunning)) | |
183 | 183 | then throw(maintenanceMSG) | |
184 | 184 | else { | |
185 | 185 | let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[0]]) | |
186 | 186 | if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke)) | |
187 | 187 | then { | |
188 | 188 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
189 | 189 | let id = toBase58String(i.transactionId) | |
190 | 190 | let timestamp = lastBlock.timestamp | |
191 | 191 | if (!(validateBanner(banner))) | |
192 | 192 | then throw("Invalid banner image!") | |
193 | 193 | else if (!(validUserData(caller, name, description, thumb, false))) | |
194 | 194 | then throw("Something went wrong") | |
195 | 195 | else { | |
196 | 196 | let json = makeJSON(toBase64String(toBytes(name)), toBase64String(toBytes(thumb)), toString(timestamp)) | |
197 | 197 | [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(keyUserBanner(caller), banner), StringEntry(keyUserStatus(caller), userRegistered), StringEntry(((userRegistered + "_") + caller), json)] | |
198 | 198 | } | |
199 | 199 | } | |
200 | 200 | else throw("Strict value is not equal to itself.") | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | ||
205 | 205 | @Callable(i) | |
206 | 206 | func updateUser (name,description,thumb,social,banner) = if (!(dappRunning)) | |
207 | 207 | then throw(maintenanceMSG) | |
208 | 208 | else { | |
209 | 209 | let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[0]]) | |
210 | 210 | if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke)) | |
211 | 211 | then { | |
212 | 212 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
213 | 213 | let id = toBase58String(i.transactionId) | |
214 | 214 | let status = getStringByKey(keyUserStatus(caller)) | |
215 | 215 | if (!(validateBanner(banner))) | |
216 | 216 | then throw("Invalid banner image!") | |
217 | 217 | else if (!(validUserData(caller, name, description, thumb, true))) | |
218 | 218 | then throw("Something went wrong") | |
219 | 219 | else { | |
220 | 220 | let date = getIntegerByKey(keyUserDate(caller)) | |
221 | 221 | let json = makeJSON(toBase64String(toBytes(name)), toBase64String(toBytes(thumb)), toString(date)) | |
222 | 222 | [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserBanner(caller), banner), StringEntry(keyUserThumb(caller), thumb), StringEntry(((status + "_") + caller), json)] | |
223 | 223 | } | |
224 | 224 | } | |
225 | 225 | else throw("Strict value is not equal to itself.") | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | ||
230 | 230 | @Callable(invoke) | |
231 | 231 | func changeUserStatus (address,status,note,category) = { | |
232 | 232 | let caller = toString(addressFromPublicKey(invoke.callerPublicKey)) | |
233 | 233 | let id = toBase58String(invoke.transactionId) | |
234 | 234 | let addr = addressFromString(address) | |
235 | 235 | match addr { | |
236 | 236 | case addr: Address => | |
237 | 237 | let currentStatus = getStringByKey(keyUserStatus(address)) | |
238 | 238 | let statusToSet = validateNewStatus(status, address, currentStatus) | |
239 | 239 | let name = toBase64String(toBytes(getStringByKey(keyUserName(address)))) | |
240 | 240 | let thumb = toBase64String(toBytes(getStringByKey(keyUserThumb(address)))) | |
241 | 241 | let date = getIntegerByKey(keyUserDate(address)) | |
242 | 242 | let json = makeJSON(name, thumb, toString(date)) | |
243 | 243 | if (containsElement((owners :+ toString(this)), caller)) | |
244 | 244 | then { | |
245 | 245 | let categoryData = if ((statusToSet == userVerified)) | |
246 | 246 | then [StringEntry(("category_" + address), category)] | |
247 | 247 | else [DeleteEntry(("category_" + address))] | |
248 | 248 | (categoryData ++ [StringEntry(keyUserStatus(address), statusToSet), DeleteEntry(((currentStatus + "_") + address)), StringEntry(((statusToSet + "_") + address), json), StringEntry(("user_note_" + address), note)]) | |
249 | 249 | } | |
250 | 250 | else throw("Not allowed to change user status") | |
251 | 251 | case _ => | |
252 | 252 | throw("Seems to be an invalid address!") | |
253 | 253 | } | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(invoke) | |
259 | 259 | func deleteUser (address) = { | |
260 | 260 | let caller = toString(addressFromPublicKey(invoke.callerPublicKey)) | |
261 | 261 | let id = toBase58String(invoke.transactionId) | |
262 | 262 | let currentStatus = getStringByKey(keyUserStatus(address)) | |
263 | 263 | if (containsElement((owners :+ toString(this)), caller)) | |
264 | 264 | then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), DeleteEntry(((currentStatus + "_") + address)), DeleteEntry(("category_" + address)), StringEntry(keyUserStatus(address), userRemoved)] | |
265 | 265 | else throw("Not allowed") | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | ||
270 | 270 | @Callable(i) | |
271 | 271 | func deleteEntry (entry) = { | |
272 | 272 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
273 | 273 | if (containsElement(owners, caller)) | |
274 | 274 | then [DeleteEntry(entry)] | |
275 | 275 | else throw("no") | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 |
github/deemru/w8io/026f985 33.12 ms ◑