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