tx · 6PAaA4Jj6eMoa9Smseo9fdQEYmxtkSqFJfnkN9qpXgqu

3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx:  -0.01400000 Waves

2023.02.09 11:42 [2441870] smart account 3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx > SELF 0.00000000 Waves

{ "type": 13, "id": "6PAaA4Jj6eMoa9Smseo9fdQEYmxtkSqFJfnkN9qpXgqu", "fee": 1400000, "feeAssetId": null, "timestamp": 1675932278587, "version": 2, "chainId": 84, "sender": "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx", "senderPublicKey": "EKZmHJ5bK3qKKgRdq8rAamt9qrDbVMLARzRqXoQW258v", "proofs": [ "27ECiD1GaHVqwwFGB6pNoqr3fBkoqbEska8y113hjLygrM336Xkvg96XwG6mysWyvRnmBBGzyb5Vs8imdbqzFEo8" ], "script": "base64:BgJQCAISCwoJCAgICAgBCAgIEgQKAggIEgQKAggIEgMKAQgSBwoFCAgIAQISBwoFCAgICAISBgoECAgIAhIECgIIAhIDCgEIEgQKAggIEgMKAQgLAAlzZXBhcmF0b3ICAV8ABGtCdXkCA2J1eQAGa1ByaWNlAgVwcmljZQAFa1NlbGwCBHNlbGwAEm1heEF1Y3Rpb25EdXJhdGlvbgAHAAV0ZWFtcwEghWOVo/OIjrDeDBeOCE6/mj+SuybbOuh2jhbcFCIqSH4ABVdBVkVTAQAABGtCaWQCA2JpZAAMc3RhdHVzRm9yTkZUCQCWCgQCBE9QRU4CBkNMT1NFRAIIUkVXQVJERUQCCENBTkNFTEVEAAtkQXBwQWRkcmVzcwEaAVRKuE9s3sLak+30julKNvjVT3+V1VVbXaABBWlzTmZ0AQdhc3NldElkBAckbWF0Y2gwCQDsBwEFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIFQXNzZXQEBXRva2VuBQckbWF0Y2gwAwMJAAACCAUFdG9rZW4IZGVjaW1hbHMAAAkAAAIIBQV0b2tlbghxdWFudGl0eQABBwkAAAIIB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yaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIFBmFtb3VudAUFdGVhbXMFA25pbAUDbmlsAWkBB3Rlc3RCaWQBBGRhdGEJAMwIAgkBC1N0cmluZ0VudHJ5AgI4RThra0ZCWUN5NDRKSmFxNnBBWjZLaXpzdVJlc2k1VUtOaGJEMVdOWndoaFlfaGlnaGVzdF9iaWQCATAFA25pbAD3KEtb", "height": 2441870, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dwwsot3LmC8Gwe3G6ykrzHccUd7GCb1kHzhv7iNAjVDD Next: D1g7v81broU4YvRLK1CwrehWmD86k2sF4dmcchKV9yt9 Diff:
OldNewDifferences
4747
4848
4949 @Callable(o)
50-func sellNFT (B) = {
50+func sellNFT (B,C) = {
5151 let A = o.transactionId
52- let C = o.caller.bytes
53- let D = $Tuple2(value(o.payments[0].assetId), value(o.payments[0].amount))
54- let E = D._1
55- let F = D._2
56- if (!(k(E)))
52+ let D = o.caller.bytes
53+ let E = $Tuple2(value(o.payments[0].assetId), value(o.payments[0].amount))
54+ let F = E._1
55+ let G = E._2
56+ if (!(k(F)))
5757 then throw("Token is not NFT")
58- else [StringEntry(((c + a) + toBase58String(value(o.payments[0].assetId))), B), StringEntry(((toString(o.caller) + a) + d), ((toBase58String(E) + a) + toString(F)))]
58+ else [StringEntry(((c + a) + toBase58String(value(o.payments[0].assetId))), B), StringEntry(((toString(o.caller) + a) + d), (((toBase58String(F) + a) + toString(G)) + C))]
5959 }
6060
6161
6262
6363 @Callable(o)
64-func buyNFT (G,H) = {
65- let l = fromBase58String(G)
66- let I = value(o.payments[0].amount)
67- let J = {
68- let m = getString(this, (("nft_" + H) + "_owner"))
64+func buyNFT (H,I) = {
65+ let l = fromBase58String(H)
66+ let J = value(o.payments[0].amount)
67+ let K = {
68+ let m = getString(this, (("nft_" + I) + "_owner"))
6969 if ($isInstanceOf(m, "String"))
7070 then {
71- let K = m
72- K
71+ let L = m
72+ L
7373 }
7474 else false
7575 }
76- let B = getStringValue(((((c + a) + G) + "_") + H))
77- if ((H == toString(o.caller)))
76+ let B = getStringValue(((((c + a) + H) + "_") + I))
77+ if ((I == toString(o.caller)))
7878 then throw("current Owner of NFT not able to purchase")
7979 else if ((o.payments[0].assetId == f))
80- then [ScriptTransfer(o.caller, 1, l), ScriptTransfer(Address(fromBase58String(H)), I, f), StringEntry(((toString(o.caller) + a) + b), ((G + a) + toString(I))), DeleteEntry((("nft_" + H) + "_owner")), StringEntry((("nft_" + H) + "_owner"), toString(o.caller)), StringEntry(((G + a) + "_owner"), toString(o.caller))]
80+ then [ScriptTransfer(o.caller, 1, l), ScriptTransfer(Address(fromBase58String(I)), J, f), StringEntry(((toString(o.caller) + a) + b), ((H + a) + toString(J))), DeleteEntry((("nft_" + I) + "_owner")), StringEntry((("nft_" + I) + "_owner"), toString(o.caller)), StringEntry(((H + a) + "_owner"), toString(o.caller))]
8181 else if ((o.payments[0].assetId == unit))
82- then [ScriptTransfer(o.caller, 1, l), ScriptTransfer(Address(fromBase58String(H)), I, unit), StringEntry(((toString(o.caller) + a) + b), ((G + a) + toString(I))), DeleteEntry((("nft_" + H) + "_owner")), StringEntry((("nft_" + H) + "_owner"), toString(o.caller)), StringEntry(((G + a) + "_owner"), toString(o.caller))]
82+ then [ScriptTransfer(o.caller, 1, l), ScriptTransfer(Address(fromBase58String(I)), J, unit), StringEntry(((toString(o.caller) + a) + b), ((H + a) + toString(J))), DeleteEntry((("nft_" + I) + "_owner")), StringEntry((("nft_" + I) + "_owner"), toString(o.caller)), StringEntry(((H + a) + "_owner"), toString(o.caller))]
8383 else nil
8484 }
8585
8686
8787
8888 @Callable(o)
89-func cancelSell (L) = {
89+func cancelSell (M) = {
9090 let A = toBase58String(o.transactionId)
91- let C = o.caller.bytes
92-[StringEntry(((A + L) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(C), 1, fromBase58String(L))]
91+ let D = o.caller.bytes
92+[StringEntry(((A + M) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(D), 1, fromBase58String(M))]
9393 }
9494
9595
9696
9797 @Callable(o)
98-func addAuction (M,N,O,P,Q) = {
98+func addAuction (N,O,P,Q,C) = {
9999 let A = toBase58String(o.transactionId)
100- let L = value(o.payments[0].assetId)
101- let B = value(O)
102- let R = (lastBlock.height + P)
100+ let M = value(o.payments[0].assetId)
101+ let B = value(P)
102+ let R = (lastBlock.height + Q)
103103 let S = o.caller.bytes
104104 let T = {
105- let m = getString(this, (((toBase58String(L) + a) + "nft_status_") + toBase58String(S)))
105+ let m = getString(this, (((toBase58String(M) + a) + "nft_status_") + toBase58String(S)))
106106 if ($isInstanceOf(m, "String"))
107107 then {
108- let K = m
108+ let L = m
109109 true
110110 }
111111 else false
112112 }
113113 if ((T == true))
114114 then throw("Already in auction list")
115- else if ((P > e))
115+ else if ((Q > e))
116116 then throw(("Duration is too long. Must be less than or equal to 7 " + toString(e)))
117117 else if ((o.payments[0].assetId == unit))
118118 then throw("NFT not attached")
119119 else if ((o.payments[0].assetId == f))
120120 then throw("NFT not attached")
121- else [StringEntry(((A + "nft_start_auction_date") + toBase58String(S)), M), StringEntry(((A + "nft_end_auction_date") + toBase58String(S)), N), StringEntry((A + "_nft_start_price"), O), StringEntry((A + "_nft_owner"), toString(o.caller)), StringEntry((A + "_nft_on_auction"), toBase58String(L)), StringEntry((A + "_previous_bidder"), "none"), StringEntry((A + "_highest_bid"), "0"), StringEntry((A + "_winner_of_nft"), "0"), StringEntry((A + "_bidder_count"), "0"), StringEntry((A + "_nft_status"), "OPEN")]
121+ else [StringEntry(((A + "nft_start_auction_date") + toBase58String(S)), N), StringEntry(((A + "nft_end_auction_date") + toBase58String(S)), O), StringEntry((A + "_nft_start_price"), P), StringEntry((A + "_nft_owner"), toString(o.caller)), StringEntry((A + "_nft_on_auction"), toBase58String(M)), StringEntry((A + "_previous_bidder"), "none"), StringEntry((A + "_highest_bid"), "0"), StringEntry((A + "_winner_of_nft"), "0"), StringEntry((A + "_bidder_count"), "0"), StringEntry((A + "_nft_status"), "OPEN")]
122122 }
123123
124124
125125
126126 @Callable(o)
127-func placeBid (U,L,q,V,W) = {
127+func placeBid (U,M,q,V,W) = {
128128 let A = toBase58String(o.transactionId)
129129 let S = o.caller.bytes
130- let l = fromBase58String(L)
130+ let l = fromBase58String(M)
131131 let X = o.payments[0].amount
132132 let Y = getStringValue(this, (U + "_highest_bid"))
133133 let Z = getString(this, (U + "_previous_bidder"))
140140 then throw("Bid is less then starting/highest Bid")
141141 else if ((Y == "0"))
142142 then [StringEntry((U + "_highest_bid"), toString(X)), StringEntry((U + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((U + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((U + "_nft_id"), toBase58String(l)), StringEntry((U + "_nft_owner"), q), StringEntry((((A + "_") + U) + "_highest_bid"), toString(X)), StringEntry((((A + "_") + U) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + U) + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((((A + "_") + U) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + U) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(S)), StringEntry((A + "_bid_price_place"), V), StringEntry((A + "_previous_bid_amount_refund_to_address"), ab), StringEntry((A + "_prevoius_bid_amount_refund"), Y)]
143- else [StringEntry((U + "_highest_bid"), toString(X)), StringEntry((U + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((U + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((U + "_nft_id"), toBase58String(l)), StringEntry((U + "_nft_owner"), q), StringEntry((((A + "_") + U) + "_highest_bid"), toString(X)), StringEntry((((A + "_") + U) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + U) + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((((A + "_") + U) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + U) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(S)), StringEntry((A + "_bid_price_place"), V), StringEntry((A + "_previous_bid_amount_refund_to_address"), ab), StringEntry((A + "_prevoius_bid_amount_refund"), Y), ScriptTransfer(Address(fromBase58String(ab)), parseIntValue(Y), W)]
143+ else if ((Y != "0"))
144+ then [ScriptTransfer(Address(fromBase58String(ab)), parseIntValue(Y), W), StringEntry((A + "_previous_bid_amount_refund_to_address"), ab), StringEntry((A + "_prevoius_bid_amount_refund"), Y), StringEntry((U + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((U + "_highest_bid"), toString(X)), StringEntry((U + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((U + "_nft_id"), toBase58String(l)), StringEntry((U + "_nft_owner"), q), StringEntry((((A + "_") + U) + "_highest_bid"), toString(X)), StringEntry((((A + "_") + U) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + U) + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((((A + "_") + U) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + U) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(S)), StringEntry((A + "_bid_price_place"), V)]
145+ else nil
144146 }
145147
146148
147149
148150 @Callable(o)
149-func acceptBidOffer (U,L,ac,W) = {
151+func acceptBidOffer (U,M,ac,W) = {
150152 let A = toBase58String(o.transactionId)
151153 let S = o.caller.bytes
152- let l = fromBase58String(L)
154+ let l = fromBase58String(M)
153155 let ad = getStringValue(this, (U + "_highest_bid"))
154156 let ae = getStringValue(this, (U + "_winner_of_nft"))
155157 if ((W == g))
168170 let af = getStringValue(this, (U + "_nft_status"))
169171 let ag = getStringValue(this, (U + "_winner_of_nft"))
170172 let ah = getStringValue(this, (U + "_nft_owner"))
171- let L = getStringValue(this, (U + "_nft_on_auction"))
173+ let M = getStringValue(this, (U + "_nft_on_auction"))
172174 let ai = getStringValue(this, (U + "_highest_bid"))
173175 if ((ag == "0"))
174- then [StringEntry(((A + U) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(L))]
176+ then [StringEntry(((A + U) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(M))]
175177 else if ((W == g))
176- then [StringEntry((U + "_nft_status"), "CANCELED"), StringEntry((U + "_previous_bid_amount_refund_to_address"), ag), StringEntry((U + "_prevoius_bid_amount_refund"), ai), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ag), StringEntry((A + "_prevoius_bid_amount_refund"), ai), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(L)), ScriptTransfer(Address(fromBase58String(ag)), parseIntValue(ai), unit)]
178+ then [StringEntry((U + "_nft_status"), "CANCELED"), StringEntry((U + "_previous_bid_amount_refund_to_address"), ag), StringEntry((U + "_prevoius_bid_amount_refund"), ai), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ag), StringEntry((A + "_prevoius_bid_amount_refund"), ai), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(M)), ScriptTransfer(Address(fromBase58String(ag)), parseIntValue(ai), unit)]
177179 else if ((W == f))
178- then [StringEntry((U + "_nft_status"), "CANCELED"), StringEntry((U + "_previous_bid_amount_refund_to_address"), ag), StringEntry((U + "_prevoius_bid_amount_refund"), ai), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ag), StringEntry((A + "_prevoius_bid_amount_refund"), ai), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(L)), ScriptTransfer(Address(fromBase58String(ag)), parseIntValue(ai), f)]
180+ then [StringEntry((U + "_nft_status"), "CANCELED"), StringEntry((U + "_previous_bid_amount_refund_to_address"), ag), StringEntry((U + "_prevoius_bid_amount_refund"), ai), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ag), StringEntry((A + "_prevoius_bid_amount_refund"), ai), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(M)), ScriptTransfer(Address(fromBase58String(ag)), parseIntValue(ai), f)]
179181 else nil
180182 }
181183
198200 func manualFundTransfer (an,ao) = {
199201 let S = o.caller.bytes
200202 let ap = fromBase58String(an)
201- let I = o.payments[0].amount
203+ let J = o.payments[0].amount
202204 if ((o.payments[0].assetId == unit))
203- then [IntegerEntry((toBase58String(S) + "_transfer"), I), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), I, unit)]
205+ then [IntegerEntry((toBase58String(S) + "_transfer"), J), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), J, unit)]
204206 else if ((o.payments[0].assetId == f))
205- then [IntegerEntry((toBase58String(S) + "_transfer"), I), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), I, f)]
207+ then [IntegerEntry((toBase58String(S) + "_transfer"), J), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), J, f)]
206208 else nil
207209 }
208210
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "_"
55
66 let b = "buy"
77
88 let c = "price"
99
1010 let d = "sell"
1111
1212 let e = 7
1313
1414 let f = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq'
1515
1616 let g = base58''
1717
1818 let h = "bid"
1919
2020 let i = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED")
2121
2222 let j = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq'
2323
2424 func k (l) = {
2525 let m = assetInfo(l)
2626 if ($isInstanceOf(m, "Asset"))
2727 then {
2828 let n = m
2929 if (if ((n.decimals == 0))
3030 then (n.quantity == 1)
3131 else false)
3232 then (n.reissuable == false)
3333 else false
3434 }
3535 else false
3636 }
3737
3838
3939 @Callable(o)
4040 func createNft (p,q,r,s,t,u,v,w,x) = {
4141 let y = Issue(p, v, 1, 0, false)
4242 let z = calculateAssetId(y)
4343 let A = o.transactionId
4444 [y, ScriptTransfer(o.caller, 1, z), StringEntry(((toBase58String(z) + a) + "Owner"), toString(o.caller)), StringEntry(((toBase58String(z) + a) + "nft_type"), s), StringEntry(((toBase58String(z) + a) + "nft_tags"), t), StringEntry(((toBase58String(z) + a) + "nft_dAppAddress"), r), IntegerEntry(((toBase58String(z) + a) + "nft_selling_price"), u), StringEntry(((toBase58String(z) + a) + "nft_onSell"), w), StringEntry(((toBase58String(z) + a) + "nft_data"), x), StringEntry(((toBase58String(A) + a) + "issue_nft"), toBase58String(z))]
4545 }
4646
4747
4848
4949 @Callable(o)
50-func sellNFT (B) = {
50+func sellNFT (B,C) = {
5151 let A = o.transactionId
52- let C = o.caller.bytes
53- let D = $Tuple2(value(o.payments[0].assetId), value(o.payments[0].amount))
54- let E = D._1
55- let F = D._2
56- if (!(k(E)))
52+ let D = o.caller.bytes
53+ let E = $Tuple2(value(o.payments[0].assetId), value(o.payments[0].amount))
54+ let F = E._1
55+ let G = E._2
56+ if (!(k(F)))
5757 then throw("Token is not NFT")
58- else [StringEntry(((c + a) + toBase58String(value(o.payments[0].assetId))), B), StringEntry(((toString(o.caller) + a) + d), ((toBase58String(E) + a) + toString(F)))]
58+ else [StringEntry(((c + a) + toBase58String(value(o.payments[0].assetId))), B), StringEntry(((toString(o.caller) + a) + d), (((toBase58String(F) + a) + toString(G)) + C))]
5959 }
6060
6161
6262
6363 @Callable(o)
64-func buyNFT (G,H) = {
65- let l = fromBase58String(G)
66- let I = value(o.payments[0].amount)
67- let J = {
68- let m = getString(this, (("nft_" + H) + "_owner"))
64+func buyNFT (H,I) = {
65+ let l = fromBase58String(H)
66+ let J = value(o.payments[0].amount)
67+ let K = {
68+ let m = getString(this, (("nft_" + I) + "_owner"))
6969 if ($isInstanceOf(m, "String"))
7070 then {
71- let K = m
72- K
71+ let L = m
72+ L
7373 }
7474 else false
7575 }
76- let B = getStringValue(((((c + a) + G) + "_") + H))
77- if ((H == toString(o.caller)))
76+ let B = getStringValue(((((c + a) + H) + "_") + I))
77+ if ((I == toString(o.caller)))
7878 then throw("current Owner of NFT not able to purchase")
7979 else if ((o.payments[0].assetId == f))
80- then [ScriptTransfer(o.caller, 1, l), ScriptTransfer(Address(fromBase58String(H)), I, f), StringEntry(((toString(o.caller) + a) + b), ((G + a) + toString(I))), DeleteEntry((("nft_" + H) + "_owner")), StringEntry((("nft_" + H) + "_owner"), toString(o.caller)), StringEntry(((G + a) + "_owner"), toString(o.caller))]
80+ then [ScriptTransfer(o.caller, 1, l), ScriptTransfer(Address(fromBase58String(I)), J, f), StringEntry(((toString(o.caller) + a) + b), ((H + a) + toString(J))), DeleteEntry((("nft_" + I) + "_owner")), StringEntry((("nft_" + I) + "_owner"), toString(o.caller)), StringEntry(((H + a) + "_owner"), toString(o.caller))]
8181 else if ((o.payments[0].assetId == unit))
82- then [ScriptTransfer(o.caller, 1, l), ScriptTransfer(Address(fromBase58String(H)), I, unit), StringEntry(((toString(o.caller) + a) + b), ((G + a) + toString(I))), DeleteEntry((("nft_" + H) + "_owner")), StringEntry((("nft_" + H) + "_owner"), toString(o.caller)), StringEntry(((G + a) + "_owner"), toString(o.caller))]
82+ then [ScriptTransfer(o.caller, 1, l), ScriptTransfer(Address(fromBase58String(I)), J, unit), StringEntry(((toString(o.caller) + a) + b), ((H + a) + toString(J))), DeleteEntry((("nft_" + I) + "_owner")), StringEntry((("nft_" + I) + "_owner"), toString(o.caller)), StringEntry(((H + a) + "_owner"), toString(o.caller))]
8383 else nil
8484 }
8585
8686
8787
8888 @Callable(o)
89-func cancelSell (L) = {
89+func cancelSell (M) = {
9090 let A = toBase58String(o.transactionId)
91- let C = o.caller.bytes
92-[StringEntry(((A + L) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(C), 1, fromBase58String(L))]
91+ let D = o.caller.bytes
92+[StringEntry(((A + M) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(D), 1, fromBase58String(M))]
9393 }
9494
9595
9696
9797 @Callable(o)
98-func addAuction (M,N,O,P,Q) = {
98+func addAuction (N,O,P,Q,C) = {
9999 let A = toBase58String(o.transactionId)
100- let L = value(o.payments[0].assetId)
101- let B = value(O)
102- let R = (lastBlock.height + P)
100+ let M = value(o.payments[0].assetId)
101+ let B = value(P)
102+ let R = (lastBlock.height + Q)
103103 let S = o.caller.bytes
104104 let T = {
105- let m = getString(this, (((toBase58String(L) + a) + "nft_status_") + toBase58String(S)))
105+ let m = getString(this, (((toBase58String(M) + a) + "nft_status_") + toBase58String(S)))
106106 if ($isInstanceOf(m, "String"))
107107 then {
108- let K = m
108+ let L = m
109109 true
110110 }
111111 else false
112112 }
113113 if ((T == true))
114114 then throw("Already in auction list")
115- else if ((P > e))
115+ else if ((Q > e))
116116 then throw(("Duration is too long. Must be less than or equal to 7 " + toString(e)))
117117 else if ((o.payments[0].assetId == unit))
118118 then throw("NFT not attached")
119119 else if ((o.payments[0].assetId == f))
120120 then throw("NFT not attached")
121- else [StringEntry(((A + "nft_start_auction_date") + toBase58String(S)), M), StringEntry(((A + "nft_end_auction_date") + toBase58String(S)), N), StringEntry((A + "_nft_start_price"), O), StringEntry((A + "_nft_owner"), toString(o.caller)), StringEntry((A + "_nft_on_auction"), toBase58String(L)), StringEntry((A + "_previous_bidder"), "none"), StringEntry((A + "_highest_bid"), "0"), StringEntry((A + "_winner_of_nft"), "0"), StringEntry((A + "_bidder_count"), "0"), StringEntry((A + "_nft_status"), "OPEN")]
121+ else [StringEntry(((A + "nft_start_auction_date") + toBase58String(S)), N), StringEntry(((A + "nft_end_auction_date") + toBase58String(S)), O), StringEntry((A + "_nft_start_price"), P), StringEntry((A + "_nft_owner"), toString(o.caller)), StringEntry((A + "_nft_on_auction"), toBase58String(M)), StringEntry((A + "_previous_bidder"), "none"), StringEntry((A + "_highest_bid"), "0"), StringEntry((A + "_winner_of_nft"), "0"), StringEntry((A + "_bidder_count"), "0"), StringEntry((A + "_nft_status"), "OPEN")]
122122 }
123123
124124
125125
126126 @Callable(o)
127-func placeBid (U,L,q,V,W) = {
127+func placeBid (U,M,q,V,W) = {
128128 let A = toBase58String(o.transactionId)
129129 let S = o.caller.bytes
130- let l = fromBase58String(L)
130+ let l = fromBase58String(M)
131131 let X = o.payments[0].amount
132132 let Y = getStringValue(this, (U + "_highest_bid"))
133133 let Z = getString(this, (U + "_previous_bidder"))
134134 let aa = getStringValue(this, (U + "_bidder_count"))
135135 let ab = getStringValue(this, (U + "_winner_of_nft"))
136136 let T = getStringValue(this, (U + "_nft_status"))
137137 if ((T != "OPEN"))
138138 then throw("Not open for auction")
139139 else if ((parseIntValue(Y) >= parseIntValue(toString(X))))
140140 then throw("Bid is less then starting/highest Bid")
141141 else if ((Y == "0"))
142142 then [StringEntry((U + "_highest_bid"), toString(X)), StringEntry((U + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((U + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((U + "_nft_id"), toBase58String(l)), StringEntry((U + "_nft_owner"), q), StringEntry((((A + "_") + U) + "_highest_bid"), toString(X)), StringEntry((((A + "_") + U) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + U) + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((((A + "_") + U) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + U) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(S)), StringEntry((A + "_bid_price_place"), V), StringEntry((A + "_previous_bid_amount_refund_to_address"), ab), StringEntry((A + "_prevoius_bid_amount_refund"), Y)]
143- else [StringEntry((U + "_highest_bid"), toString(X)), StringEntry((U + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((U + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((U + "_nft_id"), toBase58String(l)), StringEntry((U + "_nft_owner"), q), StringEntry((((A + "_") + U) + "_highest_bid"), toString(X)), StringEntry((((A + "_") + U) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + U) + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((((A + "_") + U) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + U) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(S)), StringEntry((A + "_bid_price_place"), V), StringEntry((A + "_previous_bid_amount_refund_to_address"), ab), StringEntry((A + "_prevoius_bid_amount_refund"), Y), ScriptTransfer(Address(fromBase58String(ab)), parseIntValue(Y), W)]
143+ else if ((Y != "0"))
144+ then [ScriptTransfer(Address(fromBase58String(ab)), parseIntValue(Y), W), StringEntry((A + "_previous_bid_amount_refund_to_address"), ab), StringEntry((A + "_prevoius_bid_amount_refund"), Y), StringEntry((U + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((U + "_highest_bid"), toString(X)), StringEntry((U + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((U + "_nft_id"), toBase58String(l)), StringEntry((U + "_nft_owner"), q), StringEntry((((A + "_") + U) + "_highest_bid"), toString(X)), StringEntry((((A + "_") + U) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + U) + "_bidder_count"), toString((parseIntValue(aa) + 1))), StringEntry((((A + "_") + U) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + U) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(S)), StringEntry((A + "_bid_price_place"), V)]
145+ else nil
144146 }
145147
146148
147149
148150 @Callable(o)
149-func acceptBidOffer (U,L,ac,W) = {
151+func acceptBidOffer (U,M,ac,W) = {
150152 let A = toBase58String(o.transactionId)
151153 let S = o.caller.bytes
152- let l = fromBase58String(L)
154+ let l = fromBase58String(M)
153155 let ad = getStringValue(this, (U + "_highest_bid"))
154156 let ae = getStringValue(this, (U + "_winner_of_nft"))
155157 if ((W == g))
156158 then [ScriptTransfer(Address(S), parseIntValue(ad), unit), ScriptTransfer(Address(fromBase58String(ae)), 1, l), StringEntry((A + "_amount_paid_to_owner"), ad), StringEntry((A + "_nft_transfer_to"), ae), StringEntry((A + "_nft_status"), "REWARDED"), StringEntry((U + "_amount_paid_to_owner"), ad), StringEntry((U + "_nft_transfer_to"), ae), StringEntry((U + "_nft_status"), "REWARDED")]
157159 else if ((W == f))
158160 then [ScriptTransfer(Address(S), parseIntValue(ad), f), ScriptTransfer(Address(fromBase58String(ae)), 1, l), StringEntry((A + "_amount_paid_to_owner"), ad), StringEntry((A + "_nft_transfer_to"), ae), StringEntry((A + "_nft_status"), "REWARDED"), StringEntry((U + "_amount_paid_to_owner"), ad), StringEntry((U + "_nft_transfer_to"), ae), StringEntry((U + "_nft_status"), "REWARDED")]
159161 else nil
160162 }
161163
162164
163165
164166 @Callable(o)
165167 func cancelAuction (U,W) = {
166168 let A = toBase58String(o.transactionId)
167169 let S = o.caller.bytes
168170 let af = getStringValue(this, (U + "_nft_status"))
169171 let ag = getStringValue(this, (U + "_winner_of_nft"))
170172 let ah = getStringValue(this, (U + "_nft_owner"))
171- let L = getStringValue(this, (U + "_nft_on_auction"))
173+ let M = getStringValue(this, (U + "_nft_on_auction"))
172174 let ai = getStringValue(this, (U + "_highest_bid"))
173175 if ((ag == "0"))
174- then [StringEntry(((A + U) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(L))]
176+ then [StringEntry(((A + U) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(M))]
175177 else if ((W == g))
176- then [StringEntry((U + "_nft_status"), "CANCELED"), StringEntry((U + "_previous_bid_amount_refund_to_address"), ag), StringEntry((U + "_prevoius_bid_amount_refund"), ai), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ag), StringEntry((A + "_prevoius_bid_amount_refund"), ai), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(L)), ScriptTransfer(Address(fromBase58String(ag)), parseIntValue(ai), unit)]
178+ then [StringEntry((U + "_nft_status"), "CANCELED"), StringEntry((U + "_previous_bid_amount_refund_to_address"), ag), StringEntry((U + "_prevoius_bid_amount_refund"), ai), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ag), StringEntry((A + "_prevoius_bid_amount_refund"), ai), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(M)), ScriptTransfer(Address(fromBase58String(ag)), parseIntValue(ai), unit)]
177179 else if ((W == f))
178- then [StringEntry((U + "_nft_status"), "CANCELED"), StringEntry((U + "_previous_bid_amount_refund_to_address"), ag), StringEntry((U + "_prevoius_bid_amount_refund"), ai), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ag), StringEntry((A + "_prevoius_bid_amount_refund"), ai), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(L)), ScriptTransfer(Address(fromBase58String(ag)), parseIntValue(ai), f)]
180+ then [StringEntry((U + "_nft_status"), "CANCELED"), StringEntry((U + "_previous_bid_amount_refund_to_address"), ag), StringEntry((U + "_prevoius_bid_amount_refund"), ai), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ag), StringEntry((A + "_prevoius_bid_amount_refund"), ai), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(M)), ScriptTransfer(Address(fromBase58String(ag)), parseIntValue(ai), f)]
179181 else nil
180182 }
181183
182184
183185
184186 @Callable(o)
185187 func withdrawBid (aj) = {
186188 let S = o.caller.bytes
187189 let ak = getStringValue(this, (aj + "_highest_bid"))
188190 let al = getStringValue(this, (aj + "_winner"))
189191 let am = getStringValue(this, (aj + "_nft_id"))
190192 if ((toBase58String(S) != al))
191193 then throw("No bid")
192194 else [StringEntry((aj + "_nft_bid"), "WITHDRAW"), StringEntry((aj + "_nft_id"), am), StringEntry((aj + "_bidding_price_refund_amount"), ak), ScriptTransfer(o.caller, parseIntValue(ak), unit)]
193195 }
194196
195197
196198
197199 @Callable(o)
198200 func manualFundTransfer (an,ao) = {
199201 let S = o.caller.bytes
200202 let ap = fromBase58String(an)
201- let I = o.payments[0].amount
203+ let J = o.payments[0].amount
202204 if ((o.payments[0].assetId == unit))
203- then [IntegerEntry((toBase58String(S) + "_transfer"), I), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), I, unit)]
205+ then [IntegerEntry((toBase58String(S) + "_transfer"), J), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), J, unit)]
204206 else if ((o.payments[0].assetId == f))
205- then [IntegerEntry((toBase58String(S) + "_transfer"), I), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), I, f)]
207+ then [IntegerEntry((toBase58String(S) + "_transfer"), J), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), J, f)]
206208 else nil
207209 }
208210
209211
210212
211213 @Callable(o)
212214 func testBid (aq) = [StringEntry("E8kkFBYCy44JJaq6pAZ6KizsuResi5UKNhbD1WNZwhhY_highest_bid", "0")]
213215
214216

github/deemru/w8io/169f3d6 
75.33 ms