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