tx · EJXS2Vy7tjHgmdsBWYnHDgaZQN52C5W2P6Cztq9m7Vkw

3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2:  -0.05000000 Waves

2021.09.01 23:04 [1684424] smart account 3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2 > SELF 0.00000000 Waves

{ "type": 13, "id": "EJXS2Vy7tjHgmdsBWYnHDgaZQN52C5W2P6Cztq9m7Vkw", "fee": 5000000, "feeAssetId": null, "timestamp": 1630526678029, "version": 2, "chainId": 84, "sender": "3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2", "senderPublicKey": "ANm32Ptz6YTMKvYUJBEYd4CYiTVn6XEvYjZhewQMphSJ", "proofs": [ "5ZqKz8MQrWvidsb3GmGNdo2j6zvawpnyFcQ7Fv42d72DUQQANDweShuXPjn55xx2pQT4yVvXCNzPGPUnUednHSc5" ], "script": "base64:AAIFAAAAAAAAAnkIAhIDCgEBEgMKAQgSAwoBCBIECgIICBIECgIICBoWCgJhMRIQTkZUSXNzdWVyQWRkcmVzcxoaCgJhMhIUTkZUSXNzdWVyZmVlUmVjZWl2ZXIaGQoCYTMSE05GVElzc3VlcmZlZVBlcmNlbnQaFgoCYTQSEEFydGlzdGZlZVBlcmNlbnQaEwoCYTUSDXNjb25leEFzc2V0SWQaEwoCYTYSDXRyeUdldEludGVnZXIaCQoCYTcSA2tleRoJCgJhOBIDdmFsGg0KAmE5EgckbWF0Y2gwGgcKAmIxEgFiGhIKAmIyEgx0cnlHZXRTdHJpbmcaEgoCYjMSDGdldE5GVElzc3VlchoNCgJiNBIHYXNzZXRJZBoRCgJiNRILbXlhc3NldGluZm8aEgoCYjYSDGdldE5GVEFydGlzdBoTCgJiNxINQXJ0aXN0QWRkcmVzcxoWCgJiOBIQYWNjZXB0ZWRBc3NldElkcxoHCgJiORIBaRoQCgJjMRIKc3RhcnRQcmljZRoPCgJjMhIJYXVjdGlvbklkGgcKAmMzEgF4GgkKAmM0EgNwbXQ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AAAAAAQkAAlkAAAABBQAAAAJiNAUAAAADbmlsAAAAAQAAAAJkNwEAAAACZDgAAAAACQAB9AAAAAMIBQAAAAJkNwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmQ3AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAmQ3AAAAD3NlbmRlclB1YmxpY0tleZ22Mgg=", "height": 1684424, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7vtCEUydiZCRDR4UNQgTQS3tDR9NaBBrMBnXxEWDCDL6 Next: 8G8BGrUyjndxQhEgXCQzFFTF4ze7GFm8ALWsyxsbtHY1 Diff:
OldNewDifferences
6060 @Callable(i)
6161 func initAuction (startPrice) = {
6262 let auctionId = toBase58String(i.transactionId)
63+ let x = if (isDefined(i.payments))
64+ then value(i.payments)
65+ else throw("No payment attached")
6366 let pmt = value(i.payments[0])
6467 let assetId = value(pmt.assetId)
6568 let asset = getNFTIssuer(assetId)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NFTIssuerAddress = base58'3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA'
55
66 let NFTIssuerfeeReceiver = base58'3N65xLq8JcCeaEiR1TJQ7dBqXBvEy6E48Wz'
77
88 let NFTIssuerfeePercent = 3
99
1010 let ArtistfeePercent = 7
1111
1212 let sconexAssetId = base58'DZ8ALmuLeSZ2ocsYLAcL9MiXBFDbMNQG9LtitREyU5ZC'
1313
1414 func tryGetInteger (key) = {
1515 let val = match getInteger(this, key) {
1616 case b: Int =>
1717 b
1818 case _ =>
1919 0
2020 }
2121 val
2222 }
2323
2424
2525 func tryGetString (key) = {
2626 let val = match getString(this, key) {
2727 case b: String =>
2828 b
2929 case _ =>
3030 ""
3131 }
3232 val
3333 }
3434
3535
3636 func getNFTIssuer (assetId) = {
3737 let myassetinfo = value(assetInfo(assetId))
3838 if ((myassetinfo.issuer == Address(NFTIssuerAddress)))
3939 then "true"
4040 else ""
4141 }
4242
4343
4444 func getNFTArtist (assetId) = {
4545 let ArtistAddress = match getString(Address(NFTIssuerAddress), ("nft_issued_" + assetId)) {
4646 case b: String =>
4747 b
4848 case _ =>
4949 ""
5050 }
5151 ArtistAddress
5252 }
5353
5454
5555 func acceptedAssetIds (assetId) = if ((assetId != toBase58String(sconexAssetId)))
5656 then throw("Only Sconex accepted")
5757 else true
5858
5959
6060 @Callable(i)
6161 func initAuction (startPrice) = {
6262 let auctionId = toBase58String(i.transactionId)
63+ let x = if (isDefined(i.payments))
64+ then value(i.payments)
65+ else throw("No payment attached")
6366 let pmt = value(i.payments[0])
6467 let assetId = value(pmt.assetId)
6568 let asset = getNFTIssuer(assetId)
6669 if ((asset == ""))
6770 then throw("You can only sell an NFT created on SCONE Marketplace")
6871 else [StringEntry((("auction_" + auctionId) + "_status"), "open"), StringEntry((("auction_" + toBase58String(assetId)) + "_last"), auctionId), StringEntry((("auction_" + auctionId) + "_assetName"), asset), StringEntry((("auction_" + auctionId) + "_assetId"), toBase58String(assetId)), IntegerEntry((("auction_" + auctionId) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + auctionId) + "_owner"), toString(i.caller)), IntegerEntry((("auction_" + auctionId) + "_startPrice"), startPrice), StringEntry((((("address_" + toString(i.caller)) + "_auction_") + auctionId) + "_lockedNFT"), toBase58String(assetId))]
6972 }
7073
7174
7275
7376 @Callable(i)
7477 func cancelAuction (auctionId) = {
7578 let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner"))
7679 if ((toString(i.caller) != auctionOwner))
7780 then throw("Only allowed to auction owner")
7881 else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open"))
7982 then throw("auction is close")
8083 else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))]
8184 }
8285
8386
8487
8588 @Callable(i)
8689 func placeBid (auctionId) = {
8790 let pmt = value(i.payments[0])
8891 let amount = pmt.amount
8992 let bidId = toBase58String(i.transactionId)
9093 let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId"))
9194 let PayAssetId = if (!(isDefined(pmt.assetId)))
9295 then throw("Only sconex is accepted!")
9396 else toBase58String(value(pmt.assetId))
9497 if (!(acceptedAssetIds(PayAssetId)))
9598 then throw("Auction does only support sconex payments")
9699 else {
97100 let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice"))
98101 if ((minPrice > amount))
99102 then throw(("The minimal initial price is set as " + toString(minPrice)))
100103 else [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(amount)) + "\", \"status\": \"open\"}")), IntegerEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"), amount), StringEntry(((((("address_" + toString(i.caller)) + "_auction_") + auctionId) + "_bid_") + bidId), assetId), StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "open")]
101104 }
102105 }
103106
104107
105108
106109 @Callable(i)
107110 func cancelBid (auctionId,bidId) = {
108111 let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId"))
109112 let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"))
110113 let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"))
111114 if (if ((toString(i.caller) != bidAuthor))
112115 then (i.caller != this)
113116 else false)
114117 then throw("Only allowed to the bid author or admin")
115118 else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open"))
116119 then throw("bid is not open")
117120 else [StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(bidAmount)) + "\", \"status\": \"cancelled\"}")), StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "cancelled"), DeleteEntry(((((("address_" + bidAuthor) + "_auction_") + auctionId) + "_bid_") + bidId)), ScriptTransfer(Address(fromBase58String(bidAuthor)), bidAmount, sconexAssetId)]
118121 }
119122
120123
121124
122125 @Callable(i)
123126 func acceptBid (auctionId,bidId) = {
124127 let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner"))
125128 let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"))
126129 let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"))
127130 let bidStatus = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"))
128131 let assetId = tryGetString((("auction_" + auctionId) + "_assetId"))
129132 if ((toString(i.caller) != auctionOwner))
130133 then throw("Only allowed to auction owner")
131134 else if ((bidStatus != "open"))
132135 then throw("Bid was cancelled and cannot be accepted")
133136 else {
134137 let recordPrice = tryGetInteger((assetId + "_recordPrice"))
135138 let newRecordPrice = max([recordPrice, bidAmount])
136139 let ArtistAddress = getNFTArtist(assetId)
137140 if ((ArtistAddress == ""))
138141 then [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "finished"), StringEntry((("auction_" + auctionId) + "_status"), "finished"), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(bidAmount)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + auctionId) + "_finalPrice"), bidAmount), IntegerEntry((assetId + "_recordPrice"), newRecordPrice), DeleteEntry(((((("address_" + bidAuthor) + "_auction_") + auctionId) + "_bid_") + bidId)), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), sconexAssetId), ScriptTransfer(Address(NFTIssuerfeeReceiver), fraction(bidAmount, ArtistfeePercent, 100), sconexAssetId), ScriptTransfer(Address(NFTIssuerfeeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), sconexAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))]
139142 else [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "finished"), StringEntry((("auction_" + auctionId) + "_status"), "finished"), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(bidAmount)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + auctionId) + "_finalPrice"), bidAmount), IntegerEntry((assetId + "_recordPrice"), newRecordPrice), DeleteEntry(((((("address_" + bidAuthor) + "_auction_") + auctionId) + "_bid_") + bidId)), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), sconexAssetId), ScriptTransfer(Address(fromBase58String(ArtistAddress)), fraction(bidAmount, ArtistfeePercent, 100), sconexAssetId), ScriptTransfer(Address(NFTIssuerfeeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), sconexAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))]
140143 }
141144 }
142145
143146
144147 @Verifier(tx)
145148 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
146149

github/deemru/w8io/026f985 
39.15 ms