tx · 4ESEFouJCDuecfNjXkuUj6GV8ba7Rycv7JqDd7J4HaWK

3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg:  -0.01400000 Waves

2021.04.10 13:33 [1476240] smart account 3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg > SELF 0.00000000 Waves

{ "type": 13, "id": "4ESEFouJCDuecfNjXkuUj6GV8ba7Rycv7JqDd7J4HaWK", "fee": 1400000, "feeAssetId": null, "timestamp": 1618050813091, "version": 2, "chainId": 84, "sender": "3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg", "senderPublicKey": "2zUv98HwTLKA5GbDA2VDnXgpUx5M6USvLzsBeff9V2i2", "proofs": [ "2GB4wBkkAm45xWSDy7Ucw8FtC6mNwyuAcUeLLR9ztwApjxfgRdEG5g3h2kEQUn8t7wXg1TadX4WJaCfuHYJKwjfF" ], "script": "base64:AAIEAAAAAAAAACkIAhIECgIBCBIDCgEIEgMKAQgSAwoBCBIFCgMICAgSBAoCCAgSAwoBCAAAACIAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAAMYXJ0d29ya3NEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5alNXWUFvY1RQcWQ1NXdk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AQkAASwAAAACBQAAAApiaWREYXRhS2V5AgAAAAVfT1BFTgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAKYmlkRGF0YUtleQIAAAABXwUAAAAJYmlkU3RhdHVzCQABLAAAAAIJAAEsAAAAAgUAAAAHYmlkRGF0YQIAAAABXwkAAaQAAAABBQAAAARkYXRlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAZjYWxsZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAApiaWREYXRhQXJyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAABaQEAAAALZGVsZXRlRW50cnkAAAABAAAABWVudHJ5BAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkAAAAAAAACBQAAAAZjYWxsZXIFAAAABWNocmlzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAAVVQ6NA==", "height": 1476240, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9H1UnMFDPJ4Mk2X5rbNchKyk4r9JuShxcKbZybfdqUEG Next: KZfQuTnY2Jy3fLYrDWSFMkf1eghY8zzKQnJTveVtvSV Diff:
OldNewDifferences
261261 let offerStatus = split(offerExist, "_")
262262 if ((offerStatus[5] != "OPEN"))
263263 then throw(("Offer is already " + offerStatus[5]))
264- else {
265- let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN"))
266- if ((size(saleInfo) == 0))
267- then throw("Sale Not found!")
268- else {
269- let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)
270- let $t01039910499 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
271- let bidDataArr = $t01039910499._1
272- let assetId = $t01039910499._2
273- let bidData = $t01039910499._3
274- let amount = value(parseInt(bidDataArr[1]))
275- let amountForSign = fraction(amount, signCut, 100)
276- let amountForOwner = (amount - amountForSign)
264+ else if (true)
265+ then throw("hihi")
266+ else {
267+ let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN"))
268+ if ((size(saleInfo) == 0))
269+ then throw("Sale Not found!")
270+ else {
271+ let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)
272+ let $t01043510535 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
273+ let bidDataArr = $t01043510535._1
274+ let assetId = $t01043510535._2
275+ let bidData = $t01043510535._3
276+ let amount = value(parseInt(bidDataArr[1]))
277+ let amountForSign = fraction(amount, signCut, 100)
278+ let amountForOwner = (amount - amountForSign)
277279 [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))]
278- }
279- }
280+ }
281+ }
280282 }
281283 }
282284 }
285287
286288 @Callable(i)
287289 func cancelOffer (nftid,offerId) = {
288- let $t01165311883 = idCallerDate(i)
289- let id = $t01165311883._1
290- let caller = $t01165311883._2
291- let date = $t01165311883._3
290+ let $t01168911919 = idCallerDate(i)
291+ let id = $t01168911919._1
292+ let caller = $t01168911919._2
293+ let date = $t01168911919._3
292294 let saleOwner = getSaleOwnerAndStatus(nftid)
293295 let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)
294- let $t01201612116 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
295- let bidDataArr = $t01201612116._1
296- let assetId = $t01201612116._2
297- let bidData = $t01201612116._3
296+ let $t01205212152 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
297+ let bidDataArr = $t01205212152._1
298+ let assetId = $t01205212152._2
299+ let bidData = $t01205212152._3
298300 let bidStatus = "CANCELLED"
299301 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
300302 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let unitTest = false
55
66 let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
77
88 let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
99
1010 let artworksDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY"))
1111
1212 let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
1313
1414 let userDapp = if (unitTest)
1515 then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm"))
1616 else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj"))
1717
1818 let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq"))
1919
2020 let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
2121
2222 let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
2323
2424 let wavesAssetId = base58''
2525
2626 let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
2727
2828 let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
2929
3030 let signCut = 3
3131
3232 let originlaArtistCut = 10
3333
3434 let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
3535
3636 let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "")
3737
3838 let userSuspended = "SUSPENDED"
3939
4040 let userRemoved = "REMOVED"
4141
4242 let artIllegal = "ILLEGAL"
4343
4444 func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error")
4545
4646
4747 func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "")
4848
4949
5050 func getStrByK (key) = valueOrElse(getString(this, key), "")
5151
5252
5353 func getIntByK (key) = valueOrElse(getInteger(this, key), 0)
5454
5555
5656 func keyUserStatus (addr) = ("user_status_" + addr)
5757
5858
5959 func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr)
6060
6161
6262 func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr)
6363
6464
6565 func keyNFTData (id) = ("nft_" + id)
6666
6767
6868 func idCallerDate (i) = if (!(dappRunning))
6969 then throw(maintenanceMSG)
7070 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
7171
7272
7373 func isPayment (i) = if ((size(i.payments) == 0))
7474 then throw("No payment attached")
7575 else {
7676 let payment = value(i.payments[0])
7777 let amount = value(payment.amount)
7878 $Tuple2(payment, amount)
7979 }
8080
8181
8282 func isSignArtNFT (id) = {
8383 let assetDetails = value(assetInfo(id))
8484 if (if (if (if ((assetDetails.quantity != 1))
8585 then true
8686 else (assetDetails.decimals != 0))
8787 then true
8888 else (assetDetails.reissuable != false))
8989 then true
9090 else (assetDetails.issuer != artworksDapp))
9191 then false
9292 else true
9393 }
9494
9595
9696 func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId)))
9797 then (assetId != toBase58String(wavesAssetId))
9898 else false)
9999 then (assetId != "WAVES")
100100 else false)
101101 then (assetId != toBase58String(usdnAssetId))
102102 else false)
103103 then false
104104 else true
105105
106106
107107 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
108108 then unit
109109 else fromBase58String(assetId)
110110
111111
112112 func getSaleOwnerAndStatus (nftid) = {
113113 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
114114 if ((saleOwner == "none"))
115115 then throw("NFT not found")
116116 else {
117117 let saleStatus = getStrByK(((("sale_status_" + saleOwner) + "_") + nftid))
118118 if ((saleStatus != "OPEN"))
119119 then throw("NFT not for sale")
120120 else saleOwner
121121 }
122122 }
123123
124124
125125 func getBidData (key) = {
126126 let bidData = getStrByK((key + "_OPEN"))
127127 if ((bidData == ""))
128128 then throw("Bid not found")
129129 else {
130130 let bidDataArr = split(bidData, "_")
131131 let assetId = getBidAssetId(bidDataArr[0])
132132 $Tuple3(bidDataArr, assetId, bidData)
133133 }
134134 }
135135
136136
137137 @Callable(i)
138138 func sellNFT (price,asset) = {
139139 let $t048324871 = idCallerDate(i)
140140 let id = $t048324871._1
141141 let caller = $t048324871._2
142142 let date = $t048324871._3
143143 let $t048764912 = isPayment(i)
144144 let payment = $t048764912._1
145145 let amount = $t048764912._2
146146 let assetId = if (if (isDefined(payment.assetId))
147147 then isSignArtNFT(value(payment.assetId))
148148 else false)
149149 then payment.assetId
150150 else throw("No NFT found")
151151 if (!(acceptedAssetIds(asset)))
152152 then throw("Only SIGN, USDN or WAVES accepted")
153153 else {
154154 let nftData = split(getArtStrByK(keyNFTData(toBase58String(value(assetId)))), "_")
155155 let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
156156 if ((size(artSignID) == 0))
157157 then throw("Artwork not found on SIGN Art")
158158 else {
159159 let artStatus = getArtStrByK(keyFlag(nftData[6], nftData[5]))
160160 if ((artStatus == artIllegal))
161161 then throw("Original Artwork flagged as ILLEGAL")
162162 else {
163163 let artistStatus = getUserStrByK(keyUserStatus(nftData[6]))
164164 if (containsElement([userSuspended, userRemoved], artistStatus))
165165 then throw(("Original Artist " + artistStatus))
166166 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)]
167167 }
168168 }
169169 }
170170 }
171171
172172
173173
174174 @Callable(i)
175175 func cancelSale (nftid) = {
176176 let $t066666705 = idCallerDate(i)
177177 let id = $t066666705._1
178178 let caller = $t066666705._2
179179 let date = $t066666705._3
180180 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
181181 if ((saleOwner != caller))
182182 then throw("You don't own this NFT")
183183 else {
184184 let saleStatus = getStrByK(((("sale_status_" + caller) + "_") + nftid))
185185 if ((saleStatus != "OPEN"))
186186 then throw("Sale not active")
187187 else {
188188 let saleInfo = getStrByK(((((("sale_info_" + caller) + "_") + nftid) + "_") + saleStatus))
189189 [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))]
190190 }
191191 }
192192 }
193193
194194
195195
196196 @Callable(i)
197197 func buyNFT (nftid) = {
198198 let $t075647635 = idCallerDate(i)
199199 let id = $t075647635._1
200200 let caller = $t075647635._2
201201 let date = $t075647635._3
202202 let saleOwner = getSaleOwnerAndStatus(nftid)
203203 let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN"))
204204 if ((size(saleInfo) == 0))
205205 then throw("Sale Not found!")
206206 else {
207207 let saleInfoArray = split(saleInfo, "_")
208208 let $t078697905 = isPayment(i)
209209 let payment = $t078697905._1
210210 let amount = $t078697905._2
211211 if (if ((saleInfoArray[1] != toString(amount)))
212212 then true
213213 else (saleInfoArray[2] != toBase58String(value(payment.assetId))))
214214 then throw("Payment infos don't match.")
215215 else {
216216 let amountForSign = fraction(amount, signCut, 100)
217217 let amountForOwner = (amount - amountForSign)
218218 [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))]
219219 }
220220 }
221221 }
222222
223223
224224
225225 @Callable(i)
226226 func setOffer (nftid) = {
227227 let $t088848922 = idCallerDate(i)
228228 let id = $t088848922._1
229229 let caller = $t088848922._2
230230 let date = $t088848922._3
231231 let $t089278963 = isPayment(i)
232232 let payment = $t089278963._1
233233 let amount = $t089278963._2
234234 let assetId = if (!(isDefined(payment.assetId)))
235235 then "WAVES"
236236 else toBase58String(value(payment.assetId))
237237 if (!(acceptedAssetIds(assetId)))
238238 then throw("asset not accepted")
239239 else {
240240 let saleOwner = getSaleOwnerAndStatus(nftid)
241241 [StringEntry((((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + id) + "_OPEN"), ((((((((assetId + "_") + toString(amount)) + "_") + toString(date)) + "_") + caller) + "_") + id))]
242242 }
243243 }
244244
245245
246246
247247 @Callable(i)
248248 func acceptOffer (nftid,offerId,offerOwner) = {
249249 let $t096709744 = idCallerDate(i)
250250 let id = $t096709744._1
251251 let caller = $t096709744._2
252252 let date = $t096709744._3
253253 let saleOwner = getSaleOwnerAndStatus(nftid)
254254 if ((caller != saleOwner))
255255 then throw("You cannot do this action")
256256 else {
257257 let offerExist = getStrByK((((((((("offer_" + nftid) + "_") + saleOwner) + "_") + offerOwner) + "_") + offerId) + "_OPEN"))
258258 if ((offerExist == ""))
259259 then throw("Offer not found")
260260 else {
261261 let offerStatus = split(offerExist, "_")
262262 if ((offerStatus[5] != "OPEN"))
263263 then throw(("Offer is already " + offerStatus[5]))
264- else {
265- let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN"))
266- if ((size(saleInfo) == 0))
267- then throw("Sale Not found!")
268- else {
269- let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)
270- let $t01039910499 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
271- let bidDataArr = $t01039910499._1
272- let assetId = $t01039910499._2
273- let bidData = $t01039910499._3
274- let amount = value(parseInt(bidDataArr[1]))
275- let amountForSign = fraction(amount, signCut, 100)
276- let amountForOwner = (amount - amountForSign)
264+ else if (true)
265+ then throw("hihi")
266+ else {
267+ let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN"))
268+ if ((size(saleInfo) == 0))
269+ then throw("Sale Not found!")
270+ else {
271+ let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)
272+ let $t01043510535 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
273+ let bidDataArr = $t01043510535._1
274+ let assetId = $t01043510535._2
275+ let bidData = $t01043510535._3
276+ let amount = value(parseInt(bidDataArr[1]))
277+ let amountForSign = fraction(amount, signCut, 100)
278+ let amountForOwner = (amount - amountForSign)
277279 [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))]
278- }
279- }
280+ }
281+ }
280282 }
281283 }
282284 }
283285
284286
285287
286288 @Callable(i)
287289 func cancelOffer (nftid,offerId) = {
288- let $t01165311883 = idCallerDate(i)
289- let id = $t01165311883._1
290- let caller = $t01165311883._2
291- let date = $t01165311883._3
290+ let $t01168911919 = idCallerDate(i)
291+ let id = $t01168911919._1
292+ let caller = $t01168911919._2
293+ let date = $t01168911919._3
292294 let saleOwner = getSaleOwnerAndStatus(nftid)
293295 let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)
294- let $t01201612116 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
295- let bidDataArr = $t01201612116._1
296- let assetId = $t01201612116._2
297- let bidData = $t01201612116._3
296+ let $t01205212152 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
297+ let bidDataArr = $t01205212152._1
298+ let assetId = $t01205212152._2
299+ let bidData = $t01205212152._3
298300 let bidStatus = "CANCELLED"
299301 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
300302 }
301303
302304
303305
304306 @Callable(i)
305307 func deleteEntry (entry) = {
306308 let caller = toString(addressFromPublicKey(i.callerPublicKey))
307309 if ((caller == chris))
308310 then [DeleteEntry(entry)]
309311 else throw("no")
310312 }
311313
312314

github/deemru/w8io/026f985 
62.10 ms