tx · 4awCNaLJZaaH48SwhASeiE3QypiaBuDeeGGcFk7HMxYu

3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq:  -0.50000000 Waves

2022.12.01 12:28 [2341100] smart account 3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq > SELF 0.00000000 Waves

{ "type": 13, "id": "4awCNaLJZaaH48SwhASeiE3QypiaBuDeeGGcFk7HMxYu", "fee": 50000000, "feeAssetId": null, "timestamp": 1669886917103, "version": 2, "chainId": 84, "sender": "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq", "senderPublicKey": "H6UqxUDcJamDRg1uykVcWMn4zhAMTV7i1nfPq1moLWmJ", "proofs": [ "oXjQDY82ehxtoZvaa1Tc7B8DN9gKyX2vAsWbdPTHccYbDXe8MsToyHihX7oBHKBhM3edWuZzbsjTR9mXU4LxsTt" ], "script": "base64:BgJYCAISBgoECAgBARIFCgMICAESABIECgIICBILCgkICAgICAEICAgSBAoCCAgSBAoCCAgSAwoBCBIDCgEBEgUKAwgIARIDCgEIEgMKAQgSAwoBCBIECgIIASkACXNlcGFyYXRvcgIBXwAIa0F1Y3Rpb24CB2F1Y3Rpb24ABWtTZWxsAgRzZWxsAAhrVHJ1c3RlZAIHdHJ1c3RlZAAGa1ByaWNlAgVwcmljZQEKZ2V0U2xvdEtleQIGcHJlZml4BW5mdElkCQCsAgIJAKwCAgUGcHJlZml4BQlzZXBhcmF0b3IJANgEAQUFbmZ0SWQBC2dldFByaWNlS2V5AQVuZnRJZAkArAICCQCsAgIFBmtQcmljZQUJc2VwYXJhdG9yCQDYBAEFBW5mdElkAQpnZXRTZWxsS2V5AQVuZnRJZAkArAICCQCsAgIFBWtTZWxsBQlzZXBhcmF0b3IJANgEAQUFbmZ0SWQBDWdldEF1Y3Rpb25LZXkBBW5mdElkCQCsAgIJAKwCAgUIa0F1Y3Rpb24FCXNlcGFyYXRvcgkA2AQBBQVuZnRJZAENZ2V0VHJ1c3RlZEtleQEGaXN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DU4MgkBGGNhbGNQcmljZUF0Q3VycmVudE1vbWVudAIFB2Fzc2V0SWQFBm1vbWVudAQGc2VsbGVyCAUNJHQwMTQ1MTkxNDU4MgJfMQQFcHJpY2UIBQ0kdDAxNDUxOTE0NTgyAl8yCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQELZ2V0UHJpY2VLZXkBBQdhc3NldElkBQVwcmljZQUDbmlsAM+Y96k=", "height": 2341100, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GS242w5FPwizbCZmP6j8e8XP294HVypQrs8gTuWS7v5a Next: 5wXwhc4TjiiyX2gPnLQaLebjHpx95P3roRN9be9yXPVi Diff:
OldNewDifferences
287287
288288
289289 @Callable(aI)
290+func acceptBidOffer (h,aP,aQ) = {
291+ let am = aI.caller.bytes
292+ let T = fromBase58String(h)
293+ let aR = fromBase58String(aP)
294+[ScriptTransfer(Address(aI.caller.bytes), aQ, unit), ScriptTransfer(Address(aR), 1, T), StringEntry(((h + "_rewarded_to_") + aP), aP), StringEntry(("nft_transfer_status_from" + toBase58String(am)), aG._3), StringEntry(((("nft_transfer_status_" + h) + "_transfer_to_") + aP), aP), DeleteEntry((((h + a) + "nft_status_") + toBase58String(am)))]
295+ }
296+
297+
298+
299+@Callable(aI)
290300 func pay () = {
291301 let aM = value(aI.payments[0].amount)
292302 if ((aI.payments[0].assetId != unit))
297307
298308
299309 @Callable(aI)
300-func confirmBid (h,aP) = [StringEntry("bid_winner", aP)]
310+func confirmBid (h,aS) = [StringEntry("bid_winner", aS)]
301311
302312
303313
304314 @Callable(aI)
305-func createNft (aQ,aJ,aR,aS,aT,aU,aV,aW,aX) = {
306- let aY = Issue(aQ, aV, 1, 0, false)
307- let aZ = calculateAssetId(aY)
308- let ba = aI.transactionId
309-[aY, ScriptTransfer(aI.caller, 1, aZ), StringEntry(((toBase58String(aZ) + a) + "Owner"), toString(aI.caller)), StringEntry(((toBase58String(aZ) + a) + "nft_type"), aS), StringEntry(((toBase58String(aZ) + a) + "nft_tags"), aT), StringEntry(((toBase58String(aZ) + a) + "nft_dAppAddress"), aR), IntegerEntry(((toBase58String(aZ) + a) + "nft_selling_price"), aU), StringEntry(((toBase58String(aZ) + a) + "nft_onSell"), aW), StringEntry(((toBase58String(aZ) + a) + "nft_data"), aX), StringEntry(((toBase58String(ba) + a) + "issue_nft"), toBase58String(aZ))]
315+func createNft (aT,aJ,aU,aV,aW,aX,aY,aZ,ba) = {
316+ let bb = Issue(aT, aY, 1, 0, false)
317+ let bc = calculateAssetId(bb)
318+ let bd = aI.transactionId
319+[bb, ScriptTransfer(aI.caller, 1, bc), StringEntry(((toBase58String(bc) + a) + "Owner"), toString(aI.caller)), StringEntry(((toBase58String(bc) + a) + "nft_type"), aV), StringEntry(((toBase58String(bc) + a) + "nft_tags"), aW), StringEntry(((toBase58String(bc) + a) + "nft_dAppAddress"), aU), IntegerEntry(((toBase58String(bc) + a) + "nft_selling_price"), aX), StringEntry(((toBase58String(bc) + a) + "nft_onSell"), aZ), StringEntry(((toBase58String(bc) + a) + "nft_data"), ba), StringEntry(((toBase58String(bd) + a) + "issue_nft"), toBase58String(bc))]
310320 }
311321
312322
313323
314324 @Callable(aI)
315-func issueNft (bb,bc) = {
316- let aY = Issue(bb, bc, 1, 0, false)
317- let aZ = calculateAssetId(aY)
318-[aY, ScriptTransfer(aI.caller, 1, aZ), StringEntry(((toBase58String(aZ) + a) + "Owner"), toString(aI.caller))]
325+func issueNft (be,bf) = {
326+ let bb = Issue(be, bf, 1, 0, false)
327+ let bc = calculateAssetId(bb)
328+[bb, ScriptTransfer(aI.caller, 1, bc), StringEntry(((toBase58String(bc) + a) + "Owner"), toString(aI.caller))]
319329 }
320330
321331
322332
323333 @Callable(aI)
324-func buyNFT (bd,be) = {
325- let T = fromBase58String(bd)
334+func buyNFT (bg,bh) = {
335+ let T = fromBase58String(bg)
326336 let aM = value(aI.payments[0].amount)
327- let bf = {
328- let F = getString(this, (("nft_" + be) + "_owner"))
337+ let bi = {
338+ let F = getString(this, (("nft_" + bh) + "_owner"))
329339 if ($isInstanceOf(F, "String"))
330340 then {
331341 let aO = F
333343 }
334344 else false
335345 }
336- let P = getStringValue(((((e + a) + bd) + "_") + be))
337- let bg = valueOrErrorMessage(getStringValue(((bd + a) + "Owner")), "No owner")
346+ let P = getStringValue(((((e + a) + bg) + "_") + bh))
347+ let bj = valueOrErrorMessage(getStringValue(((bg + a) + "Owner")), "No owner")
338348 if ((aI.payments[0].assetId != unit))
339349 then throw("Pay in waves")
340- else if ((bf == toString(aI.caller)))
350+ else if ((bi == toString(aI.caller)))
341351 then throw("Owner of NFT not able to purchase")
342- else [ScriptTransfer(aI.caller, 1, T), ScriptTransfer(Address(fromBase58String(bg)), aM, unit), StringEntry(((toString(aI.caller) + a) + aE), ((bd + a) + toString(aM))), DeleteEntry((("nft_" + be) + "_owner"))]
352+ else [ScriptTransfer(aI.caller, 1, T), ScriptTransfer(Address(fromBase58String(bj)), aM, unit), StringEntry(((toString(aI.caller) + a) + aE), ((bg + a) + toString(aM))), DeleteEntry((("nft_" + bh) + "_owner"))]
343353 }
344354
345355
347357 @Callable(aI)
348358 func sellNFT (P) = {
349359 let J = aI.caller.bytes
350- let bh = $Tuple2(value(aI.payments[0].assetId), value(aI.payments[0].amount))
351- let bi = bh._1
352- let bj = bh._2
353- if (!(ad(bi)))
360+ let bk = $Tuple2(value(aI.payments[0].assetId), value(aI.payments[0].amount))
361+ let bl = bk._1
362+ let bm = bk._2
363+ if (!(ad(bl)))
354364 then throw("Token is not NFT")
355- else [StringEntry((("nft_" + toBase58String(J)) + "_owner"), toBase58String(J)), StringEntry(((((e + a) + toBase58String(value(aI.payments[0].assetId))) + "_") + toString(aI.caller)), P), StringEntry(((toString(aI.caller) + a) + c), ((toBase58String(bi) + a) + toString(bj)))]
365+ else [StringEntry((("nft_" + toBase58String(J)) + "_owner"), toBase58String(J)), StringEntry(((((e + a) + toBase58String(value(aI.payments[0].assetId))) + "_") + toString(aI.caller)), P), StringEntry(((toString(aI.caller) + a) + c), ((toBase58String(bl) + a) + toString(bm)))]
356366 }
357367
358368
391401
392402 @Callable(aI)
393403 func buyFromSlot (h) = {
394- let bk = $Tuple2(aI.payments[0].assetId, value(aI.payments[0].amount))
395- let aw = bk._1
396- let ax = bk._2
404+ let bn = $Tuple2(aI.payments[0].assetId, value(aI.payments[0].amount))
405+ let aw = bn._1
406+ let ax = bn._2
397407 let T = fromBase58String(h)
398- let bl = aD(T)
399- let bm = bl._1
400- let B = bl._2
401- let bn = [ScriptTransfer(aI.caller, 1, T), DeleteEntry(f(bm, T))]
402- if ((bm == c))
408+ let bo = aD(T)
409+ let bp = bo._1
410+ let B = bo._2
411+ let bq = [ScriptTransfer(aI.caller, 1, T), DeleteEntry(f(bp, T))]
412+ if ((bp == c))
403413 then {
404- let bo = D(B)
405- let J = bo._1
406- let bp = bo._2
407- valueOrElse(av(aw, ax, bp), {
408- let bq = aA(af(T), ax, bp)
409- let br = bq._1
410- let bs = bq._2
411- let bt = (bn ++ [ScriptTransfer(J, br, unit)])
412- if ((bs > 0))
413- then (bt ++ [ScriptTransfer(aI.caller, bs, unit)])
414- else bt
414+ let br = D(B)
415+ let J = br._1
416+ let bs = br._2
417+ valueOrElse(av(aw, ax, bs), {
418+ let bt = aA(af(T), ax, bs)
419+ let bu = bt._1
420+ let bv = bt._2
421+ let bw = (bq ++ [ScriptTransfer(J, bu, unit)])
422+ if ((bv > 0))
423+ then (bw ++ [ScriptTransfer(aI.caller, bv, unit)])
424+ else bw
415425 })
416426 }
417427 else {
418- let bu = S(T, height)
419- let J = bu._1
420- let aC = bu._2
428+ let bx = S(T, height)
429+ let J = bx._1
430+ let aC = bx._2
421431 valueOrElse(av(aw, ax, aC), {
422- let bv = aA(af(T), ax, aC)
423- let br = bv._1
424- let bs = bv._2
425- let bt = (bn ++ [ScriptTransfer(J, br, unit)])
426- if ((bs > 0))
427- then (bt ++ [ScriptTransfer(aI.caller, bs, unit)])
428- else bt
432+ let by = aA(af(T), ax, aC)
433+ let bu = by._1
434+ let bv = by._2
435+ let bw = (bq ++ [ScriptTransfer(J, bu, unit)])
436+ if ((bv > 0))
437+ then (bw ++ [ScriptTransfer(aI.caller, bv, unit)])
438+ else bw
429439 })
430440 }
431441 }
435445 @Callable(aI)
436446 func declineSlot (h) = {
437447 let T = fromBase58String(h)
438- let bw = aD(T)
439- let bm = bw._1
440- let B = bw._2
441- let bn = [DeleteEntry(f(bm, T))]
442- if ((bm == c))
448+ let bz = aD(T)
449+ let bp = bz._1
450+ let B = bz._2
451+ let bq = [DeleteEntry(f(bp, T))]
452+ if ((bp == c))
443453 then {
444- let bx = D(B)
445- let J = bx._1
446- let bp = bx._2
454+ let bA = D(B)
455+ let J = bA._1
456+ let bs = bA._2
447457 if (!(an(aI.caller, J)))
448458 then throw("Invalid caller")
449- else (bn ++ [ScriptTransfer(J, 1, T)])
459+ else (bq ++ [ScriptTransfer(J, 1, T)])
450460 }
451461 else {
452- let by = A(B)
453- let J = by._1
454- let W = by._2
455- let X = by._3
456- let Y = by._4
457- let Z = by._5
462+ let bB = A(B)
463+ let J = bB._1
464+ let W = bB._2
465+ let X = bB._3
466+ let Y = bB._4
467+ let Z = bB._5
458468 if (!(an(aI.caller, J)))
459469 then throw("Invalid caller")
460470 else if (!(ao(height, Z)))
461471 then throw("Wait for end of auction")
462- else (bn ++ [ScriptTransfer(J, 1, T)])
472+ else (bq ++ [ScriptTransfer(J, 1, T)])
463473 }
464474 }
465475
466476
467477
468478 @Callable(aI)
469-func setTrustedIssuer (bz) = if (!(al(aI.caller)))
479+func setTrustedIssuer (bC) = if (!(al(aI.caller)))
470480 then throw("Only admin")
471- else [BooleanEntry(l(addressFromStringValue(bz)), true)]
481+ else [BooleanEntry(l(addressFromStringValue(bC)), true)]
472482
473483
474484
475485 @Callable(aI)
476486 func getPriceAtCurrentMoment (h,U) = {
477487 let T = fromBase58String(h)
478- let bA = S(T, U)
479- let J = bA._1
480- let P = bA._2
488+ let bD = S(T, U)
489+ let J = bD._1
490+ let P = bD._2
481491 [IntegerEntry(i(T), P)]
482492 }
483493
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 placeBid (h,aJ,aK,aL) = {
268268 let am = aI.caller
269269 let T = fromBase58String(h)
270270 let aM = value(aI.payments[0].amount)
271271 let aN = {
272272 let F = getString(this, (((h + a) + "nft_status_") + aJ))
273273 if ($isInstanceOf(F, "String"))
274274 then {
275275 let aO = F
276276 aO
277277 }
278278 else false
279279 }
280280 if ((aI.payments[0].assetId != unit))
281281 then throw("Pay in waves")
282282 else if ((aN != aG._1))
283283 then throw("Not open in auction list")
284284 else [StringEntry(((("nft_id_" + h) + "_") + toBase58String(am.bytes)), h), StringEntry(((("nft_owner_" + h) + "_") + toBase58String(am.bytes)), aJ), StringEntry(((("bidding_for_" + h) + "_by_") + toBase58String(am.bytes)), ((h + "_") + toBase58String(am.bytes))), StringEntry(((("min_price_for_" + h) + "_by_") + toBase58String(am.bytes)), toString(aK)), StringEntry(((("bid_price_for" + h) + "_by_") + toBase58String(am.bytes)), toString(aL)), StringEntry(((("transfer_nft_to_dappwith_bid_price_for_" + h) + "_by_") + toBase58String(am.bytes)), toBase58String(aH))]
285285 }
286286
287287
288288
289289 @Callable(aI)
290+func acceptBidOffer (h,aP,aQ) = {
291+ let am = aI.caller.bytes
292+ let T = fromBase58String(h)
293+ let aR = fromBase58String(aP)
294+[ScriptTransfer(Address(aI.caller.bytes), aQ, unit), ScriptTransfer(Address(aR), 1, T), StringEntry(((h + "_rewarded_to_") + aP), aP), StringEntry(("nft_transfer_status_from" + toBase58String(am)), aG._3), StringEntry(((("nft_transfer_status_" + h) + "_transfer_to_") + aP), aP), DeleteEntry((((h + a) + "nft_status_") + toBase58String(am)))]
295+ }
296+
297+
298+
299+@Callable(aI)
290300 func pay () = {
291301 let aM = value(aI.payments[0].amount)
292302 if ((aI.payments[0].assetId != unit))
293303 then throw("Pay in waves")
294304 else nil
295305 }
296306
297307
298308
299309 @Callable(aI)
300-func confirmBid (h,aP) = [StringEntry("bid_winner", aP)]
310+func confirmBid (h,aS) = [StringEntry("bid_winner", aS)]
301311
302312
303313
304314 @Callable(aI)
305-func createNft (aQ,aJ,aR,aS,aT,aU,aV,aW,aX) = {
306- let aY = Issue(aQ, aV, 1, 0, false)
307- let aZ = calculateAssetId(aY)
308- let ba = aI.transactionId
309-[aY, ScriptTransfer(aI.caller, 1, aZ), StringEntry(((toBase58String(aZ) + a) + "Owner"), toString(aI.caller)), StringEntry(((toBase58String(aZ) + a) + "nft_type"), aS), StringEntry(((toBase58String(aZ) + a) + "nft_tags"), aT), StringEntry(((toBase58String(aZ) + a) + "nft_dAppAddress"), aR), IntegerEntry(((toBase58String(aZ) + a) + "nft_selling_price"), aU), StringEntry(((toBase58String(aZ) + a) + "nft_onSell"), aW), StringEntry(((toBase58String(aZ) + a) + "nft_data"), aX), StringEntry(((toBase58String(ba) + a) + "issue_nft"), toBase58String(aZ))]
315+func createNft (aT,aJ,aU,aV,aW,aX,aY,aZ,ba) = {
316+ let bb = Issue(aT, aY, 1, 0, false)
317+ let bc = calculateAssetId(bb)
318+ let bd = aI.transactionId
319+[bb, ScriptTransfer(aI.caller, 1, bc), StringEntry(((toBase58String(bc) + a) + "Owner"), toString(aI.caller)), StringEntry(((toBase58String(bc) + a) + "nft_type"), aV), StringEntry(((toBase58String(bc) + a) + "nft_tags"), aW), StringEntry(((toBase58String(bc) + a) + "nft_dAppAddress"), aU), IntegerEntry(((toBase58String(bc) + a) + "nft_selling_price"), aX), StringEntry(((toBase58String(bc) + a) + "nft_onSell"), aZ), StringEntry(((toBase58String(bc) + a) + "nft_data"), ba), StringEntry(((toBase58String(bd) + a) + "issue_nft"), toBase58String(bc))]
310320 }
311321
312322
313323
314324 @Callable(aI)
315-func issueNft (bb,bc) = {
316- let aY = Issue(bb, bc, 1, 0, false)
317- let aZ = calculateAssetId(aY)
318-[aY, ScriptTransfer(aI.caller, 1, aZ), StringEntry(((toBase58String(aZ) + a) + "Owner"), toString(aI.caller))]
325+func issueNft (be,bf) = {
326+ let bb = Issue(be, bf, 1, 0, false)
327+ let bc = calculateAssetId(bb)
328+[bb, ScriptTransfer(aI.caller, 1, bc), StringEntry(((toBase58String(bc) + a) + "Owner"), toString(aI.caller))]
319329 }
320330
321331
322332
323333 @Callable(aI)
324-func buyNFT (bd,be) = {
325- let T = fromBase58String(bd)
334+func buyNFT (bg,bh) = {
335+ let T = fromBase58String(bg)
326336 let aM = value(aI.payments[0].amount)
327- let bf = {
328- let F = getString(this, (("nft_" + be) + "_owner"))
337+ let bi = {
338+ let F = getString(this, (("nft_" + bh) + "_owner"))
329339 if ($isInstanceOf(F, "String"))
330340 then {
331341 let aO = F
332342 aO
333343 }
334344 else false
335345 }
336- let P = getStringValue(((((e + a) + bd) + "_") + be))
337- let bg = valueOrErrorMessage(getStringValue(((bd + a) + "Owner")), "No owner")
346+ let P = getStringValue(((((e + a) + bg) + "_") + bh))
347+ let bj = valueOrErrorMessage(getStringValue(((bg + a) + "Owner")), "No owner")
338348 if ((aI.payments[0].assetId != unit))
339349 then throw("Pay in waves")
340- else if ((bf == toString(aI.caller)))
350+ else if ((bi == toString(aI.caller)))
341351 then throw("Owner of NFT not able to purchase")
342- else [ScriptTransfer(aI.caller, 1, T), ScriptTransfer(Address(fromBase58String(bg)), aM, unit), StringEntry(((toString(aI.caller) + a) + aE), ((bd + a) + toString(aM))), DeleteEntry((("nft_" + be) + "_owner"))]
352+ else [ScriptTransfer(aI.caller, 1, T), ScriptTransfer(Address(fromBase58String(bj)), aM, unit), StringEntry(((toString(aI.caller) + a) + aE), ((bg + a) + toString(aM))), DeleteEntry((("nft_" + bh) + "_owner"))]
343353 }
344354
345355
346356
347357 @Callable(aI)
348358 func sellNFT (P) = {
349359 let J = aI.caller.bytes
350- let bh = $Tuple2(value(aI.payments[0].assetId), value(aI.payments[0].amount))
351- let bi = bh._1
352- let bj = bh._2
353- if (!(ad(bi)))
360+ let bk = $Tuple2(value(aI.payments[0].assetId), value(aI.payments[0].amount))
361+ let bl = bk._1
362+ let bm = bk._2
363+ if (!(ad(bl)))
354364 then throw("Token is not NFT")
355- else [StringEntry((("nft_" + toBase58String(J)) + "_owner"), toBase58String(J)), StringEntry(((((e + a) + toBase58String(value(aI.payments[0].assetId))) + "_") + toString(aI.caller)), P), StringEntry(((toString(aI.caller) + a) + c), ((toBase58String(bi) + a) + toString(bj)))]
365+ else [StringEntry((("nft_" + toBase58String(J)) + "_owner"), toBase58String(J)), StringEntry(((((e + a) + toBase58String(value(aI.payments[0].assetId))) + "_") + toString(aI.caller)), P), StringEntry(((toString(aI.caller) + a) + c), ((toBase58String(bl) + a) + toString(bm)))]
356366 }
357367
358368
359369
360370 @Callable(aI)
361371 func addSell (P) = {
362372 let h = value(aI.payments[0].assetId)
363373 valueOrElse(au(h), if (!(ai(P)))
364374 then throw("Price must be > 0")
365375 else [N(h, aI.caller, P)])
366376 }
367377
368378
369379
370380 @Callable(aI)
371381 func addAuction (L,M,K) = {
372382 let h = value(aI.payments[0].assetId)
373383 let P = value(K)
374384 let G = $Tuple4(aI.caller, P, L, M)
375385 let am = aI.caller.bytes
376386 let aN = {
377387 let F = getString(this, (((toBase58String(h) + a) + "nft_status_") + toBase58String(am)))
378388 if ($isInstanceOf(F, "String"))
379389 then {
380390 let aO = F
381391 aO
382392 }
383393 else false
384394 }
385395 if ((aN == aG._1))
386396 then throw("Already in Auction list")
387397 else [StringEntry(((toBase58String(h) + "_nft_start_auction_date_") + toBase58String(am)), L), StringEntry(((toBase58String(h) + "_nft_end_auction_date_") + toBase58String(am)), M), IntegerEntry(((toBase58String(h) + "_nft_start_price_") + toBase58String(am)), K), StringEntry(((toBase58String(h) + a) + "nft_owner"), toString(aI.caller)), StringEntry((((toBase58String(h) + a) + "nft_status_") + toBase58String(am)), aG._1)]
388398 }
389399
390400
391401
392402 @Callable(aI)
393403 func buyFromSlot (h) = {
394- let bk = $Tuple2(aI.payments[0].assetId, value(aI.payments[0].amount))
395- let aw = bk._1
396- let ax = bk._2
404+ let bn = $Tuple2(aI.payments[0].assetId, value(aI.payments[0].amount))
405+ let aw = bn._1
406+ let ax = bn._2
397407 let T = fromBase58String(h)
398- let bl = aD(T)
399- let bm = bl._1
400- let B = bl._2
401- let bn = [ScriptTransfer(aI.caller, 1, T), DeleteEntry(f(bm, T))]
402- if ((bm == c))
408+ let bo = aD(T)
409+ let bp = bo._1
410+ let B = bo._2
411+ let bq = [ScriptTransfer(aI.caller, 1, T), DeleteEntry(f(bp, T))]
412+ if ((bp == c))
403413 then {
404- let bo = D(B)
405- let J = bo._1
406- let bp = bo._2
407- valueOrElse(av(aw, ax, bp), {
408- let bq = aA(af(T), ax, bp)
409- let br = bq._1
410- let bs = bq._2
411- let bt = (bn ++ [ScriptTransfer(J, br, unit)])
412- if ((bs > 0))
413- then (bt ++ [ScriptTransfer(aI.caller, bs, unit)])
414- else bt
414+ let br = D(B)
415+ let J = br._1
416+ let bs = br._2
417+ valueOrElse(av(aw, ax, bs), {
418+ let bt = aA(af(T), ax, bs)
419+ let bu = bt._1
420+ let bv = bt._2
421+ let bw = (bq ++ [ScriptTransfer(J, bu, unit)])
422+ if ((bv > 0))
423+ then (bw ++ [ScriptTransfer(aI.caller, bv, unit)])
424+ else bw
415425 })
416426 }
417427 else {
418- let bu = S(T, height)
419- let J = bu._1
420- let aC = bu._2
428+ let bx = S(T, height)
429+ let J = bx._1
430+ let aC = bx._2
421431 valueOrElse(av(aw, ax, aC), {
422- let bv = aA(af(T), ax, aC)
423- let br = bv._1
424- let bs = bv._2
425- let bt = (bn ++ [ScriptTransfer(J, br, unit)])
426- if ((bs > 0))
427- then (bt ++ [ScriptTransfer(aI.caller, bs, unit)])
428- else bt
432+ let by = aA(af(T), ax, aC)
433+ let bu = by._1
434+ let bv = by._2
435+ let bw = (bq ++ [ScriptTransfer(J, bu, unit)])
436+ if ((bv > 0))
437+ then (bw ++ [ScriptTransfer(aI.caller, bv, unit)])
438+ else bw
429439 })
430440 }
431441 }
432442
433443
434444
435445 @Callable(aI)
436446 func declineSlot (h) = {
437447 let T = fromBase58String(h)
438- let bw = aD(T)
439- let bm = bw._1
440- let B = bw._2
441- let bn = [DeleteEntry(f(bm, T))]
442- if ((bm == c))
448+ let bz = aD(T)
449+ let bp = bz._1
450+ let B = bz._2
451+ let bq = [DeleteEntry(f(bp, T))]
452+ if ((bp == c))
443453 then {
444- let bx = D(B)
445- let J = bx._1
446- let bp = bx._2
454+ let bA = D(B)
455+ let J = bA._1
456+ let bs = bA._2
447457 if (!(an(aI.caller, J)))
448458 then throw("Invalid caller")
449- else (bn ++ [ScriptTransfer(J, 1, T)])
459+ else (bq ++ [ScriptTransfer(J, 1, T)])
450460 }
451461 else {
452- let by = A(B)
453- let J = by._1
454- let W = by._2
455- let X = by._3
456- let Y = by._4
457- let Z = by._5
462+ let bB = A(B)
463+ let J = bB._1
464+ let W = bB._2
465+ let X = bB._3
466+ let Y = bB._4
467+ let Z = bB._5
458468 if (!(an(aI.caller, J)))
459469 then throw("Invalid caller")
460470 else if (!(ao(height, Z)))
461471 then throw("Wait for end of auction")
462- else (bn ++ [ScriptTransfer(J, 1, T)])
472+ else (bq ++ [ScriptTransfer(J, 1, T)])
463473 }
464474 }
465475
466476
467477
468478 @Callable(aI)
469-func setTrustedIssuer (bz) = if (!(al(aI.caller)))
479+func setTrustedIssuer (bC) = if (!(al(aI.caller)))
470480 then throw("Only admin")
471- else [BooleanEntry(l(addressFromStringValue(bz)), true)]
481+ else [BooleanEntry(l(addressFromStringValue(bC)), true)]
472482
473483
474484
475485 @Callable(aI)
476486 func getPriceAtCurrentMoment (h,U) = {
477487 let T = fromBase58String(h)
478- let bA = S(T, U)
479- let J = bA._1
480- let P = bA._2
488+ let bD = S(T, U)
489+ let J = bD._1
490+ let P = bD._2
481491 [IntegerEntry(i(T), P)]
482492 }
483493
484494

github/deemru/w8io/169f3d6 
93.19 ms