tx · Eh8Ym5XHkV4nUmudSuXA8424VSn3aRWVbMGnP6RNzfQx 3MyJLBd4WWTxpvMiist7PboYgjipbCBR8T3: -0.05000000 Waves 2022.03.01 04:24 [1944234] smart account 3MyJLBd4WWTxpvMiist7PboYgjipbCBR8T3 > SELF 0.00000000 Waves
{ "type": 13, "id": "Eh8Ym5XHkV4nUmudSuXA8424VSn3aRWVbMGnP6RNzfQx", "fee": 5000000, "feeAssetId": null, "timestamp": 1646097865650, "version": 2, "chainId": 84, "sender": "3MyJLBd4WWTxpvMiist7PboYgjipbCBR8T3", "senderPublicKey": "JbbExtWSdo3zyMwPZhGn1hPkfJaL2hoP1C7RxB3wt4H", "proofs": [ "3A7TMMJm5DBosv6hWPSaKZWmr9av1Me2JSY1JNNfxTZNjUMZQpidrc6g5d4xVP9Lwf5i6bfTqpgHdovov3gs4Ry2" ], "script": "base64:AAIFAAAAAAAAAC4IAhIDCgEIEgQKAggIEgQKAgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgQKAggIAAAAGwAAAAATTkZUSXNzdWVyZmVlUGVyY2VudAAAAAAAAAAAAwAAAAANc2NvbmV4RGFwcEtleQIAAAAKc2NvbmV4RGFwcAAAAAAJb3JhY2xlS2V5AgAAAAlvcmFjbGVLZXkBAAAABmdldFN0cgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAAAAAAABm9yYWNsZQkBAAAABmdldFN0cgAAAAEFAAAACW9yYWNsZUtleQAAAAAJb3JhY2xlRmVlCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQmAAAAAQUAAAAGb3JhY2xlAgAAACtDb2xsZWN0aW9ucyBkYXBwIGRvZXNudCBoYXZlIG9yYWNsZSBkZWZpbmVkAAAAAApzY29uZXhEYXBwCQEAAAARQG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25pbAUAAAADbmlsAwkAAAAAAAACBQAAAANyZXMFAAAAA3JlcwUAAAAGYnV5UmVzCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5XjpTlA==", "height": 1944234, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: YRkdjzXh6nyceJz1JsuXfnoMbEnAzwhSm4fYDoQ1aGj Next: none Diff:
Old | New | Differences | |
---|---|---|---|
139 | 139 | ||
140 | 140 | ||
141 | 141 | @Callable(i) | |
142 | + | func transferNft (nftID,receiveNFT) = if ((i.caller == this)) | |
143 | + | then [ScriptTransfer(addressFromStringValue(receiveNFT), 1, fromBase58String(nftID))] | |
144 | + | else throw("Only the dApp can transfer NFT's") | |
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | @Callable(i) | |
142 | 149 | func initAuction (startPrice,auctionType) = { | |
143 | 150 | let auctionId = toBase58String(i.transactionId) | |
144 | 151 | if ((size(i.payments) == 0)) | |
226 | 233 | let ArtistfeePercent = getArtistRoyalty(ArtistAddress, artId) | |
227 | 234 | if ((ArtistAddress == "")) | |
228 | 235 | then { | |
229 | - | let buyRes = [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), 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_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(addressFromStringValue(auctionOwner), fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, ArtistfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))] | |
230 | - | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, feeReceiver], nil) | |
231 | - | if ((res == res)) | |
232 | - | then buyRes | |
236 | + | let transferres = invoke(this, "transferNft", [assetId, bidAuthor], nil) | |
237 | + | if ((transferres == transferres)) | |
238 | + | then { | |
239 | + | let buyRes = [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), 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_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(addressFromStringValue(auctionOwner), fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, ArtistfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), USDNAssetId)] | |
240 | + | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, feeReceiver], nil) | |
241 | + | if ((res == res)) | |
242 | + | then buyRes | |
243 | + | else throw("Strict value is not equal to itself.") | |
244 | + | } | |
233 | 245 | else throw("Strict value is not equal to itself.") | |
234 | 246 | } | |
235 | 247 | else { | |
236 | - | let buyRes = [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), 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_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(addressFromStringValue(auctionOwner), fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), USDNAssetId), ScriptTransfer(Address(fromBase58String(ArtistAddress)), fraction(bidAmount, ArtistfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))] | |
237 | - | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, ArtistAddress], nil) | |
238 | - | if ((res == res)) | |
239 | - | then buyRes | |
248 | + | let transferres = invoke(this, "transferNft", [assetId, bidAuthor], nil) | |
249 | + | if ((transferres == transferres)) | |
250 | + | then { | |
251 | + | let buyRes = [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), 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_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(addressFromStringValue(auctionOwner), fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), USDNAssetId), ScriptTransfer(Address(fromBase58String(ArtistAddress)), fraction(bidAmount, ArtistfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), USDNAssetId)] | |
252 | + | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, ArtistAddress], nil) | |
253 | + | if ((res == res)) | |
254 | + | then buyRes | |
255 | + | else throw("Strict value is not equal to itself.") | |
256 | + | } | |
240 | 257 | else throw("Strict value is not equal to itself.") | |
241 | 258 | } | |
242 | 259 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let NFTIssuerfeePercent = 3 | |
5 | 5 | ||
6 | 6 | let sconexDappKey = "sconexDapp" | |
7 | 7 | ||
8 | 8 | let oracleKey = "oracleKey" | |
9 | 9 | ||
10 | 10 | func getStr (key) = match getString(this, key) { | |
11 | 11 | case b: String => | |
12 | 12 | b | |
13 | 13 | case _ => | |
14 | 14 | "" | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | let oracle = getStr(oracleKey) | |
19 | 19 | ||
20 | 20 | let oracleFee = valueOrErrorMessage(addressFromString(oracle), "Collections dapp doesnt have oracle defined") | |
21 | 21 | ||
22 | 22 | let sconexDapp = getStringValue(oracleFee, sconexDappKey) | |
23 | 23 | ||
24 | 24 | let collectionsDapp = valueOrErrorMessage(getString(oracleFee, "collectionsDapp"), "collectionDapp not found") | |
25 | 25 | ||
26 | 26 | let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found") | |
27 | 27 | ||
28 | 28 | let certDapp = valueOrErrorMessage(getString(oracleFee, "certDapp"), "certDapp not found") | |
29 | 29 | ||
30 | 30 | let userDapp = value(addressFromString(valueOrErrorMessage(getString(oracleFee, "userDapp"), "userdapp not found"))) | |
31 | 31 | ||
32 | 32 | let USDNAssetId = fromBase58String(getStringValue(oracleFee, "USDNAssetId")) | |
33 | 33 | ||
34 | 34 | let auctionType1 = "BIDTYPE" | |
35 | 35 | ||
36 | 36 | let auctionType2 = "TRADITIONAL" | |
37 | 37 | ||
38 | 38 | let auctionType3 = "DIRECT" | |
39 | 39 | ||
40 | 40 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func keyAuctionType (auctionId) = (("auction_" + auctionId) + "_actionType") | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func keyRoyalty (caller,artId) = ((("art_royalty_" + artId) + "_") + caller) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func getStrfromMain (key) = match getString(addressFromStringValue(sconexDapp), key) { | |
50 | 50 | case b: String => | |
51 | 51 | b | |
52 | 52 | case _ => | |
53 | 53 | "" | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func getIntfromMain (key) = match getInteger(addressFromStringValue(sconexDapp), key) { | |
58 | 58 | case b: Int => | |
59 | 59 | b | |
60 | 60 | case _ => | |
61 | 61 | 0 | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func tryGetInteger (key) = { | |
66 | 66 | let val = match getInteger(this, key) { | |
67 | 67 | case b: Int => | |
68 | 68 | b | |
69 | 69 | case _ => | |
70 | 70 | 0 | |
71 | 71 | } | |
72 | 72 | val | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func tryGetString (key) = { | |
77 | 77 | let val = match getString(this, key) { | |
78 | 78 | case b: String => | |
79 | 79 | b | |
80 | 80 | case _ => | |
81 | 81 | "" | |
82 | 82 | } | |
83 | 83 | val | |
84 | 84 | } | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func getNFTIssuer (assetId) = { | |
88 | 88 | let myassetinfo = value(assetInfo(assetId)) | |
89 | 89 | if ((myassetinfo.issuer == addressFromStringValue(sconexDapp))) | |
90 | 90 | then "true" | |
91 | 91 | else "" | |
92 | 92 | } | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getNFTArtist (assetId) = { | |
96 | 96 | let ArtistAddress = match getString(addressFromStringValue(sconexDapp), ("nft_issued_" + assetId)) { | |
97 | 97 | case b: String => | |
98 | 98 | b | |
99 | 99 | case _ => | |
100 | 100 | "" | |
101 | 101 | } | |
102 | 102 | ArtistAddress | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func getArtId (assetId) = { | |
107 | 107 | let ArtistAddress = match getString(addressFromStringValue(sconexDapp), ("nft_artId_" + assetId)) { | |
108 | 108 | case b: String => | |
109 | 109 | b | |
110 | 110 | case _ => | |
111 | 111 | "" | |
112 | 112 | } | |
113 | 113 | ArtistAddress | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func getArtistRoyalty (artist,artId) = { | |
118 | 118 | let royaltyVal = getIntfromMain(keyRoyalty(artist, artId)) | |
119 | 119 | if (if ((royaltyVal > 0)) | |
120 | 120 | then (85 >= royaltyVal) | |
121 | 121 | else false) | |
122 | 122 | then throw("Artist royalty incorrect") | |
123 | 123 | else royaltyVal | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func acceptedAssetIds (assetId) = if ((assetId != toBase58String(USDNAssetId))) | |
128 | 128 | then throw("Only USDN accepted") | |
129 | 129 | else true | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(i) | |
133 | 133 | func initDapp (dappKey) = if ((i.caller != this)) | |
134 | 134 | then throw("You cannot do this action") | |
135 | 135 | else if ((oracle != "")) | |
136 | 136 | then throw("oracle already set, you can't override!") | |
137 | 137 | else [StringEntry(oracleKey, dappKey)] | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | ||
141 | 141 | @Callable(i) | |
142 | + | func transferNft (nftID,receiveNFT) = if ((i.caller == this)) | |
143 | + | then [ScriptTransfer(addressFromStringValue(receiveNFT), 1, fromBase58String(nftID))] | |
144 | + | else throw("Only the dApp can transfer NFT's") | |
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | @Callable(i) | |
142 | 149 | func initAuction (startPrice,auctionType) = { | |
143 | 150 | let auctionId = toBase58String(i.transactionId) | |
144 | 151 | if ((size(i.payments) == 0)) | |
145 | 152 | then throw("No payment attached") | |
146 | 153 | else if ((size(i.payments) >= 2)) | |
147 | 154 | then throw("Too many payments attached") | |
148 | 155 | else { | |
149 | 156 | let pmt = value(i.payments[0]) | |
150 | 157 | let assetId = value(pmt.assetId) | |
151 | 158 | let asset = getNFTIssuer(assetId) | |
152 | 159 | if ((asset == "")) | |
153 | 160 | then throw("You can only sell an NFT created on SCONE Marketplace") | |
154 | 161 | else if (!(containsElement([auctionType1, auctionType3], auctionType))) | |
155 | 162 | then throw("We don't know this auction type") | |
156 | 163 | 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(keyAuctionType(auctionId), auctionType), StringEntry((((("address_" + toString(i.caller)) + "_auction_") + auctionId) + "_lockedNFT"), toBase58String(assetId))] | |
157 | 164 | } | |
158 | 165 | } | |
159 | 166 | ||
160 | 167 | ||
161 | 168 | ||
162 | 169 | @Callable(i) | |
163 | 170 | func cancelAuction (auctionId) = { | |
164 | 171 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
165 | 172 | if ((toString(i.caller) != auctionOwner)) | |
166 | 173 | then throw("Only allowed to auction owner") | |
167 | 174 | else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open")) | |
168 | 175 | then throw("auction is close") | |
169 | 176 | else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))] | |
170 | 177 | } | |
171 | 178 | ||
172 | 179 | ||
173 | 180 | ||
174 | 181 | @Callable(i) | |
175 | 182 | func placeBid (auctionId) = { | |
176 | 183 | let pmt = value(i.payments[0]) | |
177 | 184 | let amount = pmt.amount | |
178 | 185 | let bidId = toBase58String(i.transactionId) | |
179 | 186 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
180 | 187 | let PayAssetId = if (!(isDefined(pmt.assetId))) | |
181 | 188 | then throw("Only USDN is accepted!") | |
182 | 189 | else toBase58String(value(pmt.assetId)) | |
183 | 190 | if (!(acceptedAssetIds(PayAssetId))) | |
184 | 191 | then throw("Auction does only support USDN payments") | |
185 | 192 | else { | |
186 | 193 | let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice")) | |
187 | 194 | if ((minPrice > amount)) | |
188 | 195 | then throw(("The minimal initial price is set as " + toString(minPrice))) | |
189 | 196 | else { | |
190 | 197 | let auctionType = getStringByKey(keyAuctionType(auctionId)) | |
191 | 198 | if ((auctionType == auctionType1)) | |
192 | 199 | then [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")] | |
193 | 200 | else throw("Not a BidType auction!") | |
194 | 201 | } | |
195 | 202 | } | |
196 | 203 | } | |
197 | 204 | ||
198 | 205 | ||
199 | 206 | ||
200 | 207 | @Callable(i) | |
201 | 208 | func directBuy (auctionId) = { | |
202 | 209 | let pmt = value(i.payments[0]) | |
203 | 210 | let amount = pmt.amount | |
204 | 211 | let bidId = toBase58String(i.transactionId) | |
205 | 212 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
206 | 213 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
207 | 214 | let bidAmount = amount | |
208 | 215 | let bidAuthor = toString(i.caller) | |
209 | 216 | let PayAssetId = if (!(isDefined(pmt.assetId))) | |
210 | 217 | then throw("Only USDN is accepted!") | |
211 | 218 | else toBase58String(value(pmt.assetId)) | |
212 | 219 | if (!(acceptedAssetIds(PayAssetId))) | |
213 | 220 | then throw("Auction does only support USDN payments") | |
214 | 221 | else { | |
215 | 222 | let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice")) | |
216 | 223 | if ((minPrice != amount)) | |
217 | 224 | then throw(("The exact price is set as " + toString(minPrice))) | |
218 | 225 | else { | |
219 | 226 | let auctionType = getStringByKey(keyAuctionType(auctionId)) | |
220 | 227 | if ((auctionType == auctionType3)) | |
221 | 228 | then { | |
222 | 229 | let recordPrice = tryGetInteger((assetId + "_recordPrice")) | |
223 | 230 | let newRecordPrice = max([recordPrice, bidAmount]) | |
224 | 231 | let ArtistAddress = getNFTArtist(assetId) | |
225 | 232 | let artId = getArtId(assetId) | |
226 | 233 | let ArtistfeePercent = getArtistRoyalty(ArtistAddress, artId) | |
227 | 234 | if ((ArtistAddress == "")) | |
228 | 235 | then { | |
229 | - | let buyRes = [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), 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_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(addressFromStringValue(auctionOwner), fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, ArtistfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))] | |
230 | - | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, feeReceiver], nil) | |
231 | - | if ((res == res)) | |
232 | - | then buyRes | |
236 | + | let transferres = invoke(this, "transferNft", [assetId, bidAuthor], nil) | |
237 | + | if ((transferres == transferres)) | |
238 | + | then { | |
239 | + | let buyRes = [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), 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_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(addressFromStringValue(auctionOwner), fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, ArtistfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), USDNAssetId)] | |
240 | + | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, feeReceiver], nil) | |
241 | + | if ((res == res)) | |
242 | + | then buyRes | |
243 | + | else throw("Strict value is not equal to itself.") | |
244 | + | } | |
233 | 245 | else throw("Strict value is not equal to itself.") | |
234 | 246 | } | |
235 | 247 | else { | |
236 | - | let buyRes = [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), 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_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(addressFromStringValue(auctionOwner), fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), USDNAssetId), ScriptTransfer(Address(fromBase58String(ArtistAddress)), fraction(bidAmount, ArtistfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))] | |
237 | - | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, ArtistAddress], nil) | |
238 | - | if ((res == res)) | |
239 | - | then buyRes | |
248 | + | let transferres = invoke(this, "transferNft", [assetId, bidAuthor], nil) | |
249 | + | if ((transferres == transferres)) | |
250 | + | then { | |
251 | + | let buyRes = [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), 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_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(addressFromStringValue(auctionOwner), fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), USDNAssetId), ScriptTransfer(Address(fromBase58String(ArtistAddress)), fraction(bidAmount, ArtistfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), USDNAssetId)] | |
252 | + | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, ArtistAddress], nil) | |
253 | + | if ((res == res)) | |
254 | + | then buyRes | |
255 | + | else throw("Strict value is not equal to itself.") | |
256 | + | } | |
240 | 257 | else throw("Strict value is not equal to itself.") | |
241 | 258 | } | |
242 | 259 | } | |
243 | 260 | else throw("Not a directBuy auction!") | |
244 | 261 | } | |
245 | 262 | } | |
246 | 263 | } | |
247 | 264 | ||
248 | 265 | ||
249 | 266 | ||
250 | 267 | @Callable(i) | |
251 | 268 | func cancelBid (auctionId,bidId) = { | |
252 | 269 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
253 | 270 | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
254 | 271 | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
255 | 272 | if (if ((toString(i.caller) != bidAuthor)) | |
256 | 273 | then (i.caller != this) | |
257 | 274 | else false) | |
258 | 275 | then throw("Only allowed to the bid author or admin") | |
259 | 276 | else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open")) | |
260 | 277 | then throw("bid is not open") | |
261 | 278 | 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, USDNAssetId)] | |
262 | 279 | } | |
263 | 280 | ||
264 | 281 | ||
265 | 282 | ||
266 | 283 | @Callable(i) | |
267 | 284 | func acceptBid (auctionId,bidId) = { | |
268 | 285 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
269 | 286 | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
270 | 287 | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
271 | 288 | let bidStatus = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) | |
272 | 289 | let assetId = tryGetString((("auction_" + auctionId) + "_assetId")) | |
273 | 290 | if ((toString(i.caller) != auctionOwner)) | |
274 | 291 | then throw("Only allowed to auction owner") | |
275 | 292 | else if ((bidStatus != "open")) | |
276 | 293 | then throw("Bid was cancelled and cannot be accepted") | |
277 | 294 | else { | |
278 | 295 | let recordPrice = tryGetInteger((assetId + "_recordPrice")) | |
279 | 296 | let newRecordPrice = max([recordPrice, bidAmount]) | |
280 | 297 | let ArtistAddress = getNFTArtist(assetId) | |
281 | 298 | let artId = getArtId(assetId) | |
282 | 299 | let ArtistfeePercent = getArtistRoyalty(ArtistAddress, artId) | |
283 | 300 | if ((ArtistAddress == "")) | |
284 | 301 | then { | |
285 | 302 | let buyRes = [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), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, ArtistfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))] | |
286 | 303 | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, feeReceiver], nil) | |
287 | 304 | if ((res == res)) | |
288 | 305 | then buyRes | |
289 | 306 | else throw("Strict value is not equal to itself.") | |
290 | 307 | } | |
291 | 308 | else { | |
292 | 309 | let buyRes = [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), USDNAssetId), ScriptTransfer(Address(fromBase58String(ArtistAddress)), fraction(bidAmount, ArtistfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(feeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), USDNAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))] | |
293 | 310 | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, ArtistAddress], nil) | |
294 | 311 | if ((res == res)) | |
295 | 312 | then buyRes | |
296 | 313 | else throw("Strict value is not equal to itself.") | |
297 | 314 | } | |
298 | 315 | } | |
299 | 316 | } | |
300 | 317 | ||
301 | 318 | ||
302 | 319 | @Verifier(tx) | |
303 | 320 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
304 | 321 |
github/deemru/w8io/169f3d6 70.57 ms ◑