tx · 7JTZZKCvDUZ3Kzbb11UX5ezwkvc58qw1TFzEU4xAXHA6 3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg: -0.01400000 Waves 2021.04.10 13:37 [1476244] smart account 3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg > SELF 0.00000000 Waves
{ "type": 13, "id": "7JTZZKCvDUZ3Kzbb11UX5ezwkvc58qw1TFzEU4xAXHA6", "fee": 1400000, "feeAssetId": null, "timestamp": 1618051071178, "version": 2, "chainId": 84, "sender": "3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg", "senderPublicKey": "2zUv98HwTLKA5GbDA2VDnXgpUx5M6USvLzsBeff9V2i2", "proofs": [ "4rEPe1RKyesVYP4DNTRSeGHVUU9tWQxcr823GbtHxeTFXgHPY6ZMf5Vir8st8Bmkz3VXnbUBWkiMsPHVpTGDsFxn" ], "script": "base64:AAIEAAAAAAAAACkIAhIECgIBCBIDCgEIEgMKAQgSAwoBCBIFCgMICAgSBAoCCAgSAwoBCAAAACIAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAAMYXJ0d29ya3NEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5alNXWUFvY1RQcWQ1N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nRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAGKEOyI=", "height": 1476244, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4AQP6i4W2zDTGUAvjDSQEjtLABDCzLrC6TjpnKL92aAc Next: AmKq9d9F5h3zajAoDNY7NaDkQNRC6eqx74UcKKQYPHRH Diff:
Old | New | Differences | |
---|---|---|---|
125 | 125 | func getBidData (key) = { | |
126 | 126 | let bidData = getStrByK((key + "_OPEN")) | |
127 | 127 | if ((bidData == "")) | |
128 | - | then throw(" | |
128 | + | then throw("Offer not found") | |
129 | 129 | else { | |
130 | 130 | let bidDataArr = split(bidData, "_") | |
131 | 131 | let assetId = getBidAssetId(bidDataArr[0]) | |
136 | 136 | ||
137 | 137 | @Callable(i) | |
138 | 138 | func sellNFT (price,asset) = { | |
139 | - | let $ | |
140 | - | let id = $ | |
141 | - | let caller = $ | |
142 | - | let date = $ | |
143 | - | let $ | |
144 | - | let payment = $ | |
145 | - | let amount = $ | |
139 | + | let $t048344873 = idCallerDate(i) | |
140 | + | let id = $t048344873._1 | |
141 | + | let caller = $t048344873._2 | |
142 | + | let date = $t048344873._3 | |
143 | + | let $t048784914 = isPayment(i) | |
144 | + | let payment = $t048784914._1 | |
145 | + | let amount = $t048784914._2 | |
146 | 146 | let assetId = if (if (isDefined(payment.assetId)) | |
147 | 147 | then isSignArtNFT(value(payment.assetId)) | |
148 | 148 | else false) | |
173 | 173 | ||
174 | 174 | @Callable(i) | |
175 | 175 | func cancelSale (nftid) = { | |
176 | - | let $ | |
177 | - | let id = $ | |
178 | - | let caller = $ | |
179 | - | let date = $ | |
176 | + | let $t066686707 = idCallerDate(i) | |
177 | + | let id = $t066686707._1 | |
178 | + | let caller = $t066686707._2 | |
179 | + | let date = $t066686707._3 | |
180 | 180 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
181 | 181 | if ((saleOwner != caller)) | |
182 | 182 | then throw("You don't own this NFT") | |
195 | 195 | ||
196 | 196 | @Callable(i) | |
197 | 197 | func buyNFT (nftid) = { | |
198 | - | let $ | |
199 | - | let id = $ | |
200 | - | let caller = $ | |
201 | - | let date = $ | |
198 | + | let $t075667637 = idCallerDate(i) | |
199 | + | let id = $t075667637._1 | |
200 | + | let caller = $t075667637._2 | |
201 | + | let date = $t075667637._3 | |
202 | 202 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
203 | 203 | let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN")) | |
204 | 204 | if ((size(saleInfo) == 0)) | |
205 | 205 | then throw("Sale Not found!") | |
206 | 206 | else { | |
207 | 207 | let saleInfoArray = split(saleInfo, "_") | |
208 | - | let $ | |
209 | - | let payment = $ | |
210 | - | let amount = $ | |
208 | + | let $t078717907 = isPayment(i) | |
209 | + | let payment = $t078717907._1 | |
210 | + | let amount = $t078717907._2 | |
211 | 211 | if (if ((saleInfoArray[1] != toString(amount))) | |
212 | 212 | then true | |
213 | 213 | else (saleInfoArray[2] != toBase58String(value(payment.assetId)))) | |
224 | 224 | ||
225 | 225 | @Callable(i) | |
226 | 226 | func setOffer (nftid) = { | |
227 | - | let $ | |
228 | - | let id = $ | |
229 | - | let caller = $ | |
230 | - | let date = $ | |
231 | - | let $ | |
232 | - | let payment = $ | |
233 | - | let amount = $ | |
227 | + | let $t088868924 = idCallerDate(i) | |
228 | + | let id = $t088868924._1 | |
229 | + | let caller = $t088868924._2 | |
230 | + | let date = $t088868924._3 | |
231 | + | let $t089298965 = isPayment(i) | |
232 | + | let payment = $t089298965._1 | |
233 | + | let amount = $t089298965._2 | |
234 | 234 | let assetId = if (!(isDefined(payment.assetId))) | |
235 | 235 | then "WAVES" | |
236 | 236 | else toBase58String(value(payment.assetId)) | |
246 | 246 | ||
247 | 247 | @Callable(i) | |
248 | 248 | func acceptOffer (nftid,offerId,offerOwner) = { | |
249 | - | let $ | |
250 | - | let id = $ | |
251 | - | let caller = $ | |
252 | - | let date = $ | |
249 | + | let $t096729746 = idCallerDate(i) | |
250 | + | let id = $t096729746._1 | |
251 | + | let caller = $t096729746._2 | |
252 | + | let date = $t096729746._3 | |
253 | 253 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
254 | 254 | if ((caller != saleOwner)) | |
255 | 255 | then throw("You cannot do this action") | |
263 | 263 | then throw("Sale Not found!") | |
264 | 264 | else { | |
265 | 265 | let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId) | |
266 | - | let $t01027310373 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)) | |
267 | - | let bidDataArr = $t01027310373._1 | |
268 | - | let assetId = $t01027310373._2 | |
269 | - | let bidData = $t01027310373._3 | |
270 | - | let amount = value(parseInt(bidDataArr[1])) | |
271 | - | let amountForSign = fraction(amount, signCut, 100) | |
272 | - | let amountForOwner = (amount - amountForSign) | |
273 | - | [DeleteEntry((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN")), DeleteEntry((((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId) + "_OPEN")), StringEntry((((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId) + "_CLOSED"), ((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_to_") + offerOwner) + "_") + offerId)), StringEntry((((((((("sale_info_" + saleOwner) + "_") + nftid) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_to_") + offerOwner)), StringEntry(((("sale_status_" + saleOwner) + "_") + nftid), "CLOSED"), StringEntry(("current_owner_on_dapp_" + nftid), "none"), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId), ScriptTransfer(Address(fromBase58String(bidDataArr[3])), 1, fromBase58String(nftid))] | |
266 | + | if (true) | |
267 | + | then throw(("bidDataKey = " + bidDataKey)) | |
268 | + | else { | |
269 | + | let $t01033210391 = getBidData(bidDataKey) | |
270 | + | let bidDataArr = $t01033210391._1 | |
271 | + | let assetId = $t01033210391._2 | |
272 | + | let bidData = $t01033210391._3 | |
273 | + | let amount = value(parseInt(bidDataArr[1])) | |
274 | + | let amountForSign = fraction(amount, signCut, 100) | |
275 | + | let amountForOwner = (amount - amountForSign) | |
276 | + | [DeleteEntry((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN")), DeleteEntry((bidDataKey + "_OPEN")), StringEntry((bidDataKey + "_CLOSED"), ((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_to_") + offerOwner) + "_") + offerId)), StringEntry((((((((("sale_info_" + saleOwner) + "_") + nftid) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_to_") + offerOwner)), StringEntry(((("sale_status_" + saleOwner) + "_") + nftid), "CLOSED"), StringEntry(("current_owner_on_dapp_" + nftid), "none"), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId), ScriptTransfer(Address(fromBase58String(bidDataArr[3])), 1, fromBase58String(nftid))] | |
277 | + | } | |
274 | 278 | } | |
275 | 279 | } | |
276 | 280 | } | |
280 | 284 | ||
281 | 285 | @Callable(i) | |
282 | 286 | func cancelOffer (nftid,offerId) = { | |
283 | - | let $ | |
284 | - | let id = $ | |
285 | - | let caller = $ | |
286 | - | let date = $ | |
287 | + | let $t01146311693 = idCallerDate(i) | |
288 | + | let id = $t01146311693._1 | |
289 | + | let caller = $t01146311693._2 | |
290 | + | let date = $t01146311693._3 | |
287 | 291 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
288 | 292 | let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId) | |
289 | - | let $ | |
290 | - | let bidDataArr = $ | |
291 | - | let assetId = $ | |
292 | - | let bidData = $ | |
293 | + | let $t01182611926 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)) | |
294 | + | let bidDataArr = $t01182611926._1 | |
295 | + | let assetId = $t01182611926._2 | |
296 | + | let bidData = $t01182611926._3 | |
293 | 297 | let bidStatus = "CANCELLED" | |
294 | 298 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
295 | 299 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let unitTest = false | |
5 | 5 | ||
6 | 6 | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | 7 | ||
8 | 8 | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let artworksDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
11 | 11 | ||
12 | 12 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
13 | 13 | ||
14 | 14 | let userDapp = if (unitTest) | |
15 | 15 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
16 | 16 | else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj")) | |
17 | 17 | ||
18 | 18 | let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
19 | 19 | ||
20 | 20 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
21 | 21 | ||
22 | 22 | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
23 | 23 | ||
24 | 24 | let wavesAssetId = base58'' | |
25 | 25 | ||
26 | 26 | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
27 | 27 | ||
28 | 28 | let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
29 | 29 | ||
30 | 30 | let signCut = 3 | |
31 | 31 | ||
32 | 32 | let originlaArtistCut = 10 | |
33 | 33 | ||
34 | 34 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
35 | 35 | ||
36 | 36 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
37 | 37 | ||
38 | 38 | let userSuspended = "SUSPENDED" | |
39 | 39 | ||
40 | 40 | let userRemoved = "REMOVED" | |
41 | 41 | ||
42 | 42 | let artIllegal = "ILLEGAL" | |
43 | 43 | ||
44 | 44 | func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "") | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func getStrByK (key) = valueOrElse(getString(this, key), "") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func getIntByK (key) = valueOrElse(getInteger(this, key), 0) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func keyUserStatus (addr) = ("user_status_" + addr) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func keyNFTData (id) = ("nft_" + id) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func idCallerDate (i) = if (!(dappRunning)) | |
69 | 69 | then throw(maintenanceMSG) | |
70 | 70 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func isPayment (i) = if ((size(i.payments) == 0)) | |
74 | 74 | then throw("No payment attached") | |
75 | 75 | else { | |
76 | 76 | let payment = value(i.payments[0]) | |
77 | 77 | let amount = value(payment.amount) | |
78 | 78 | $Tuple2(payment, amount) | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func isSignArtNFT (id) = { | |
83 | 83 | let assetDetails = value(assetInfo(id)) | |
84 | 84 | if (if (if (if ((assetDetails.quantity != 1)) | |
85 | 85 | then true | |
86 | 86 | else (assetDetails.decimals != 0)) | |
87 | 87 | then true | |
88 | 88 | else (assetDetails.reissuable != false)) | |
89 | 89 | then true | |
90 | 90 | else (assetDetails.issuer != artworksDapp)) | |
91 | 91 | then false | |
92 | 92 | else true | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
97 | 97 | then (assetId != toBase58String(wavesAssetId)) | |
98 | 98 | else false) | |
99 | 99 | then (assetId != "WAVES") | |
100 | 100 | else false) | |
101 | 101 | then (assetId != toBase58String(usdnAssetId)) | |
102 | 102 | else false) | |
103 | 103 | then false | |
104 | 104 | else true | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
108 | 108 | then unit | |
109 | 109 | else fromBase58String(assetId) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func getSaleOwnerAndStatus (nftid) = { | |
113 | 113 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
114 | 114 | if ((saleOwner == "none")) | |
115 | 115 | then throw("NFT not found") | |
116 | 116 | else { | |
117 | 117 | let saleStatus = getStrByK(((("sale_status_" + saleOwner) + "_") + nftid)) | |
118 | 118 | if ((saleStatus != "OPEN")) | |
119 | 119 | then throw("NFT not for sale") | |
120 | 120 | else saleOwner | |
121 | 121 | } | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getBidData (key) = { | |
126 | 126 | let bidData = getStrByK((key + "_OPEN")) | |
127 | 127 | if ((bidData == "")) | |
128 | - | then throw(" | |
128 | + | then throw("Offer not found") | |
129 | 129 | else { | |
130 | 130 | let bidDataArr = split(bidData, "_") | |
131 | 131 | let assetId = getBidAssetId(bidDataArr[0]) | |
132 | 132 | $Tuple3(bidDataArr, assetId, bidData) | |
133 | 133 | } | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(i) | |
138 | 138 | func sellNFT (price,asset) = { | |
139 | - | let $ | |
140 | - | let id = $ | |
141 | - | let caller = $ | |
142 | - | let date = $ | |
143 | - | let $ | |
144 | - | let payment = $ | |
145 | - | let amount = $ | |
139 | + | let $t048344873 = idCallerDate(i) | |
140 | + | let id = $t048344873._1 | |
141 | + | let caller = $t048344873._2 | |
142 | + | let date = $t048344873._3 | |
143 | + | let $t048784914 = isPayment(i) | |
144 | + | let payment = $t048784914._1 | |
145 | + | let amount = $t048784914._2 | |
146 | 146 | let assetId = if (if (isDefined(payment.assetId)) | |
147 | 147 | then isSignArtNFT(value(payment.assetId)) | |
148 | 148 | else false) | |
149 | 149 | then payment.assetId | |
150 | 150 | else throw("No NFT found") | |
151 | 151 | if (!(acceptedAssetIds(asset))) | |
152 | 152 | then throw("Only SIGN, USDN or WAVES accepted") | |
153 | 153 | else { | |
154 | 154 | let nftData = split(getArtStrByK(keyNFTData(toBase58String(value(assetId)))), "_") | |
155 | 155 | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
156 | 156 | if ((size(artSignID) == 0)) | |
157 | 157 | then throw("Artwork not found on SIGN Art") | |
158 | 158 | else { | |
159 | 159 | let artStatus = getArtStrByK(keyFlag(nftData[6], nftData[5])) | |
160 | 160 | if ((artStatus == artIllegal)) | |
161 | 161 | then throw("Original Artwork flagged as ILLEGAL") | |
162 | 162 | else { | |
163 | 163 | let artistStatus = getUserStrByK(keyUserStatus(nftData[6])) | |
164 | 164 | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
165 | 165 | then throw(("Original Artist " + artistStatus)) | |
166 | 166 | else [StringEntry((((("sale_info_" + caller) + "_") + toBase58String(value(payment.assetId))) + "_OPEN"), ((((toString(date) + "_") + toString(price)) + "_") + asset)), IntegerEntry(((("sale_price_" + caller) + "_") + toBase58String(value(payment.assetId))), price), StringEntry(((("sale_asset_" + caller) + "_") + toBase58String(value(payment.assetId))), asset), StringEntry(((("sale_status_" + caller) + "_") + toBase58String(value(payment.assetId))), "OPEN"), StringEntry(("current_owner_on_dapp_" + toBase58String(value(payment.assetId))), caller)] | |
167 | 167 | } | |
168 | 168 | } | |
169 | 169 | } | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | ||
174 | 174 | @Callable(i) | |
175 | 175 | func cancelSale (nftid) = { | |
176 | - | let $ | |
177 | - | let id = $ | |
178 | - | let caller = $ | |
179 | - | let date = $ | |
176 | + | let $t066686707 = idCallerDate(i) | |
177 | + | let id = $t066686707._1 | |
178 | + | let caller = $t066686707._2 | |
179 | + | let date = $t066686707._3 | |
180 | 180 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
181 | 181 | if ((saleOwner != caller)) | |
182 | 182 | then throw("You don't own this NFT") | |
183 | 183 | else { | |
184 | 184 | let saleStatus = getStrByK(((("sale_status_" + caller) + "_") + nftid)) | |
185 | 185 | if ((saleStatus != "OPEN")) | |
186 | 186 | then throw("Sale not active") | |
187 | 187 | else { | |
188 | 188 | let saleInfo = getStrByK(((((("sale_info_" + caller) + "_") + nftid) + "_") + saleStatus)) | |
189 | 189 | [DeleteEntry((((("sale_info_" + caller) + "_") + nftid) + "_OPEN")), StringEntry((((((((("sale_info_" + caller) + "_") + nftid) + "_") + toString(date)) + "_") + id) + "_CANCELLED"), saleInfo), StringEntry(((("sale_status_" + caller) + "_") + nftid), "CANCELLED"), StringEntry(("current_owner_on_dapp_" + nftid), "none"), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
190 | 190 | } | |
191 | 191 | } | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | ||
196 | 196 | @Callable(i) | |
197 | 197 | func buyNFT (nftid) = { | |
198 | - | let $ | |
199 | - | let id = $ | |
200 | - | let caller = $ | |
201 | - | let date = $ | |
198 | + | let $t075667637 = idCallerDate(i) | |
199 | + | let id = $t075667637._1 | |
200 | + | let caller = $t075667637._2 | |
201 | + | let date = $t075667637._3 | |
202 | 202 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
203 | 203 | let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN")) | |
204 | 204 | if ((size(saleInfo) == 0)) | |
205 | 205 | then throw("Sale Not found!") | |
206 | 206 | else { | |
207 | 207 | let saleInfoArray = split(saleInfo, "_") | |
208 | - | let $ | |
209 | - | let payment = $ | |
210 | - | let amount = $ | |
208 | + | let $t078717907 = isPayment(i) | |
209 | + | let payment = $t078717907._1 | |
210 | + | let amount = $t078717907._2 | |
211 | 211 | if (if ((saleInfoArray[1] != toString(amount))) | |
212 | 212 | then true | |
213 | 213 | else (saleInfoArray[2] != toBase58String(value(payment.assetId)))) | |
214 | 214 | then throw("Payment infos don't match.") | |
215 | 215 | else { | |
216 | 216 | let amountForSign = fraction(amount, signCut, 100) | |
217 | 217 | let amountForOwner = (amount - amountForSign) | |
218 | 218 | [DeleteEntry((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN")), StringEntry((((((((("sale_info_" + saleOwner) + "_") + nftid) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_to_") + caller)), StringEntry(((("sale_status_" + saleOwner) + "_") + nftid), "CLOSED"), StringEntry(("current_owner_on_dapp_" + nftid), "none"), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, payment.assetId), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, payment.assetId), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
219 | 219 | } | |
220 | 220 | } | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | ||
225 | 225 | @Callable(i) | |
226 | 226 | func setOffer (nftid) = { | |
227 | - | let $ | |
228 | - | let id = $ | |
229 | - | let caller = $ | |
230 | - | let date = $ | |
231 | - | let $ | |
232 | - | let payment = $ | |
233 | - | let amount = $ | |
227 | + | let $t088868924 = idCallerDate(i) | |
228 | + | let id = $t088868924._1 | |
229 | + | let caller = $t088868924._2 | |
230 | + | let date = $t088868924._3 | |
231 | + | let $t089298965 = isPayment(i) | |
232 | + | let payment = $t089298965._1 | |
233 | + | let amount = $t089298965._2 | |
234 | 234 | let assetId = if (!(isDefined(payment.assetId))) | |
235 | 235 | then "WAVES" | |
236 | 236 | else toBase58String(value(payment.assetId)) | |
237 | 237 | if (!(acceptedAssetIds(assetId))) | |
238 | 238 | then throw("asset not accepted") | |
239 | 239 | else { | |
240 | 240 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
241 | 241 | [StringEntry((((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + id) + "_OPEN"), ((((((((assetId + "_") + toString(amount)) + "_") + toString(date)) + "_") + caller) + "_") + id))] | |
242 | 242 | } | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | ||
247 | 247 | @Callable(i) | |
248 | 248 | func acceptOffer (nftid,offerId,offerOwner) = { | |
249 | - | let $ | |
250 | - | let id = $ | |
251 | - | let caller = $ | |
252 | - | let date = $ | |
249 | + | let $t096729746 = idCallerDate(i) | |
250 | + | let id = $t096729746._1 | |
251 | + | let caller = $t096729746._2 | |
252 | + | let date = $t096729746._3 | |
253 | 253 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
254 | 254 | if ((caller != saleOwner)) | |
255 | 255 | then throw("You cannot do this action") | |
256 | 256 | else { | |
257 | 257 | let offerExist = getStrByK((((((((("offer_" + nftid) + "_") + saleOwner) + "_") + offerOwner) + "_") + offerId) + "_OPEN")) | |
258 | 258 | if ((offerExist == "")) | |
259 | 259 | then throw("Offer not found") | |
260 | 260 | else { | |
261 | 261 | let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN")) | |
262 | 262 | if ((size(saleInfo) == 0)) | |
263 | 263 | then throw("Sale Not found!") | |
264 | 264 | else { | |
265 | 265 | let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId) | |
266 | - | let $t01027310373 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)) | |
267 | - | let bidDataArr = $t01027310373._1 | |
268 | - | let assetId = $t01027310373._2 | |
269 | - | let bidData = $t01027310373._3 | |
270 | - | let amount = value(parseInt(bidDataArr[1])) | |
271 | - | let amountForSign = fraction(amount, signCut, 100) | |
272 | - | let amountForOwner = (amount - amountForSign) | |
273 | - | [DeleteEntry((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN")), DeleteEntry((((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId) + "_OPEN")), StringEntry((((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId) + "_CLOSED"), ((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_to_") + offerOwner) + "_") + offerId)), StringEntry((((((((("sale_info_" + saleOwner) + "_") + nftid) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_to_") + offerOwner)), StringEntry(((("sale_status_" + saleOwner) + "_") + nftid), "CLOSED"), StringEntry(("current_owner_on_dapp_" + nftid), "none"), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId), ScriptTransfer(Address(fromBase58String(bidDataArr[3])), 1, fromBase58String(nftid))] | |
266 | + | if (true) | |
267 | + | then throw(("bidDataKey = " + bidDataKey)) | |
268 | + | else { | |
269 | + | let $t01033210391 = getBidData(bidDataKey) | |
270 | + | let bidDataArr = $t01033210391._1 | |
271 | + | let assetId = $t01033210391._2 | |
272 | + | let bidData = $t01033210391._3 | |
273 | + | let amount = value(parseInt(bidDataArr[1])) | |
274 | + | let amountForSign = fraction(amount, signCut, 100) | |
275 | + | let amountForOwner = (amount - amountForSign) | |
276 | + | [DeleteEntry((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN")), DeleteEntry((bidDataKey + "_OPEN")), StringEntry((bidDataKey + "_CLOSED"), ((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_to_") + offerOwner) + "_") + offerId)), StringEntry((((((((("sale_info_" + saleOwner) + "_") + nftid) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_to_") + offerOwner)), StringEntry(((("sale_status_" + saleOwner) + "_") + nftid), "CLOSED"), StringEntry(("current_owner_on_dapp_" + nftid), "none"), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId), ScriptTransfer(Address(fromBase58String(bidDataArr[3])), 1, fromBase58String(nftid))] | |
277 | + | } | |
274 | 278 | } | |
275 | 279 | } | |
276 | 280 | } | |
277 | 281 | } | |
278 | 282 | ||
279 | 283 | ||
280 | 284 | ||
281 | 285 | @Callable(i) | |
282 | 286 | func cancelOffer (nftid,offerId) = { | |
283 | - | let $ | |
284 | - | let id = $ | |
285 | - | let caller = $ | |
286 | - | let date = $ | |
287 | + | let $t01146311693 = idCallerDate(i) | |
288 | + | let id = $t01146311693._1 | |
289 | + | let caller = $t01146311693._2 | |
290 | + | let date = $t01146311693._3 | |
287 | 291 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
288 | 292 | let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId) | |
289 | - | let $ | |
290 | - | let bidDataArr = $ | |
291 | - | let assetId = $ | |
292 | - | let bidData = $ | |
293 | + | let $t01182611926 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)) | |
294 | + | let bidDataArr = $t01182611926._1 | |
295 | + | let assetId = $t01182611926._2 | |
296 | + | let bidData = $t01182611926._3 | |
293 | 297 | let bidStatus = "CANCELLED" | |
294 | 298 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
295 | 299 | } | |
296 | 300 | ||
297 | 301 | ||
298 | 302 | ||
299 | 303 | @Callable(i) | |
300 | 304 | func deleteEntry (entry) = { | |
301 | 305 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
302 | 306 | if ((caller == chris)) | |
303 | 307 | then [DeleteEntry(entry)] | |
304 | 308 | else throw("no") | |
305 | 309 | } | |
306 | 310 | ||
307 | 311 |
github/deemru/w8io/026f985 55.95 ms ◑