tx · 8G8BGrUyjndxQhEgXCQzFFTF4ze7GFm8ALWsyxsbtHY1

3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2:  -0.05000000 Waves

2021.09.01 23:12 [1684432] smart account 3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2 > SELF 0.00000000 Waves

{ "type": 13, "id": "8G8BGrUyjndxQhEgXCQzFFTF4ze7GFm8ALWsyxsbtHY1", "fee": 5000000, "feeAssetId": null, "timestamp": 1630527185332, "version": 2, "chainId": 84, "sender": "3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2", "senderPublicKey": "ANm32Ptz6YTMKvYUJBEYd4CYiTVn6XEvYjZhewQMphSJ", "proofs": [ "33YqEJacvq7EoZuusdYZdyrB72sdq7i6amm5K3r7JVRqw8ZdVxF3UWCuhn7q4RceeGRSVuErG1BtHbwbuLocSFsV" ], "script": "base64:AAIFAAAAAAAAAnkIAhIDCgEBEgMKAQgSAwoBCBIECgIICBIECgIICBoWCgJhMRIQTkZUSXNzdWVyQWRkcmVzcxoaCgJhMhIUTkZUSXNzdWVyZmVlUmVjZWl2ZXIaGQoCYTMSE05GVElzc3VlcmZlZVBlcmNlbnQaFgoCYTQSEEFydGlzdGZlZVBlcmNlbnQaEwoCYTUSDXNjb25leEFzc2V0SWQaEwoCYTYSDXRyeUdldEludGVnZXIaCQoCYTcSA2tleRoJCgJhOBIDdmFsGg0KAmE5EgckbWF0Y2gwGgcKAmIxEgFiGhIKAmIyEgx0cnlHZXRTdHJpbmcaEgoCYjMSDGdldE5GVElzc3VlchoNCgJiNBIHYXNzZXRJZBoRCgJiNRILbXlhc3NldGluZm8aEgoCYjYSDGdldE5GVEFydGlzdBoTCgJiNxINQXJ0aXN0QWRkcmVzcxoWCgJiOBIQYWNjZXB0ZWRBc3NldElkcxoHCgJiORIBaRoQCgJjMRIKc3RhcnRQcmljZRoPCgJjMhIJYXVjdGlvbklkGgcKAmMzEgF4GgkKAmM0EgNwbXQaCw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wkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAACZDIAAAAAAAAAAAEJAAJZAAAAAQUAAAACYjQFAAAAA25pbAAAAAEAAAACZDcBAAAAAmQ4AAAAAAkAAfQAAAADCAUAAAACZDcAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJkNwAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJkNwAAAA9zZW5kZXJQdWJsaWNLZXkcyFrG", "height": 1684432, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EJXS2Vy7tjHgmdsBWYnHDgaZQN52C5W2P6Cztq9m7Vkw Next: Dt5FWBqNqxLccb1KU7zLKENfod9QnPrCxv6EvYp2zRQo 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)
63+ let x = if (isDefined(i.payments[0]))
64+ then value(i.payments[0])
6565 else throw("No payment attached")
6666 let pmt = value(i.payments[0])
6767 let assetId = value(pmt.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)
63+ let x = if (isDefined(i.payments[0]))
64+ then value(i.payments[0])
6565 else throw("No payment attached")
6666 let pmt = value(i.payments[0])
6767 let assetId = value(pmt.assetId)
6868 let asset = getNFTIssuer(assetId)
6969 if ((asset == ""))
7070 then throw("You can only sell an NFT created on SCONE Marketplace")
7171 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))]
7272 }
7373
7474
7575
7676 @Callable(i)
7777 func cancelAuction (auctionId) = {
7878 let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner"))
7979 if ((toString(i.caller) != auctionOwner))
8080 then throw("Only allowed to auction owner")
8181 else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open"))
8282 then throw("auction is close")
8383 else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))]
8484 }
8585
8686
8787
8888 @Callable(i)
8989 func placeBid (auctionId) = {
9090 let pmt = value(i.payments[0])
9191 let amount = pmt.amount
9292 let bidId = toBase58String(i.transactionId)
9393 let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId"))
9494 let PayAssetId = if (!(isDefined(pmt.assetId)))
9595 then throw("Only sconex is accepted!")
9696 else toBase58String(value(pmt.assetId))
9797 if (!(acceptedAssetIds(PayAssetId)))
9898 then throw("Auction does only support sconex payments")
9999 else {
100100 let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice"))
101101 if ((minPrice > amount))
102102 then throw(("The minimal initial price is set as " + toString(minPrice)))
103103 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")]
104104 }
105105 }
106106
107107
108108
109109 @Callable(i)
110110 func cancelBid (auctionId,bidId) = {
111111 let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId"))
112112 let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"))
113113 let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"))
114114 if (if ((toString(i.caller) != bidAuthor))
115115 then (i.caller != this)
116116 else false)
117117 then throw("Only allowed to the bid author or admin")
118118 else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open"))
119119 then throw("bid is not open")
120120 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)]
121121 }
122122
123123
124124
125125 @Callable(i)
126126 func acceptBid (auctionId,bidId) = {
127127 let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner"))
128128 let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"))
129129 let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"))
130130 let bidStatus = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"))
131131 let assetId = tryGetString((("auction_" + auctionId) + "_assetId"))
132132 if ((toString(i.caller) != auctionOwner))
133133 then throw("Only allowed to auction owner")
134134 else if ((bidStatus != "open"))
135135 then throw("Bid was cancelled and cannot be accepted")
136136 else {
137137 let recordPrice = tryGetInteger((assetId + "_recordPrice"))
138138 let newRecordPrice = max([recordPrice, bidAmount])
139139 let ArtistAddress = getNFTArtist(assetId)
140140 if ((ArtistAddress == ""))
141141 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))]
142142 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))]
143143 }
144144 }
145145
146146
147147 @Verifier(tx)
148148 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
149149

github/deemru/w8io/026f985 
47.22 ms