tx · 8G8BGrUyjndxQhEgXCQzFFTF4ze7GFm8ALWsyxsbtHY1

3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2:  -0.05000000 Waves

2021.09.01 23:12 [1684432] smart account 3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2 > SELF 0.00000000 Waves

{ "type": 13, "id": "8G8BGrUyjndxQhEgXCQzFFTF4ze7GFm8ALWsyxsbtHY1", "fee": 5000000, "feeAssetId": null, "timestamp": 1630527185332, "version": 2, "chainId": 84, "sender": "3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2", "senderPublicKey": "ANm32Ptz6YTMKvYUJBEYd4CYiTVn6XEvYjZhewQMphSJ", "proofs": [ "33YqEJacvq7EoZuusdYZdyrB72sdq7i6amm5K3r7JVRqw8ZdVxF3UWCuhn7q4RceeGRSVuErG1BtHbwbuLocSFsV" ], "script": "base64:AAIFAAAAAAAAAnkIAhIDCgEBEgMKAQgSAwoBCBIECgIICBIECgIICBoWCgJhMRIQTkZUSXNzdWVyQWRkcmVzcxoaCgJhMhIUTkZUSXNzdWVyZmVlUmVjZWl2ZXIaGQoCYTMSE05GVElzc3VlcmZlZVBlcmNlbnQaFgoCYTQSEEFydGlzdGZlZVBlcmNlbnQaEwoCYTUSDXNjb25leEFzc2V0SWQaEwoCYTYSDXRyeUdldEludGVnZXIaCQoCYTcSA2tleRoJCgJhOBIDdmFsGg0KAmE5EgckbWF0Y2gwGgcKAmIxEgFiGhIKAmIyEgx0cnlHZXRTdHJpbmcaEgoCYjMSDGdldE5GVElzc3VlchoNCgJiNBIHYXNzZXRJZBoRCgJiNRILbXlhc3NldGluZm8aEgoCYjYSDGdldE5GVEFydGlzdBoTCgJiNxINQXJ0aXN0QWRkcmVzcxoWCgJiOBIQYWNjZXB0ZWRBc3NldElkcxoHCgJiORIBaRoQCgJjMRIKc3RhcnRQcmljZRoPCgJjMhIJYXVjdGlvbklkGgcKAmMzEgF4GgkKAmM0EgNwbXQaCw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wkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAACZDIAAAAAAAAAAAEJAAJZAAAAAQUAAAACYjQFAAAAA25pbAAAAAEAAAACZDcBAAAAAmQ4AAAAAAkAAfQAAAADCAUAAAACZDcAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJkNwAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJkNwAAAA9zZW5kZXJQdWJsaWNLZXkcyFrG", "height": 1684432, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EJXS2Vy7tjHgmdsBWYnHDgaZQN52C5W2P6Cztq9m7Vkw Next: Dt5FWBqNqxLccb1KU7zLKENfod9QnPrCxv6EvYp2zRQo Diff:
OldNewDifferences
6969 @Callable(r)
7070 func initAuction (s) = {
7171 let t = toBase58String(r.transactionId)
72- let u = if (isDefined(r.payments))
73- then value(r.payments)
72+ let u = if (isDefined(r.payments[0]))
73+ then value(r.payments[0])
7474 else throw("No payment attached")
7575 let v = value(r.payments[0])
7676 let m = value(v.assetId)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA'
55
66 let b = base58'3N65xLq8JcCeaEiR1TJQ7dBqXBvEy6E48Wz'
77
88 let c = 3
99
1010 let d = 7
1111
1212 let e = base58'DZ8ALmuLeSZ2ocsYLAcL9MiXBFDbMNQG9LtitREyU5ZC'
1313
1414 func f (g) = {
1515 let h = {
1616 let i = getInteger(this, g)
1717 if ($isInstanceOf(i, "Int"))
1818 then {
1919 let j = i
2020 j
2121 }
2222 else 0
2323 }
2424 h
2525 }
2626
2727
2828 func k (g) = {
2929 let h = {
3030 let i = getString(this, g)
3131 if ($isInstanceOf(i, "String"))
3232 then {
3333 let j = i
3434 j
3535 }
3636 else ""
3737 }
3838 h
3939 }
4040
4141
4242 func l (m) = {
4343 let n = value(assetInfo(m))
4444 if ((n.issuer == Address(a)))
4545 then "true"
4646 else ""
4747 }
4848
4949
5050 func o (m) = {
5151 let p = {
5252 let i = getString(Address(a), ("nft_issued_" + m))
5353 if ($isInstanceOf(i, "String"))
5454 then {
5555 let j = i
5656 j
5757 }
5858 else ""
5959 }
6060 p
6161 }
6262
6363
6464 func q (m) = if ((m != toBase58String(e)))
6565 then throw("Only Sconex accepted")
6666 else true
6767
6868
6969 @Callable(r)
7070 func initAuction (s) = {
7171 let t = toBase58String(r.transactionId)
72- let u = if (isDefined(r.payments))
73- then value(r.payments)
72+ let u = if (isDefined(r.payments[0]))
73+ then value(r.payments[0])
7474 else throw("No payment attached")
7575 let v = value(r.payments[0])
7676 let m = value(v.assetId)
7777 let w = l(m)
7878 if ((w == ""))
7979 then throw("You can only sell an NFT created on SCONE Marketplace")
8080 else [StringEntry((("auction_" + t) + "_status"), "open"), StringEntry((("auction_" + toBase58String(m)) + "_last"), t), StringEntry((("auction_" + t) + "_assetName"), w), StringEntry((("auction_" + t) + "_assetId"), toBase58String(m)), IntegerEntry((("auction_" + t) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + t) + "_owner"), toString(r.caller)), IntegerEntry((("auction_" + t) + "_startPrice"), s), StringEntry((((("address_" + toString(r.caller)) + "_auction_") + t) + "_lockedNFT"), toBase58String(m))]
8181 }
8282
8383
8484
8585 @Callable(r)
8686 func cancelAuction (t) = {
8787 let x = k((("auction_" + t) + "_owner"))
8888 if ((toString(r.caller) != x))
8989 then throw("Only allowed to auction owner")
9090 else if ((k((("auction_" + t) + "_status")) != "open"))
9191 then throw("auction is close")
9292 else [StringEntry((("auction_" + t) + "_status"), "cancelled"), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, 1, fromBase58String(getStringValue(this, (("auction_" + t) + "_assetId"))))]
9393 }
9494
9595
9696
9797 @Callable(r)
9898 func placeBid (t) = {
9999 let v = value(r.payments[0])
100100 let y = v.amount
101101 let z = toBase58String(r.transactionId)
102102 let m = getStringValue(this, (("auction_" + t) + "_assetId"))
103103 let A = if (!(isDefined(v.assetId)))
104104 then throw("Only sconex is accepted!")
105105 else toBase58String(value(v.assetId))
106106 if (!(q(A)))
107107 then throw("Auction does only support sconex payments")
108108 else {
109109 let B = f((("auction_" + t) + "_startPrice"))
110110 if ((B > y))
111111 then throw(("The minimal initial price is set as " + toString(B)))
112112 else [StringEntry((((("auction_" + t) + "_bid_") + z) + "_author"), toString(r.caller)), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(y)) + "\", \"status\": \"open\"}")), IntegerEntry((((("auction_" + t) + "_bid_") + z) + "_amount"), y), StringEntry(((((("address_" + toString(r.caller)) + "_auction_") + t) + "_bid_") + z), m), StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "open")]
113113 }
114114 }
115115
116116
117117
118118 @Callable(r)
119119 func cancelBid (t,z) = {
120120 let m = getStringValue(this, (("auction_" + t) + "_assetId"))
121121 let C = k((((("auction_" + t) + "_bid_") + z) + "_author"))
122122 let D = f((((("auction_" + t) + "_bid_") + z) + "_amount"))
123123 if (if ((toString(r.caller) != C))
124124 then (r.caller != this)
125125 else false)
126126 then throw("Only allowed to the bid author or admin")
127127 else if ((k((((("auction_" + t) + "_bid_") + z) + "_status")) != "open"))
128128 then throw("bid is not open")
129129 else [StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"cancelled\"}")), StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "cancelled"), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), ScriptTransfer(Address(fromBase58String(C)), D, e)]
130130 }
131131
132132
133133
134134 @Callable(r)
135135 func acceptBid (t,z) = {
136136 let x = k((("auction_" + t) + "_owner"))
137137 let C = k((((("auction_" + t) + "_bid_") + z) + "_author"))
138138 let D = f((((("auction_" + t) + "_bid_") + z) + "_amount"))
139139 let E = k((((("auction_" + t) + "_bid_") + z) + "_status"))
140140 let m = k((("auction_" + t) + "_assetId"))
141141 if ((toString(r.caller) != x))
142142 then throw("Only allowed to auction owner")
143143 else if ((E != "open"))
144144 then throw("Bid was cancelled and cannot be accepted")
145145 else {
146146 let F = f((m + "_recordPrice"))
147147 let G = max([F, D])
148148 let p = o(m)
149149 if ((p == ""))
150150 then [StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), D), IntegerEntry((m + "_recordPrice"), G), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(D, ((100 - c) - d), 100), e), ScriptTransfer(Address(b), fraction(D, d, 100), e), ScriptTransfer(Address(b), fraction(D, c, 100), e), ScriptTransfer(addressFromStringValue(C), 1, fromBase58String(m))]
151151 else [StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), D), IntegerEntry((m + "_recordPrice"), G), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(D, ((100 - c) - d), 100), e), ScriptTransfer(Address(fromBase58String(p)), fraction(D, d, 100), e), ScriptTransfer(Address(b), fraction(D, c, 100), e), ScriptTransfer(addressFromStringValue(C), 1, fromBase58String(m))]
152152 }
153153 }
154154
155155
156156 @Verifier(H)
157157 func I () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey)
158158

github/deemru/w8io/026f985 
34.09 ms