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