tx · 8RGgGzTF7cdUzHHnY5L9qACSnGGKCaJvDYR5CkdU8PL6 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx: -0.01000000 Waves 2023.04.06 09:47 [2522346] smart account 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx > SELF 0.00000000 Waves
{ "type": 13, "id": "8RGgGzTF7cdUzHHnY5L9qACSnGGKCaJvDYR5CkdU8PL6", "fee": 1000000, "feeAssetId": null, "timestamp": 1680763752604, "version": 2, "chainId": 84, "sender": "3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx", "senderPublicKey": "DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx", "proofs": [ "27vJwm84txw3MctQ3bzSKJpMW5pQMqyrLxaCrCMMG7CHeF1P7wSuAozwSG238NkSuGJhkLn4fngMvV2ehBFQhVYi" ], "script": "base64:BgIsCAISBwoFCAgIAQgSBwoFCAgICAISBgoECAgICBIDCgEIEgMKAQgSBAoCCAgMAAlzZXBhcmF0b3ICAV8ABGtCdXkCA2J1eQAGa1ByaWNlAgVwcmljZQAFa1NlbGwCBHNlbGwAEm1heEF1Y3Rpb25EdXJhdGlvbgAeAAV0ZWFtcwEghWOVo/OIjrDeDBeOCE6/mj+SuybbOuh2jhbcFCIqSH4ABVdBVkVTAQAABGtCaWQCA2JpZAAGcGF1c2VkBgAMc3RhdHVzRm9yTkZUCQCWCgQCBE9QRU4CBkNMT1NFRAIIUkVXQVJERUQCCENBTkNFTEVEAAtkQXBwQWRkcmVzcwEaAVRKuE9s3sLak+30julKNvjVT3+V1VVbXaABBWlzTmZ0AQdhc3NldElkBAckbWF0Y2gwCQDsBwEFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIFQXNzZXQEBXRva2VuBQckbWF0Y2gwAwMJAAACCAUFdG9rZW4IZGVjaW1hbHMAAAkAAAIIBQV0b2tlbghxdWFudGl0eQABBwkAAAIIBQV0b2tlbgpyZWlzc3VhYmxlBwcHBgFpAQph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dGlvbklkAgdfbmZ0X2lkBQliaWRGb3JORlQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQlhdWN0aW9uSWQCHF9iaWRkaW5nX3ByaWNlX3JlZnVuZF9hbW91bnQFCGJpZFByaWNlCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgkBDXBhcnNlSW50VmFsdWUBBQhiaWRQcmljZQUEdW5pdAUDbmlsBQNuaWwAxY/BQw==", "height": 2522346, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3UcBA4GZkzCWeY8ohmesPfm1Yv9s7DKnzLtPyc6MNiER Next: F2YxQXMvHWoFfFFeijAUD8j8iCHeaikP2A66BcD6nFYP Diff:
Old | New | Differences | |
---|---|---|---|
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(i) | |
138 | - | func withdrawMoney ( | |
138 | + | func withdrawMoney (auctionId,current_currency) = { | |
139 | 139 | let caller = i.caller.bytes | |
140 | 140 | let asimiString = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
141 | 141 | let txId = toBase58String(i.transactionId) | |
142 | 142 | let amountUnit = fromBase58String(current_currency) | |
143 | - | let bidPrice = getStringValue(this, ( | |
144 | - | let asBidder = getStringValue(this, ( | |
145 | - | let bidForNFT = getStringValue(this, ( | |
143 | + | let bidPrice = getStringValue(this, (auctionId + "_highest_bid")) | |
144 | + | let asBidder = getStringValue(this, (auctionId + "_winner")) | |
145 | + | let bidForNFT = getStringValue(this, (auctionId + "_nft_id")) | |
146 | 146 | if ((current_currency == asimiString)) | |
147 | - | then [StringEntry(( | |
147 | + | then [StringEntry((auctionId + "_nft_bid"), "WITHDRAW"), StringEntry((auctionId + "_nft_id"), bidForNFT), StringEntry((auctionId + "_bidding_price_refund_amount"), bidPrice), ScriptTransfer(i.caller, parseIntValue(bidPrice), amountUnit)] | |
148 | 148 | else if ((current_currency == "WAVES")) | |
149 | - | then [StringEntry(( | |
149 | + | then [StringEntry((auctionId + "_nft_bid"), "WITHDRAW"), StringEntry((auctionId + "_nft_id"), bidForNFT), StringEntry((auctionId + "_bidding_price_refund_amount"), bidPrice), ScriptTransfer(i.caller, parseIntValue(bidPrice), unit)] | |
150 | 150 | else nil | |
151 | 151 | } | |
152 | 152 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "_" | |
5 | 5 | ||
6 | 6 | let kBuy = "buy" | |
7 | 7 | ||
8 | 8 | let kPrice = "price" | |
9 | 9 | ||
10 | 10 | let kSell = "sell" | |
11 | 11 | ||
12 | 12 | let maxAuctionDuration = 30 | |
13 | 13 | ||
14 | 14 | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' | |
15 | 15 | ||
16 | 16 | let WAVES = base58'' | |
17 | 17 | ||
18 | 18 | let kBid = "bid" | |
19 | 19 | ||
20 | 20 | let paused = true | |
21 | 21 | ||
22 | 22 | let statusForNFT = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED") | |
23 | 23 | ||
24 | 24 | let dAppAddress = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq' | |
25 | 25 | ||
26 | 26 | func isNft (assetId) = match assetInfo(assetId) { | |
27 | 27 | case token: Asset => | |
28 | 28 | if (if ((token.decimals == 0)) | |
29 | 29 | then (token.quantity == 1) | |
30 | 30 | else false) | |
31 | 31 | then (token.reissuable == false) | |
32 | 32 | else false | |
33 | 33 | case _ => | |
34 | 34 | false | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | @Callable(i) | |
39 | 39 | func addAuction (start,end,startPrice,duration,payment_currency) = { | |
40 | 40 | let txId = toBase58String(i.transactionId) | |
41 | 41 | let nftId = value(i.payments[0].assetId) | |
42 | 42 | let price = value(startPrice) | |
43 | 43 | let endHeight = (lastBlock.height + duration) | |
44 | 44 | let caller = i.caller.bytes | |
45 | 45 | let checkNftAuctioned = match getString(this, (((toBase58String(nftId) + separator) + "nft_status_") + toBase58String(caller))) { | |
46 | 46 | case a: String => | |
47 | 47 | true | |
48 | 48 | case _ => | |
49 | 49 | false | |
50 | 50 | } | |
51 | 51 | if ((checkNftAuctioned == true)) | |
52 | 52 | then throw("Already in auction list") | |
53 | 53 | else if ((duration > maxAuctionDuration)) | |
54 | 54 | then throw(("Duration is too long. Must be less than or equal to 30 " + toString(maxAuctionDuration))) | |
55 | 55 | else if ((i.payments[0].assetId == unit)) | |
56 | 56 | then throw("NFT not attached") | |
57 | 57 | else if ((i.payments[0].assetId == teams)) | |
58 | 58 | then throw("NFT not attached") | |
59 | 59 | 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")] | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | ||
64 | 64 | @Callable(i) | |
65 | 65 | func placeBid (auctionId,nftId,nft_owner,bid_price,current_currency) = { | |
66 | 66 | let txId = toBase58String(i.transactionId) | |
67 | 67 | let caller = i.caller.bytes | |
68 | 68 | let assetId = fromBase58String(nftId) | |
69 | 69 | let tokenType = i.payments[0].assetId | |
70 | 70 | let currentBidPrice = i.payments[0].amount | |
71 | 71 | let getLastWinnerBidPrice = getStringValue(this, (auctionId + "_highest_bid")) | |
72 | 72 | let getPreviousBidderAddress = getString(this, (auctionId + "_previous_bidder")) | |
73 | 73 | let currentBidCount = getStringValue(this, (auctionId + "_bidder_count")) | |
74 | 74 | let getLastWinnerAddress = getStringValue(this, (auctionId + "_winner_of_nft")) | |
75 | 75 | let checkNftAuctioned = getStringValue(this, (auctionId + "_nft_status")) | |
76 | 76 | if ((checkNftAuctioned != "OPEN")) | |
77 | 77 | then throw("Not open for auction") | |
78 | 78 | else if ((parseIntValue(getLastWinnerBidPrice) >= currentBidPrice)) | |
79 | 79 | then throw("Bid is less then starting/highest Bid") | |
80 | 80 | else if ((getLastWinnerBidPrice == "0")) | |
81 | 81 | 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)] | |
82 | 82 | else if ((getLastWinnerBidPrice != "0")) | |
83 | 83 | then [ScriptTransfer(Address(fromBase58String(getLastWinnerAddress)), parseIntValue(getLastWinnerBidPrice), tokenType), StringEntry((txId + "_previous_bid_amount_refund_to_address"), getLastWinnerAddress), StringEntry((txId + "_prevoius_bid_amount_refund"), getLastWinnerBidPrice), StringEntry((auctionId + "_bidder_count"), toString((parseIntValue(currentBidCount) + 1))), StringEntry((auctionId + "_highest_bid"), toString(currentBidPrice)), StringEntry((auctionId + "_winner_of_nft"), toBase58String(i.caller.bytes)), 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)] | |
84 | 84 | else nil | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | ||
89 | 89 | @Callable(i) | |
90 | 90 | func acceptBidOffer (auctionId,nftId,bid_amount_from_user,current_currency) = { | |
91 | 91 | let asimiString = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
92 | 92 | let txId = toBase58String(i.transactionId) | |
93 | 93 | let amountUnit = fromBase58String(current_currency) | |
94 | 94 | let caller = i.caller.bytes | |
95 | 95 | let assetId = fromBase58String(nftId) | |
96 | 96 | let getNftWinningPrice = getStringValue(this, (auctionId + "_highest_bid")) | |
97 | 97 | let getNftWinningamount = ((parseIntValue(getNftWinningPrice) / 1000) * 975) | |
98 | 98 | let platform_fee = ((parseIntValue(getNftWinningPrice) / 1000) * 25) | |
99 | 99 | let getAuctionWinner = getStringValue(this, (auctionId + "_winner_of_nft")) | |
100 | 100 | if ((current_currency == asimiString)) | |
101 | 101 | then [ScriptTransfer(Address(caller), getNftWinningamount, amountUnit), 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")] | |
102 | 102 | else if ((current_currency == "WAVES")) | |
103 | 103 | then [ScriptTransfer(Address(caller), getNftWinningamount, 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")] | |
104 | 104 | else nil | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | ||
109 | 109 | @Callable(i) | |
110 | 110 | func cancelAuction (auctionId) = { | |
111 | 111 | let txId = toBase58String(i.transactionId) | |
112 | 112 | let caller = i.caller.bytes | |
113 | 113 | let auctionStatus = getStringValue(this, (auctionId + "_nft_status")) | |
114 | 114 | let biddingWinner = getStringValue(this, (auctionId + "_winner_of_nft")) | |
115 | 115 | let nftOwner = getStringValue(this, (auctionId + "_nft_owner")) | |
116 | 116 | let nftId = getStringValue(this, (auctionId + "_nft_on_auction")) | |
117 | 117 | let biddingPrice = getStringValue(this, (auctionId + "_highest_bid")) | |
118 | 118 | if ((biddingWinner == "0")) | |
119 | 119 | then [StringEntry(((txId + auctionId) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(nftOwner)), 1, fromBase58String(nftId))] | |
120 | 120 | else if ((biddingWinner != "0")) | |
121 | 121 | then throw("soory you can't cancel it because already auction placed by someone") | |
122 | 122 | else nil | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | ||
127 | 127 | @Callable(i) | |
128 | 128 | func nftback (auctionId) = { | |
129 | 129 | let caller = i.caller.bytes | |
130 | 130 | let nftId = getStringValue(this, (auctionId + "_nft_on_auction")) | |
131 | 131 | let nftOwner = getStringValue(this, (auctionId + "_nft_owner")) | |
132 | 132 | [StringEntry((auctionId + "_nft_status"), "Auction_time over"), ScriptTransfer(Address(fromBase58String(nftOwner)), 1, fromBase58String(nftId))] | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(i) | |
138 | - | func withdrawMoney ( | |
138 | + | func withdrawMoney (auctionId,current_currency) = { | |
139 | 139 | let caller = i.caller.bytes | |
140 | 140 | let asimiString = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
141 | 141 | let txId = toBase58String(i.transactionId) | |
142 | 142 | let amountUnit = fromBase58String(current_currency) | |
143 | - | let bidPrice = getStringValue(this, ( | |
144 | - | let asBidder = getStringValue(this, ( | |
145 | - | let bidForNFT = getStringValue(this, ( | |
143 | + | let bidPrice = getStringValue(this, (auctionId + "_highest_bid")) | |
144 | + | let asBidder = getStringValue(this, (auctionId + "_winner")) | |
145 | + | let bidForNFT = getStringValue(this, (auctionId + "_nft_id")) | |
146 | 146 | if ((current_currency == asimiString)) | |
147 | - | then [StringEntry(( | |
147 | + | then [StringEntry((auctionId + "_nft_bid"), "WITHDRAW"), StringEntry((auctionId + "_nft_id"), bidForNFT), StringEntry((auctionId + "_bidding_price_refund_amount"), bidPrice), ScriptTransfer(i.caller, parseIntValue(bidPrice), amountUnit)] | |
148 | 148 | else if ((current_currency == "WAVES")) | |
149 | - | then [StringEntry(( | |
149 | + | then [StringEntry((auctionId + "_nft_bid"), "WITHDRAW"), StringEntry((auctionId + "_nft_id"), bidForNFT), StringEntry((auctionId + "_bidding_price_refund_amount"), bidPrice), ScriptTransfer(i.caller, parseIntValue(bidPrice), unit)] | |
150 | 150 | else nil | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 |
github/deemru/w8io/026f985 75.27 ms ◑