tx · CEnkytyM37DR8WkzB75UajwaiEsAs3x3fEgXM5S1qAyb

3My71eA5781UVppziZNzPzoaXoQ79XLfpou:  -0.01400000 Waves

2020.09.17 10:17 [1180954] smart account 3My71eA5781UVppziZNzPzoaXoQ79XLfpou > SELF 0.00000000 Waves

{ "type": 13, "id": "CEnkytyM37DR8WkzB75UajwaiEsAs3x3fEgXM5S1qAyb", "fee": 1400000, "feeAssetId": null, "timestamp": 1600327027526, "version": 2, "chainId": 84, "sender": "3My71eA5781UVppziZNzPzoaXoQ79XLfpou", "senderPublicKey": "xu7oh5A3xfh5PtSRAoZLCyetRFpcf6bq7bCzGtTCUyL", "proofs": [ "5caFUo7CuX9xnRYyWTmsd6cYhcpwSc2zcESNJTH5eMNMhRAVAWCDb3X5Ag8diFkZSqVMjggKdCFzpWzSfuDtzKNX" ], "script": "base64:AAIEAAAAAAAAAE0IAhIGCgQICAgIEgYKBAgICAgSAwoBCBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIECgIIARIECgIICAAAAC4AAAAAD3N0b3JhZ2VWZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAANdXNlcldoaXRlbGlzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXBKRWIzNlpReWsxaGFLbm9jYXlKY1lNMzFjTlBYUGlLMwAAAAAMc2lnblZlcmlmaWVyCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQzI4aFNpdnJtc1RVWGFZRDF4NkwzNjJKNFpwVW5vVGRCAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAAC3NpZ25Bc3NldElkAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAGdXNkbklEAgAAACwzS0ZYQ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AAAAAAAAQUAAAAFaWRORlQFAAAAA25pbAAAAACcUoex", "height": 1180954, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HH7icM5gE8FzP9YQarSkfigHpW9NFiiL5Ws89st2oGTB Next: 3Fmp3rwDmpPKvjpLJ4Vhr21vkEssm5pa2HkXPuEQyGsS Diff:
OldNewDifferences
268268 let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash)
269269 if (!(isSignCertified))
270270 then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
271- else if ((size(name) == 0))
272- then throw("Title cannot be empty")
273- else if ((size(name) > 100))
274- then throw("100 Characters maximum for the name")
275- else if ((size(description) > 1000))
276- then throw("1000 Characters maximum for the description")
277- else if ((size(description) == 0))
278- then throw("Description cannot be empty")
279- else {
280- let tagsList = split(tags, ",")
281- if ((size(tagsList) > 5))
282- then throw("Tags should be maximum 5 single word separated by space.")
283- else {
284- let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
285- case s: String =>
286- s
287- case _ =>
288- userUnregistered
289- }
290- let timestamp = lastBlock.timestamp
291- if (if (isDefined(userIsRegistered))
292- then (userIsRegistered == userUnregistered)
293- else false)
294- then throw("Please register this account first with \"User infos\" tab")
295- else if ((userIsRegistered == userSuspended))
296- then throw("Your account is suspended")
297- else if ((userIsRegistered == userRemoved))
298- then throw("Your account have been removed")
299- else if ((maxmint > 10))
300- then throw("Maximum 10 editions per artwork")
301- else if ((size(sha256Hash) != 64))
302- then throw("Hash should be sha256 string composed of 64 char.")
303- else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), BooleanEntry(keyUserIsArtist(callerAddress), true), IntegerEntry(keyArtDate(callerAddress, artId), timestamp), StringEntry(keyArtName(callerAddress, artId), name), StringEntry(keyArtDesc(callerAddress, artId), description), StringEntry(keyArtDisplayCid(callerAddress, artId), cidDisplay), StringEntry(keyArtExportCid(callerAddress, artId), cidExport), StringEntry(keyArtExportHash(callerAddress, artId), sha256Export), StringEntry(keyArtLicenceHash(callerAddress, artId), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, artId), cidLicence), StringEntry(keyArtType(callerAddress, artId), type), StringEntry(keyArtTags(callerAddress, artId), tags), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxmint), StringEntry(keyArtSignID(callerAddress, artId), signID), IntegerEntry(keyArtIssued(callerAddress, artId), 0), BooleanEntry(keyArtOnSale(callerAddress, artId), false), StringEntry("last_invoke_id", artId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
304- }
305- }
271+ else if ((size(cidDisplay) == 0))
272+ then throw("Display CID cannot be empty")
273+ else if ((size(name) == 0))
274+ then throw("Title cannot be empty")
275+ else if ((size(name) > 100))
276+ then throw("100 Characters maximum for the name")
277+ else if ((size(description) > 1000))
278+ then throw("1000 Characters maximum for the description")
279+ else if ((size(description) == 0))
280+ then throw("Description cannot be empty")
281+ else {
282+ let tagsList = split(tags, ",")
283+ if ((size(tagsList) > 5))
284+ then throw("Tags should be maximum 5 single word separated by space.")
285+ else {
286+ let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
287+ case s: String =>
288+ s
289+ case _ =>
290+ userUnregistered
291+ }
292+ let timestamp = lastBlock.timestamp
293+ if (if (isDefined(userIsRegistered))
294+ then (userIsRegistered == userUnregistered)
295+ else false)
296+ then throw("Please register this account first with \"User infos\" tab")
297+ else if ((userIsRegistered == userSuspended))
298+ then throw("Your account is suspended")
299+ else if ((userIsRegistered == userRemoved))
300+ then throw("Your account have been removed")
301+ else if ((maxmint > 10))
302+ then throw("Maximum 10 editions per artwork")
303+ else if ((size(sha256Hash) != 64))
304+ then throw("Hash should be sha256 string composed of 64 char.")
305+ else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), BooleanEntry(keyUserIsArtist(callerAddress), true), IntegerEntry(keyArtDate(callerAddress, artId), timestamp), StringEntry(keyArtName(callerAddress, artId), name), StringEntry(keyArtDesc(callerAddress, artId), description), StringEntry(keyArtDisplayCid(callerAddress, artId), cidDisplay), StringEntry(keyArtExportCid(callerAddress, artId), cidExport), StringEntry(keyArtExportHash(callerAddress, artId), sha256Export), StringEntry(keyArtLicenceHash(callerAddress, artId), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, artId), cidLicence), StringEntry(keyArtType(callerAddress, artId), type), StringEntry(keyArtTags(callerAddress, artId), tags), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxmint), StringEntry(keyArtSignID(callerAddress, artId), signID), IntegerEntry(keyArtIssued(callerAddress, artId), 0), BooleanEntry(keyArtOnSale(callerAddress, artId), false), StringEntry("last_invoke_id", artId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
306+ }
307+ }
306308 }
307309 }
308310 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let storageVerifier = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let userWhitelist = value(addressFromString("3MpJEb36ZQyk1haKnocayJcYM31cNPXPiK3"))
77
88 let signVerifier = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
99
1010 let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
1111
1212 let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1313
1414 let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"
1515
1616 let admin = "3NCqpdb8jHW1d1hqZgeS9AE2MJ2Keh95jMC"
1717
1818 let WHITELISTEDONLY = true
1919
2020 let userCreated = "CREATED"
2121
2222 let userVerified = "VERIFIED"
2323
2424 let userSuspended = "SUSPENDED"
2525
2626 let userRemoved = "REMOVED"
2727
2828 let userUnregistered = "UNREGISTERED"
2929
3030 let onSale = "ON_SALE"
3131
3232 let sold = "SOLD"
3333
3434 let canceled = "CANCELED"
3535
3636 func getStringByKey (key) = match getString(this, key) {
3737 case a: String =>
3838 a
3939 case _ =>
4040 ""
4141 }
4242
4343
4444 func getIntegerByKey (key) = match getInteger(this, key) {
4545 case i: Int =>
4646 i
4747 case _ =>
4848 0
4949 }
5050
5151
5252 func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signVerifier, ((("data_fc_" + signID) + "_") + Owner)) {
5353 case a: String =>
5454 if (contains(a, sha256Hash))
5555 then true
5656 else false
5757 case _ =>
5858 false
5959 }
6060
6161
6262 func validateNFTs (accumulator,id) = {
6363 let assetDetails = value(assetInfo(fromBase58String(id)))
6464 if (if (if ((assetDetails.quantity != 1))
6565 then true
6666 else (assetDetails.decimals != 0))
6767 then true
6868 else (assetDetails.reissuable != false))
6969 then (accumulator + 0)
7070 else (accumulator + 1)
7171 }
7272
7373
7474 func verifyAddress (addr) = if (!(WHITELISTEDONLY))
7575 then true
7676 else match getBoolean(userWhitelist, addr) {
7777 case b: Boolean =>
7878 b
7979 case _ =>
8080 throw("You are not allowed, please contact us first.")
8181 }
8282
8383
8484 func verifyStatus (addr) = match getString(this, ("user_status_" + addr)) {
8585 case b: String =>
8686 b
8787 case _ =>
8888 throw("Something went wrong.")
8989 }
9090
9191
9292 func keyUserAddr (callerAddr) = ("user_" + callerAddr)
9393
9494
9595 func keyUserName (callerAddr) = ("user_name_" + callerAddr)
9696
9797
9898 func keyUserDesc (callerAddr) = ("user_desc_" + callerAddr)
9999
100100
101101 func keyUserSocial (callerAddr) = ("user_social_" + callerAddr)
102102
103103
104104 func keyUserThumb (callerAddr) = ("user_thumb_" + callerAddr)
105105
106106
107107 func keyUserIsArtist (callerAddr) = ("user_isartist_" + callerAddr)
108108
109109
110110 func keyUserStatus (callerAddr) = ("user_status_" + callerAddr)
111111
112112
113113 func keyUserDate (callerAddr) = ("user_date_" + callerAddr)
114114
115115
116116 func keyArtDate (callerAddr,artId) = ((("art_date_" + artId) + "_") + callerAddr)
117117
118118
119119 func keyArtName (callerAddr,artId) = ((("art_name_" + artId) + "_") + callerAddr)
120120
121121
122122 func keyArtDesc (callerAddr,artId) = ((("art_desc_" + artId) + "_") + callerAddr)
123123
124124
125125 func keyArtDisplayCid (callerAddr,artId) = ((("art_display_cid_" + artId) + "_") + callerAddr)
126126
127127
128128 func keyArtExportHash (callerAddr,artId) = ((("art_export_hash_" + artId) + "_") + callerAddr)
129129
130130
131131 func keyArtExportCid (callerAddr,artId) = ((("art_export_cid_" + artId) + "_") + callerAddr)
132132
133133
134134 func keyArtMaxMint (callerAddr,artId) = ((("art_maxmint_" + artId) + "_") + callerAddr)
135135
136136
137137 func keyArtSignID (callerAddr,artId) = ((("art_signid_" + artId) + "_") + callerAddr)
138138
139139
140140 func keyArtIssued (callerAddr,artId) = ((("art_issued_" + artId) + "_") + callerAddr)
141141
142142
143143 func keyArtOnSale (callerAddr,artId) = ((("art_onsale_" + artId) + "_") + callerAddr)
144144
145145
146146 func keyArtLicenceHash (callerAddr,artId) = ((("art_licence_hash_" + artId) + "_") + callerAddr)
147147
148148
149149 func keyArtLicenceCid (callerAddr,artId) = ((("art_licence_cid_" + artId) + "_") + callerAddr)
150150
151151
152152 func keyArtTags (callerAddr,artId) = ((("art_tags_" + artId) + "_") + callerAddr)
153153
154154
155155 func keyArtType (callerAddr,artId) = ((("art_type_" + artId) + "_") + callerAddr)
156156
157157
158158 func keyArtOwnerByHash (sha256Hash) = ("art_owner_by_hash_" + sha256Hash)
159159
160160
161161 func keyArtTxidByHashOwner (sha256Hash,callerAddr) = ("art_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + callerAddr)))))
162162
163163
164164 @Callable(i)
165165 func registerUser (name,description,thumb,social) = {
166166 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
167167 let userAllowed = verifyAddress(callerAddr)
168168 let id = toBase58String(i.transactionId)
169169 let newUser = getStringByKey(("user_" + callerAddr))
170170 let timestamp = lastBlock.timestamp
171171 if (!(userAllowed))
172172 then throw("You are now allowed to register yet, please contact us first to get approved.")
173173 else if (if ((name == ""))
174174 then true
175175 else (description == ""))
176176 then throw("Name and description cannot be empty")
177177 else if ((size(description) > 600))
178178 then throw("600 Characters maximum for the description")
179179 else if ((newUser == ""))
180180 then [IntegerEntry(keyUserDate(callerAddr), timestamp), StringEntry(keyUserAddr(callerAddr), ((id + "_") + toString(lastBlock.timestamp))), StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), BooleanEntry(keyUserIsArtist(callerAddr), false), StringEntry(keyUserStatus(callerAddr), userCreated), StringEntry("last_invoke_id", id)]
181181 else throw("This user is already registered, use updateUser instead")
182182 }
183183
184184
185185
186186 @Callable(i)
187187 func updateUser (name,description,thumb,social) = {
188188 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
189189 let userAllowed = verifyAddress(callerAddr)
190190 if (!(userAllowed))
191191 then throw("You are now allowed to update your infos anymore.")
192192 else {
193193 let id = toBase58String(i.transactionId)
194194 let newUser = getStringByKey(("user_" + callerAddr))
195195 let timestamp = lastBlock.timestamp
196196 let userStatus = verifyStatus(callerAddr)
197197 if ((userStatus == userSuspended))
198198 then throw("Your account have been suspended")
199199 else if ((userStatus == userRemoved))
200200 then throw("Your account have been removed")
201201 else if (if ((name == ""))
202202 then true
203203 else (description == ""))
204204 then throw("Name and description cannot be empty")
205205 else if ((size(description) > 600))
206206 then throw("600 Characters maximum for the description")
207207 else if ((newUser != ""))
208208 then [StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), StringEntry("last_invoke_id", id)]
209209 else throw("Please register first with registerUser")
210210 }
211211 }
212212
213213
214214
215215 @Callable(i)
216216 func deleteUser (address) = {
217217 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
218218 let id = toBase58String(i.transactionId)
219219 if ((callerAddr != admin))
220220 then throw("You are not allowed to do that")
221221 else [DeleteEntry(keyUserDate(callerAddr)), DeleteEntry(keyUserAddr(callerAddr)), DeleteEntry(keyUserName(callerAddr)), DeleteEntry(keyUserDesc(callerAddr)), DeleteEntry(keyUserSocial(callerAddr)), DeleteEntry(keyUserThumb(callerAddr)), DeleteEntry(keyUserIsArtist(callerAddr)), StringEntry(keyUserStatus(callerAddr), userRemoved), StringEntry("last_invoke_id", id)]
222222 }
223223
224224
225225
226226 @Callable(i)
227227 func suspendUser (address) = {
228228 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
229229 let id = toBase58String(i.transactionId)
230230 if ((callerAddr != admin))
231231 then throw("You are not allowed to do that")
232232 else [StringEntry(keyUserStatus(callerAddr), userSuspended), StringEntry("last_invoke_id", id)]
233233 }
234234
235235
236236
237237 @Callable(invoke)
238238 func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
239239 let artId = toBase58String(invoke.transactionId)
240240 let callerAddress = toBase58String(invoke.caller.bytes)
241241 if ((size(invoke.payments) == 0))
242242 then throw("No payment attached")
243243 else {
244244 let payment = value(invoke.payments[0])
245245 let amount = value(payment.amount)
246246 let assetId = if (if (isDefined(payment.assetId))
247247 then (payment.assetId == signAssetId)
248248 else false)
249249 then payment.assetId
250250 else throw("Only SIGN token accepted at the moment")
251251 let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) {
252252 case price: Int =>
253253 price
254254 case _ =>
255255 throw("Price undefined in oracle")
256256 }
257257 if ((amount != currentCertificationPrice))
258258 then throw(("Payment amount should be " + toString(currentCertificationPrice)))
259259 else {
260260 let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress))
261261 if ((entryExist != ""))
262262 then throw("You already added this artwork on Sign Art")
263263 else {
264264 let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash))
265265 if ((hashExist != ""))
266266 then throw("This artwork hash is already registered on Sign Art")
267267 else {
268268 let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash)
269269 if (!(isSignCertified))
270270 then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
271- else if ((size(name) == 0))
272- then throw("Title cannot be empty")
273- else if ((size(name) > 100))
274- then throw("100 Characters maximum for the name")
275- else if ((size(description) > 1000))
276- then throw("1000 Characters maximum for the description")
277- else if ((size(description) == 0))
278- then throw("Description cannot be empty")
279- else {
280- let tagsList = split(tags, ",")
281- if ((size(tagsList) > 5))
282- then throw("Tags should be maximum 5 single word separated by space.")
283- else {
284- let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
285- case s: String =>
286- s
287- case _ =>
288- userUnregistered
289- }
290- let timestamp = lastBlock.timestamp
291- if (if (isDefined(userIsRegistered))
292- then (userIsRegistered == userUnregistered)
293- else false)
294- then throw("Please register this account first with \"User infos\" tab")
295- else if ((userIsRegistered == userSuspended))
296- then throw("Your account is suspended")
297- else if ((userIsRegistered == userRemoved))
298- then throw("Your account have been removed")
299- else if ((maxmint > 10))
300- then throw("Maximum 10 editions per artwork")
301- else if ((size(sha256Hash) != 64))
302- then throw("Hash should be sha256 string composed of 64 char.")
303- else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), BooleanEntry(keyUserIsArtist(callerAddress), true), IntegerEntry(keyArtDate(callerAddress, artId), timestamp), StringEntry(keyArtName(callerAddress, artId), name), StringEntry(keyArtDesc(callerAddress, artId), description), StringEntry(keyArtDisplayCid(callerAddress, artId), cidDisplay), StringEntry(keyArtExportCid(callerAddress, artId), cidExport), StringEntry(keyArtExportHash(callerAddress, artId), sha256Export), StringEntry(keyArtLicenceHash(callerAddress, artId), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, artId), cidLicence), StringEntry(keyArtType(callerAddress, artId), type), StringEntry(keyArtTags(callerAddress, artId), tags), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxmint), StringEntry(keyArtSignID(callerAddress, artId), signID), IntegerEntry(keyArtIssued(callerAddress, artId), 0), BooleanEntry(keyArtOnSale(callerAddress, artId), false), StringEntry("last_invoke_id", artId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
304- }
305- }
271+ else if ((size(cidDisplay) == 0))
272+ then throw("Display CID cannot be empty")
273+ else if ((size(name) == 0))
274+ then throw("Title cannot be empty")
275+ else if ((size(name) > 100))
276+ then throw("100 Characters maximum for the name")
277+ else if ((size(description) > 1000))
278+ then throw("1000 Characters maximum for the description")
279+ else if ((size(description) == 0))
280+ then throw("Description cannot be empty")
281+ else {
282+ let tagsList = split(tags, ",")
283+ if ((size(tagsList) > 5))
284+ then throw("Tags should be maximum 5 single word separated by space.")
285+ else {
286+ let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
287+ case s: String =>
288+ s
289+ case _ =>
290+ userUnregistered
291+ }
292+ let timestamp = lastBlock.timestamp
293+ if (if (isDefined(userIsRegistered))
294+ then (userIsRegistered == userUnregistered)
295+ else false)
296+ then throw("Please register this account first with \"User infos\" tab")
297+ else if ((userIsRegistered == userSuspended))
298+ then throw("Your account is suspended")
299+ else if ((userIsRegistered == userRemoved))
300+ then throw("Your account have been removed")
301+ else if ((maxmint > 10))
302+ then throw("Maximum 10 editions per artwork")
303+ else if ((size(sha256Hash) != 64))
304+ then throw("Hash should be sha256 string composed of 64 char.")
305+ else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), BooleanEntry(keyUserIsArtist(callerAddress), true), IntegerEntry(keyArtDate(callerAddress, artId), timestamp), StringEntry(keyArtName(callerAddress, artId), name), StringEntry(keyArtDesc(callerAddress, artId), description), StringEntry(keyArtDisplayCid(callerAddress, artId), cidDisplay), StringEntry(keyArtExportCid(callerAddress, artId), cidExport), StringEntry(keyArtExportHash(callerAddress, artId), sha256Export), StringEntry(keyArtLicenceHash(callerAddress, artId), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, artId), cidLicence), StringEntry(keyArtType(callerAddress, artId), type), StringEntry(keyArtTags(callerAddress, artId), tags), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxmint), StringEntry(keyArtSignID(callerAddress, artId), signID), IntegerEntry(keyArtIssued(callerAddress, artId), 0), BooleanEntry(keyArtOnSale(callerAddress, artId), false), StringEntry("last_invoke_id", artId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
306+ }
307+ }
306308 }
307309 }
308310 }
309311 }
310312 }
311313
312314
313315
314316 @Callable(invoke)
315317 func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
316318 let updateId = toBase58String(invoke.transactionId)
317319 let callerAddress = toBase58String(invoke.caller.bytes)
318320 let entryExist = getStringByKey(keyArtName(callerAddress, txid))
319321 if ((entryExist == ""))
320322 then throw("This entry doesn't exist or you are not the owner")
321323 else if ((size(name) == 0))
322324 then throw("Title cannot be empty")
323325 else if ((size(name) > 100))
324326 then throw("100 Characters maximum for the name")
325327 else if ((size(description) > 1000))
326328 then throw("1000 Characters maximum for the description")
327329 else if ((size(description) == 0))
328330 then throw("Description cannot be empty")
329331 else {
330332 let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) {
331333 case b: Int =>
332334 if ((b == 0))
333335 then false
334336 else true
335337 case _ =>
336338 throw("Something went wrong.")
337339 }
338340 let tagsList = split(tags, ",")
339341 if ((size(tagsList) > 5))
340342 then throw("Tags should be maximum 5 single word separated by space.")
341343 else {
342344 let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
343345 case s: String =>
344346 s
345347 case _ =>
346348 userUnregistered
347349 }
348350 if (if (isDefined(userIsRegistered))
349351 then (userIsRegistered == userUnregistered)
350352 else false)
351353 then throw("Please register this account first with \"User infos\" tab")
352354 else if ((userIsRegistered == userSuspended))
353355 then throw("Your account is suspended")
354356 else if ((userIsRegistered == userRemoved))
355357 then throw("Your account have been removed")
356358 else if ((maxmint > 10))
357359 then throw("Maximum 10 editions per artwork")
358360 else if (!(artworkMinted))
359361 then [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtExportCid(callerAddress, txid), cidExport), StringEntry(keyArtExportHash(callerAddress, txid), sha256Export), StringEntry(keyArtLicenceCid(callerAddress, txid), cidLicence), StringEntry(keyArtLicenceHash(callerAddress, txid), sha256Licence), IntegerEntry(keyArtMaxMint(callerAddress, txid), maxmint), StringEntry(keyArtTags(callerAddress, txid), tags), StringEntry(keyArtType(callerAddress, txid), type), StringEntry("last_invoke_id", updateId)]
360362 else [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtType(callerAddress, txid), type), StringEntry(keyArtTags(callerAddress, txid), tags), StringEntry("last_invoke_id", updateId)]
361363 }
362364 }
363365 }
364366
365367
366368
367369 @Callable(i)
368370 func deleteArtwork (artId,ownerAddress) = {
369371 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
370372 let id = toBase58String(i.transactionId)
371373 if ((callerAddr != admin))
372374 then throw("You are not allowed to do that")
373375 else [DeleteEntry(keyArtDate(ownerAddress, artId)), DeleteEntry(keyArtName(ownerAddress, artId)), DeleteEntry(keyArtDesc(ownerAddress, artId)), DeleteEntry(keyArtDisplayCid(ownerAddress, artId)), DeleteEntry(keyArtExportCid(ownerAddress, artId)), DeleteEntry(keyArtExportHash(ownerAddress, artId)), DeleteEntry(keyArtLicenceHash(ownerAddress, artId)), DeleteEntry(keyArtLicenceCid(ownerAddress, artId)), DeleteEntry(keyArtType(ownerAddress, artId)), DeleteEntry(keyArtTags(ownerAddress, artId)), DeleteEntry(keyArtMaxMint(ownerAddress, artId)), DeleteEntry(keyArtSignID(ownerAddress, artId)), DeleteEntry(keyArtIssued(ownerAddress, artId)), DeleteEntry(keyArtOnSale(ownerAddress, artId)), StringEntry("last_invoke_id", id)]
374376 }
375377
376378
377379
378380 @Callable(invoke)
379381 func sellArtwork (hash,price) = {
380382 let id = toBase58String(invoke.transactionId)
381383 let callerAddress = toBase58String(invoke.caller.bytes)
382384 let entryDate = lastBlock.timestamp
383385 let entryID = getStringByKey(((hash + "_") + callerAddress))
384386 if (!(isDefined(entryID)))
385387 then throw("This artwork doesn't exit or you are not the owner")
386388 else {
387389 let userIsRegistered = getStringByKey(("user_status_" + callerAddress))
388390 if ((userIsRegistered == ""))
389391 then throw("Please register this account first")
390392 else {
391393 let amountSold = getIntegerByKey(((("art_issued_" + entryID) + "_") + callerAddress))
392394 let maxCanSell = getIntegerByKey(((("art_maxmint_" + entryID) + "_") + callerAddress))
393395 if ((amountSold == maxCanSell))
394396 then throw("You reached the max edition allowed to sell for this edition.")
395397 else if ((userIsRegistered == userSuspended))
396398 then throw("Your account is suspended")
397399 else if (!(isDefined(entryID)))
398400 then throw("This artwork desn't exist")
399401 else if ((size(hash) != 64))
400402 then throw("This hash is incorrect.")
401403 else {
402404 let sellStatus = if ((price > 0))
403405 then true
404406 else false
405407 [BooleanEntry(((("art_onsale_" + entryID) + "_") + callerAddress), sellStatus), IntegerEntry(((("art_price_" + entryID) + "_") + callerAddress), price), StringEntry("last_invoke_id", id)]
406408 }
407409 }
408410 }
409411 }
410412
411413
412414
413415 @Callable(invoke)
414416 func buyArtwork (hash,issuer) = {
415417 let id = toBase58String(invoke.transactionId)
416418 let callerAddress = toBase58String(invoke.caller.bytes)
417419 let totalNFT = getIntegerByKey("total_nft_issued")
418420 let entryID = getStringByKey(((hash + "_") + issuer))
419421 if ((entryID == ""))
420422 then throw("This artwork doesn't exit or you are not the owner")
421423 else {
422424 let userIsRegistered = getStringByKey(("user_status_" + callerAddress))
423425 if (!(isDefined(userIsRegistered)))
424426 then throw("Please register this account first")
425427 else {
426428 let alreadySoldList = getStringByKey(((("art_sold_" + entryID) + "_") + issuer))
427429 let amountSold = getIntegerByKey(((("art_issued_" + entryID) + "_") + issuer))
428430 let artworkPrice = getIntegerByKey(((("art_price_" + entryID) + "_") + issuer))
429431 if ((artworkPrice == 0))
430432 then throw("This artwork is not for sell")
431433 else {
432434 let maxCanSell = getIntegerByKey(((("art_maxmint_" + entryID) + "_") + issuer))
433435 let payment = value(invoke.payments[0])
434436 let amount = value(payment.amount)
435437 let assetId = if (isDefined(payment.assetId))
436438 then throw("Only Waves token accepted at the moment")
437439 else unit
438440 if ((amountSold == maxCanSell))
439441 then throw("Cannot buy this artwork anymore")
440442 else if ((artworkPrice != amount))
441443 then throw("Payment don't match seller price")
442444 else {
443445 let newAmountSold = (amountSold + 1)
444446 let entryDate = lastBlock.timestamp
445447 let issueMeta = (((((((((((((("{\"version\": 1,\"artID\": \"" + entryID) + "\",\"maxIssuable\": \"") + toString(maxCanSell)) + "\",\"signID\": \"SA_") + toString((totalNFT + 1))) + "\", \"creator\": \"") + issuer) + "\", \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", \"hash\": ") + hash) + "}")
446448 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
447449 let idNFT = calculateAssetId(issueNFT)
448450 let sellStatus = if ((newAmountSold == maxCanSell))
449451 then false
450452 else true
451453 [IntegerEntry(((("art_issued_" + entryID) + "_") + issuer), newAmountSold), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + entryID) + "_") + issuer), ((((((callerAddress + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice))), IntegerEntry("total_nft_issued", (totalNFT + 1)), StringEntry("last_invoke_id", id), issueNFT, BooleanEntry(((("art_onsale_" + entryID) + "_") + callerAddress), sellStatus), ScriptTransfer(Address(fromBase58String(issuer)), amount, assetId), ScriptTransfer(invoke.caller, 1, idNFT)]
452454 }
453455 }
454456 }
455457 }
456458 }
457459
458460

github/deemru/w8io/169f3d6 
69.08 ms