tx · 4mw16Fe1VNmB9YeDCDfATPQkKLbsJYyZqNn2pHaJk3Hs

3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq:  -0.05000000 Waves

2022.12.03 08:03 [2343731] smart account 3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq > SELF 0.00000000 Waves

{ "type": 13, "id": "4mw16Fe1VNmB9YeDCDfATPQkKLbsJYyZqNn2pHaJk3Hs", "fee": 5000000, "feeAssetId": null, "timestamp": 1670043804944, "version": 2, "chainId": 84, "sender": "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq", "senderPublicKey": "H6UqxUDcJamDRg1uykVcWMn4zhAMTV7i1nfPq1moLWmJ", "proofs": [ "5FuQuWHef9LXQRUFiEU6UwSWcLcuxTBWgds6Nz7hMLDfVrcvoyv5Lvyqto7sje5PV2Eqfa88DTurKCZ3CxRcWVam" ], "script": "base64:BgI2CAISCwoJCAgICAgBCAgIEgMKAQESBAoCCAgSBgoECAgBARIGCgQICAgBEgUKAwgIARIDCgEIKQAJc2VwYXJhdG9yAgFfAAhrQXVjdGlvbgIHYXVjdGlvbgAFa1NlbGwCBHNlbGwACGtUcnVzdGVkAgd0cnVzdGVkAAZrUHJpY2UCBXByaWNlAQpnZXRTbG90S2V5AgZwcmVmaXgFbmZ0SWQJAKwCAgkArAICBQZwcmVmaXgFCXNlcGFyYXRvcgkA2AQBBQVuZnRJZAELZ2V0UHJpY2VLZXkBBW5mdElkCQCsAgIJAKwCAgUGa1ByaWNlBQlzZXBhcmF0b3IJANgEAQUFbmZ0SWQBCmdldFNlbGxLZXkBBW5mdElkCQCsAgIJAKwCAgUFa1NlbGwFCXNlcGFyYXRvcgkA2AQBBQVuZnRJZAENZ2V0QXVjdGlvbktleQEFbmZ0SWQJAKwCAgkArAICBQhrQXVjdGlvbgUJc2VwYXJhdG9yCQDYBAEFBW5mdElkAQ1nZXRUcnVzdGVkS2V5AQZpc3N1ZXIJAKwCAgkArAICBQhrVHJ1c3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wkA2AQBBQZjYWxsZXIFA25pbAFpAQd0ZXN0QmlkAQRkYXRhCQDMCAIJAQtTdHJpbmdFbnRyeQICA2JpZAUEZGF0YQUDbmlsALLYJ+I=", "height": 2343731, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4nPWTCYB1kuqB6P7ueXAADSbKXnagJSW5C3HAycVKpUe Next: Hcaeqm9nSiXecKvUR8NpqY9XkiBNKfUKgFcSJ2M6oGua Diff:
OldNewDifferences
352352 then throw("Not open for auction")
353353 else if ((parseIntValue(bj) >= bi))
354354 then throw("Bid is less then starting/highest Bid")
355- else [StringEntry((bg + "_highest_bid"), toString(bi))]
355+ else [StringEntry((bg + "_highest_bid"), toString(bi)), StringEntry((bg + "_winner"), toBase58String(aI.caller.bytes))]
356356 }
357357
358358
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "_"
55
66 let b = "auction"
77
88 let c = "sell"
99
1010 let d = "trusted"
1111
1212 let e = "price"
1313
1414 func f (g,h) = ((g + a) + toBase58String(h))
1515
1616
1717 func i (h) = ((e + a) + toBase58String(h))
1818
1919
2020 func j (h) = ((c + a) + toBase58String(h))
2121
2222
2323 func k (h) = ((b + a) + toBase58String(h))
2424
2525
2626 func l (m) = ((d + a) + toString(m))
2727
2828
2929 func n (o,p) = (o ++ [p])
3030
3131
3232 func q (r) = {
3333 let s = size(r)
3434 if ((s == 0))
3535 then throw("Empty params")
3636 else if ((s == 1))
3737 then makeString({
3838 let t = r
3939 let u = size(t)
4040 let v = nil
4141 func w (x,y) = if ((y >= u))
4242 then x
4343 else n(x, t[y])
4444
4545 func z (x,y) = if ((y >= u))
4646 then x
4747 else throw("List size exceeds 1")
4848
4949 z(w(v, 0), 1)
5050 }, a)
5151 else if ((s == 2))
5252 then makeString({
5353 let t = r
5454 let u = size(t)
5555 let v = nil
5656 func w (x,y) = if ((y >= u))
5757 then x
5858 else n(x, t[y])
5959
6060 func z (x,y) = if ((y >= u))
6161 then x
6262 else throw("List size exceeds 2")
6363
6464 z(w(w(v, 0), 1), 2)
6565 }, a)
6666 else if ((s == 3))
6767 then makeString({
6868 let t = r
6969 let u = size(t)
7070 let v = nil
7171 func w (x,y) = if ((y >= u))
7272 then x
7373 else n(x, t[y])
7474
7575 func z (x,y) = if ((y >= u))
7676 then x
7777 else throw("List size exceeds 3")
7878
7979 z(w(w(w(v, 0), 1), 2), 3)
8080 }, a)
8181 else if ((s == 4))
8282 then makeString({
8383 let t = r
8484 let u = size(t)
8585 let v = nil
8686 func w (x,y) = if ((y >= u))
8787 then x
8888 else n(x, t[y])
8989
9090 func z (x,y) = if ((y >= u))
9191 then x
9292 else throw("List size exceeds 4")
9393
9494 z(w(w(w(w(v, 0), 1), 2), 3), 4)
9595 }, a)
9696 else if ((s == 5))
9797 then makeString({
9898 let t = r
9999 let u = size(t)
100100 let v = nil
101101 func w (x,y) = if ((y >= u))
102102 then x
103103 else n(x, t[y])
104104
105105 func z (x,y) = if ((y >= u))
106106 then x
107107 else throw("List size exceeds 5")
108108
109109 z(w(w(w(w(w(v, 0), 1), 2), 3), 4), 5)
110110 }, a)
111111 else throw("Max number of parameters exceeded")
112112 }
113113
114114
115115 func A (B) = {
116116 let C = split(B, a)
117117 $Tuple5(addressFromStringValue(C[0]), parseIntValue(C[1]), parseIntValue(C[2]), parseIntValue(C[3]), parseIntValue(C[4]))
118118 }
119119
120120
121121 func D (B) = {
122122 let C = split(B, a)
123123 $Tuple2(addressFromStringValue(C[0]), parseIntValue(C[1]))
124124 }
125125
126126
127127 func E (r) = {
128128 let F = r
129129 if ($isInstanceOf(F, "(Address, Int, String, String)"))
130130 then {
131131 let G = F
132132 q([toString(G._1), toString(G._2), G._3, G._4])
133133 }
134134 else if ($isInstanceOf(F, "(Address, Int)"))
135135 then {
136136 let H = F
137137 q([toString(H._1), toString(H._2)])
138138 }
139139 else throw("Wrong params tupple")
140140 }
141141
142142
143143 func I (J,h,K,L,M) = StringEntry(k(h), E($Tuple4(J, K, L, M)))
144144
145145
146146 func N (h,O,P) = StringEntry(j(h), E($Tuple2(O, P)))
147147
148148
149149 func Q (h) = value(getString(this, k(h)))
150150
151151
152152 func R (h) = value(getString(this, j(h)))
153153
154154
155155 func S (T,U) = {
156156 let B = Q(T)
157157 let V = A(B)
158158 let J = V._1
159159 let W = V._2
160160 let X = V._3
161161 let Y = V._4
162162 let Z = V._5
163163 if ((U >= Z))
164164 then $Tuple2(J, X)
165165 else {
166166 let aa = (W - X)
167167 let ab = (Z - Y)
168168 let ac = (U - Y)
169169 $Tuple2(J, (W - fraction(ac, aa, ab)))
170170 }
171171 }
172172
173173
174174 func ad (T) = {
175175 let F = assetInfo(T)
176176 if ($isInstanceOf(F, "Asset"))
177177 then {
178178 let ae = F
179179 if (if ((ae.decimals == 0))
180180 then (ae.quantity == 1)
181181 else false)
182182 then (ae.reissuable == false)
183183 else false
184184 }
185185 else false
186186 }
187187
188188
189189 func af (T) = {
190190 let m = value(assetInfo(T)).issuer
191191 valueOrElse(getBoolean(this, l(m)), false)
192192 }
193193
194194
195195 func ag (T) = isDefined(getString(this, j(T)))
196196
197197
198198 func ah (T) = isDefined(getString(this, k(T)))
199199
200200
201201 func ai (P) = (P > 0)
202202
203203
204204 func aj (K,ak) = (K > ak)
205205
206206
207207 func al (am) = (am == this)
208208
209209
210210 func an (am,J) = if ((am == this))
211211 then true
212212 else (am == J)
213213
214214
215215 func ao (ap,M) = (ap > M)
216216
217217
218218 func aq (ar,as) = (ar >= as)
219219
220220
221221 func at (T) = (T == unit)
222222
223223
224224 func au (h) = if (!(ad(h)))
225225 then throw("Token is not Nft")
226226 else if (ag(h))
227227 then throw("Sell already exists")
228228 else if (ah(h))
229229 then throw("Auction already exists")
230230 else unit
231231
232232
233233 func av (aw,ax,P) = if (!(at(aw)))
234234 then throw("Payment must be at WAVES")
235235 else if (!(aq(ax, P)))
236236 then throw("Not enough funds")
237237 else unit
238238
239239
240240 func ay () = 0
241241
242242
243243 func az () = 0
244244
245245
246246 func aA (aB,ax,aC) = if (aB)
247247 then $Tuple2((aC - az()), (ax - aC))
248248 else $Tuple2((aC - ay()), (ax - aC))
249249
250250
251251 func aD (h) = if (ag(h))
252252 then $Tuple2(c, R(h))
253253 else if (ah(h))
254254 then $Tuple2(b, Q(h))
255255 else throw("Slot doesn`t exist")
256256
257257
258258 let aE = "buy"
259259
260260 let aF = "bid"
261261
262262 let aG = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED")
263263
264264 let aH = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq'
265265
266266 @Callable(aI)
267267 func createNft (aJ,aK,aL,aM,aN,aO,aP,aQ,aR) = {
268268 let aS = Issue(aJ, aP, 1, 0, false)
269269 let aT = calculateAssetId(aS)
270270 let aU = aI.transactionId
271271 [aS, ScriptTransfer(aI.caller, 1, aT), StringEntry(((toBase58String(aT) + a) + "Owner"), toString(aI.caller)), StringEntry(((toBase58String(aT) + a) + "nft_type"), aM), StringEntry(((toBase58String(aT) + a) + "nft_tags"), aN), StringEntry(((toBase58String(aT) + a) + "nft_dAppAddress"), aL), IntegerEntry(((toBase58String(aT) + a) + "nft_selling_price"), aO), StringEntry(((toBase58String(aT) + a) + "nft_onSell"), aQ), StringEntry(((toBase58String(aT) + a) + "nft_data"), aR), StringEntry(((toBase58String(aU) + a) + "issue_nft"), toBase58String(aT))]
272272 }
273273
274274
275275
276276 @Callable(aI)
277277 func sellNFT (P) = {
278278 let aU = aI.transactionId
279279 let J = aI.caller.bytes
280280 let aV = $Tuple2(value(aI.payments[0].assetId), value(aI.payments[0].amount))
281281 let aW = aV._1
282282 let aX = aV._2
283283 if (!(ad(aW)))
284284 then throw("Token is not NFT")
285285 else [StringEntry(((e + a) + toBase58String(value(aI.payments[0].assetId))), toString(P)), StringEntry(((toString(aI.caller) + a) + c), ((toBase58String(aW) + a) + toString(aX)))]
286286 }
287287
288288
289289
290290 @Callable(aI)
291291 func buyNFT (aY,aZ) = {
292292 let T = fromBase58String(aY)
293293 let ba = value(aI.payments[0].amount)
294294 let bb = {
295295 let F = getString(this, (("nft_" + aZ) + "_owner"))
296296 if ($isInstanceOf(F, "String"))
297297 then {
298298 let bc = F
299299 bc
300300 }
301301 else false
302302 }
303303 let P = getStringValue(((((e + a) + aY) + "_") + aZ))
304304 let bd = valueOrErrorMessage(getStringValue(((aY + a) + "Owner")), "No owner")
305305 if ((aI.payments[0].assetId != unit))
306306 then throw("Pay in waves")
307307 else if ((bb == toString(aI.caller)))
308308 then throw("Owner of NFT not able to purchase")
309309 else [ScriptTransfer(aI.caller, 1, T), ScriptTransfer(Address(fromBase58String(bd)), ba, unit), StringEntry(((toString(aI.caller) + a) + aE), ((aY + a) + toString(ba))), DeleteEntry((("nft_" + aZ) + "_owner"))]
310310 }
311311
312312
313313
314314 @Callable(aI)
315315 func addAuction (L,M,K,be) = {
316316 let aU = toBase58String(aI.transactionId)
317317 let h = value(aI.payments[0].assetId)
318318 let P = value(K)
319319 let am = aI.caller.bytes
320320 let bf = {
321321 let F = getString(this, (((toBase58String(h) + a) + "nft_status_") + toBase58String(am)))
322322 if ($isInstanceOf(F, "String"))
323323 then {
324324 let bc = F
325325 true
326326 }
327327 else false
328328 }
329329 if ((aI.payments[0].assetId == unit))
330330 then throw("NFT not attached")
331331 else if ((bf == true))
332332 then throw("Already in auction list")
333333 else [StringEntry(((aU + "_nft_start_auction_date_") + toBase58String(am)), L), StringEntry(((aU + "_nft_end_auction_date_") + toBase58String(am)), M), IntegerEntry((aU + "_nft_start_price"), K), StringEntry((aU + "_nft_owner"), toString(aI.caller)), StringEntry((aU + "_nft_on_auction"), toBase58String(h)), StringEntry((aU + "_previous_bidder"), "none"), StringEntry((aU + "_highest_bid"), toString(K)), StringEntry((aU + "_winner_of_nft"), "0"), StringEntry((aU + "_bidder_count"), "0"), StringEntry(((aU + "_nft_status_") + toBase58String(am)), "OPEN")]
334334 }
335335
336336
337337
338338 @Callable(aI)
339339 func placeBid (bg,h,aK,bh) = {
340340 let aU = toBase58String(aI.transactionId)
341341 let am = aI.caller.bytes
342342 let T = fromBase58String(h)
343343 let bi = aI.payments[0].amount
344344 let bj = getStringValue(this, (bg + "_highest_bid"))
345345 let bk = getString(this, (bg + "_previous_bidder"))
346346 let bl = getStringValue(this, (bg + "_bidder_count"))
347347 let bm = getStringValue(this, (bg + "_winner_of_nft"))
348348 let bf = getStringValue(this, ((bg + "_nft_status_") + aK))
349349 if ((aI.payments[0].assetId != unit))
350350 then throw("Pay in waves")
351351 else if ((bf != "OPEN"))
352352 then throw("Not open for auction")
353353 else if ((parseIntValue(bj) >= bi))
354354 then throw("Bid is less then starting/highest Bid")
355- else [StringEntry((bg + "_highest_bid"), toString(bi))]
355+ else [StringEntry((bg + "_highest_bid"), toString(bi)), StringEntry((bg + "_winner"), toBase58String(aI.caller.bytes))]
356356 }
357357
358358
359359
360360 @Callable(aI)
361361 func acceptBidOffer (h,bn,bo) = {
362362 let am = aI.caller.bytes
363363 let T = fromBase58String(h)
364364 let bp = fromBase58String(bn)
365365 [ScriptTransfer(Address(aI.caller.bytes), bo, unit), ScriptTransfer(Address(bp), 1, T), StringEntry(((toBase58String(T) + "_rewarded_to_") + bn), bn), StringEntry(("nft_transfer_status_from" + toBase58String(am)), aG._3), StringEntry(((("nft_transfer_status_" + h) + "_transfer_to_") + bn), bn), DeleteEntry((((toBase58String(T) + a) + "nft_status_") + toBase58String(am)))]
366366 }
367367
368368
369369
370370 @Callable(aI)
371371 func testBid (bq) = [StringEntry("bid", bq)]
372372
373373

github/deemru/w8io/026f985 
44.32 ms