tx · 6seH1bRgJtSQ9SEPMnZhdBxKtug7X9UCAtEqrdMwKjGo

3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg:  -0.01400000 Waves

2021.04.10 13:40 [1476249] smart account 3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg > SELF 0.00000000 Waves

{ "type": 13, "id": "6seH1bRgJtSQ9SEPMnZhdBxKtug7X9UCAtEqrdMwKjGo", "fee": 1400000, "feeAssetId": null, "timestamp": 1618051322928, "version": 2, "chainId": 84, "sender": "3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg", "senderPublicKey": "2zUv98HwTLKA5GbDA2VDnXgpUx5M6USvLzsBeff9V2i2", "proofs": [ "5vXXWvF5aqH3qcRxftEAGuFehLzi5MgsfqokXLrvsWfaBDrwPKMsf7yvTLcWBCDV4eNFzEq4yX7yerwx7zMf6xkY" ], "script": "base64:AAIEAAAAAAAAACkIAhIECgIBCBIDCgEIEgMKAQgSAwoBCBIFCgMICAgSBAoCCAgSAwoBCAAAACIAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAAMYXJ0d29ya3NEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5alNXWUFvY1RQcWQ1NXdk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ABLAAAAAICAAAABm9mZmVyXwUAAAAFbmZ0aWQCAAAAAV8FAAAACXNhbGVPd25lcgIAAAABXwUAAAAGY2FsbGVyAgAAAAFfBQAAAAdvZmZlcklkBAAAAApiaWREYXRhQXJyCAUAAAANJHQwMTE4MzExMTkzMQAAAAJfMQQAAAAHYXNzZXRJZAgFAAAADSR0MDExODMxMTE5MzEAAAACXzIEAAAAB2JpZERhdGEIBQAAAA0kdDAxMTgzMTExOTMxAAAAAl8zBAAAAAliaWRTdGF0dXMCAAAACUNBTkNFTExFRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAACmJpZERhdGFLZXkCAAAABV9PUEVOCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAApiaWREYXRhS2V5AgAAAAFfBQAAAAliaWRTdGF0dXMJAAEsAAAAAgkAASwAAAACBQAAAAdiaWREYXRhAgAAAAFfCQABpAAAAAEFAAAABGRhdGUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAABmNhbGxlcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAACmJpZERhdGFBcnIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAABnygZm", "height": 1476249, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FVwrQuaaz2BrrtRXiGpL9HWqZ6ZGmqYoDRjvZ8U6WTri Next: none Diff:
OldNewDifferences
124124
125125 func getBidData (key) = {
126126 let bidData = getStrByK((key + "_OPEN"))
127- if (true)
128- then throw((("bidDataKey = " + key) + "_OPEN"))
129- else if ((bidData == ""))
130- then throw("Offer not found")
131- else {
132- let bidDataArr = split(bidData, "_")
133- let assetId = getBidAssetId(bidDataArr[0])
134- $Tuple3(bidDataArr, assetId, bidData)
135- }
127+ if ((bidData == ""))
128+ then throw("Offer not found")
129+ else {
130+ let bidDataArr = split(bidData, "_")
131+ let assetId = getBidAssetId(bidDataArr[0])
132+ $Tuple3(bidDataArr, assetId, bidData)
133+ }
136134 }
137135
138136
139137 @Callable(i)
140138 func sellNFT (price,asset) = {
141- let $t048924931 = idCallerDate(i)
142- let id = $t048924931._1
143- let caller = $t048924931._2
144- let date = $t048924931._3
145- let $t049364972 = isPayment(i)
146- let payment = $t049364972._1
147- let amount = $t049364972._2
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
148146 let assetId = if (if (isDefined(payment.assetId))
149147 then isSignArtNFT(value(payment.assetId))
150148 else false)
175173
176174 @Callable(i)
177175 func cancelSale (nftid) = {
178- let $t067266765 = idCallerDate(i)
179- let id = $t067266765._1
180- let caller = $t067266765._2
181- let date = $t067266765._3
176+ let $t066686707 = idCallerDate(i)
177+ let id = $t066686707._1
178+ let caller = $t066686707._2
179+ let date = $t066686707._3
182180 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
183181 if ((saleOwner != caller))
184182 then throw("You don't own this NFT")
197195
198196 @Callable(i)
199197 func buyNFT (nftid) = {
200- let $t076247695 = idCallerDate(i)
201- let id = $t076247695._1
202- let caller = $t076247695._2
203- let date = $t076247695._3
198+ let $t075667637 = idCallerDate(i)
199+ let id = $t075667637._1
200+ let caller = $t075667637._2
201+ let date = $t075667637._3
204202 let saleOwner = getSaleOwnerAndStatus(nftid)
205203 let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN"))
206204 if ((size(saleInfo) == 0))
207205 then throw("Sale Not found!")
208206 else {
209207 let saleInfoArray = split(saleInfo, "_")
210- let $t079297965 = isPayment(i)
211- let payment = $t079297965._1
212- let amount = $t079297965._2
208+ let $t078717907 = isPayment(i)
209+ let payment = $t078717907._1
210+ let amount = $t078717907._2
213211 if (if ((saleInfoArray[1] != toString(amount)))
214212 then true
215213 else (saleInfoArray[2] != toBase58String(value(payment.assetId))))
226224
227225 @Callable(i)
228226 func setOffer (nftid) = {
229- let $t089448982 = idCallerDate(i)
230- let id = $t089448982._1
231- let caller = $t089448982._2
232- let date = $t089448982._3
233- let $t089879023 = isPayment(i)
234- let payment = $t089879023._1
235- let amount = $t089879023._2
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
236234 let assetId = if (!(isDefined(payment.assetId)))
237235 then "WAVES"
238236 else toBase58String(value(payment.assetId))
248246
249247 @Callable(i)
250248 func acceptOffer (nftid,offerId,offerOwner) = {
251- let $t097309804 = idCallerDate(i)
252- let id = $t097309804._1
253- let caller = $t097309804._2
254- let date = $t097309804._3
249+ let $t096729746 = idCallerDate(i)
250+ let id = $t096729746._1
251+ let caller = $t096729746._2
252+ let date = $t096729746._3
255253 let saleOwner = getSaleOwnerAndStatus(nftid)
256254 if ((caller != saleOwner))
257255 then throw("You cannot do this action")
264262 if ((size(saleInfo) == 0))
265263 then throw("Sale Not found!")
266264 else {
267- let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)
268- let $t01039110450 = getBidData(bidDataKey)
269- let bidDataArr = $t01039110450._1
270- let assetId = $t01039110450._2
271- let bidData = $t01039110450._3
265+ let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + offerOwner) + "_") + offerId)
266+ let $t01033710396 = getBidData(bidDataKey)
267+ let bidDataArr = $t01033710396._1
268+ let assetId = $t01033710396._2
269+ let bidData = $t01033710396._3
272270 let amount = value(parseInt(bidDataArr[1]))
273271 let amountForSign = fraction(amount, signCut, 100)
274272 let amountForOwner = (amount - amountForSign)
282280
283281 @Callable(i)
284282 func cancelOffer (nftid,offerId) = {
285- let $t01152211752 = idCallerDate(i)
286- let id = $t01152211752._1
287- let caller = $t01152211752._2
288- let date = $t01152211752._3
283+ let $t01146811698 = idCallerDate(i)
284+ let id = $t01146811698._1
285+ let caller = $t01146811698._2
286+ let date = $t01146811698._3
289287 let saleOwner = getSaleOwnerAndStatus(nftid)
290288 let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)
291- let $t01188511985 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
292- let bidDataArr = $t01188511985._1
293- let assetId = $t01188511985._2
294- let bidData = $t01188511985._3
289+ let $t01183111931 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
290+ let bidDataArr = $t01183111931._1
291+ let assetId = $t01183111931._2
292+ let bidData = $t01183111931._3
295293 let bidStatus = "CANCELLED"
296294 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
297295 }
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"))
127- if (true)
128- then throw((("bidDataKey = " + key) + "_OPEN"))
129- else if ((bidData == ""))
130- then throw("Offer not found")
131- else {
132- let bidDataArr = split(bidData, "_")
133- let assetId = getBidAssetId(bidDataArr[0])
134- $Tuple3(bidDataArr, assetId, bidData)
135- }
127+ if ((bidData == ""))
128+ then throw("Offer not found")
129+ else {
130+ let bidDataArr = split(bidData, "_")
131+ let assetId = getBidAssetId(bidDataArr[0])
132+ $Tuple3(bidDataArr, assetId, bidData)
133+ }
136134 }
137135
138136
139137 @Callable(i)
140138 func sellNFT (price,asset) = {
141- let $t048924931 = idCallerDate(i)
142- let id = $t048924931._1
143- let caller = $t048924931._2
144- let date = $t048924931._3
145- let $t049364972 = isPayment(i)
146- let payment = $t049364972._1
147- let amount = $t049364972._2
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
148146 let assetId = if (if (isDefined(payment.assetId))
149147 then isSignArtNFT(value(payment.assetId))
150148 else false)
151149 then payment.assetId
152150 else throw("No NFT found")
153151 if (!(acceptedAssetIds(asset)))
154152 then throw("Only SIGN, USDN or WAVES accepted")
155153 else {
156154 let nftData = split(getArtStrByK(keyNFTData(toBase58String(value(assetId)))), "_")
157155 let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
158156 if ((size(artSignID) == 0))
159157 then throw("Artwork not found on SIGN Art")
160158 else {
161159 let artStatus = getArtStrByK(keyFlag(nftData[6], nftData[5]))
162160 if ((artStatus == artIllegal))
163161 then throw("Original Artwork flagged as ILLEGAL")
164162 else {
165163 let artistStatus = getUserStrByK(keyUserStatus(nftData[6]))
166164 if (containsElement([userSuspended, userRemoved], artistStatus))
167165 then throw(("Original Artist " + artistStatus))
168166 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)]
169167 }
170168 }
171169 }
172170 }
173171
174172
175173
176174 @Callable(i)
177175 func cancelSale (nftid) = {
178- let $t067266765 = idCallerDate(i)
179- let id = $t067266765._1
180- let caller = $t067266765._2
181- let date = $t067266765._3
176+ let $t066686707 = idCallerDate(i)
177+ let id = $t066686707._1
178+ let caller = $t066686707._2
179+ let date = $t066686707._3
182180 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
183181 if ((saleOwner != caller))
184182 then throw("You don't own this NFT")
185183 else {
186184 let saleStatus = getStrByK(((("sale_status_" + caller) + "_") + nftid))
187185 if ((saleStatus != "OPEN"))
188186 then throw("Sale not active")
189187 else {
190188 let saleInfo = getStrByK(((((("sale_info_" + caller) + "_") + nftid) + "_") + saleStatus))
191189 [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))]
192190 }
193191 }
194192 }
195193
196194
197195
198196 @Callable(i)
199197 func buyNFT (nftid) = {
200- let $t076247695 = idCallerDate(i)
201- let id = $t076247695._1
202- let caller = $t076247695._2
203- let date = $t076247695._3
198+ let $t075667637 = idCallerDate(i)
199+ let id = $t075667637._1
200+ let caller = $t075667637._2
201+ let date = $t075667637._3
204202 let saleOwner = getSaleOwnerAndStatus(nftid)
205203 let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN"))
206204 if ((size(saleInfo) == 0))
207205 then throw("Sale Not found!")
208206 else {
209207 let saleInfoArray = split(saleInfo, "_")
210- let $t079297965 = isPayment(i)
211- let payment = $t079297965._1
212- let amount = $t079297965._2
208+ let $t078717907 = isPayment(i)
209+ let payment = $t078717907._1
210+ let amount = $t078717907._2
213211 if (if ((saleInfoArray[1] != toString(amount)))
214212 then true
215213 else (saleInfoArray[2] != toBase58String(value(payment.assetId))))
216214 then throw("Payment infos don't match.")
217215 else {
218216 let amountForSign = fraction(amount, signCut, 100)
219217 let amountForOwner = (amount - amountForSign)
220218 [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))]
221219 }
222220 }
223221 }
224222
225223
226224
227225 @Callable(i)
228226 func setOffer (nftid) = {
229- let $t089448982 = idCallerDate(i)
230- let id = $t089448982._1
231- let caller = $t089448982._2
232- let date = $t089448982._3
233- let $t089879023 = isPayment(i)
234- let payment = $t089879023._1
235- let amount = $t089879023._2
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
236234 let assetId = if (!(isDefined(payment.assetId)))
237235 then "WAVES"
238236 else toBase58String(value(payment.assetId))
239237 if (!(acceptedAssetIds(assetId)))
240238 then throw("asset not accepted")
241239 else {
242240 let saleOwner = getSaleOwnerAndStatus(nftid)
243241 [StringEntry((((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + id) + "_OPEN"), ((((((((assetId + "_") + toString(amount)) + "_") + toString(date)) + "_") + caller) + "_") + id))]
244242 }
245243 }
246244
247245
248246
249247 @Callable(i)
250248 func acceptOffer (nftid,offerId,offerOwner) = {
251- let $t097309804 = idCallerDate(i)
252- let id = $t097309804._1
253- let caller = $t097309804._2
254- let date = $t097309804._3
249+ let $t096729746 = idCallerDate(i)
250+ let id = $t096729746._1
251+ let caller = $t096729746._2
252+ let date = $t096729746._3
255253 let saleOwner = getSaleOwnerAndStatus(nftid)
256254 if ((caller != saleOwner))
257255 then throw("You cannot do this action")
258256 else {
259257 let offerExist = getStrByK((((((((("offer_" + nftid) + "_") + saleOwner) + "_") + offerOwner) + "_") + offerId) + "_OPEN"))
260258 if ((offerExist == ""))
261259 then throw("Offer not found")
262260 else {
263261 let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN"))
264262 if ((size(saleInfo) == 0))
265263 then throw("Sale Not found!")
266264 else {
267- let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)
268- let $t01039110450 = getBidData(bidDataKey)
269- let bidDataArr = $t01039110450._1
270- let assetId = $t01039110450._2
271- let bidData = $t01039110450._3
265+ let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + offerOwner) + "_") + offerId)
266+ let $t01033710396 = getBidData(bidDataKey)
267+ let bidDataArr = $t01033710396._1
268+ let assetId = $t01033710396._2
269+ let bidData = $t01033710396._3
272270 let amount = value(parseInt(bidDataArr[1]))
273271 let amountForSign = fraction(amount, signCut, 100)
274272 let amountForOwner = (amount - amountForSign)
275273 [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))]
276274 }
277275 }
278276 }
279277 }
280278
281279
282280
283281 @Callable(i)
284282 func cancelOffer (nftid,offerId) = {
285- let $t01152211752 = idCallerDate(i)
286- let id = $t01152211752._1
287- let caller = $t01152211752._2
288- let date = $t01152211752._3
283+ let $t01146811698 = idCallerDate(i)
284+ let id = $t01146811698._1
285+ let caller = $t01146811698._2
286+ let date = $t01146811698._3
289287 let saleOwner = getSaleOwnerAndStatus(nftid)
290288 let bidDataKey = ((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId)
291- let $t01188511985 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
292- let bidDataArr = $t01188511985._1
293- let assetId = $t01188511985._2
294- let bidData = $t01188511985._3
289+ let $t01183111931 = getBidData(((((((("offer_" + nftid) + "_") + saleOwner) + "_") + caller) + "_") + offerId))
290+ let bidDataArr = $t01183111931._1
291+ let assetId = $t01183111931._2
292+ let bidData = $t01183111931._3
295293 let bidStatus = "CANCELLED"
296294 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
297295 }
298296
299297
300298
301299 @Callable(i)
302300 func deleteEntry (entry) = {
303301 let caller = toString(addressFromPublicKey(i.callerPublicKey))
304302 if ((caller == chris))
305303 then [DeleteEntry(entry)]
306304 else throw("no")
307305 }
308306
309307

github/deemru/w8io/026f985 
59.75 ms