tx · Hp83i9izpaxvLiVH6CHgakcEhSLmCsjbhazabPyM5VGg 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.01400000 Waves 2020.11.27 07:35 [1283363] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "Hp83i9izpaxvLiVH6CHgakcEhSLmCsjbhazabPyM5VGg", "fee": 1400000, "feeAssetId": null, "timestamp": 1606451726518, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "5G88YCxMoenG3T9y4TBxB9iozEzt9mVq3nKixo7FYEwRE8VJ753PdxXJ9xuh7Wd7mvzJNk979yXj8nZWaQK724M8" ], "script": "base64:AAIEAAAAAAAAAEEIAhIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgSAwoBCAAAADIAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05CeW5mYlhDMkthc3RVeGh1a2NNVWFFNThLOWNCZEI5VVkAAAAAC3NpZ25Bc3NldElkAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAALdXNkbkFzc2V0SWQBAAAAIA/yHBKs5MQ8muxGGq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lsAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAF+etgA=", "height": 1283363, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 82ukVzeapp9fTGia4d1uSQkN7c5Mt7VUqxupqunnsDpj Next: 4Q4xGCset6uKrbdWJDKrzJSXhvsFBNA1AixGRREKoocA Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
7 | 7 | ||
8 | 8 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | + | ||
10 | + | let userDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
9 | 11 | ||
10 | 12 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
11 | 13 | ||
232 | 234 | else if ((size(split(tags, ",")) > 5)) | |
233 | 235 | then throw("5 tags max.") | |
234 | 236 | else { | |
235 | - | let userIsRegistered = match getString( | |
237 | + | let userIsRegistered = match getString(userDapp, ("user_status_" + caller)) { | |
236 | 238 | case s: String => | |
237 | 239 | s | |
238 | 240 | case _ => | |
295 | 297 | if ((size(split(tags, ",")) > 5)) | |
296 | 298 | then throw("5 tags max.") | |
297 | 299 | else { | |
298 | - | let userIsRegistered = match getString( | |
300 | + | let userIsRegistered = match getString(userDapp, ("user_status_" + caller)) { | |
299 | 301 | case s: String => | |
300 | 302 | s | |
301 | 303 | case _ => | |
432 | 434 | case _ => | |
433 | 435 | throw("This art doesn't match") | |
434 | 436 | } | |
435 | - | let userIsRegistered = match getString( | |
437 | + | let userIsRegistered = match getString(userDapp, keyUserStatus(caller)) { | |
436 | 438 | case s: String => | |
437 | 439 | s | |
438 | 440 | case _ => |
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 | + | ||
10 | + | let userDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
9 | 11 | ||
10 | 12 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
11 | 13 | ||
12 | 14 | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
13 | 15 | ||
14 | 16 | let wavesAssetId = base58'' | |
15 | 17 | ||
16 | 18 | let signCut = 8 | |
17 | 19 | ||
18 | 20 | let usdnCut = 10 | |
19 | 21 | ||
20 | 22 | let wavesCut = 10 | |
21 | 23 | ||
22 | 24 | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
23 | 25 | ||
24 | 26 | let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
25 | 27 | ||
26 | 28 | let WHITELISTEDONLY = true | |
27 | 29 | ||
28 | 30 | let dappRunning = true | |
29 | 31 | ||
30 | 32 | let maintenanceMSG = "SIGN Art is under maintenance" | |
31 | 33 | ||
32 | 34 | let userSuspended = "SUSPENDED" | |
33 | 35 | ||
34 | 36 | let userRemoved = "REMOVED" | |
35 | 37 | ||
36 | 38 | let userUnregistered = "UNREGISTERED" | |
37 | 39 | ||
38 | 40 | func getStringByKey (key) = match getString(this, key) { | |
39 | 41 | case a: String => | |
40 | 42 | a | |
41 | 43 | case _ => | |
42 | 44 | "" | |
43 | 45 | } | |
44 | 46 | ||
45 | 47 | ||
46 | 48 | func getIntegerByKeyFromOracle (key) = match getInteger(oracleFee, key) { | |
47 | 49 | case a: Int => | |
48 | 50 | a | |
49 | 51 | case _ => | |
50 | 52 | throw("Integer undefine or 0 in oracle") | |
51 | 53 | } | |
52 | 54 | ||
53 | 55 | ||
54 | 56 | func getIntegerByKey (key) = match getInteger(this, key) { | |
55 | 57 | case i: Int => | |
56 | 58 | i | |
57 | 59 | case _ => | |
58 | 60 | 0 | |
59 | 61 | } | |
60 | 62 | ||
61 | 63 | ||
62 | 64 | func getBooleanByKey (key) = match getBoolean(this, key) { | |
63 | 65 | case i: Boolean => | |
64 | 66 | i | |
65 | 67 | case _ => | |
66 | 68 | false | |
67 | 69 | } | |
68 | 70 | ||
69 | 71 | ||
70 | 72 | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) { | |
71 | 73 | case a: String => | |
72 | 74 | if (contains(a, sha256Hash)) | |
73 | 75 | then true | |
74 | 76 | else false | |
75 | 77 | case _ => | |
76 | 78 | false | |
77 | 79 | } | |
78 | 80 | ||
79 | 81 | ||
80 | 82 | func validateCID (cid) = if (if ((75 > size(cid))) | |
81 | 83 | then (60 > size(split(cid, "/")[0])) | |
82 | 84 | else false) | |
83 | 85 | then (16 > size(split(cid, "/")[1])) | |
84 | 86 | else false | |
85 | 87 | ||
86 | 88 | ||
87 | 89 | func validateHash (hash) = (65 > size(hash)) | |
88 | 90 | ||
89 | 91 | ||
90 | 92 | func keyUserStatus (caller) = ("user_status_" + caller) | |
91 | 93 | ||
92 | 94 | ||
93 | 95 | func keyArtDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
94 | 96 | ||
95 | 97 | ||
96 | 98 | func keyArtName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
97 | 99 | ||
98 | 100 | ||
99 | 101 | func keyArtDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
100 | 102 | ||
101 | 103 | ||
102 | 104 | func keyArtDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
103 | 105 | ||
104 | 106 | ||
105 | 107 | func keyArtExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller) | |
106 | 108 | ||
107 | 109 | ||
108 | 110 | func keyArtExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller) | |
109 | 111 | ||
110 | 112 | ||
111 | 113 | func keyArtMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
112 | 114 | ||
113 | 115 | ||
114 | 116 | func keyArtSignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller) | |
115 | 117 | ||
116 | 118 | ||
117 | 119 | func keyArtIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
118 | 120 | ||
119 | 121 | ||
120 | 122 | func keyArtOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
121 | 123 | ||
122 | 124 | ||
123 | 125 | func keyArtLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller) | |
124 | 126 | ||
125 | 127 | ||
126 | 128 | func keyArtLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller) | |
127 | 129 | ||
128 | 130 | ||
129 | 131 | func keyArtTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
130 | 132 | ||
131 | 133 | ||
132 | 134 | func keyArtType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
133 | 135 | ||
134 | 136 | ||
135 | 137 | func keyArtPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
136 | 138 | ||
137 | 139 | ||
138 | 140 | func keyArtAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
139 | 141 | ||
140 | 142 | ||
141 | 143 | func keyArtFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller) | |
142 | 144 | ||
143 | 145 | ||
144 | 146 | func keyArtHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
145 | 147 | ||
146 | 148 | ||
147 | 149 | func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
148 | 150 | ||
149 | 151 | ||
150 | 152 | func keyArtArtidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
151 | 153 | ||
152 | 154 | ||
153 | 155 | func keyArtTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
154 | 156 | ||
155 | 157 | ||
156 | 158 | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (if ((cidDisplay != "")) | |
157 | 159 | then !(validateCID(cidDisplay)) | |
158 | 160 | else false) | |
159 | 161 | then throw("Wrong Display CID") | |
160 | 162 | else if (if ((cidExport != "")) | |
161 | 163 | then !(validateCID(cidExport)) | |
162 | 164 | else false) | |
163 | 165 | then throw("Wrong Export CID") | |
164 | 166 | else if (if ((cidLicence != "")) | |
165 | 167 | then !(validateCID(cidLicence)) | |
166 | 168 | else false) | |
167 | 169 | then throw("Wrong Licence CID") | |
168 | 170 | else true | |
169 | 171 | ||
170 | 172 | ||
171 | 173 | func validateAllHash (sha256Export,sha256Licence) = if (if ((sha256Export != "")) | |
172 | 174 | then !(validateHash(sha256Export)) | |
173 | 175 | else false) | |
174 | 176 | then throw("Export Hash 64 char. max") | |
175 | 177 | else if (if ((sha256Licence != "")) | |
176 | 178 | then !(validateHash(sha256Licence)) | |
177 | 179 | else false) | |
178 | 180 | then throw("Licence Hash 64 char. max") | |
179 | 181 | else true | |
180 | 182 | ||
181 | 183 | ||
182 | 184 | func validateString (str,max) = if ((size(str) == 0)) | |
183 | 185 | then throw("Field cannot be is empty") | |
184 | 186 | else if ((size(str) > max)) | |
185 | 187 | then throw((str + " is too long")) | |
186 | 188 | else true | |
187 | 189 | ||
188 | 190 | ||
189 | 191 | @Callable(invoke) | |
190 | 192 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
191 | 193 | then throw(maintenanceMSG) | |
192 | 194 | else { | |
193 | 195 | let artId = toBase58String(invoke.transactionId) | |
194 | 196 | let caller = toBase58String(invoke.caller.bytes) | |
195 | 197 | if (!(validateAllCID(cidDisplay, cidExport, cidLicence))) | |
196 | 198 | then throw("Problem with CID") | |
197 | 199 | else if (!(validateHash(sha256Hash))) | |
198 | 200 | then throw("Hash should be 64 characters maximum") | |
199 | 201 | else if (!(validateAllHash(sha256Export, sha256Licence))) | |
200 | 202 | then throw("Problem with Hashes") | |
201 | 203 | else if ((size(invoke.payments) == 0)) | |
202 | 204 | then throw("No payment attached") | |
203 | 205 | else { | |
204 | 206 | let payment = value(invoke.payments[0]) | |
205 | 207 | let amount = value(payment.amount) | |
206 | 208 | let assetId = if (if (isDefined(payment.assetId)) | |
207 | 209 | then (payment.assetId == signAssetId) | |
208 | 210 | else false) | |
209 | 211 | then payment.assetId | |
210 | 212 | else throw("Only SIGN token accepted at the moment") | |
211 | 213 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
212 | 214 | if ((amount != currentCertificationPrice)) | |
213 | 215 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
214 | 216 | else { | |
215 | 217 | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, caller)) | |
216 | 218 | if ((entryExist != "")) | |
217 | 219 | then throw("You already added it") | |
218 | 220 | else { | |
219 | 221 | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
220 | 222 | if ((hashExist != "")) | |
221 | 223 | then throw("Hash already registered") | |
222 | 224 | else { | |
223 | 225 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
224 | 226 | if (!(isSignCertified)) | |
225 | 227 | then throw("Sign Certificate not found for this address.") | |
226 | 228 | else if ((size(cidDisplay) == 0)) | |
227 | 229 | then throw("Display CID cannot be empty") | |
228 | 230 | else if (!(validateString(name, 100))) | |
229 | 231 | then throw("100 Char. max name") | |
230 | 232 | else if (!(validateString(description, 1000))) | |
231 | 233 | then throw("1000 Char. max description") | |
232 | 234 | else if ((size(split(tags, ",")) > 5)) | |
233 | 235 | then throw("5 tags max.") | |
234 | 236 | else { | |
235 | - | let userIsRegistered = match getString( | |
237 | + | let userIsRegistered = match getString(userDapp, ("user_status_" + caller)) { | |
236 | 238 | case s: String => | |
237 | 239 | s | |
238 | 240 | case _ => | |
239 | 241 | userUnregistered | |
240 | 242 | } | |
241 | 243 | let timestamp = lastBlock.timestamp | |
242 | 244 | if (if (isDefined(userIsRegistered)) | |
243 | 245 | then (userIsRegistered == userUnregistered) | |
244 | 246 | else false) | |
245 | 247 | then throw("Register this account first with \"Account\" tab") | |
246 | 248 | else if ((userIsRegistered == userSuspended)) | |
247 | 249 | then throw("Account suspended") | |
248 | 250 | else if ((userIsRegistered == userRemoved)) | |
249 | 251 | then throw("Account removed") | |
250 | 252 | else if ((maxmint > 10)) | |
251 | 253 | then throw("10 editions max") | |
252 | 254 | else if ((size(sha256Hash) != 64)) | |
253 | 255 | then throw("Hash 64 char. max") | |
254 | 256 | 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(keyArtHashByTxidAddr(caller, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)] | |
255 | 257 | } | |
256 | 258 | } | |
257 | 259 | } | |
258 | 260 | } | |
259 | 261 | } | |
260 | 262 | } | |
261 | 263 | ||
262 | 264 | ||
263 | 265 | ||
264 | 266 | @Callable(invoke) | |
265 | 267 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
266 | 268 | then throw(maintenanceMSG) | |
267 | 269 | else { | |
268 | 270 | let updateId = toBase58String(invoke.transactionId) | |
269 | 271 | let caller = toBase58String(invoke.caller.bytes) | |
270 | 272 | if (!(validateAllCID(cidDisplay, cidExport, cidLicence))) | |
271 | 273 | then throw("Problem with CID") | |
272 | 274 | else if (!(validateAllHash(sha256Export, sha256Licence))) | |
273 | 275 | then throw("Problem with Hashes") | |
274 | 276 | else { | |
275 | 277 | let entryExist = getStringByKey(keyArtName(caller, txid)) | |
276 | 278 | if ((entryExist == "")) | |
277 | 279 | then throw("Entry not found") | |
278 | 280 | else if (!(validateString(name, 100))) | |
279 | 281 | then throw("100 Char. max name") | |
280 | 282 | else if (!(validateString(description, 1000))) | |
281 | 283 | then throw("1000 Char. max description") | |
282 | 284 | else { | |
283 | 285 | let flag = getStringByKey(keyArtFlag(caller, txid)) | |
284 | 286 | if ((flag == "ILLEGAL")) | |
285 | 287 | then throw("Cannot update") | |
286 | 288 | else { | |
287 | 289 | let artworkMinted = match getInteger(this, keyArtIssued(caller, txid)) { | |
288 | 290 | case b: Int => | |
289 | 291 | if ((b == 0)) | |
290 | 292 | then false | |
291 | 293 | else true | |
292 | 294 | case _ => | |
293 | 295 | false | |
294 | 296 | } | |
295 | 297 | if ((size(split(tags, ",")) > 5)) | |
296 | 298 | then throw("5 tags max.") | |
297 | 299 | else { | |
298 | - | let userIsRegistered = match getString( | |
300 | + | let userIsRegistered = match getString(userDapp, ("user_status_" + caller)) { | |
299 | 301 | case s: String => | |
300 | 302 | s | |
301 | 303 | case _ => | |
302 | 304 | userUnregistered | |
303 | 305 | } | |
304 | 306 | if (if (isDefined(userIsRegistered)) | |
305 | 307 | then (userIsRegistered == userUnregistered) | |
306 | 308 | else false) | |
307 | 309 | then throw("Register first with \"User infos\"") | |
308 | 310 | else if ((userIsRegistered == userSuspended)) | |
309 | 311 | then throw("Account suspended") | |
310 | 312 | else if ((userIsRegistered == userRemoved)) | |
311 | 313 | then throw("Account removed") | |
312 | 314 | else if ((maxmint > 10)) | |
313 | 315 | then throw("10 editions max per artwork") | |
314 | 316 | else if (!(artworkMinted)) | |
315 | 317 | 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)] | |
316 | 318 | else throw("Already minted") | |
317 | 319 | } | |
318 | 320 | } | |
319 | 321 | } | |
320 | 322 | } | |
321 | 323 | } | |
322 | 324 | ||
323 | 325 | ||
324 | 326 | ||
325 | 327 | @Callable(i) | |
326 | 328 | func flagArtwork (artId,addr,flag) = { | |
327 | 329 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
328 | 330 | let id = toBase58String(i.transactionId) | |
329 | 331 | if (containsElement([chris, joep], caller)) | |
330 | 332 | then if ((flag == "CONSENT")) | |
331 | 333 | then [StringEntry(keyArtFlag(addr, artId), flag)] | |
332 | 334 | else if ((flag == "")) | |
333 | 335 | then [StringEntry(keyArtFlag(addr, artId), flag)] | |
334 | 336 | else if ((flag == "ILLEGAL")) | |
335 | 337 | then [StringEntry(keyArtFlag(addr, artId), flag), StringEntry(keyArtName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDisplayCid(addr, artId), ""), StringEntry(keyArtExportCid(addr, artId), ""), StringEntry(keyArtLicenceCid(addr, artId), "")] | |
336 | 338 | else throw(("Unknow status" + flag)) | |
337 | 339 | else throw("no") | |
338 | 340 | } | |
339 | 341 | ||
340 | 342 | ||
341 | 343 | ||
342 | 344 | @Callable(i) | |
343 | 345 | func deleteArtwork (artId,addr) = { | |
344 | 346 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
345 | 347 | let id = toBase58String(i.transactionId) | |
346 | 348 | let addressToUse = if (containsElement([chris, joep], caller)) | |
347 | 349 | then addr | |
348 | 350 | else caller | |
349 | 351 | let entryExist = match getString(this, keyArtName(addressToUse, artId)) { | |
350 | 352 | case s: String => | |
351 | 353 | s | |
352 | 354 | case _ => | |
353 | 355 | throw("No art matching") | |
354 | 356 | } | |
355 | 357 | let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) { | |
356 | 358 | case b: Int => | |
357 | 359 | if ((b != 0)) | |
358 | 360 | then true | |
359 | 361 | else false | |
360 | 362 | case _ => | |
361 | 363 | false | |
362 | 364 | } | |
363 | 365 | let maxMint = getIntegerByKey(keyArtMaxMint(addressToUse, artId)) | |
364 | 366 | let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) { | |
365 | 367 | case s: String => | |
366 | 368 | s | |
367 | 369 | case _ => | |
368 | 370 | throw("No art hash matching") | |
369 | 371 | } | |
370 | 372 | let signID = match getString(this, keyArtSignID(addressToUse, artId)) { | |
371 | 373 | case s: String => | |
372 | 374 | s | |
373 | 375 | case _ => | |
374 | 376 | throw("No SIGN ID matching") | |
375 | 377 | } | |
376 | 378 | 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)), DeleteEntry(keyArtFlag(addr, artId)), DeleteEntry(keyArtOwnerByHash(sha256Hash)), DeleteEntry(keyArtArtidBySignid(addressToUse, signID)), DeleteEntry(keyArtTxidByHashOwner(sha256Hash, addressToUse))] | |
377 | 379 | if (!(artworkMinted)) | |
378 | 380 | then if (!(dappRunning)) | |
379 | 381 | then throw(maintenanceMSG) | |
380 | 382 | else dataToDelete | |
381 | 383 | else throw("Art already minted, cannot delete") | |
382 | 384 | } | |
383 | 385 | ||
384 | 386 | ||
385 | 387 | ||
386 | 388 | @Callable(i) | |
387 | 389 | func sellArtwork (artId,price,maxMint,assetId) = if (!(dappRunning)) | |
388 | 390 | then throw(maintenanceMSG) | |
389 | 391 | else { | |
390 | 392 | let id = toBase58String(i.transactionId) | |
391 | 393 | let caller = toBase58String(i.caller.bytes) | |
392 | 394 | let sellDate = lastBlock.timestamp | |
393 | 395 | let exportCID = getStringByKey(keyArtExportCid(caller, artId)) | |
394 | 396 | if ((size(split(exportCID, "/")[0]) != 59)) | |
395 | 397 | then throw("You cannot sell art with no export file") | |
396 | 398 | else { | |
397 | 399 | let exportHash = getStringByKey(keyArtExportHash(caller, artId)) | |
398 | 400 | if ((size(exportHash) != 64)) | |
399 | 401 | then throw("You cannot sell art with no export hash") | |
400 | 402 | else if (if (if ((assetId != toBase58String(signAssetId))) | |
401 | 403 | then (assetId != toBase58String(wavesAssetId)) | |
402 | 404 | else false) | |
403 | 405 | then (assetId != toBase58String(usdnAssetId)) | |
404 | 406 | else false) | |
405 | 407 | then throw("Only SIGN, USDN or WAVES accepted") | |
406 | 408 | else { | |
407 | 409 | let minSellWaves = getIntegerByKeyFromOracle("waves_min_sell") | |
408 | 410 | let minSellUsdn = 1000000 | |
409 | 411 | let minSellSign = (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2) | |
410 | 412 | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
411 | 413 | then (minSellUsdn > price) | |
412 | 414 | else false) | |
413 | 415 | then (price != 0) | |
414 | 416 | else false) | |
415 | 417 | then true | |
416 | 418 | else if (if ((assetId == toBase58String(signAssetId))) | |
417 | 419 | then (minSellSign > price) | |
418 | 420 | else false) | |
419 | 421 | then (price != 0) | |
420 | 422 | else false) | |
421 | 423 | then true | |
422 | 424 | else if (if ((assetId == toBase58String(wavesAssetId))) | |
423 | 425 | then (minSellWaves > price) | |
424 | 426 | else false) | |
425 | 427 | then (price != 0) | |
426 | 428 | else false) | |
427 | 429 | then throw("Wrong minimum sell price") | |
428 | 430 | else { | |
429 | 431 | let artworkName = match getString(this, keyArtName(caller, artId)) { | |
430 | 432 | case s: String => | |
431 | 433 | s | |
432 | 434 | case _ => | |
433 | 435 | throw("This art doesn't match") | |
434 | 436 | } | |
435 | - | let userIsRegistered = match getString( | |
437 | + | let userIsRegistered = match getString(userDapp, keyUserStatus(caller)) { | |
436 | 438 | case s: String => | |
437 | 439 | s | |
438 | 440 | case _ => | |
439 | 441 | throw("Register this account first") | |
440 | 442 | } | |
441 | 443 | let amountSold = getIntegerByKey(keyArtIssued(caller, artId)) | |
442 | 444 | let maxCanSell = getIntegerByKey(keyArtMaxMint(caller, artId)) | |
443 | 445 | if (if ((amountSold != 0)) | |
444 | 446 | then (amountSold == maxCanSell) | |
445 | 447 | else false) | |
446 | 448 | then throw("Max edition reached.") | |
447 | 449 | else if (if ((amountSold > 0)) | |
448 | 450 | then (maxCanSell != maxMint) | |
449 | 451 | else false) | |
450 | 452 | then throw("Cannot change maximum issuable anymore") | |
451 | 453 | else if ((userIsRegistered == userSuspended)) | |
452 | 454 | then throw("Account suspended") | |
453 | 455 | else if ((userIsRegistered == userRemoved)) | |
454 | 456 | then throw("Account deleted") | |
455 | 457 | else { | |
456 | 458 | let sellStatus = if (if ((price > 0)) | |
457 | 459 | then (maxMint > 0) | |
458 | 460 | else false) | |
459 | 461 | then true | |
460 | 462 | else false | |
461 | 463 | [BooleanEntry(keyArtOnSale(caller, artId), sellStatus), IntegerEntry(keyArtPrice(caller, artId), price), IntegerEntry(keyArtMaxMint(caller, artId), maxMint), StringEntry(keyArtAssetIdAccepted(caller, artId), assetId)] | |
462 | 464 | } | |
463 | 465 | } | |
464 | 466 | } | |
465 | 467 | } | |
466 | 468 | } | |
467 | 469 | ||
468 | 470 | ||
469 | 471 | ||
470 | 472 | @Callable(i) | |
471 | 473 | func buyArtwork (artId,issuer) = if (!(dappRunning)) | |
472 | 474 | then throw(maintenanceMSG) | |
473 | 475 | else { | |
474 | 476 | let id = toBase58String(i.transactionId) | |
475 | 477 | let caller = toBase58String(i.caller.bytes) | |
476 | 478 | let totalNFT = getIntegerByKey("total_nft_issued") | |
477 | 479 | let signID = getStringByKey(keyArtSignID(issuer, artId)) | |
478 | 480 | let artworkName = match getString(this, keyArtName(issuer, artId)) { | |
479 | 481 | case s: String => | |
480 | 482 | s | |
481 | 483 | case _ => | |
482 | 484 | throw("Art doesn't exist") | |
483 | 485 | } | |
484 | 486 | let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId)) | |
485 | 487 | let exportCID = getStringByKey(keyArtExportCid(issuer, artId)) | |
486 | 488 | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
487 | 489 | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
488 | 490 | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
489 | 491 | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
490 | 492 | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
491 | 493 | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
492 | 494 | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
493 | 495 | let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId)) | |
494 | 496 | let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId)) | |
495 | 497 | if ((artworkPrice == 0)) | |
496 | 498 | then throw("Art not for sell") | |
497 | 499 | else if (!(isOnSale)) | |
498 | 500 | then throw("Art not for sale") | |
499 | 501 | else { | |
500 | 502 | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
501 | 503 | let payment = value(i.payments[0]) | |
502 | 504 | let amount = value(payment.amount) | |
503 | 505 | let assetId = if (if (if (isDefined(payment.assetId)) | |
504 | 506 | then (size(fromBase58String(priceAssetId)) > 0) | |
505 | 507 | else false) | |
506 | 508 | then (payment.assetId == fromBase58String(priceAssetId)) | |
507 | 509 | else false) | |
508 | 510 | then payment.assetId | |
509 | 511 | else unit | |
510 | 512 | let cut = if ((priceAssetId == toBase58String(signAssetId))) | |
511 | 513 | then 8 | |
512 | 514 | else 10 | |
513 | 515 | let amountForSign = fraction(amount, cut, 100) | |
514 | 516 | let amountForCreator = (amount - amountForSign) | |
515 | 517 | if ((amountSold == maxCanSell)) | |
516 | 518 | then throw("Art sold out") | |
517 | 519 | else if ((artworkPrice != amount)) | |
518 | 520 | then throw("Payment don't match") | |
519 | 521 | else { | |
520 | 522 | let newAmountSold = (amountSold + 1) | |
521 | 523 | let entryDate = lastBlock.timestamp | |
522 | 524 | let issueMeta = ((((((((((((((((((((((((((("Creator: " + issuer) + ", | |
523 | 525 | ArtID: ") + artId) + ", | |
524 | 526 | SignID: ") + signID) + ", | |
525 | 527 | Artwork name: ") + artworkName) + ", | |
526 | 528 | Artwork description: ") + description) + ", | |
527 | 529 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + ", | |
528 | 530 | Max issuable: ") + toString(maxCanSell)) + ", | |
529 | 531 | Source hash: ") + sourceHash) + ", | |
530 | 532 | Display cid: ") + displayCID) + ", | |
531 | 533 | Export cid: ") + exportCID) + ", | |
532 | 534 | Export hash: ") + exportHash) + ", | |
533 | 535 | Licence cid: ") + licenceCID) + ", | |
534 | 536 | Licence hash: ") + licenceHash) | |
535 | 537 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
536 | 538 | let idNFT = calculateAssetId(issueNFT) | |
537 | 539 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
538 | 540 | then false | |
539 | 541 | else true | |
540 | 542 | [IntegerEntry(keyArtIssued(issuer, artId), newAmountSold), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer), ((((((((((caller + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT))), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyArtOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(i.caller, 1, idNFT)] | |
541 | 543 | } | |
542 | 544 | } | |
543 | 545 | } | |
544 | 546 | ||
545 | 547 | ||
546 | 548 | ||
547 | 549 | @Callable(i) | |
548 | 550 | func deleteEntry (entry) = { | |
549 | 551 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
550 | 552 | if ((caller == chris)) | |
551 | 553 | then [DeleteEntry(entry)] | |
552 | 554 | else throw("no") | |
553 | 555 | } | |
554 | 556 | ||
555 | 557 |
github/deemru/w8io/026f985 83.06 ms ◑