tx · 55TiXYxzJ1pKoWijEsujaW7ReEtt34xdjhyZyUtQGzet

3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw:  -0.01000000 Waves

2023.01.23 12:25 [2417406] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves

{ "type": 13, "id": "55TiXYxzJ1pKoWijEsujaW7ReEtt34xdjhyZyUtQGzet", "fee": 1000000, "feeAssetId": null, "timestamp": 1674466132846, "version": 2, "chainId": 84, "sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw", "senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN", "proofs": [ "3f6BAzTxixXpP4ny15QGLKMUhzYmTpxwsgTzVfBKa91qpYb1CT99np12VaocLov49ex9vzzDppzBXU9UfMNU58AB" ], "script": "base64:BgJGCAISCwoJCAgICAgBCAgIEgMKAQgSBAoCCAgSBgoECAgIARIGCgQICAgIEgUKAwgIARIDCgEIEgMKAQgSBAoCCAgSAwoBCAkACXNlcGFyYXRvcgIBXwAEa0J1eQIDYnV5AAZrUHJpY2UCBXByaWNlAAVrU2VsbAIEc2VsbAASbWF4QXVjdGlvbkR1cmF0aW9uAAcABGtCaWQCA2JpZAAMc3RhdHVzRm9yTkZUCQCWCgQCBE9QRU4CBkNMT1NFRAIIUkVXQVJERUQCCENBTkNFTEVEAAtkQXBwQWRkcmVzcwEaAVRKuE9s3sLak+30julKNvjVT3+V1VVbXaABBWlzTmZ0AQdhc3NldElkBAckbWF0Y2gwCQDsBwEFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIFQXNzZXQEBXRva2VuBQckbWF0Y2gwAwMJAAACCAUFdG9rZW4IZGVjaW1hbHMAAAkAAAIIBQV0b2tlbghxdWFudGl0eQABBwkAAAIIBQV0b2tlbgpyZWlzc3VhYmxlBwcHCgFpAQljcmVhdGVOZnQJCG5mdF9uYW1lCW5mdF9vd25lcg9uZnRfZEFw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QUGY2FsbGVyAgxfdHJhbnNmZXJfdG8FDXJlY2VwaWVudEFkZHIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBB0FkZHJlc3MBBQdyZWNpdmVyBQZhbW91bnQFBHVuaXQFA25pbAFpAQd0ZXN0QmlkAQRkYXRhCQDMCAIJAQtTdHJpbmdFbnRyeQICOEU4a2tGQllDeTQ0SkphcTZwQVo2S2l6c3VSZXNpNVVLTmhiRDFXTlp3aGhZX2hpZ2hlc3RfYmlkAgEwBQNuaWwAn9VMUA==", "height": 2417406, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BU4SFUbBsmBvNuvSNzRSgNazRWmPsrtFTnu3WMb9ZUTe Next: DqgRsGy2CLr6C9LSegXXpQjGAQqg2w5M7MJhqQ8dshdG Diff:
OldNewDifferences
4848 let amount0 = $t017921877._2
4949 if (!(isNft(token0)))
5050 then throw("Token is not NFT")
51- else [StringEntry(((kPrice + separator) + toBase58String(value(i.payments[0].assetId))), price), StringEntry(((toString(i.caller) + separator) + kSell), ((toBase58String(token0) + separator) + toString(amount0)))]
51+ else if ((kPrice != "WAVES"))
52+ then throw("false")
53+ else if ((kPrice != "ASIMI"))
54+ then throw("false")
55+ else [StringEntry(((kPrice + separator) + toBase58String(value(i.payments[0].assetId))), price), StringEntry(((toString(i.caller) + separator) + kSell), ((toBase58String(token0) + separator) + toString(amount0)))]
5256 }
5357
5458
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "_"
55
66 let kBuy = "buy"
77
88 let kPrice = "price"
99
1010 let kSell = "sell"
1111
1212 let maxAuctionDuration = 7
1313
1414 let kBid = "bid"
1515
1616 let statusForNFT = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED")
1717
1818 let dAppAddress = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq'
1919
2020 func isNft (assetId) = match assetInfo(assetId) {
2121 case token: Asset =>
2222 if (if ((token.decimals == 0))
2323 then (token.quantity == 1)
2424 else false)
2525 then (token.reissuable == false)
2626 else false
2727 case _ =>
2828 false
2929 }
3030
3131
3232 @Callable(i)
3333 func createNft (nft_name,nft_owner,nft_dAppAddress,nft_type,nft_tags,nft_selling_price,nft_description,nft_onSell,nft_data) = {
3434 let newToken = Issue(nft_name, nft_description, 1, 0, false)
3535 let issueId = calculateAssetId(newToken)
3636 let txId = i.transactionId
3737 [newToken, ScriptTransfer(i.caller, 1, issueId), StringEntry(((toBase58String(issueId) + separator) + "Owner"), toString(i.caller)), StringEntry(((toBase58String(issueId) + separator) + "nft_type"), nft_type), StringEntry(((toBase58String(issueId) + separator) + "nft_tags"), nft_tags), StringEntry(((toBase58String(issueId) + separator) + "nft_dAppAddress"), nft_dAppAddress), IntegerEntry(((toBase58String(issueId) + separator) + "nft_selling_price"), nft_selling_price), StringEntry(((toBase58String(issueId) + separator) + "nft_onSell"), nft_onSell), StringEntry(((toBase58String(issueId) + separator) + "nft_data"), nft_data), StringEntry(((toBase58String(txId) + separator) + "issue_nft"), toBase58String(issueId))]
3838 }
3939
4040
4141
4242 @Callable(i)
4343 func sellNFT (price) = {
4444 let txId = i.transactionId
4545 let seller = i.caller.bytes
4646 let $t017921877 = $Tuple2(value(i.payments[0].assetId), value(i.payments[0].amount))
4747 let token0 = $t017921877._1
4848 let amount0 = $t017921877._2
4949 if (!(isNft(token0)))
5050 then throw("Token is not NFT")
51- else [StringEntry(((kPrice + separator) + toBase58String(value(i.payments[0].assetId))), price), StringEntry(((toString(i.caller) + separator) + kSell), ((toBase58String(token0) + separator) + toString(amount0)))]
51+ else if ((kPrice != "WAVES"))
52+ then throw("false")
53+ else if ((kPrice != "ASIMI"))
54+ then throw("false")
55+ else [StringEntry(((kPrice + separator) + toBase58String(value(i.payments[0].assetId))), price), StringEntry(((toString(i.caller) + separator) + kSell), ((toBase58String(token0) + separator) + toString(amount0)))]
5256 }
5357
5458
5559
5660 @Callable(i)
5761 func buyNFT (nftID,current_nft_owner) = {
5862 let assetId = fromBase58String(nftID)
5963 let amount = value(i.payments[0].amount)
6064 let checkOwnerIsSame = match getString(this, (("nft_" + current_nft_owner) + "_owner")) {
6165 case a: String =>
6266 a
6367 case _ =>
6468 false
6569 }
6670 let price = getStringValue(((((kPrice + separator) + nftID) + "_") + current_nft_owner))
6771 if ((i.payments[0].assetId != unit))
6872 then throw("Only pay in ASIMI or WAVES accepted")
6973 else if ((current_nft_owner == toString(i.caller)))
7074 then throw("current Owner of NFT not able to purchase")
7175 else [ScriptTransfer(i.caller, 1, assetId), ScriptTransfer(Address(fromBase58String(current_nft_owner)), amount, unit), StringEntry(((toString(i.caller) + separator) + kBuy), ((nftID + separator) + toString(amount))), DeleteEntry((("nft_" + current_nft_owner) + "_owner")), StringEntry((("nft_" + current_nft_owner) + "_owner"), toString(i.caller)), StringEntry(((nftID + separator) + "_owner"), toString(i.caller))]
7276 }
7377
7478
7579
7680 @Callable(i)
7781 func addAuction (start,end,startPrice,duration) = {
7882 let txId = toBase58String(i.transactionId)
7983 let nftId = value(i.payments[0].assetId)
8084 let price = value(startPrice)
8185 let endHeight = (lastBlock.height + duration)
8286 let caller = i.caller.bytes
8387 let checkNftAuctioned = match getString(this, (((toBase58String(nftId) + separator) + "nft_status_") + toBase58String(caller))) {
8488 case a: String =>
8589 true
8690 case _ =>
8791 false
8892 }
8993 if ((i.payments[0].assetId == unit))
9094 then throw("NFT not attached")
9195 else if ((checkNftAuctioned == true))
9296 then throw("Already in auction list")
9397 else if ((duration > maxAuctionDuration))
9498 then throw(("Duration is too long. Must be less than or equal to 7 " + toString(maxAuctionDuration)))
9599 else [StringEntry(((txId + "_nft_start_auction_date_") + toBase58String(caller)), start), StringEntry(((txId + "_nft_end_auction_date_") + toBase58String(caller)), end), StringEntry((txId + "_nft_start_price"), startPrice), StringEntry((txId + "_nft_owner"), toString(i.caller)), StringEntry((txId + "_nft_on_auction"), toBase58String(nftId)), StringEntry((txId + "_previous_bidder"), "none"), StringEntry((txId + "_highest_bid"), "0"), StringEntry((txId + "_winner_of_nft"), "0"), StringEntry((txId + "_bidder_count"), "0"), StringEntry((txId + "_nft_status"), "OPEN")]
96100 }
97101
98102
99103
100104 @Callable(i)
101105 func placeBid (auctionId,nftId,nft_owner,bid_price) = {
102106 let txId = toBase58String(i.transactionId)
103107 let caller = i.caller.bytes
104108 let assetId = fromBase58String(nftId)
105109 let currentBidPrice = i.payments[0].amount
106110 let getLastWinnerBidPrice = getStringValue(this, (auctionId + "_highest_bid"))
107111 let getPreviousBidderAddress = getString(this, (auctionId + "_previous_bidder"))
108112 let currentBidCount = getStringValue(this, (auctionId + "_bidder_count"))
109113 let getLastWinnerAddress = getStringValue(this, (auctionId + "_winner_of_nft"))
110114 let checkNftAuctioned = getStringValue(this, (auctionId + "_nft_status"))
111115 if ((i.payments[0].assetId != unit))
112116 then throw("Pay in waves")
113117 else if ((checkNftAuctioned != "OPEN"))
114118 then throw("Not open for auction")
115119 else if ((parseIntValue(getLastWinnerBidPrice) >= currentBidPrice))
116120 then throw("Bid is less then starting/highest Bid")
117121 else if ((getLastWinnerBidPrice == "0"))
118122 then [StringEntry((auctionId + "_highest_bid"), toString(currentBidPrice)), StringEntry((auctionId + "_winner_of_nft"), toBase58String(i.caller.bytes)), StringEntry((auctionId + "_bidder_count"), toString((parseIntValue(currentBidCount) + 1))), StringEntry((auctionId + "_nft_id"), toBase58String(assetId)), StringEntry((auctionId + "_nft_owner"), nft_owner), StringEntry((((txId + "_") + auctionId) + "_highest_bid"), toString(currentBidPrice)), StringEntry((((txId + "_") + auctionId) + "_winner"), toBase58String(i.caller.bytes)), StringEntry((((txId + "_") + auctionId) + "_bidder_count"), toString((parseIntValue(currentBidCount) + 1))), StringEntry((((txId + "_") + auctionId) + "_nft_id"), toBase58String(assetId)), StringEntry((((txId + "_") + auctionId) + "_nft_owner"), nft_owner), StringEntry((txId + "_bid_for_nft_by"), toBase58String(caller)), StringEntry((txId + "_bid_price_place"), bid_price), StringEntry((txId + "_previous_bid_amount_refund_to_address"), getLastWinnerAddress), StringEntry((txId + "_prevoius_bid_amount_refund"), getLastWinnerBidPrice)]
119123 else [StringEntry((auctionId + "_highest_bid"), toString(currentBidPrice)), StringEntry((auctionId + "_winner_of_nft"), toBase58String(i.caller.bytes)), StringEntry((auctionId + "_bidder_count"), toString((parseIntValue(currentBidCount) + 1))), StringEntry((auctionId + "_nft_id"), toBase58String(assetId)), StringEntry((auctionId + "_nft_owner"), nft_owner), StringEntry((((txId + "_") + auctionId) + "_highest_bid"), toString(currentBidPrice)), StringEntry((((txId + "_") + auctionId) + "_winner"), toBase58String(i.caller.bytes)), StringEntry((((txId + "_") + auctionId) + "_bidder_count"), toString((parseIntValue(currentBidCount) + 1))), StringEntry((((txId + "_") + auctionId) + "_nft_id"), toBase58String(assetId)), StringEntry((((txId + "_") + auctionId) + "_nft_owner"), nft_owner), StringEntry((txId + "_bid_for_nft_by"), toBase58String(caller)), StringEntry((txId + "_bid_price_place"), bid_price), StringEntry((txId + "_previous_bid_amount_refund_to_address"), getLastWinnerAddress), StringEntry((txId + "_prevoius_bid_amount_refund"), getLastWinnerBidPrice), ScriptTransfer(Address(fromBase58String(getLastWinnerAddress)), parseIntValue(getLastWinnerBidPrice), unit)]
120124 }
121125
122126
123127
124128 @Callable(i)
125129 func acceptBidOffer (auctionId,nftId,bid_amount_from_user) = {
126130 let txId = toBase58String(i.transactionId)
127131 let caller = i.caller.bytes
128132 let assetId = fromBase58String(nftId)
129133 let getNftWinningPrice = getStringValue(this, (auctionId + "_highest_bid"))
130134 let getAuctionWinner = getStringValue(this, (auctionId + "_winner_of_nft"))
131135 [ScriptTransfer(Address(caller), parseIntValue(getNftWinningPrice), unit), ScriptTransfer(Address(fromBase58String(getAuctionWinner)), 1, assetId), StringEntry((txId + "_amount_paid_to_owner"), getNftWinningPrice), StringEntry((txId + "_nft_transfer_to"), getAuctionWinner), StringEntry((txId + "_nft_status"), "REWARDED"), StringEntry((auctionId + "_amount_paid_to_owner"), getNftWinningPrice), StringEntry((auctionId + "_nft_transfer_to"), getAuctionWinner), StringEntry((auctionId + "_nft_status"), "REWARDED")]
132136 }
133137
134138
135139
136140 @Callable(i)
137141 func cancelAuction (auctionId) = {
138142 let txId = toBase58String(i.transactionId)
139143 let caller = i.caller.bytes
140144 let auctionStatus = getStringValue(this, (auctionId + "_nft_status"))
141145 let biddingWinner = getStringValue(this, (auctionId + "_winner_of_nft"))
142146 let nftOwner = getStringValue(this, (auctionId + "_nft_owner"))
143147 let nftId = getStringValue(this, (auctionId + "_nft_on_auction"))
144148 let biddingPrice = getStringValue(this, (auctionId + "_highest_bid"))
145149 if ((biddingWinner == "0"))
146150 then [StringEntry(((txId + auctionId) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(nftOwner)), 1, fromBase58String(nftId))]
147151 else [StringEntry((auctionId + "_nft_status"), "CANCELED"), StringEntry((auctionId + "_previous_bid_amount_refund_to_address"), biddingWinner), StringEntry((auctionId + "_prevoius_bid_amount_refund"), biddingPrice), StringEntry((txId + "_nft_status"), "CANCELED"), StringEntry((txId + "_previous_bid_amount_refund_to_address"), biddingWinner), StringEntry((txId + "_prevoius_bid_amount_refund"), biddingPrice), ScriptTransfer(Address(fromBase58String(nftOwner)), 1, fromBase58String(nftId)), ScriptTransfer(Address(fromBase58String(biddingWinner)), parseIntValue(biddingPrice), unit)]
148152 }
149153
150154
151155
152156 @Callable(i)
153157 func withdrawBid (bidTxId) = {
154158 let caller = i.caller.bytes
155159 let bidPrice = getStringValue(this, (bidTxId + "_highest_bid"))
156160 let asBidder = getStringValue(this, (bidTxId + "_winner"))
157161 let bidForNFT = getStringValue(this, (bidTxId + "_nft_id"))
158162 if ((toBase58String(caller) != asBidder))
159163 then throw("No bid")
160164 else [StringEntry((bidTxId + "_nft_bid"), "WITHDRAW"), StringEntry((bidTxId + "_nft_id"), bidForNFT), StringEntry((bidTxId + "_bidding_price_refund_amount"), bidPrice), ScriptTransfer(i.caller, parseIntValue(bidPrice), unit)]
161165 }
162166
163167
164168
165169 @Callable(i)
166170 func manualFundTransfer (recepientAddr,message) = {
167171 let caller = i.caller.bytes
168172 let reciver = fromBase58String(recepientAddr)
169173 let amount = i.payments[0].amount
170174 if ((toString(amount) == ""))
171175 then throw("Payment is not attached or empty")
172176 else [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, unit)]
173177 }
174178
175179
176180
177181 @Callable(i)
178182 func testBid (data) = [StringEntry("E8kkFBYCy44JJaq6pAZ6KizsuResi5UKNhbD1WNZwhhY_highest_bid", "0")]
179183
180184

github/deemru/w8io/026f985 
36.24 ms