tx · CiaCqjWMLMbmVDCs9rQcL57v9TuzQjXp4PZV2GBQ6TMc

3MyafuLWBUqVEv5VcaJJPBVJvTwTxNh4tPX:  -0.01400000 Waves

2022.03.30 18:14 [1986830] smart account 3MyafuLWBUqVEv5VcaJJPBVJvTwTxNh4tPX > SELF 0.00000000 Waves

{ "type": 13, "id": "CiaCqjWMLMbmVDCs9rQcL57v9TuzQjXp4PZV2GBQ6TMc", "fee": 1400000, "feeAssetId": null, "timestamp": 1648653299992, "version": 2, "chainId": 84, "sender": "3MyafuLWBUqVEv5VcaJJPBVJvTwTxNh4tPX", "senderPublicKey": "4cHkGAqfd5S8yGnVB6eHDYTeE5ciLkQ7PuGAXFzjf7z5", "proofs": [ "23UeebHELHR4W8RCSvcosoKFVgprRYjJpDttNY6hbWKTqc9LsCjuxvqDJaWBeXs8cbmPM8hgVifQA4FzVPFm27C3" ], "script": "base64:AAIFAAAAAAAAAC4IAhIDCgEIEgQKAggIEgQKAgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgQKAggIAAAAHAAAAAATTkZUSXNzdWVyZmVlUGVyY2VudAAAAAAAAAAAAwAAAAANc2NvbmV4RGFwcEtleQIAAAAKc2NvbmV4RGFwcAAAAAAJb3JhY2xlS2V5AgAAAAlvcmFjbGVLZXkBAAAABmdldFN0cgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAAAAAAABm9yYWNsZQkBAAAABmdldFN0cgAAAAEFAAAACW9yYWNsZUtleQAAAAAJb3JhY2xlRmVlCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQmAAAAAQUAAAAGb3JhY2xlAgAAACtDb2xsZWN0aW9ucyBkYXBwIGRvZXNudCBoYXZlIG9yYWNsZSBkZWZpbmVkAAAAAApzY29uZXhEYXBw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EwAAAACBQAAAAdhc3NldElkCQAETAAAAAIFAAAADUFydGlzdEFkZHJlc3MFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAANyZXMFAAAAA3JlcwUAAAAGYnV5UmVzCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnGRece", "height": 1986830, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4raLwTWLsVguHmFSxwS9GvFQH2AimVECtwfGwf1cUHZv Next: 5vDU1fKEyfTPbcXytTxyv571sdZ4KfWujdLvHXzQVNs3 Diff:
OldNewDifferences
3434
3535 let USDNAssetId = fromBase58String(getStringValue(oracleFee, "USDNAssetId"))
3636
37-let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(USDNAssetId)))
37+let minUSDNPrice = getIntegerByKeyFromOracle(("min_" + toBase58String(USDNAssetId)))
3838
3939 let userDapp = value(addressFromString(valueOrErrorMessage(getString(oracleFee, "userDapp"), "userdapp not found")))
4040
151151 else {
152152 let pmt = value(i.payments[0])
153153 let assetId = value(pmt.assetId)
154- let minSellSconex = currentCertificationPrice
154+ let minSellSconex = minUSDNPrice
155155 if ((minSellSconex > startPrice))
156156 then throw(("Wrong minimum sell price " + toString(minSellSconex)))
157157 else {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NFTIssuerfeePercent = 3
55
66 let sconexDappKey = "sconexDapp"
77
88 let oracleKey = "oracleKey"
99
1010 func getStr (key) = match getString(this, key) {
1111 case b: String =>
1212 b
1313 case _ =>
1414 ""
1515 }
1616
1717
1818 let oracle = getStr(oracleKey)
1919
2020 let oracleFee = valueOrErrorMessage(addressFromString(oracle), "Collections dapp doesnt have oracle defined")
2121
2222 let sconexDapp = getStringValue(oracleFee, sconexDappKey)
2323
2424 let collectionsDapp = valueOrErrorMessage(getString(oracleFee, "collectionsDapp"), "collectionDapp not found")
2525
2626 let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found")
2727
2828 let certDapp = valueOrErrorMessage(getString(oracleFee, "certDapp"), "certDapp not found")
2929
3030 let feeDapp = valueOrErrorMessage(getString(oracleFee, "feeDapp"), "feeDapp not found")
3131
3232 func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
3333
3434
3535 let USDNAssetId = fromBase58String(getStringValue(oracleFee, "USDNAssetId"))
3636
37-let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(USDNAssetId)))
37+let minUSDNPrice = getIntegerByKeyFromOracle(("min_" + toBase58String(USDNAssetId)))
3838
3939 let userDapp = value(addressFromString(valueOrErrorMessage(getString(oracleFee, "userDapp"), "userdapp not found")))
4040
4141 let auctionType1 = "BIDTYPE"
4242
4343 let auctionType2 = "TRADITIONAL"
4444
4545 let auctionType3 = "DIRECT"
4646
4747 func getStringByKey (key) = valueOrElse(getString(this, key), "")
4848
4949
5050 func keyAuctionType (auctionId) = (("auction_" + auctionId) + "_actionType")
5151
5252
5353 func getStrfromMain (key) = match getString(addressFromStringValue(sconexDapp), key) {
5454 case b: String =>
5555 b
5656 case _ =>
5757 ""
5858 }
5959
6060
6161 func getIntfromMain (key) = match getInteger(addressFromStringValue(sconexDapp), key) {
6262 case b: Int =>
6363 b
6464 case _ =>
6565 0
6666 }
6767
6868
6969 func tryGetInteger (key) = {
7070 let val = match getInteger(this, key) {
7171 case b: Int =>
7272 b
7373 case _ =>
7474 0
7575 }
7676 val
7777 }
7878
7979
8080 func tryGetString (key) = {
8181 let val = match getString(this, key) {
8282 case b: String =>
8383 b
8484 case _ =>
8585 ""
8686 }
8787 val
8888 }
8989
9090
9191 func getNFTIssuer (assetId) = {
9292 let myassetinfo = value(assetInfo(assetId))
9393 if ((myassetinfo.issuer == addressFromStringValue(sconexDapp)))
9494 then "true"
9595 else ""
9696 }
9797
9898
9999 func getNFTArtist (assetId) = {
100100 let ArtistAddress = match getString(addressFromStringValue(sconexDapp), ("nft_issued_" + assetId)) {
101101 case b: String =>
102102 b
103103 case _ =>
104104 ""
105105 }
106106 ArtistAddress
107107 }
108108
109109
110110 func getArtId (assetId) = {
111111 let ArtistAddress = match getString(addressFromStringValue(sconexDapp), ("nft_artId_" + assetId)) {
112112 case b: String =>
113113 b
114114 case _ =>
115115 ""
116116 }
117117 ArtistAddress
118118 }
119119
120120
121121 func acceptedAssetIds (assetId) = if ((assetId != toBase58String(USDNAssetId)))
122122 then throw("Only USDN accepted")
123123 else true
124124
125125
126126 @Callable(i)
127127 func initDapp (dappKey) = if ((i.caller != this))
128128 then throw("You cannot do this action")
129129 else if ((oracle != ""))
130130 then throw("oracle already set, you can't override!")
131131 else [StringEntry(oracleKey, dappKey)]
132132
133133
134134
135135 @Callable(i)
136136 func transferNft (nftID,receiveNFT) = if ((i.caller == this))
137137 then [ScriptTransfer(addressFromStringValue(receiveNFT), 1, fromBase58String(nftID))]
138138 else throw("Only the dApp can transfer NFT's")
139139
140140
141141
142142 @Callable(i)
143143 func initAuction (startPrice,auctionType) = {
144144 let auctionId = toBase58String(i.transactionId)
145145 if ((size(i.payments) == 0))
146146 then throw("No payment attached")
147147 else if ((size(i.payments) >= 2))
148148 then throw("Too many payments attached")
149149 else if ((i.payments[0].amount != 1))
150150 then throw("No nft attached to the payment")
151151 else {
152152 let pmt = value(i.payments[0])
153153 let assetId = value(pmt.assetId)
154- let minSellSconex = currentCertificationPrice
154+ let minSellSconex = minUSDNPrice
155155 if ((minSellSconex > startPrice))
156156 then throw(("Wrong minimum sell price " + toString(minSellSconex)))
157157 else {
158158 let asset = getNFTIssuer(assetId)
159159 if ((asset == ""))
160160 then throw("You can only sell an NFT created on SCONE Marketplace")
161161 else if (!(containsElement([auctionType1, auctionType3], auctionType)))
162162 then throw("We don't know this auction type")
163163 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))]
164164 }
165165 }
166166 }
167167
168168
169169
170170 @Callable(i)
171171 func cancelAuction (auctionId) = {
172172 let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner"))
173173 if ((toString(i.caller) != auctionOwner))
174174 then throw("Only allowed to auction owner")
175175 else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open"))
176176 then throw("auction is close")
177177 else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))]
178178 }
179179
180180
181181
182182 @Callable(i)
183183 func placeBid (auctionId) = {
184184 let pmt = value(i.payments[0])
185185 let amount = pmt.amount
186186 let bidId = toBase58String(i.transactionId)
187187 let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId"))
188188 let PayAssetId = if (!(isDefined(pmt.assetId)))
189189 then throw("Only USDN is accepted!")
190190 else toBase58String(value(pmt.assetId))
191191 if (!(acceptedAssetIds(PayAssetId)))
192192 then throw("Auction does only support USDN payments")
193193 else {
194194 let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice"))
195195 if ((minPrice > amount))
196196 then throw(("The minimal initial price is set as " + toString(minPrice)))
197197 else {
198198 let auctionType = getStringByKey(keyAuctionType(auctionId))
199199 if ((auctionType == auctionType1))
200200 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")]
201201 else throw("Not a BidType auction!")
202202 }
203203 }
204204 }
205205
206206
207207
208208 @Callable(i)
209209 func directBuy (auctionId) = {
210210 let pmt = value(i.payments[0])
211211 let amount = pmt.amount
212212 let bidId = toBase58String(i.transactionId)
213213 let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId"))
214214 let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner"))
215215 let bidAmount = amount
216216 let bidAuthor = toString(i.caller)
217217 let PayAssetId = if (!(isDefined(pmt.assetId)))
218218 then throw("Only USDN is accepted!")
219219 else toBase58String(value(pmt.assetId))
220220 if (!(acceptedAssetIds(PayAssetId)))
221221 then throw("Auction does only support USDN payments")
222222 else {
223223 let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice"))
224224 if ((minPrice != amount))
225225 then throw(("The exact price is set as " + toString(minPrice)))
226226 else {
227227 let auctionType = getStringByKey(keyAuctionType(auctionId))
228228 if ((auctionType == auctionType3))
229229 then {
230230 let recordPrice = tryGetInteger((assetId + "_recordPrice"))
231231 let newRecordPrice = max([recordPrice, bidAmount])
232232 let ArtistAddress = getNFTArtist(assetId)
233233 let artId = getArtId(assetId)
234234 let transferres = invoke(this, "transferNft", [assetId, bidAuthor], nil)
235235 if ((transferres == transferres))
236236 then {
237237 let invokeTeamFeeSplit = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "payFeeResell", [artId, auctionOwner], [AttachedPayment(USDNAssetId, amount)])
238238 if ((invokeTeamFeeSplit == invokeTeamFeeSplit))
239239 then {
240240 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"))]
241241 let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, ArtistAddress], nil)
242242 if ((res == res))
243243 then buyRes
244244 else throw("Strict value is not equal to itself.")
245245 }
246246 else throw("Strict value is not equal to itself.")
247247 }
248248 else throw("Strict value is not equal to itself.")
249249 }
250250 else throw("Not a directBuy auction!")
251251 }
252252 }
253253 }
254254
255255
256256
257257 @Callable(i)
258258 func cancelBid (auctionId,bidId) = {
259259 let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId"))
260260 let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"))
261261 let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"))
262262 if (if ((toString(i.caller) != bidAuthor))
263263 then (i.caller != this)
264264 else false)
265265 then throw("Only allowed to the bid author or admin")
266266 else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open"))
267267 then throw("bid is not open")
268268 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)]
269269 }
270270
271271
272272
273273 @Callable(i)
274274 func acceptBid (auctionId,bidId) = {
275275 let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner"))
276276 let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"))
277277 let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"))
278278 let bidStatus = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"))
279279 let assetId = tryGetString((("auction_" + auctionId) + "_assetId"))
280280 if ((toString(i.caller) != auctionOwner))
281281 then throw("Only allowed to auction owner")
282282 else if ((bidStatus != "open"))
283283 then throw("Bid was cancelled and cannot be accepted")
284284 else {
285285 let recordPrice = tryGetInteger((assetId + "_recordPrice"))
286286 let newRecordPrice = max([recordPrice, bidAmount])
287287 let ArtistAddress = getNFTArtist(assetId)
288288 let artId = getArtId(assetId)
289289 let invokeTeamFeeSplit = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "payFeeResell", [artId, auctionOwner], [AttachedPayment(USDNAssetId, bidAmount)])
290290 if ((invokeTeamFeeSplit == invokeTeamFeeSplit))
291291 then {
292292 let transferres = invoke(this, "transferNft", [assetId, bidAuthor], nil)
293293 if ((transferres == transferres))
294294 then {
295295 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"))]
296296 let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, ArtistAddress], nil)
297297 if ((res == res))
298298 then buyRes
299299 else throw("Strict value is not equal to itself.")
300300 }
301301 else throw("Strict value is not equal to itself.")
302302 }
303303 else throw("Strict value is not equal to itself.")
304304 }
305305 }
306306
307307
308308 @Verifier(tx)
309309 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
310310

github/deemru/w8io/026f985 
49.31 ms