tx · B5i1WfSfaApjJ5vRPcsgby1PbgxX9J6Gtz58abgefdN6 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG: -0.01400000 Waves 2020.10.17 10:01 [1224254] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves
{ "type": 13, "id": "B5i1WfSfaApjJ5vRPcsgby1PbgxX9J6Gtz58abgefdN6", "fee": 1400000, "feeAssetId": null, "timestamp": 1602918146957, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "5FDCn9NJdTwhoKRQfq9bNBtfCnRoMyr7mDJqGJwVgn2RpQMaW2CQqtKnfxcecte1za1MXLuerRz5oH93b8o3hKCY" ], "script": "base64:AAIEAAAAAAAAAGEIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIFCgMICAgSBAoCCAgSBgoECAEBCBIECgIICBIDCgEIAAAAOQAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3NldElkAQAAAA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AAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAACaWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAMDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFYWRtaW4GCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAGYWRtaW4yCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAtrZXlVc2VyRGF0ZQAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAC2tleVVzZXJBZGRyAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAALa2V5VXNlck5hbWUAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAtrZXlVc2VyRGVzYwAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAADWtleVVzZXJTb2NpYWwAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAxrZXlVc2VyVGh1bWIAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAA1rZXlVc2VyU3RhdHVzAAAAAQUAAAAHYWRkcmVzcwUAAAALdXNlclJlbW92ZWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAObGFzdF9pbnZva2VfaWQFAAAAAmlkBQAAAANuaWwJAAACAAAAAQIAAAALTm90IGFsbG93ZWQAAAAABxlUwA==", "height": 1224254, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DBcES3ySzFDTDxaNvfMkziDtgx6pcUpbptS7Bckz4uta Next: 9KEhtnAnMHKuCPaKpnbW6DhoeHLncuPN4vEYpp9r9tXF Diff:
Old | New | Differences | |
---|---|---|---|
617 | 617 | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
618 | 618 | let payment = value(i.payments[0]) | |
619 | 619 | let amount = value(payment.amount) | |
620 | - | let assetId = if (if (isDefined(payment.assetId)) | |
620 | + | let assetId = if (if (if (isDefined(payment.assetId)) | |
621 | + | then (size(fromBase58String(priceAssetId)) > 0) | |
622 | + | else false) | |
621 | 623 | then (payment.assetId == fromBase58String(priceAssetId)) | |
622 | 624 | else false) | |
623 | 625 | then payment.assetId | |
624 | - | else | |
626 | + | else unit | |
625 | 627 | let cut = if ((priceAssetId == toBase58String(signAssetId))) | |
626 | 628 | then 8 | |
627 | 629 | else 10 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
7 | 7 | ||
8 | 8 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | 9 | ||
10 | 10 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
11 | 11 | ||
12 | 12 | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
13 | 13 | ||
14 | 14 | let wavesAssetId = base58'' | |
15 | 15 | ||
16 | 16 | let signCut = 8 | |
17 | 17 | ||
18 | 18 | let usdnCut = 10 | |
19 | 19 | ||
20 | 20 | let wavesCut = 10 | |
21 | 21 | ||
22 | 22 | let admin = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
23 | 23 | ||
24 | 24 | let admin2 = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
25 | 25 | ||
26 | 26 | let WHITELISTEDONLY = true | |
27 | 27 | ||
28 | 28 | let dappRunning = true | |
29 | 29 | ||
30 | 30 | let maintenanceMSG = "SIGN Art is under maintenance" | |
31 | 31 | ||
32 | 32 | let userAllowed = "ALLOWED" | |
33 | 33 | ||
34 | 34 | let userRegistered = "REGISTERED" | |
35 | 35 | ||
36 | 36 | let userVerified = "VERIFIED" | |
37 | 37 | ||
38 | 38 | let userSuspended = "SUSPENDED" | |
39 | 39 | ||
40 | 40 | let userRemoved = "REMOVED" | |
41 | 41 | ||
42 | 42 | let userUnregistered = "UNREGISTERED" | |
43 | 43 | ||
44 | 44 | let userReset = "RESET" | |
45 | 45 | ||
46 | 46 | func getStringByKey (key) = match getString(this, key) { | |
47 | 47 | case a: String => | |
48 | 48 | a | |
49 | 49 | case _ => | |
50 | 50 | "" | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func getIntegerByKey (key) = match getInteger(this, key) { | |
55 | 55 | case i: Int => | |
56 | 56 | i | |
57 | 57 | case _ => | |
58 | 58 | 0 | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func getBooleanByKey (key) = match getBoolean(this, key) { | |
63 | 63 | case i: Boolean => | |
64 | 64 | i | |
65 | 65 | case _ => | |
66 | 66 | false | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) { | |
71 | 71 | case a: String => | |
72 | 72 | if (contains(a, sha256Hash)) | |
73 | 73 | then true | |
74 | 74 | else false | |
75 | 75 | case _ => | |
76 | 76 | false | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func validateCID (cid) = if (if ((75 > size(cid))) | |
81 | 81 | then (60 > size(split(cid, "/")[0])) | |
82 | 82 | else false) | |
83 | 83 | then (16 > size(split(cid, "/")[1])) | |
84 | 84 | else false | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func validateHash (hash) = (65 > size(hash)) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func keyUserAddr (caller) = ("user_" + caller) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyUserName (caller) = ("user_name_" + caller) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyUserDesc (caller) = ("user_desc_" + caller) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func keyUserSocial (caller) = ("user_social_" + caller) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyUserThumb (caller) = ("user_thumb_" + caller) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyUserStatus (caller) = ("user_status_" + caller) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keyUserDate (caller) = ("user_date_" + caller) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyArtDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func keyArtName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func keyArtDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func keyArtDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func keyArtExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func keyArtExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyArtMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyArtSignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyArtIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyArtOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyArtLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyArtLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyArtTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyArtType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyArtPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func keyArtAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func keyArtHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func keyArtArtidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func keyArtTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (if ((cidDisplay != "")) | |
172 | 172 | then !(validateCID(cidDisplay)) | |
173 | 173 | else false) | |
174 | 174 | then throw("Wrong Display CID") | |
175 | 175 | else if (if ((cidExport != "")) | |
176 | 176 | then !(validateCID(cidExport)) | |
177 | 177 | else false) | |
178 | 178 | then throw("Wrong Export CID") | |
179 | 179 | else if (if ((cidLicence != "")) | |
180 | 180 | then !(validateCID(cidLicence)) | |
181 | 181 | else false) | |
182 | 182 | then throw("Wrong Licence CID") | |
183 | 183 | else true | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func validateAllHash (sha256Export,sha256Licence) = if (if ((sha256Export != "")) | |
187 | 187 | then !(validateHash(sha256Export)) | |
188 | 188 | else false) | |
189 | 189 | then throw("Export Hash 64 char. max") | |
190 | 190 | else if (if ((sha256Licence != "")) | |
191 | 191 | then !(validateHash(sha256Licence)) | |
192 | 192 | else false) | |
193 | 193 | then throw("Licence Hash 64 char. max") | |
194 | 194 | else true | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func validateString (str,max) = if ((size(str) == 0)) | |
198 | 198 | then throw("Field cannot be is empty") | |
199 | 199 | else if ((size(str) > max)) | |
200 | 200 | then throw((str + " is too long")) | |
201 | 201 | else true | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | @Callable(i) | |
205 | 205 | func registerUser (name,description,thumb,social) = if (!(dappRunning)) | |
206 | 206 | then throw(maintenanceMSG) | |
207 | 207 | else { | |
208 | 208 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
209 | 209 | let canRegister = getStringByKey(keyUserStatus(caller)) | |
210 | 210 | let id = toBase58String(i.transactionId) | |
211 | 211 | let timestamp = lastBlock.timestamp | |
212 | 212 | if (if ((canRegister == userSuspended)) | |
213 | 213 | then true | |
214 | 214 | else (canRegister == userRemoved)) | |
215 | 215 | then throw("Account suspended/ removed.") | |
216 | 216 | else if ((canRegister == userRegistered)) | |
217 | 217 | then throw("Already registered") | |
218 | 218 | else if (if ((canRegister == "")) | |
219 | 219 | then WHITELISTEDONLY | |
220 | 220 | else false) | |
221 | 221 | then throw("Can't register, get approved first.") | |
222 | 222 | else if (if ((name == "")) | |
223 | 223 | then true | |
224 | 224 | else (description == "")) | |
225 | 225 | then throw("Name and description cannot be empty") | |
226 | 226 | else if ((size(description) > 600)) | |
227 | 227 | then throw("600 Char. max description") | |
228 | 228 | else [IntegerEntry(keyUserDate(caller), timestamp), StringEntry(keyUserAddr(caller), ((id + "_") + toString(lastBlock.timestamp))), StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry(keyUserStatus(caller), userRegistered), StringEntry("last_invoke_id", id)] | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(i) | |
234 | 234 | func deleteEntry (entry) = { | |
235 | 235 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
236 | 236 | if ((caller == admin)) | |
237 | 237 | then [DeleteEntry(entry)] | |
238 | 238 | else throw("no") | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | ||
243 | 243 | @Callable(i) | |
244 | 244 | func updateUser (name,description,thumb,social) = if (!(dappRunning)) | |
245 | 245 | then throw(maintenanceMSG) | |
246 | 246 | else { | |
247 | 247 | let id = toBase58String(i.transactionId) | |
248 | 248 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
249 | 249 | let canUpdate = getStringByKey(keyUserStatus(caller)) | |
250 | 250 | if (if ((canUpdate == userSuspended)) | |
251 | 251 | then true | |
252 | 252 | else (canUpdate == userRemoved)) | |
253 | 253 | then throw("Account suspended/ removed.") | |
254 | 254 | else if (if ((canUpdate == "")) | |
255 | 255 | then true | |
256 | 256 | else (canUpdate == userAllowed)) | |
257 | 257 | then throw("Register first") | |
258 | 258 | else if (if ((name == "")) | |
259 | 259 | then true | |
260 | 260 | else (description == "")) | |
261 | 261 | then throw("Name & description cannot be empty") | |
262 | 262 | else if ((size(description) > 600)) | |
263 | 263 | then throw("600 Char. max for description") | |
264 | 264 | else [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry("last_invoke_id", id)] | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(i) | |
270 | 270 | func changeUserStatus (address,status) = if (!(dappRunning)) | |
271 | 271 | then throw(maintenanceMSG) | |
272 | 272 | else { | |
273 | 273 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
274 | 274 | let id = toBase58String(i.transactionId) | |
275 | 275 | let currentStatus = getStringByKey(keyUserStatus(address)) | |
276 | 276 | let statusToSet = if ((status == userVerified)) | |
277 | 277 | then userVerified | |
278 | 278 | else if ((status == userRegistered)) | |
279 | 279 | then userRegistered | |
280 | 280 | else if ((status == userSuspended)) | |
281 | 281 | then userSuspended | |
282 | 282 | else if ((status == userRemoved)) | |
283 | 283 | then userRemoved | |
284 | 284 | else if ((status == userAllowed)) | |
285 | 285 | then userAllowed | |
286 | 286 | else if (if ((status == userReset)) | |
287 | 287 | then (currentStatus == userAllowed) | |
288 | 288 | else false) | |
289 | 289 | then "" | |
290 | 290 | else throw("Unknown status") | |
291 | 291 | if (if ((currentStatus == userAllowed)) | |
292 | 292 | then (status == userAllowed) | |
293 | 293 | else false) | |
294 | 294 | then throw("User already allowed") | |
295 | 295 | else if (if ((currentStatus == userRegistered)) | |
296 | 296 | then (status == userAllowed) | |
297 | 297 | else false) | |
298 | 298 | then throw("User already allowed & registered") | |
299 | 299 | else if (if ((currentStatus == userVerified)) | |
300 | 300 | then (status == userAllowed) | |
301 | 301 | else false) | |
302 | 302 | then throw("User already allowed & verified") | |
303 | 303 | else if (if ((caller == admin)) | |
304 | 304 | then true | |
305 | 305 | else (caller == admin2)) | |
306 | 306 | then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)] | |
307 | 307 | else throw(((("Not allowed to change user status " + caller) + " / ") + admin)) | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | ||
312 | 312 | @Callable(i) | |
313 | 313 | func creditUser (address) = { | |
314 | 314 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
315 | 315 | let id = toBase58String(i.transactionId) | |
316 | 316 | if (if ((caller == admin)) | |
317 | 317 | then true | |
318 | 318 | else (caller == admin2)) | |
319 | 319 | then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)] | |
320 | 320 | else throw("Not allowed") | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | ||
325 | 325 | @Callable(invoke) | |
326 | 326 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
327 | 327 | then throw(maintenanceMSG) | |
328 | 328 | else { | |
329 | 329 | let artId = toBase58String(invoke.transactionId) | |
330 | 330 | let caller = toBase58String(invoke.caller.bytes) | |
331 | 331 | if (!(validateAllCID(cidDisplay, cidExport, cidLicence))) | |
332 | 332 | then throw("Problem with CID") | |
333 | 333 | else if (!(validateHash(sha256Hash))) | |
334 | 334 | then throw("Hash should be 64 characters maximum") | |
335 | 335 | else if (!(validateAllHash(sha256Export, sha256Licence))) | |
336 | 336 | then throw("Problem with Hashes") | |
337 | 337 | else if ((size(invoke.payments) == 0)) | |
338 | 338 | then throw("No payment attached") | |
339 | 339 | else { | |
340 | 340 | let payment = value(invoke.payments[0]) | |
341 | 341 | let amount = value(payment.amount) | |
342 | 342 | let assetId = if (if (isDefined(payment.assetId)) | |
343 | 343 | then (payment.assetId == signAssetId) | |
344 | 344 | else false) | |
345 | 345 | then payment.assetId | |
346 | 346 | else throw("Only SIGN token accepted at the moment") | |
347 | 347 | let currentCertificationPrice = match getInteger(oracleFee, ("certification_fee_" + toBase58String(signAssetId))) { | |
348 | 348 | case price: Int => | |
349 | 349 | price | |
350 | 350 | case _ => | |
351 | 351 | throw("Price undefined in oracle") | |
352 | 352 | } | |
353 | 353 | if ((amount != currentCertificationPrice)) | |
354 | 354 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
355 | 355 | else { | |
356 | 356 | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, caller)) | |
357 | 357 | if ((entryExist != "")) | |
358 | 358 | then throw("You already added it") | |
359 | 359 | else { | |
360 | 360 | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
361 | 361 | if ((hashExist != "")) | |
362 | 362 | then throw("Hash already registered") | |
363 | 363 | else { | |
364 | 364 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
365 | 365 | if (!(isSignCertified)) | |
366 | 366 | then throw("Sign Certificate not found for this address.") | |
367 | 367 | else if ((size(cidDisplay) == 0)) | |
368 | 368 | then throw("Display CID cannot be empty") | |
369 | 369 | else if (!(validateString(name, 100))) | |
370 | 370 | then throw("100 Char. max name") | |
371 | 371 | else if (!(validateString(description, 1000))) | |
372 | 372 | then throw("1000 Char. max description") | |
373 | 373 | else if ((size(split(tags, ",")) > 5)) | |
374 | 374 | then throw("5 tags max.") | |
375 | 375 | else { | |
376 | 376 | let userIsRegistered = match getString(this, ("user_status_" + caller)) { | |
377 | 377 | case s: String => | |
378 | 378 | s | |
379 | 379 | case _ => | |
380 | 380 | userUnregistered | |
381 | 381 | } | |
382 | 382 | let timestamp = lastBlock.timestamp | |
383 | 383 | if (if (isDefined(userIsRegistered)) | |
384 | 384 | then (userIsRegistered == userUnregistered) | |
385 | 385 | else false) | |
386 | 386 | then throw("Register this account first with \"User infos\" tab") | |
387 | 387 | else if ((userIsRegistered == userSuspended)) | |
388 | 388 | then throw("Account suspended") | |
389 | 389 | else if ((userIsRegistered == userRemoved)) | |
390 | 390 | then throw("Account removed") | |
391 | 391 | else if ((maxmint > 10)) | |
392 | 392 | then throw("10 editions max") | |
393 | 393 | else if ((size(sha256Hash) != 64)) | |
394 | 394 | then throw("Hash 64 char. max") | |
395 | 395 | else [StringEntry(keyArtOwnerByHash(sha256Hash), caller), StringEntry(keyArtTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyArtDate(caller, artId), timestamp), StringEntry(keyArtName(caller, artId), name), StringEntry(keyArtDesc(caller, artId), description), StringEntry(keyArtDisplayCid(caller, artId), cidDisplay), StringEntry(keyArtExportCid(caller, artId), cidExport), StringEntry(keyArtExportHash(caller, artId), sha256Export), StringEntry(keyArtLicenceHash(caller, artId), sha256Licence), StringEntry(keyArtLicenceCid(caller, artId), cidLicence), StringEntry(keyArtType(caller, artId), type), StringEntry(keyArtTags(caller, artId), tags), IntegerEntry(keyArtMaxMint(caller, artId), maxmint), StringEntry(keyArtSignID(caller, artId), signID), IntegerEntry(keyArtIssued(caller, artId), 0), BooleanEntry(keyArtOnSale(caller, artId), false), StringEntry(keyArtArtidBySignid(caller, signID), artId), StringEntry("last_invoke_id", artId), StringEntry(keyArtHashByTxidAddr(caller, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)] | |
396 | 396 | } | |
397 | 397 | } | |
398 | 398 | } | |
399 | 399 | } | |
400 | 400 | } | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | ||
405 | 405 | @Callable(invoke) | |
406 | 406 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
407 | 407 | then throw(maintenanceMSG) | |
408 | 408 | else { | |
409 | 409 | let updateId = toBase58String(invoke.transactionId) | |
410 | 410 | let caller = toBase58String(invoke.caller.bytes) | |
411 | 411 | if (!(validateAllCID(cidDisplay, cidExport, cidLicence))) | |
412 | 412 | then throw("Problem with CID") | |
413 | 413 | else if (!(validateAllHash(sha256Export, sha256Licence))) | |
414 | 414 | then throw("Problem with Hashes") | |
415 | 415 | else { | |
416 | 416 | let entryExist = getStringByKey(keyArtName(caller, txid)) | |
417 | 417 | if ((entryExist == "")) | |
418 | 418 | then throw("Entry not found") | |
419 | 419 | else if (!(validateString(name, 100))) | |
420 | 420 | then throw("100 Char. max name") | |
421 | 421 | else if (!(validateString(description, 1000))) | |
422 | 422 | then throw("1000 Char. max description") | |
423 | 423 | else { | |
424 | 424 | let artworkMinted = match getInteger(this, keyArtIssued(caller, txid)) { | |
425 | 425 | case b: Int => | |
426 | 426 | if ((b == 0)) | |
427 | 427 | then false | |
428 | 428 | else true | |
429 | 429 | case _ => | |
430 | 430 | false | |
431 | 431 | } | |
432 | 432 | if ((size(split(tags, ",")) > 5)) | |
433 | 433 | then throw("5 tags max.") | |
434 | 434 | else { | |
435 | 435 | let userIsRegistered = match getString(this, ("user_status_" + caller)) { | |
436 | 436 | case s: String => | |
437 | 437 | s | |
438 | 438 | case _ => | |
439 | 439 | userUnregistered | |
440 | 440 | } | |
441 | 441 | if (if (isDefined(userIsRegistered)) | |
442 | 442 | then (userIsRegistered == userUnregistered) | |
443 | 443 | else false) | |
444 | 444 | then throw("Register first with \"User infos\"") | |
445 | 445 | else if ((userIsRegistered == userSuspended)) | |
446 | 446 | then throw("Account suspended") | |
447 | 447 | else if ((userIsRegistered == userRemoved)) | |
448 | 448 | then throw("Account removed") | |
449 | 449 | else if ((maxmint > 10)) | |
450 | 450 | then throw("10 editions max per artwork") | |
451 | 451 | else if (!(artworkMinted)) | |
452 | 452 | then [StringEntry(keyArtName(caller, txid), name), StringEntry(keyArtDesc(caller, txid), description), StringEntry(keyArtDisplayCid(caller, txid), cidDisplay), StringEntry(keyArtExportCid(caller, txid), cidExport), StringEntry(keyArtExportHash(caller, txid), sha256Export), StringEntry(keyArtLicenceCid(caller, txid), cidLicence), StringEntry(keyArtLicenceHash(caller, txid), sha256Licence), IntegerEntry(keyArtMaxMint(caller, txid), maxmint), StringEntry(keyArtTags(caller, txid), tags), StringEntry(keyArtType(caller, txid), type), StringEntry("last_invoke_id", updateId)] | |
453 | 453 | else throw("Already minted") | |
454 | 454 | } | |
455 | 455 | } | |
456 | 456 | } | |
457 | 457 | } | |
458 | 458 | ||
459 | 459 | ||
460 | 460 | ||
461 | 461 | @Callable(i) | |
462 | 462 | func flagArtwork (artId,addr,flag) = { | |
463 | 463 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
464 | 464 | let id = toBase58String(i.transactionId) | |
465 | 465 | if (if ((caller == admin)) | |
466 | 466 | then true | |
467 | 467 | else (caller == admin2)) | |
468 | 468 | then if (if ((flag != "ILLEGAL")) | |
469 | 469 | then true | |
470 | 470 | else (flag != "CONSENT")) | |
471 | 471 | then throw("Unknow status") | |
472 | 472 | else [StringEntry(((("art_flag_" + artId) + "_") + caller), flag), StringEntry("last_invoke_id", id)] | |
473 | 473 | else throw("no") | |
474 | 474 | } | |
475 | 475 | ||
476 | 476 | ||
477 | 477 | ||
478 | 478 | @Callable(i) | |
479 | 479 | func deleteArtwork (artId,addr) = { | |
480 | 480 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
481 | 481 | let id = toBase58String(i.transactionId) | |
482 | 482 | let addressToUse = if (if ((caller == admin)) | |
483 | 483 | then true | |
484 | 484 | else (caller == admin2)) | |
485 | 485 | then addr | |
486 | 486 | else caller | |
487 | 487 | let entryExist = match getString(this, keyArtName(addressToUse, artId)) { | |
488 | 488 | case s: String => | |
489 | 489 | s | |
490 | 490 | case _ => | |
491 | 491 | throw("No art matching") | |
492 | 492 | } | |
493 | 493 | let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) { | |
494 | 494 | case b: Int => | |
495 | 495 | if ((b != 0)) | |
496 | 496 | then true | |
497 | 497 | else false | |
498 | 498 | case _ => | |
499 | 499 | false | |
500 | 500 | } | |
501 | 501 | let maxMint = getIntegerByKey(keyArtMaxMint(addressToUse, artId)) | |
502 | 502 | let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) { | |
503 | 503 | case s: String => | |
504 | 504 | s | |
505 | 505 | case _ => | |
506 | 506 | throw("No art hash matching") | |
507 | 507 | } | |
508 | 508 | let signID = match getString(this, keyArtSignID(addressToUse, artId)) { | |
509 | 509 | case s: String => | |
510 | 510 | s | |
511 | 511 | case _ => | |
512 | 512 | throw("No SIGN ID matching") | |
513 | 513 | } | |
514 | 514 | let dataToDelete = [DeleteEntry(keyArtDate(addressToUse, artId)), DeleteEntry(keyArtName(addressToUse, artId)), DeleteEntry(keyArtDesc(addressToUse, artId)), DeleteEntry(keyArtDisplayCid(addressToUse, artId)), DeleteEntry(keyArtExportCid(addressToUse, artId)), DeleteEntry(keyArtExportHash(addressToUse, artId)), DeleteEntry(keyArtLicenceHash(addressToUse, artId)), DeleteEntry(keyArtLicenceCid(addressToUse, artId)), DeleteEntry(keyArtType(addressToUse, artId)), DeleteEntry(keyArtTags(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtSignID(addressToUse, artId)), DeleteEntry(keyArtIssued(addressToUse, artId)), DeleteEntry(keyArtOnSale(addressToUse, artId)), StringEntry("last_invoke_id", id), DeleteEntry(keyArtOwnerByHash(sha256Hash)), DeleteEntry(keyArtArtidBySignid(addressToUse, signID)), DeleteEntry(keyArtTxidByHashOwner(sha256Hash, addressToUse)), DeleteEntry(keyArtPrice(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtAssetIdAccepted(addressToUse, artId)), DeleteEntry(((((("art_sold_1_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_2_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_3_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_4_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_5_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_6_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_7_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_8_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_9_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_10_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse))] | |
515 | 515 | if (if ((caller == admin)) | |
516 | 516 | then true | |
517 | 517 | else (caller == admin2)) | |
518 | 518 | then (dataToDelete ++ [StringEntry(((("ban_" + artId) + "_") + addressToUse), caller)]) | |
519 | 519 | else if (!(artworkMinted)) | |
520 | 520 | then if (!(dappRunning)) | |
521 | 521 | then throw(maintenanceMSG) | |
522 | 522 | else dataToDelete | |
523 | 523 | else throw("Art already minted, cannot delete") | |
524 | 524 | } | |
525 | 525 | ||
526 | 526 | ||
527 | 527 | ||
528 | 528 | @Callable(i) | |
529 | 529 | func sellArtwork (artId,price,maxMint,assetId) = if (!(dappRunning)) | |
530 | 530 | then throw(maintenanceMSG) | |
531 | 531 | else { | |
532 | 532 | let id = toBase58String(i.transactionId) | |
533 | 533 | let caller = toBase58String(i.caller.bytes) | |
534 | 534 | let sellDate = lastBlock.timestamp | |
535 | 535 | let exportCID = getStringByKey(keyArtExportCid(caller, artId)) | |
536 | 536 | if ((size(split(exportCID, "/")[0]) != 59)) | |
537 | 537 | then throw("You cannot sell art with no export file") | |
538 | 538 | else { | |
539 | 539 | let exportHash = getStringByKey(keyArtExportHash(caller, artId)) | |
540 | 540 | if ((size(exportHash) != 64)) | |
541 | 541 | then throw("You cannot sell art with no export hash") | |
542 | 542 | else if (if (if ((assetId != toBase58String(signAssetId))) | |
543 | 543 | then (assetId != toBase58String(wavesAssetId)) | |
544 | 544 | else false) | |
545 | 545 | then (assetId != toBase58String(usdnAssetId)) | |
546 | 546 | else false) | |
547 | 547 | then throw("Only SIGN, USDN or WAVES accepted") | |
548 | 548 | else { | |
549 | 549 | let artworkName = match getString(this, keyArtName(caller, artId)) { | |
550 | 550 | case s: String => | |
551 | 551 | s | |
552 | 552 | case _ => | |
553 | 553 | throw("This art doesn't match") | |
554 | 554 | } | |
555 | 555 | let userIsRegistered = match getString(this, keyUserStatus(caller)) { | |
556 | 556 | case s: String => | |
557 | 557 | s | |
558 | 558 | case _ => | |
559 | 559 | throw("Register this account first") | |
560 | 560 | } | |
561 | 561 | let amountSold = getIntegerByKey(keyArtIssued(caller, artId)) | |
562 | 562 | let maxCanSell = getIntegerByKey(keyArtMaxMint(caller, artId)) | |
563 | 563 | if (if ((amountSold != 0)) | |
564 | 564 | then (amountSold == maxCanSell) | |
565 | 565 | else false) | |
566 | 566 | then throw("Max edition reached.") | |
567 | 567 | else if (if ((amountSold > 0)) | |
568 | 568 | then (maxCanSell != maxMint) | |
569 | 569 | else false) | |
570 | 570 | then throw("Cannot change maximum issuable anymore") | |
571 | 571 | else if ((userIsRegistered == userSuspended)) | |
572 | 572 | then throw("Account suspended") | |
573 | 573 | else if ((userIsRegistered == userRemoved)) | |
574 | 574 | then throw("Account deleted") | |
575 | 575 | else { | |
576 | 576 | let sellStatus = if ((price > 0)) | |
577 | 577 | then true | |
578 | 578 | else false | |
579 | 579 | [BooleanEntry(keyArtOnSale(caller, artId), sellStatus), IntegerEntry(keyArtPrice(caller, artId), price), IntegerEntry(keyArtMaxMint(caller, artId), maxMint), StringEntry(keyArtAssetIdAccepted(caller, artId), assetId), StringEntry("last_invoke_id", id)] | |
580 | 580 | } | |
581 | 581 | } | |
582 | 582 | } | |
583 | 583 | } | |
584 | 584 | ||
585 | 585 | ||
586 | 586 | ||
587 | 587 | @Callable(i) | |
588 | 588 | func buyArtwork (artId,issuer) = if (!(dappRunning)) | |
589 | 589 | then throw(maintenanceMSG) | |
590 | 590 | else { | |
591 | 591 | let id = toBase58String(i.transactionId) | |
592 | 592 | let caller = toBase58String(i.caller.bytes) | |
593 | 593 | let totalNFT = getIntegerByKey("total_nft_issued") | |
594 | 594 | let signID = getStringByKey(keyArtSignID(issuer, artId)) | |
595 | 595 | let artworkName = match getString(this, keyArtName(issuer, artId)) { | |
596 | 596 | case s: String => | |
597 | 597 | s | |
598 | 598 | case _ => | |
599 | 599 | throw("Art doesn't exist") | |
600 | 600 | } | |
601 | 601 | let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId)) | |
602 | 602 | let exportCID = getStringByKey(keyArtExportCid(issuer, artId)) | |
603 | 603 | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
604 | 604 | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
605 | 605 | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
606 | 606 | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
607 | 607 | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
608 | 608 | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
609 | 609 | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
610 | 610 | let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId)) | |
611 | 611 | let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId)) | |
612 | 612 | if ((artworkPrice == 0)) | |
613 | 613 | then throw("Art not for sell") | |
614 | 614 | else if (!(isOnSale)) | |
615 | 615 | then throw("Art not for sale") | |
616 | 616 | else { | |
617 | 617 | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
618 | 618 | let payment = value(i.payments[0]) | |
619 | 619 | let amount = value(payment.amount) | |
620 | - | let assetId = if (if (isDefined(payment.assetId)) | |
620 | + | let assetId = if (if (if (isDefined(payment.assetId)) | |
621 | + | then (size(fromBase58String(priceAssetId)) > 0) | |
622 | + | else false) | |
621 | 623 | then (payment.assetId == fromBase58String(priceAssetId)) | |
622 | 624 | else false) | |
623 | 625 | then payment.assetId | |
624 | - | else | |
626 | + | else unit | |
625 | 627 | let cut = if ((priceAssetId == toBase58String(signAssetId))) | |
626 | 628 | then 8 | |
627 | 629 | else 10 | |
628 | 630 | let amountForSign = ((amount / 100) * cut) | |
629 | 631 | let amountForCreator = (amount - amountForSign) | |
630 | 632 | if ((amountSold == maxCanSell)) | |
631 | 633 | then throw("Art sold out") | |
632 | 634 | else if ((artworkPrice != amount)) | |
633 | 635 | then throw("Payment don't match") | |
634 | 636 | else { | |
635 | 637 | let newAmountSold = (amountSold + 1) | |
636 | 638 | let entryDate = lastBlock.timestamp | |
637 | 639 | let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1, | |
638 | 640 | \"creator\": \"" + issuer) + "\", | |
639 | 641 | \"artID\": \"") + artId) + "\", | |
640 | 642 | \"signID\": \"") + signID) + "\", | |
641 | 643 | \"artwork_name\": \"") + artworkName) + "\", | |
642 | 644 | \"artwork_desc\": \"") + description) + "\", | |
643 | 645 | \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", | |
644 | 646 | \"maxIssuable\": \"") + toString(maxCanSell)) + "\", | |
645 | 647 | \"source_hash\": \"") + sourceHash) + "\", | |
646 | 648 | \"display_cid\": \"") + displayCID) + "\", | |
647 | 649 | \"export_cid\": \"") + exportCID) + "\", | |
648 | 650 | \"export_hash\": \"") + exportHash) + "\", | |
649 | 651 | \"licence_cid\": \"") + licenceCID) + "\", | |
650 | 652 | \"licence_hash\": \"") + licenceHash) + "\"}") | |
651 | 653 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
652 | 654 | let idNFT = calculateAssetId(issueNFT) | |
653 | 655 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
654 | 656 | then false | |
655 | 657 | else true | |
656 | 658 | [IntegerEntry(keyArtIssued(issuer, artId), newAmountSold), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer), ((((((((caller + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId)), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyArtOnSale(issuer, artId), sellStatus), StringEntry("last_invoke_id", id), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(i.caller, 1, idNFT)] | |
657 | 659 | } | |
658 | 660 | } | |
659 | 661 | } | |
660 | 662 | ||
661 | 663 | ||
662 | 664 | ||
663 | 665 | @Callable(i) | |
664 | 666 | func deleteUser (address) = { | |
665 | 667 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
666 | 668 | let id = toBase58String(i.transactionId) | |
667 | 669 | if (if ((caller == admin)) | |
668 | 670 | then true | |
669 | 671 | else (caller == admin2)) | |
670 | 672 | then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), StringEntry(keyUserStatus(address), userRemoved), StringEntry("last_invoke_id", id)] | |
671 | 673 | else throw("Not allowed") | |
672 | 674 | } | |
673 | 675 | ||
674 | 676 |
github/deemru/w8io/026f985 72.11 ms ◑