tx · HCkiTnpN7Dgpq1tfasvXqJ1gHeDKozinbPoL1p4KimbL

3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG:  -0.01400000 Waves

2020.11.14 09:26 [1264681] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves

{ "type": 13, "id": "HCkiTnpN7Dgpq1tfasvXqJ1gHeDKozinbPoL1p4KimbL", "fee": 1400000, "feeAssetId": null, "timestamp": 1605335253592, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "5qNKgjRCScQCfoqo5f57w45WNJX9WDiAXBhqwU6YqW1qLKWcwgc5xR9SKz7489DF1NYJYvRitqBxyLDNdweweDj9" ], "script": "base64:AAIEAAAAAAAAAGEIAhIGCgQICAgIEgYKBAgICAgSBAoCCAgSDgoMCAgICAgIAQgICAgIEg0KCwgICAgIAQgICAgIEgUKAwgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgSAwoBCBIDCgEIAAAAOwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3Nld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mlsCQAAAgAAAAECAAAAC05vdCBhbGxvd2VkAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAWkBAAAACmNyZWRpdFVzZXIAAAABAAAAB2FkZHJlc3MEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAAAmlkCQACWAAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQDCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgkABEwAAAACBQAAAAVjaHJpcwkABEwAAAACBQAAAARqb2VwBQAAAANuaWwFAAAABmNhbGxlcgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAHYWRkcmVzcwAAAAAi7LJcAAUAAAALc2lnbkFzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAAAtOb3QgYWxsb3dlZAAAAAA+e1Jc", "height": 1264681, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H8A8fpp6TDrsSUveYSLQEMi5ZMSU4pD2Y5MAj4tkQMdZ Next: 98Pa2kvtNVWtCx7GjJxkoNRtdrwjSTfuZiusS9f4EsSC Diff:
OldNewDifferences
236236 then throw("Name and description cannot be empty")
237237 else if ((size(description) > 600))
238238 then throw("600 Char. max description")
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)]
239+ else if ((size(name) > 45))
240+ then throw("45 Char. max name")
241+ else [IntegerEntry(keyUserDate(caller), timestamp), StringEntry(keyUserAddr(caller), ((id + "_") + toString(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)]
240242 }
241-
242-
243-
244-@Callable(i)
245-func deleteEntry (entry) = {
246- let caller = toString(addressFromPublicKey(i.callerPublicKey))
247- if ((caller == chris))
248- then [DeleteEntry(entry)]
249- else throw("no")
250- }
251243
252244
253245
255247 func updateUser (name,description,thumb,social) = if (!(dappRunning))
256248 then throw(maintenanceMSG)
257249 else {
250+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
258251 let id = toBase58String(i.transactionId)
259- let caller = toString(addressFromPublicKey(i.callerPublicKey))
260252 let canUpdate = getStringByKey(keyUserStatus(caller))
261253 if (if ((canUpdate == userSuspended))
262254 then true
272264 then throw("Name & description cannot be empty")
273265 else if ((size(description) > 600))
274266 then throw("600 Char. max for description")
275- else [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry("last_invoke_id", id)]
267+ else if ((size(name) > 45))
268+ then throw("45 Char. max name")
269+ else [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry("last_invoke_id", id)]
276270 }
277271
278272
303297 then (status == userAllowed)
304298 else false)
305299 then throw("User already allowed")
306- else if (if ((currentStatus == userRegistered))
300+ else if (if ((currentStatus == userVerified))
307301 then (status == userAllowed)
308302 else false)
309- then throw("User already allowed & registered")
310- else if (if ((currentStatus == userVerified))
311- then (status == userAllowed)
312- else false)
313- then throw("User already allowed & verified")
314- else if (containsElement([chris, joep], caller))
315- then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)]
316- else throw(((("Not allowed to change user status " + caller) + " / ") + chris))
303+ then throw("User already allowed & verified")
304+ else if (containsElement([chris, joep], caller))
305+ then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)]
306+ else throw(((("Not allowed to change user status " + caller) + " / ") + chris))
317307 }
318-
319-
320-
321-@Callable(i)
322-func creditUser (address) = {
323- let caller = toString(addressFromPublicKey(i.callerPublicKey))
324- let id = toBase58String(i.transactionId)
325- if (containsElement([chris, joep], caller))
326- then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)]
327- else throw("Not allowed")
328- }
329308
330309
331310
698677
699678
700679 @Callable(i)
701-func testKey () = [DeleteEntry("HkZqCB6o3PaxEPKEPpbCgbEjQ59B3rtuKy1shiNQDDVTwaves_usd_price_HkZqCB6o3PaxEPKEPpbCgbEjQ59B3rtuKy1shiNQDDVTwaves_usd_price_HkZqCB6o3PaxEPKEPpbCgbEjQ59B3rtuKy1shiNQDDVTwaves_usd_price")]
680+func deleteEntry (entry) = {
681+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
682+ if ((caller == chris))
683+ then [DeleteEntry(entry)]
684+ else throw("no")
685+ }
686+
687+
688+
689+@Callable(i)
690+func creditUser (address) = {
691+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
692+ let id = toBase58String(i.transactionId)
693+ if (containsElement([chris, joep], caller))
694+ then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)]
695+ else throw("Not allowed")
696+ }
702697
703698
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
77
88 let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
99
1010 let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1111
1212 let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
1313
1414 let wavesAssetId = base58''
1515
1616 let signCut = 8
1717
1818 let usdnCut = 10
1919
2020 let wavesCut = 10
2121
2222 let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
2323
2424 let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
2525
2626 let WHITELISTEDONLY = true
2727
2828 let dappRunning = true
2929
3030 let maintenanceMSG = "SIGN Art is under maintenance"
3131
3232 let userAllowed = "ALLOWED"
3333
3434 let userRegistered = "REGISTERED"
3535
3636 let userVerified = "VERIFIED"
3737
3838 let userSuspended = "SUSPENDED"
3939
4040 let userRemoved = "REMOVED"
4141
4242 let userUnregistered = "UNREGISTERED"
4343
4444 let userReset = "RESET"
4545
4646 func getStringByKey (key) = match getString(this, key) {
4747 case a: String =>
4848 a
4949 case _ =>
5050 ""
5151 }
5252
5353
5454 func getIntegerByKeyFromOracle (key) = match getInteger(oracleFee, key) {
5555 case a: Int =>
5656 a
5757 case _ =>
5858 throw("Integer undefine or 0 in oracle")
5959 }
6060
6161
6262 func getIntegerByKey (key) = match getInteger(this, key) {
6363 case i: Int =>
6464 i
6565 case _ =>
6666 0
6767 }
6868
6969
7070 func getBooleanByKey (key) = match getBoolean(this, key) {
7171 case i: Boolean =>
7272 i
7373 case _ =>
7474 false
7575 }
7676
7777
7878 func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) {
7979 case a: String =>
8080 if (contains(a, sha256Hash))
8181 then true
8282 else false
8383 case _ =>
8484 false
8585 }
8686
8787
8888 func validateCID (cid) = if (if ((75 > size(cid)))
8989 then (60 > size(split(cid, "/")[0]))
9090 else false)
9191 then (16 > size(split(cid, "/")[1]))
9292 else false
9393
9494
9595 func validateHash (hash) = (65 > size(hash))
9696
9797
9898 func keyUserAddr (caller) = ("user_" + caller)
9999
100100
101101 func keyUserName (caller) = ("user_name_" + caller)
102102
103103
104104 func keyUserDesc (caller) = ("user_desc_" + caller)
105105
106106
107107 func keyUserSocial (caller) = ("user_social_" + caller)
108108
109109
110110 func keyUserThumb (caller) = ("user_thumb_" + caller)
111111
112112
113113 func keyUserStatus (caller) = ("user_status_" + caller)
114114
115115
116116 func keyUserDate (caller) = ("user_date_" + caller)
117117
118118
119119 func keyArtDate (caller,artId) = ((("art_date_" + artId) + "_") + caller)
120120
121121
122122 func keyArtName (caller,artId) = ((("art_name_" + artId) + "_") + caller)
123123
124124
125125 func keyArtDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller)
126126
127127
128128 func keyArtDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller)
129129
130130
131131 func keyArtExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller)
132132
133133
134134 func keyArtExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller)
135135
136136
137137 func keyArtMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller)
138138
139139
140140 func keyArtSignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller)
141141
142142
143143 func keyArtIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller)
144144
145145
146146 func keyArtOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller)
147147
148148
149149 func keyArtLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller)
150150
151151
152152 func keyArtLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller)
153153
154154
155155 func keyArtTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller)
156156
157157
158158 func keyArtType (caller,artId) = ((("art_type_" + artId) + "_") + caller)
159159
160160
161161 func keyArtPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller)
162162
163163
164164 func keyArtAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller)
165165
166166
167167 func keyArtFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller)
168168
169169
170170 func keyArtHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller)
171171
172172
173173 func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
174174
175175
176176 func keyArtArtidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller)
177177
178178
179179 func keyArtTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller)))))
180180
181181
182182 func validateAllCID (cidDisplay,cidExport,cidLicence) = if (if ((cidDisplay != ""))
183183 then !(validateCID(cidDisplay))
184184 else false)
185185 then throw("Wrong Display CID")
186186 else if (if ((cidExport != ""))
187187 then !(validateCID(cidExport))
188188 else false)
189189 then throw("Wrong Export CID")
190190 else if (if ((cidLicence != ""))
191191 then !(validateCID(cidLicence))
192192 else false)
193193 then throw("Wrong Licence CID")
194194 else true
195195
196196
197197 func validateAllHash (sha256Export,sha256Licence) = if (if ((sha256Export != ""))
198198 then !(validateHash(sha256Export))
199199 else false)
200200 then throw("Export Hash 64 char. max")
201201 else if (if ((sha256Licence != ""))
202202 then !(validateHash(sha256Licence))
203203 else false)
204204 then throw("Licence Hash 64 char. max")
205205 else true
206206
207207
208208 func validateString (str,max) = if ((size(str) == 0))
209209 then throw("Field cannot be is empty")
210210 else if ((size(str) > max))
211211 then throw((str + " is too long"))
212212 else true
213213
214214
215215 @Callable(i)
216216 func registerUser (name,description,thumb,social) = if (!(dappRunning))
217217 then throw(maintenanceMSG)
218218 else {
219219 let caller = toString(addressFromPublicKey(i.callerPublicKey))
220220 let canRegister = getStringByKey(keyUserStatus(caller))
221221 let id = toBase58String(i.transactionId)
222222 let timestamp = lastBlock.timestamp
223223 if (if ((canRegister == userSuspended))
224224 then true
225225 else (canRegister == userRemoved))
226226 then throw("Account suspended/ removed.")
227227 else if ((canRegister == userRegistered))
228228 then throw("Already registered")
229229 else if (if ((canRegister == ""))
230230 then WHITELISTEDONLY
231231 else false)
232232 then throw("Can't register, get approved first.")
233233 else if (if ((name == ""))
234234 then true
235235 else (description == ""))
236236 then throw("Name and description cannot be empty")
237237 else if ((size(description) > 600))
238238 then throw("600 Char. max description")
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)]
239+ else if ((size(name) > 45))
240+ then throw("45 Char. max name")
241+ else [IntegerEntry(keyUserDate(caller), timestamp), StringEntry(keyUserAddr(caller), ((id + "_") + toString(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)]
240242 }
241-
242-
243-
244-@Callable(i)
245-func deleteEntry (entry) = {
246- let caller = toString(addressFromPublicKey(i.callerPublicKey))
247- if ((caller == chris))
248- then [DeleteEntry(entry)]
249- else throw("no")
250- }
251243
252244
253245
254246 @Callable(i)
255247 func updateUser (name,description,thumb,social) = if (!(dappRunning))
256248 then throw(maintenanceMSG)
257249 else {
250+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
258251 let id = toBase58String(i.transactionId)
259- let caller = toString(addressFromPublicKey(i.callerPublicKey))
260252 let canUpdate = getStringByKey(keyUserStatus(caller))
261253 if (if ((canUpdate == userSuspended))
262254 then true
263255 else (canUpdate == userRemoved))
264256 then throw("Account suspended/ removed.")
265257 else if (if ((canUpdate == ""))
266258 then true
267259 else (canUpdate == userAllowed))
268260 then throw("Register first")
269261 else if (if ((name == ""))
270262 then true
271263 else (description == ""))
272264 then throw("Name & description cannot be empty")
273265 else if ((size(description) > 600))
274266 then throw("600 Char. max for description")
275- else [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry("last_invoke_id", id)]
267+ else if ((size(name) > 45))
268+ then throw("45 Char. max name")
269+ else [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry("last_invoke_id", id)]
276270 }
277271
278272
279273
280274 @Callable(i)
281275 func changeUserStatus (address,status) = if (!(dappRunning))
282276 then throw(maintenanceMSG)
283277 else {
284278 let caller = toString(addressFromPublicKey(i.callerPublicKey))
285279 let id = toBase58String(i.transactionId)
286280 let currentStatus = getStringByKey(keyUserStatus(address))
287281 let statusToSet = if ((status == userVerified))
288282 then userVerified
289283 else if ((status == userRegistered))
290284 then userRegistered
291285 else if ((status == userSuspended))
292286 then userSuspended
293287 else if ((status == userRemoved))
294288 then userRemoved
295289 else if ((status == userAllowed))
296290 then userAllowed
297291 else if (if ((status == userReset))
298292 then (currentStatus == userAllowed)
299293 else false)
300294 then ""
301295 else throw("Unknown status")
302296 if (if ((currentStatus == userAllowed))
303297 then (status == userAllowed)
304298 else false)
305299 then throw("User already allowed")
306- else if (if ((currentStatus == userRegistered))
300+ else if (if ((currentStatus == userVerified))
307301 then (status == userAllowed)
308302 else false)
309- then throw("User already allowed & registered")
310- else if (if ((currentStatus == userVerified))
311- then (status == userAllowed)
312- else false)
313- then throw("User already allowed & verified")
314- else if (containsElement([chris, joep], caller))
315- then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)]
316- else throw(((("Not allowed to change user status " + caller) + " / ") + chris))
303+ then throw("User already allowed & verified")
304+ else if (containsElement([chris, joep], caller))
305+ then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)]
306+ else throw(((("Not allowed to change user status " + caller) + " / ") + chris))
317307 }
318-
319-
320-
321-@Callable(i)
322-func creditUser (address) = {
323- let caller = toString(addressFromPublicKey(i.callerPublicKey))
324- let id = toBase58String(i.transactionId)
325- if (containsElement([chris, joep], caller))
326- then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)]
327- else throw("Not allowed")
328- }
329308
330309
331310
332311 @Callable(invoke)
333312 func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning))
334313 then throw(maintenanceMSG)
335314 else {
336315 let artId = toBase58String(invoke.transactionId)
337316 let caller = toBase58String(invoke.caller.bytes)
338317 if (!(validateAllCID(cidDisplay, cidExport, cidLicence)))
339318 then throw("Problem with CID")
340319 else if (!(validateHash(sha256Hash)))
341320 then throw("Hash should be 64 characters maximum")
342321 else if (!(validateAllHash(sha256Export, sha256Licence)))
343322 then throw("Problem with Hashes")
344323 else if ((size(invoke.payments) == 0))
345324 then throw("No payment attached")
346325 else {
347326 let payment = value(invoke.payments[0])
348327 let amount = value(payment.amount)
349328 let assetId = if (if (isDefined(payment.assetId))
350329 then (payment.assetId == signAssetId)
351330 else false)
352331 then payment.assetId
353332 else throw("Only SIGN token accepted at the moment")
354333 let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId)))
355334 if ((amount != currentCertificationPrice))
356335 then throw(("Payment amount should be " + toString(currentCertificationPrice)))
357336 else {
358337 let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, caller))
359338 if ((entryExist != ""))
360339 then throw("You already added it")
361340 else {
362341 let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash))
363342 if ((hashExist != ""))
364343 then throw("Hash already registered")
365344 else {
366345 let isSignCertified = checkSignCertificate(signID, caller, sha256Hash)
367346 if (!(isSignCertified))
368347 then throw("Sign Certificate not found for this address.")
369348 else if ((size(cidDisplay) == 0))
370349 then throw("Display CID cannot be empty")
371350 else if (!(validateString(name, 100)))
372351 then throw("100 Char. max name")
373352 else if (!(validateString(description, 1000)))
374353 then throw("1000 Char. max description")
375354 else if ((size(split(tags, ",")) > 5))
376355 then throw("5 tags max.")
377356 else {
378357 let userIsRegistered = match getString(this, ("user_status_" + caller)) {
379358 case s: String =>
380359 s
381360 case _ =>
382361 userUnregistered
383362 }
384363 let timestamp = lastBlock.timestamp
385364 if (if (isDefined(userIsRegistered))
386365 then (userIsRegistered == userUnregistered)
387366 else false)
388367 then throw("Register this account first with \"User infos\" tab")
389368 else if ((userIsRegistered == userSuspended))
390369 then throw("Account suspended")
391370 else if ((userIsRegistered == userRemoved))
392371 then throw("Account removed")
393372 else if ((maxmint > 10))
394373 then throw("10 editions max")
395374 else if ((size(sha256Hash) != 64))
396375 then throw("Hash 64 char. max")
397376 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)]
398377 }
399378 }
400379 }
401380 }
402381 }
403382 }
404383
405384
406385
407386 @Callable(invoke)
408387 func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning))
409388 then throw(maintenanceMSG)
410389 else {
411390 let updateId = toBase58String(invoke.transactionId)
412391 let caller = toBase58String(invoke.caller.bytes)
413392 if (!(validateAllCID(cidDisplay, cidExport, cidLicence)))
414393 then throw("Problem with CID")
415394 else if (!(validateAllHash(sha256Export, sha256Licence)))
416395 then throw("Problem with Hashes")
417396 else {
418397 let entryExist = getStringByKey(keyArtName(caller, txid))
419398 if ((entryExist == ""))
420399 then throw("Entry not found")
421400 else if (!(validateString(name, 100)))
422401 then throw("100 Char. max name")
423402 else if (!(validateString(description, 1000)))
424403 then throw("1000 Char. max description")
425404 else {
426405 let flag = getStringByKey(keyArtFlag(caller, txid))
427406 if ((flag == "ILLEGAL"))
428407 then throw("Cannot update")
429408 else {
430409 let artworkMinted = match getInteger(this, keyArtIssued(caller, txid)) {
431410 case b: Int =>
432411 if ((b == 0))
433412 then false
434413 else true
435414 case _ =>
436415 false
437416 }
438417 if ((size(split(tags, ",")) > 5))
439418 then throw("5 tags max.")
440419 else {
441420 let userIsRegistered = match getString(this, ("user_status_" + caller)) {
442421 case s: String =>
443422 s
444423 case _ =>
445424 userUnregistered
446425 }
447426 if (if (isDefined(userIsRegistered))
448427 then (userIsRegistered == userUnregistered)
449428 else false)
450429 then throw("Register first with \"User infos\"")
451430 else if ((userIsRegistered == userSuspended))
452431 then throw("Account suspended")
453432 else if ((userIsRegistered == userRemoved))
454433 then throw("Account removed")
455434 else if ((maxmint > 10))
456435 then throw("10 editions max per artwork")
457436 else if (!(artworkMinted))
458437 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)]
459438 else throw("Already minted")
460439 }
461440 }
462441 }
463442 }
464443 }
465444
466445
467446
468447 @Callable(i)
469448 func flagArtwork (artId,addr,flag) = {
470449 let caller = toString(addressFromPublicKey(i.callerPublicKey))
471450 let id = toBase58String(i.transactionId)
472451 if (containsElement([chris, joep], caller))
473452 then if ((flag == "CONSENT"))
474453 then [StringEntry(keyArtFlag(addr, artId), flag), StringEntry("last_invoke_id", id)]
475454 else if ((flag == ""))
476455 then [StringEntry(keyArtFlag(addr, artId), flag), StringEntry("last_invoke_id", id)]
477456 else if ((flag == "ILLEGAL"))
478457 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)]
479458 else throw(("Unknow status" + flag))
480459 else throw("no")
481460 }
482461
483462
484463
485464 @Callable(i)
486465 func deleteArtwork (artId,addr) = {
487466 let caller = toString(addressFromPublicKey(i.callerPublicKey))
488467 let id = toBase58String(i.transactionId)
489468 let addressToUse = if (containsElement([chris, joep], caller))
490469 then addr
491470 else caller
492471 let entryExist = match getString(this, keyArtName(addressToUse, artId)) {
493472 case s: String =>
494473 s
495474 case _ =>
496475 throw("No art matching")
497476 }
498477 let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) {
499478 case b: Int =>
500479 if ((b != 0))
501480 then true
502481 else false
503482 case _ =>
504483 false
505484 }
506485 let maxMint = getIntegerByKey(keyArtMaxMint(addressToUse, artId))
507486 let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) {
508487 case s: String =>
509488 s
510489 case _ =>
511490 throw("No art hash matching")
512491 }
513492 let signID = match getString(this, keyArtSignID(addressToUse, artId)) {
514493 case s: String =>
515494 s
516495 case _ =>
517496 throw("No SIGN ID matching")
518497 }
519498 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))]
520499 if (!(artworkMinted))
521500 then if (!(dappRunning))
522501 then throw(maintenanceMSG)
523502 else dataToDelete
524503 else throw("Art already minted, cannot delete")
525504 }
526505
527506
528507
529508 @Callable(i)
530509 func sellArtwork (artId,price,maxMint,assetId) = if (!(dappRunning))
531510 then throw(maintenanceMSG)
532511 else {
533512 let id = toBase58String(i.transactionId)
534513 let caller = toBase58String(i.caller.bytes)
535514 let sellDate = lastBlock.timestamp
536515 let exportCID = getStringByKey(keyArtExportCid(caller, artId))
537516 if ((size(split(exportCID, "/")[0]) != 59))
538517 then throw("You cannot sell art with no export file")
539518 else {
540519 let exportHash = getStringByKey(keyArtExportHash(caller, artId))
541520 if ((size(exportHash) != 64))
542521 then throw("You cannot sell art with no export hash")
543522 else if (if (if ((assetId != toBase58String(signAssetId)))
544523 then (assetId != toBase58String(wavesAssetId))
545524 else false)
546525 then (assetId != toBase58String(usdnAssetId))
547526 else false)
548527 then throw("Only SIGN, USDN or WAVES accepted")
549528 else {
550529 let minSellWaves = getIntegerByKeyFromOracle("waves_min_sell")
551530 let minSellUsdn = 1000000
552531 let minSellSign = (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2)
553532 if (if (if (if (if ((assetId == toBase58String(usdnAssetId)))
554533 then (minSellUsdn > price)
555534 else false)
556535 then (price != 0)
557536 else false)
558537 then true
559538 else if (if ((assetId == toBase58String(signAssetId)))
560539 then (minSellSign > price)
561540 else false)
562541 then (price != 0)
563542 else false)
564543 then true
565544 else if (if ((assetId == toBase58String(wavesAssetId)))
566545 then (minSellWaves > price)
567546 else false)
568547 then (price != 0)
569548 else false)
570549 then throw("Wrong minimum sell price")
571550 else {
572551 let artworkName = match getString(this, keyArtName(caller, artId)) {
573552 case s: String =>
574553 s
575554 case _ =>
576555 throw("This art doesn't match")
577556 }
578557 let userIsRegistered = match getString(this, keyUserStatus(caller)) {
579558 case s: String =>
580559 s
581560 case _ =>
582561 throw("Register this account first")
583562 }
584563 let amountSold = getIntegerByKey(keyArtIssued(caller, artId))
585564 let maxCanSell = getIntegerByKey(keyArtMaxMint(caller, artId))
586565 if (if ((amountSold != 0))
587566 then (amountSold == maxCanSell)
588567 else false)
589568 then throw("Max edition reached.")
590569 else if (if ((amountSold > 0))
591570 then (maxCanSell != maxMint)
592571 else false)
593572 then throw("Cannot change maximum issuable anymore")
594573 else if ((userIsRegistered == userSuspended))
595574 then throw("Account suspended")
596575 else if ((userIsRegistered == userRemoved))
597576 then throw("Account deleted")
598577 else {
599578 let sellStatus = if ((price > 0))
600579 then true
601580 else false
602581 [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)]
603582 }
604583 }
605584 }
606585 }
607586 }
608587
609588
610589
611590 @Callable(i)
612591 func buyArtwork (artId,issuer) = if (!(dappRunning))
613592 then throw(maintenanceMSG)
614593 else {
615594 let id = toBase58String(i.transactionId)
616595 let caller = toBase58String(i.caller.bytes)
617596 let totalNFT = getIntegerByKey("total_nft_issued")
618597 let signID = getStringByKey(keyArtSignID(issuer, artId))
619598 let artworkName = match getString(this, keyArtName(issuer, artId)) {
620599 case s: String =>
621600 s
622601 case _ =>
623602 throw("Art doesn't exist")
624603 }
625604 let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId))
626605 let exportCID = getStringByKey(keyArtExportCid(issuer, artId))
627606 let exportHash = getStringByKey(keyArtExportHash(issuer, artId))
628607 let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId))
629608 let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId))
630609 let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50)
631610 let amountSold = getIntegerByKey(keyArtIssued(issuer, artId))
632611 let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId))
633612 let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId))
634613 let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId))
635614 let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId))
636615 if ((artworkPrice == 0))
637616 then throw("Art not for sell")
638617 else if (!(isOnSale))
639618 then throw("Art not for sale")
640619 else {
641620 let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId))
642621 let payment = value(i.payments[0])
643622 let amount = value(payment.amount)
644623 let assetId = if (if (if (isDefined(payment.assetId))
645624 then (size(fromBase58String(priceAssetId)) > 0)
646625 else false)
647626 then (payment.assetId == fromBase58String(priceAssetId))
648627 else false)
649628 then payment.assetId
650629 else unit
651630 let cut = if ((priceAssetId == toBase58String(signAssetId)))
652631 then 8
653632 else 10
654633 let amountForSign = fraction(amount, cut, 100)
655634 let amountForCreator = (amount - amountForSign)
656635 if ((amountSold == maxCanSell))
657636 then throw("Art sold out")
658637 else if ((artworkPrice != amount))
659638 then throw("Payment don't match")
660639 else {
661640 let newAmountSold = (amountSold + 1)
662641 let entryDate = lastBlock.timestamp
663642 let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1,
664643 \"creator\": \"" + issuer) + "\",
665644 \"artID\": \"") + artId) + "\",
666645 \"signID\": \"") + signID) + "\",
667646 \"artwork_name\": \"") + artworkName) + "\",
668647 \"artwork_desc\": \"") + description) + "\",
669648 \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\",
670649 \"maxIssuable\": \"") + toString(maxCanSell)) + "\",
671650 \"source_hash\": \"") + sourceHash) + "\",
672651 \"display_cid\": \"") + displayCID) + "\",
673652 \"export_cid\": \"") + exportCID) + "\",
674653 \"export_hash\": \"") + exportHash) + "\",
675654 \"licence_cid\": \"") + licenceCID) + "\",
676655 \"licence_hash\": \"") + licenceHash) + "\"}")
677656 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
678657 let idNFT = calculateAssetId(issueNFT)
679658 let sellStatus = if ((newAmountSold == maxCanSell))
680659 then false
681660 else true
682661 [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)]
683662 }
684663 }
685664 }
686665
687666
688667
689668 @Callable(i)
690669 func deleteUser (address) = {
691670 let caller = toString(addressFromPublicKey(i.callerPublicKey))
692671 let id = toBase58String(i.transactionId)
693672 if (containsElement([chris, joep], caller))
694673 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)]
695674 else throw("Not allowed")
696675 }
697676
698677
699678
700679 @Callable(i)
701-func testKey () = [DeleteEntry("HkZqCB6o3PaxEPKEPpbCgbEjQ59B3rtuKy1shiNQDDVTwaves_usd_price_HkZqCB6o3PaxEPKEPpbCgbEjQ59B3rtuKy1shiNQDDVTwaves_usd_price_HkZqCB6o3PaxEPKEPpbCgbEjQ59B3rtuKy1shiNQDDVTwaves_usd_price")]
680+func deleteEntry (entry) = {
681+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
682+ if ((caller == chris))
683+ then [DeleteEntry(entry)]
684+ else throw("no")
685+ }
686+
687+
688+
689+@Callable(i)
690+func creditUser (address) = {
691+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
692+ let id = toBase58String(i.transactionId)
693+ if (containsElement([chris, joep], caller))
694+ then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)]
695+ else throw("Not allowed")
696+ }
702697
703698

github/deemru/w8io/026f985 
80.79 ms