tx · Dt5FWBqNqxLccb1KU7zLKENfod9QnPrCxv6EvYp2zRQo

3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2:  -0.05000000 Waves

2021.09.01 23:18 [1684437] smart account 3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2 > SELF 0.00000000 Waves

{ "type": 13, "id": "Dt5FWBqNqxLccb1KU7zLKENfod9QnPrCxv6EvYp2zRQo", "fee": 5000000, "feeAssetId": null, "timestamp": 1630527512505, "version": 2, "chainId": 84, "sender": "3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2", "senderPublicKey": "ANm32Ptz6YTMKvYUJBEYd4CYiTVn6XEvYjZhewQMphSJ", "proofs": [ "57LEB3SgYa1FPYEkPPXAdcCmprDJLYY4hvE7bCj1FFhEYNo1L3vsRi6YnkmDWqyubbLPn7CVgJUJeRREQ1QdmoVz" ], "script": "base64:AAIFAAAAAAAAAoMIAhIDCgEBEgMKAQgSAwoBCBIECgIICBIECgIICBoWCgJhMRIQTkZUSXNzdWVyQWRkcmVzcxoaCgJhMhIUTkZUSXNzdWVyZmVlUmVjZWl2ZXIaGQoCYTMSE05GVElzc3VlcmZlZVBlcmNlbnQaFgoCYTQSEEFydGlzdGZlZVBlcmNlbnQaEwoCYTUSDXNjb25leEFzc2V0SWQaEwoCYTYSDXRyeUdldEludGVnZXIaCQoCYTcSA2tleRoJCgJhOBIDdmFsGg0KAmE5EgckbWF0Y2gwGgcKAmIxEgFiGhIKAmIyEgx0cnlHZXRTdHJpbmcaEgoCYjMSDGdldE5GVElzc3VlchoNCgJiNBIHYXNzZXRJZBoRCgJiNRILbXlhc3NldGluZm8aEgoCYjYSDGdldE5GVEFydGlzdBoTCgJiNxINQXJ0aXN0QWRkcmVzcxoWCgJiOBIQYWNjZXB0ZWRBc3NldElkcxoHCgJiORIBaRoQCgJjMRIKc3RhcnRQcmljZRoPCgJjMhIJYXVjdGlvbklkGgcKAmMzEgF4GggKAmM0EgJ4MRoJC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AAAZAUAAAACYTUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABBQAAAAJhMgkAAGsAAAADBQAAAAJkNAUAAAACYTMAAAAAAAAAAGQFAAAAAmE1CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAAmQzAAAAAAAAAAABCQACWQAAAAEFAAAAAmI0BQAAAANuaWwAAAABAAAAAmQ4AQAAAAJkOQAAAAAJAAH0AAAAAwgFAAAAAmQ4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACZDgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACZDgAAAAPc2VuZGVyUHVibGljS2V53O1JRg==", "height": 1684437, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8G8BGrUyjndxQhEgXCQzFFTF4ze7GFm8ALWsyxsbtHY1 Next: 5MuQSjKxfgBqaUEVGqdjar2drsH2P7cGYJEJpurd267w Diff:
OldNewDifferences
6060 @Callable(i)
6161 func initAuction (startPrice) = {
6262 let auctionId = toBase58String(i.transactionId)
63- let x = if (isDefined(i.payments[0]))
64- then value(i.payments[0])
63+ let x = if ((size(i.payments) == 0))
64+ then value(i.payments)
6565 else throw("No payment attached")
66+ let x1 = if ((size(i.payments) > 1))
67+ then value(i.payments)
68+ else throw("Too many payments attached")
6669 let pmt = value(i.payments[0])
6770 let assetId = value(pmt.assetId)
6871 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[0]))
64- then value(i.payments[0])
63+ let x = if ((size(i.payments) == 0))
64+ then value(i.payments)
6565 else throw("No payment attached")
66+ let x1 = if ((size(i.payments) > 1))
67+ then value(i.payments)
68+ else throw("Too many payments attached")
6669 let pmt = value(i.payments[0])
6770 let assetId = value(pmt.assetId)
6871 let asset = getNFTIssuer(assetId)
6972 if ((asset == ""))
7073 then throw("You can only sell an NFT created on SCONE Marketplace")
7174 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))]
7275 }
7376
7477
7578
7679 @Callable(i)
7780 func cancelAuction (auctionId) = {
7881 let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner"))
7982 if ((toString(i.caller) != auctionOwner))
8083 then throw("Only allowed to auction owner")
8184 else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open"))
8285 then throw("auction is close")
8386 else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))]
8487 }
8588
8689
8790
8891 @Callable(i)
8992 func placeBid (auctionId) = {
9093 let pmt = value(i.payments[0])
9194 let amount = pmt.amount
9295 let bidId = toBase58String(i.transactionId)
9396 let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId"))
9497 let PayAssetId = if (!(isDefined(pmt.assetId)))
9598 then throw("Only sconex is accepted!")
9699 else toBase58String(value(pmt.assetId))
97100 if (!(acceptedAssetIds(PayAssetId)))
98101 then throw("Auction does only support sconex payments")
99102 else {
100103 let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice"))
101104 if ((minPrice > amount))
102105 then throw(("The minimal initial price is set as " + toString(minPrice)))
103106 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")]
104107 }
105108 }
106109
107110
108111
109112 @Callable(i)
110113 func cancelBid (auctionId,bidId) = {
111114 let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId"))
112115 let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"))
113116 let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"))
114117 if (if ((toString(i.caller) != bidAuthor))
115118 then (i.caller != this)
116119 else false)
117120 then throw("Only allowed to the bid author or admin")
118121 else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open"))
119122 then throw("bid is not open")
120123 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)]
121124 }
122125
123126
124127
125128 @Callable(i)
126129 func acceptBid (auctionId,bidId) = {
127130 let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner"))
128131 let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"))
129132 let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"))
130133 let bidStatus = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"))
131134 let assetId = tryGetString((("auction_" + auctionId) + "_assetId"))
132135 if ((toString(i.caller) != auctionOwner))
133136 then throw("Only allowed to auction owner")
134137 else if ((bidStatus != "open"))
135138 then throw("Bid was cancelled and cannot be accepted")
136139 else {
137140 let recordPrice = tryGetInteger((assetId + "_recordPrice"))
138141 let newRecordPrice = max([recordPrice, bidAmount])
139142 let ArtistAddress = getNFTArtist(assetId)
140143 if ((ArtistAddress == ""))
141144 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))]
142145 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))]
143146 }
144147 }
145148
146149
147150 @Verifier(tx)
148151 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
149152

github/deemru/w8io/026f985 
43.38 ms