tx · 9KEhtnAnMHKuCPaKpnbW6DhoeHLncuPN4vEYpp9r9tXF 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG: -0.01400000 Waves 2020.10.20 08:34 [1228474] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves
{ "type": 13, "id": "9KEhtnAnMHKuCPaKpnbW6DhoeHLncuPN4vEYpp9r9tXF", "fee": 1400000, "feeAssetId": null, "timestamp": 1603172094890, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "4xdREgRTtd76XYQFSaTy4fhm6kwSfctz7BsTYUPMFXtQ7LoPFx2FykfcN46ZjyMZQwfmbvWFTwSiJpf8VWVwS3aw" ], "script": "base64:AAIEAAAAAAAAAGEIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIFCgMICAgSBAoCCAgSBgoECAEBCBIECgIICBIDCgEIAAAAOQAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3NldEl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mxhc3RfaW52b2tlX2lkBQAAAAJpZAUAAAADbmlsCQAAAgAAAAECAAAAC05vdCBhbGxvd2VkAAAAAF9IR1Q=", "height": 1228474, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B5i1WfSfaApjJ5vRPcsgby1PbgxX9J6Gtz58abgefdN6 Next: 5udroBf7RFJSRZsxZ8N9VutgDPTJJDYx5Vg4FaK7f8ux Diff:
Old | New | Differences | |
---|---|---|---|
465 | 465 | if (if ((caller == admin)) | |
466 | 466 | then true | |
467 | 467 | else (caller == admin2)) | |
468 | - | then if ( | |
469 | - | then | |
470 | - | else (flag | |
471 | - | then | |
472 | - | else | |
468 | + | then if ((flag == "CONSENT")) | |
469 | + | then [StringEntry(((("art_flag_" + artId) + "_") + addr), flag), StringEntry("last_invoke_id", id)] | |
470 | + | else if ((flag == "ILLEGAL")) | |
471 | + | then [StringEntry(((("art_flag_" + artId) + "_") + addr), flag), StringEntry(keyArtName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDisplayCid(addr, artId), ""), StringEntry("last_invoke_id", id)] | |
472 | + | else throw(("Unknow status" + flag)) | |
473 | 473 | else throw("no") | |
474 | 474 | } | |
475 | 475 | ||
511 | 511 | case _ => | |
512 | 512 | throw("No SIGN ID matching") | |
513 | 513 | } | |
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 | - | if (if ((caller == admin)) | |
516 | - | then true | |
517 | - | else (caller == admin2)) | |
518 | - | then (dataToDelete ++ [StringEntry(((("ban_" + artId) + "_") + addressToUse), caller)]) | |
519 | - | else if (!(artworkMinted)) | |
520 | - | then if (!(dappRunning)) | |
521 | - | then throw(maintenanceMSG) | |
522 | - | else dataToDelete | |
523 | - | else throw("Art already minted, cannot delete") | |
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))] | |
515 | + | if (!(artworkMinted)) | |
516 | + | then if (!(dappRunning)) | |
517 | + | then throw(maintenanceMSG) | |
518 | + | else dataToDelete | |
519 | + | else throw("Art already minted, cannot delete") | |
524 | 520 | } | |
525 | 521 | ||
526 | 522 |
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 | - | then if ( | |
469 | - | then | |
470 | - | else (flag | |
471 | - | then | |
472 | - | else | |
468 | + | then if ((flag == "CONSENT")) | |
469 | + | then [StringEntry(((("art_flag_" + artId) + "_") + addr), flag), StringEntry("last_invoke_id", id)] | |
470 | + | else if ((flag == "ILLEGAL")) | |
471 | + | then [StringEntry(((("art_flag_" + artId) + "_") + addr), flag), StringEntry(keyArtName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDisplayCid(addr, artId), ""), StringEntry("last_invoke_id", id)] | |
472 | + | else throw(("Unknow status" + flag)) | |
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 | - | 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 | - | if (if ((caller == admin)) | |
516 | - | then true | |
517 | - | else (caller == admin2)) | |
518 | - | then (dataToDelete ++ [StringEntry(((("ban_" + artId) + "_") + addressToUse), caller)]) | |
519 | - | else if (!(artworkMinted)) | |
520 | - | then if (!(dappRunning)) | |
521 | - | then throw(maintenanceMSG) | |
522 | - | else dataToDelete | |
523 | - | else throw("Art already minted, cannot delete") | |
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))] | |
515 | + | if (!(artworkMinted)) | |
516 | + | then if (!(dappRunning)) | |
517 | + | then throw(maintenanceMSG) | |
518 | + | else dataToDelete | |
519 | + | else throw("Art already minted, cannot delete") | |
524 | 520 | } | |
525 | 521 | ||
526 | 522 | ||
527 | 523 | ||
528 | 524 | @Callable(i) | |
529 | 525 | func sellArtwork (artId,price,maxMint,assetId) = if (!(dappRunning)) | |
530 | 526 | then throw(maintenanceMSG) | |
531 | 527 | else { | |
532 | 528 | let id = toBase58String(i.transactionId) | |
533 | 529 | let caller = toBase58String(i.caller.bytes) | |
534 | 530 | let sellDate = lastBlock.timestamp | |
535 | 531 | let exportCID = getStringByKey(keyArtExportCid(caller, artId)) | |
536 | 532 | if ((size(split(exportCID, "/")[0]) != 59)) | |
537 | 533 | then throw("You cannot sell art with no export file") | |
538 | 534 | else { | |
539 | 535 | let exportHash = getStringByKey(keyArtExportHash(caller, artId)) | |
540 | 536 | if ((size(exportHash) != 64)) | |
541 | 537 | then throw("You cannot sell art with no export hash") | |
542 | 538 | else if (if (if ((assetId != toBase58String(signAssetId))) | |
543 | 539 | then (assetId != toBase58String(wavesAssetId)) | |
544 | 540 | else false) | |
545 | 541 | then (assetId != toBase58String(usdnAssetId)) | |
546 | 542 | else false) | |
547 | 543 | then throw("Only SIGN, USDN or WAVES accepted") | |
548 | 544 | else { | |
549 | 545 | let artworkName = match getString(this, keyArtName(caller, artId)) { | |
550 | 546 | case s: String => | |
551 | 547 | s | |
552 | 548 | case _ => | |
553 | 549 | throw("This art doesn't match") | |
554 | 550 | } | |
555 | 551 | let userIsRegistered = match getString(this, keyUserStatus(caller)) { | |
556 | 552 | case s: String => | |
557 | 553 | s | |
558 | 554 | case _ => | |
559 | 555 | throw("Register this account first") | |
560 | 556 | } | |
561 | 557 | let amountSold = getIntegerByKey(keyArtIssued(caller, artId)) | |
562 | 558 | let maxCanSell = getIntegerByKey(keyArtMaxMint(caller, artId)) | |
563 | 559 | if (if ((amountSold != 0)) | |
564 | 560 | then (amountSold == maxCanSell) | |
565 | 561 | else false) | |
566 | 562 | then throw("Max edition reached.") | |
567 | 563 | else if (if ((amountSold > 0)) | |
568 | 564 | then (maxCanSell != maxMint) | |
569 | 565 | else false) | |
570 | 566 | then throw("Cannot change maximum issuable anymore") | |
571 | 567 | else if ((userIsRegistered == userSuspended)) | |
572 | 568 | then throw("Account suspended") | |
573 | 569 | else if ((userIsRegistered == userRemoved)) | |
574 | 570 | then throw("Account deleted") | |
575 | 571 | else { | |
576 | 572 | let sellStatus = if ((price > 0)) | |
577 | 573 | then true | |
578 | 574 | else false | |
579 | 575 | [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 | 576 | } | |
581 | 577 | } | |
582 | 578 | } | |
583 | 579 | } | |
584 | 580 | ||
585 | 581 | ||
586 | 582 | ||
587 | 583 | @Callable(i) | |
588 | 584 | func buyArtwork (artId,issuer) = if (!(dappRunning)) | |
589 | 585 | then throw(maintenanceMSG) | |
590 | 586 | else { | |
591 | 587 | let id = toBase58String(i.transactionId) | |
592 | 588 | let caller = toBase58String(i.caller.bytes) | |
593 | 589 | let totalNFT = getIntegerByKey("total_nft_issued") | |
594 | 590 | let signID = getStringByKey(keyArtSignID(issuer, artId)) | |
595 | 591 | let artworkName = match getString(this, keyArtName(issuer, artId)) { | |
596 | 592 | case s: String => | |
597 | 593 | s | |
598 | 594 | case _ => | |
599 | 595 | throw("Art doesn't exist") | |
600 | 596 | } | |
601 | 597 | let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId)) | |
602 | 598 | let exportCID = getStringByKey(keyArtExportCid(issuer, artId)) | |
603 | 599 | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
604 | 600 | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
605 | 601 | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
606 | 602 | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
607 | 603 | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
608 | 604 | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
609 | 605 | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
610 | 606 | let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId)) | |
611 | 607 | let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId)) | |
612 | 608 | if ((artworkPrice == 0)) | |
613 | 609 | then throw("Art not for sell") | |
614 | 610 | else if (!(isOnSale)) | |
615 | 611 | then throw("Art not for sale") | |
616 | 612 | else { | |
617 | 613 | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
618 | 614 | let payment = value(i.payments[0]) | |
619 | 615 | let amount = value(payment.amount) | |
620 | 616 | let assetId = if (if (if (isDefined(payment.assetId)) | |
621 | 617 | then (size(fromBase58String(priceAssetId)) > 0) | |
622 | 618 | else false) | |
623 | 619 | then (payment.assetId == fromBase58String(priceAssetId)) | |
624 | 620 | else false) | |
625 | 621 | then payment.assetId | |
626 | 622 | else unit | |
627 | 623 | let cut = if ((priceAssetId == toBase58String(signAssetId))) | |
628 | 624 | then 8 | |
629 | 625 | else 10 | |
630 | 626 | let amountForSign = ((amount / 100) * cut) | |
631 | 627 | let amountForCreator = (amount - amountForSign) | |
632 | 628 | if ((amountSold == maxCanSell)) | |
633 | 629 | then throw("Art sold out") | |
634 | 630 | else if ((artworkPrice != amount)) | |
635 | 631 | then throw("Payment don't match") | |
636 | 632 | else { | |
637 | 633 | let newAmountSold = (amountSold + 1) | |
638 | 634 | let entryDate = lastBlock.timestamp | |
639 | 635 | let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1, | |
640 | 636 | \"creator\": \"" + issuer) + "\", | |
641 | 637 | \"artID\": \"") + artId) + "\", | |
642 | 638 | \"signID\": \"") + signID) + "\", | |
643 | 639 | \"artwork_name\": \"") + artworkName) + "\", | |
644 | 640 | \"artwork_desc\": \"") + description) + "\", | |
645 | 641 | \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", | |
646 | 642 | \"maxIssuable\": \"") + toString(maxCanSell)) + "\", | |
647 | 643 | \"source_hash\": \"") + sourceHash) + "\", | |
648 | 644 | \"display_cid\": \"") + displayCID) + "\", | |
649 | 645 | \"export_cid\": \"") + exportCID) + "\", | |
650 | 646 | \"export_hash\": \"") + exportHash) + "\", | |
651 | 647 | \"licence_cid\": \"") + licenceCID) + "\", | |
652 | 648 | \"licence_hash\": \"") + licenceHash) + "\"}") | |
653 | 649 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
654 | 650 | let idNFT = calculateAssetId(issueNFT) | |
655 | 651 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
656 | 652 | then false | |
657 | 653 | else true | |
658 | 654 | [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)] | |
659 | 655 | } | |
660 | 656 | } | |
661 | 657 | } | |
662 | 658 | ||
663 | 659 | ||
664 | 660 | ||
665 | 661 | @Callable(i) | |
666 | 662 | func deleteUser (address) = { | |
667 | 663 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
668 | 664 | let id = toBase58String(i.transactionId) | |
669 | 665 | if (if ((caller == admin)) | |
670 | 666 | then true | |
671 | 667 | else (caller == admin2)) | |
672 | 668 | 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)] | |
673 | 669 | else throw("Not allowed") | |
674 | 670 | } | |
675 | 671 | ||
676 | 672 |
github/deemru/w8io/026f985 83.92 ms ◑