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