tx · Gu1mPkR2keCwKZgSZh9S2gr8VMTg6HjLqJnAydHTpug2

3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F:  -0.01200000 Waves

2023.02.01 10:48 [2430278] smart account 3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F > SELF 0.00000000 Waves

{ "type": 13, "id": "Gu1mPkR2keCwKZgSZh9S2gr8VMTg6HjLqJnAydHTpug2", "fee": 1200000, "feeAssetId": null, "timestamp": 1675237780191, "version": 2, "chainId": 84, "sender": "3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F", "senderPublicKey": "3V22YUj3GF4AeBxdWx8rgGdG4groE4W6P2s4sAkshe7R", "proofs": [ "3jfi294UqJwSgJ4fp28cKwxYJjbHx7zXMZ1shevPXSi9udVBwFPGpohXB2JU1ks2BxsCLmA1mghgnjGKmDvSY7jf" ], "script": "base64:BgJOCAISCwoJCAgICAgBCAgIEgMKAQgSBAoCCAgSAwoBCBIHCgUICAgBCBIHCgUICAgIAhIGCgQICAECEgMKAQgSAwoBCBIECgIICBIDCgEICwAJc2VwYXJhdG9yAgFfAARrQnV5AgNidXkABmtQcmljZQIFcHJpY2UABWtTZWxsAgRzZWxsABJtYXhBdWN0aW9uRHVyYXRpb24ABwAFdGVhbXMBIIVjlaPziI6w3gwXjghOv5o/krsm2zrodo4W3BQiKkh+AAV3YXZlcwEAAARrQmlkAgNiaWQADHN0YXR1c0Zvck5GVAkAlgoEAgRPUEVOAgZDTE9TRUQCCFJFV0FSREVEAghDQU5DRUxFRAALZEFwcEFkZHJlc3MBGgFUSrhPbN7C2pPt9I7pSjb41U9/ldVVW12gAQVpc05mdAEHYXNzZXRJZAQHJG1hdGNoMAkA7AcBBQdhc3NldElkAwkAAQIFByRtYXRjaDACBUFzc2V0BAV0b2tlbgUHJG1hdGNoMAMDCQAAAggFBXRva2VuCGRlY2ltYWxzAAAJAAACCAUFdG9rZW4IcXVhbnRpdHkAAQcJAAACCAUFdG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0VudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIMX3RyYW5zZmVyX3RvBQ1yZWNlcGllbnRBZGRyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUGYW1vdW50BQV0ZWFtcwUDbmlsBQNuaWwBaQEHdGVzdEJpZAEEZGF0YQkAzAgCCQELU3RyaW5nRW50cnkCAjhFOGtrRkJZQ3k0NEpKYXE2cEFaNktpenN1UmVzaTVVS05oYkQxV05ad2hoWV9oaWdoZXN0X2JpZAIBMAUDbmlsANHIJH4=", "height": 2430278, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8WF3BT5XW5vfWmEd2aRCeD84pNFLxLp74ZqQZvDTfAvt Next: 4PzpTdG4DjahqcZdwtVBCxoJkn1x2qqUg4A4QUDSrZT4 Diff:
OldNewDifferences
9595
9696
9797 @Callable(o)
98-func addAuction (M,N,O,P) = {
98+func addAuction (M,N,O,P,Q) = {
9999 let A = toBase58String(o.transactionId)
100100 let L = value(o.payments[0].assetId)
101101 let B = value(O)
102- let Q = (lastBlock.height + P)
103- let R = o.caller.bytes
104- let S = {
105- let m = getString(this, (((toBase58String(L) + a) + "nft_status_") + toBase58String(R)))
102+ let R = (lastBlock.height + P)
103+ let S = o.caller.bytes
104+ let T = {
105+ let m = getString(this, (((toBase58String(L) + a) + "nft_status_") + toBase58String(S)))
106106 if ($isInstanceOf(m, "String"))
107107 then {
108108 let K = m
110110 }
111111 else false
112112 }
113- if ((S == true))
113+ if ((T == true))
114114 then throw("Already in auction list")
115115 else if ((P > e))
116116 then throw(("Duration is too long. Must be less than or equal to 7 " + toString(e)))
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(R)), M), StringEntry(((A + "nft_end_auction_date") + toBase58String(R)), 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)), 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")]
122122 }
123123
124124
125125
126126 @Callable(o)
127-func placeBid (T,L,q,U) = {
127+func placeBid (U,L,q,V,W) = {
128128 let A = toBase58String(o.transactionId)
129- let R = o.caller.bytes
129+ let S = o.caller.bytes
130130 let l = fromBase58String(L)
131- let V = o.payments[0].amount
132- let W = getStringValue(this, (T + "_highest_bid"))
133- let X = getString(this, (T + "_previous_bidder"))
134- let Y = getStringValue(this, (T + "_bidder_count"))
135- let Z = getStringValue(this, (T + "_winner_of_nft"))
136- let S = getStringValue(this, (T + "_nft_status"))
137- if ((S != "OPEN"))
131+ let X = o.payments[0].amount
132+ let Y = getStringValue(this, (U + "_highest_bid"))
133+ let Z = getString(this, (U + "_previous_bidder"))
134+ let aa = getStringValue(this, (U + "_bidder_count"))
135+ let ab = getStringValue(this, (U + "_winner_of_nft"))
136+ let T = getStringValue(this, (U + "_nft_status"))
137+ if ((T != "OPEN"))
138138 then throw("Not open for auction")
139- else if ((parseIntValue(W) >= V))
139+ else if ((parseIntValue(Y) >= X))
140140 then throw("Bid is less then starting/highest Bid")
141- else if ((W == "0"))
142- then [StringEntry((T + "_highest_bid"), toString(V)), StringEntry((T + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((T + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((T + "_nft_id"), toBase58String(l)), StringEntry((T + "_nft_owner"), q), StringEntry((((A + "_") + T) + "_highest_bid"), toString(V)), StringEntry((((A + "_") + T) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + T) + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((((A + "_") + T) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + T) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(R)), StringEntry((A + "_bid_price_place"), U), StringEntry((A + "_previous_bid_amount_refund_to_address"), Z), StringEntry((A + "_prevoius_bid_amount_refund"), W)]
143- else if ((o.payments[0].assetId == unit))
144- then [StringEntry((T + "_highest_bid"), toString(V)), StringEntry((T + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((T + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((T + "_nft_id"), toBase58String(l)), StringEntry((T + "_nft_owner"), q), StringEntry((((A + "_") + T) + "_highest_bid"), toString(V)), StringEntry((((A + "_") + T) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + T) + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((((A + "_") + T) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + T) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(R)), StringEntry((A + "_bid_price_place"), U), StringEntry((A + "_previous_bid_amount_refund_to_address"), Z), StringEntry((A + "_prevoius_bid_amount_refund"), W), ScriptTransfer(Address(fromBase58String(Z)), parseIntValue(W), unit)]
145- else if ((o.payments[0].assetId == f))
146- then [StringEntry((T + "_highest_bid"), toString(V)), StringEntry((T + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((T + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((T + "_nft_id"), toBase58String(l)), StringEntry((T + "_nft_owner"), q), StringEntry((((A + "_") + T) + "_highest_bid"), toString(V)), StringEntry((((A + "_") + T) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + T) + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((((A + "_") + T) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + T) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(R)), StringEntry((A + "_bid_price_place"), U), StringEntry((A + "_previous_bid_amount_refund_to_address"), Z), StringEntry((A + "_prevoius_bid_amount_refund"), W), ScriptTransfer(Address(fromBase58String(Z)), parseIntValue(W), f)]
147- else nil
141+ else if ((Y == "0"))
142+ 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)]
148144 }
149145
150146
151147
152148 @Callable(o)
153-func acceptBidOffer (T,L,aa) = {
149+func acceptBidOffer (U,L,ac,W) = {
154150 let A = toBase58String(o.transactionId)
155- let R = o.caller.bytes
151+ let S = o.caller.bytes
156152 let l = fromBase58String(L)
157- let ab = getStringValue(this, (T + "_highest_bid"))
158- let ac = getStringValue(this, (T + "_winner_of_nft"))
159-[ScriptTransfer(Address(R), parseIntValue(ab), f), ScriptTransfer(Address(fromBase58String(ac)), 1, l), StringEntry((A + "_amount_paid_to_owner"), ab), StringEntry((A + "_nft_transfer_to"), ac), StringEntry((A + "_nft_status"), "REWARDED"), StringEntry((T + "_amount_paid_to_owner"), ab), StringEntry((T + "_nft_transfer_to"), ac), StringEntry((T + "_nft_status"), "REWARDED")]
153+ let ad = getStringValue(this, (U + "_highest_bid"))
154+ let ae = getStringValue(this, (U + "_winner_of_nft"))
155+[ScriptTransfer(Address(S), parseIntValue(ad), W), 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")]
160156 }
161157
162158
163159
164160 @Callable(o)
165-func cancelAuction (T) = {
161+func cancelAuction (U) = {
166162 let A = toBase58String(o.transactionId)
167- let R = o.caller.bytes
168- let ad = getStringValue(this, (T + "_nft_status"))
169- let ae = getStringValue(this, (T + "_winner_of_nft"))
170- let af = getStringValue(this, (T + "_nft_owner"))
171- let L = getStringValue(this, (T + "_nft_on_auction"))
172- let ag = getStringValue(this, (T + "_highest_bid"))
173- if ((ae == "0"))
174- then [StringEntry(((A + T) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(af)), 1, fromBase58String(L))]
163+ let S = o.caller.bytes
164+ let af = getStringValue(this, (U + "_nft_status"))
165+ let ag = getStringValue(this, (U + "_winner_of_nft"))
166+ let ah = getStringValue(this, (U + "_nft_owner"))
167+ let L = getStringValue(this, (U + "_nft_on_auction"))
168+ let ai = getStringValue(this, (U + "_highest_bid"))
169+ if ((ag == "0"))
170+ then [StringEntry(((A + U) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(L))]
175171 else if ((o.payments[0].assetId == unit))
176- then [StringEntry((T + "_nft_status"), "CANCELED"), StringEntry((T + "_previous_bid_amount_refund_to_address"), ae), StringEntry((T + "_prevoius_bid_amount_refund"), ag), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ae), StringEntry((A + "_prevoius_bid_amount_refund"), ag), ScriptTransfer(Address(fromBase58String(af)), 1, fromBase58String(L)), ScriptTransfer(Address(fromBase58String(ae)), parseIntValue(ag), unit)]
172+ 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)]
177173 else if ((o.payments[0].assetId == f))
178- then [StringEntry((T + "_nft_status"), "CANCELED"), StringEntry((T + "_previous_bid_amount_refund_to_address"), ae), StringEntry((T + "_prevoius_bid_amount_refund"), ag), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ae), StringEntry((A + "_prevoius_bid_amount_refund"), ag), ScriptTransfer(Address(fromBase58String(af)), 1, fromBase58String(L)), ScriptTransfer(Address(fromBase58String(ae)), parseIntValue(ag), f)]
174+ 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)]
179175 else nil
180176 }
181177
182178
183179
184180 @Callable(o)
185-func withdrawBid (ah) = {
186- let R = o.caller.bytes
187- let ai = getStringValue(this, (ah + "_highest_bid"))
188- let aj = getStringValue(this, (ah + "_winner"))
189- let ak = getStringValue(this, (ah + "_nft_id"))
190- if ((toBase58String(R) != aj))
181+func withdrawBid (aj) = {
182+ let S = o.caller.bytes
183+ let ak = getStringValue(this, (aj + "_highest_bid"))
184+ let al = getStringValue(this, (aj + "_winner"))
185+ let am = getStringValue(this, (aj + "_nft_id"))
186+ if ((toBase58String(S) != al))
191187 then throw("No bid")
192- else [StringEntry((ah + "_nft_bid"), "WITHDRAW"), StringEntry((ah + "_nft_id"), ak), StringEntry((ah + "_bidding_price_refund_amount"), ai), ScriptTransfer(o.caller, parseIntValue(ai), unit)]
188+ else [StringEntry((aj + "_nft_bid"), "WITHDRAW"), StringEntry((aj + "_nft_id"), am), StringEntry((aj + "_bidding_price_refund_amount"), ak), ScriptTransfer(o.caller, parseIntValue(ak), unit)]
193189 }
194190
195191
196192
197193 @Callable(o)
198-func manualFundTransfer (al,am) = {
199- let R = o.caller.bytes
200- let an = fromBase58String(al)
194+func manualFundTransfer (an,ao) = {
195+ let S = o.caller.bytes
196+ let ap = fromBase58String(an)
201197 let I = o.payments[0].amount
202198 if ((o.payments[0].assetId == unit))
203- then [IntegerEntry((toBase58String(R) + "_transfer"), I), StringEntry((toBase58String(R) + "_transfer_to"), al), ScriptTransfer(Address(an), I, unit)]
199+ then [IntegerEntry((toBase58String(S) + "_transfer"), I), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), I, unit)]
204200 else if ((o.payments[0].assetId == f))
205- then [IntegerEntry((toBase58String(R) + "_transfer"), I), StringEntry((toBase58String(R) + "_transfer_to"), al), ScriptTransfer(Address(an), I, f)]
201+ then [IntegerEntry((toBase58String(S) + "_transfer"), I), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), I, f)]
206202 else nil
207203 }
208204
209205
210206
211207 @Callable(o)
212-func testBid (ao) = [StringEntry("E8kkFBYCy44JJaq6pAZ6KizsuResi5UKNhbD1WNZwhhY_highest_bid", "0")]
208+func testBid (aq) = [StringEntry("E8kkFBYCy44JJaq6pAZ6KizsuResi5UKNhbD1WNZwhhY_highest_bid", "0")]
213209
214210
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)
5050 func sellNFT (B) = {
5151 let A = o.transactionId
5252 let C = o.caller.bytes
5353 let D = $Tuple2(value(o.payments[0].assetId), value(o.payments[0].amount))
5454 let E = D._1
5555 let F = D._2
5656 if (!(k(E)))
5757 then throw("Token is not NFT")
5858 else [StringEntry(((c + a) + toBase58String(value(o.payments[0].assetId))), B), StringEntry(((toString(o.caller) + a) + d), ((toBase58String(E) + a) + toString(F)))]
5959 }
6060
6161
6262
6363 @Callable(o)
6464 func buyNFT (G,H) = {
6565 let l = fromBase58String(G)
6666 let I = value(o.payments[0].amount)
6767 let J = {
6868 let m = getString(this, (("nft_" + H) + "_owner"))
6969 if ($isInstanceOf(m, "String"))
7070 then {
7171 let K = m
7272 K
7373 }
7474 else false
7575 }
7676 let B = getStringValue(((((c + a) + G) + "_") + H))
7777 if ((H == toString(o.caller)))
7878 then throw("current Owner of NFT not able to purchase")
7979 else if ((o.payments[0].assetId == f))
8080 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))]
8181 else if ((o.payments[0].assetId == unit))
8282 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))]
8383 else nil
8484 }
8585
8686
8787
8888 @Callable(o)
8989 func cancelSell (L) = {
9090 let A = toBase58String(o.transactionId)
9191 let C = o.caller.bytes
9292 [StringEntry(((A + L) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(C), 1, fromBase58String(L))]
9393 }
9494
9595
9696
9797 @Callable(o)
98-func addAuction (M,N,O,P) = {
98+func addAuction (M,N,O,P,Q) = {
9999 let A = toBase58String(o.transactionId)
100100 let L = value(o.payments[0].assetId)
101101 let B = value(O)
102- let Q = (lastBlock.height + P)
103- let R = o.caller.bytes
104- let S = {
105- let m = getString(this, (((toBase58String(L) + a) + "nft_status_") + toBase58String(R)))
102+ let R = (lastBlock.height + P)
103+ let S = o.caller.bytes
104+ let T = {
105+ let m = getString(this, (((toBase58String(L) + a) + "nft_status_") + toBase58String(S)))
106106 if ($isInstanceOf(m, "String"))
107107 then {
108108 let K = m
109109 true
110110 }
111111 else false
112112 }
113- if ((S == true))
113+ if ((T == true))
114114 then throw("Already in auction list")
115115 else if ((P > 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(R)), M), StringEntry(((A + "nft_end_auction_date") + toBase58String(R)), 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)), 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")]
122122 }
123123
124124
125125
126126 @Callable(o)
127-func placeBid (T,L,q,U) = {
127+func placeBid (U,L,q,V,W) = {
128128 let A = toBase58String(o.transactionId)
129- let R = o.caller.bytes
129+ let S = o.caller.bytes
130130 let l = fromBase58String(L)
131- let V = o.payments[0].amount
132- let W = getStringValue(this, (T + "_highest_bid"))
133- let X = getString(this, (T + "_previous_bidder"))
134- let Y = getStringValue(this, (T + "_bidder_count"))
135- let Z = getStringValue(this, (T + "_winner_of_nft"))
136- let S = getStringValue(this, (T + "_nft_status"))
137- if ((S != "OPEN"))
131+ let X = o.payments[0].amount
132+ let Y = getStringValue(this, (U + "_highest_bid"))
133+ let Z = getString(this, (U + "_previous_bidder"))
134+ let aa = getStringValue(this, (U + "_bidder_count"))
135+ let ab = getStringValue(this, (U + "_winner_of_nft"))
136+ let T = getStringValue(this, (U + "_nft_status"))
137+ if ((T != "OPEN"))
138138 then throw("Not open for auction")
139- else if ((parseIntValue(W) >= V))
139+ else if ((parseIntValue(Y) >= X))
140140 then throw("Bid is less then starting/highest Bid")
141- else if ((W == "0"))
142- then [StringEntry((T + "_highest_bid"), toString(V)), StringEntry((T + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((T + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((T + "_nft_id"), toBase58String(l)), StringEntry((T + "_nft_owner"), q), StringEntry((((A + "_") + T) + "_highest_bid"), toString(V)), StringEntry((((A + "_") + T) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + T) + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((((A + "_") + T) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + T) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(R)), StringEntry((A + "_bid_price_place"), U), StringEntry((A + "_previous_bid_amount_refund_to_address"), Z), StringEntry((A + "_prevoius_bid_amount_refund"), W)]
143- else if ((o.payments[0].assetId == unit))
144- then [StringEntry((T + "_highest_bid"), toString(V)), StringEntry((T + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((T + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((T + "_nft_id"), toBase58String(l)), StringEntry((T + "_nft_owner"), q), StringEntry((((A + "_") + T) + "_highest_bid"), toString(V)), StringEntry((((A + "_") + T) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + T) + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((((A + "_") + T) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + T) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(R)), StringEntry((A + "_bid_price_place"), U), StringEntry((A + "_previous_bid_amount_refund_to_address"), Z), StringEntry((A + "_prevoius_bid_amount_refund"), W), ScriptTransfer(Address(fromBase58String(Z)), parseIntValue(W), unit)]
145- else if ((o.payments[0].assetId == f))
146- then [StringEntry((T + "_highest_bid"), toString(V)), StringEntry((T + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((T + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((T + "_nft_id"), toBase58String(l)), StringEntry((T + "_nft_owner"), q), StringEntry((((A + "_") + T) + "_highest_bid"), toString(V)), StringEntry((((A + "_") + T) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + T) + "_bidder_count"), toString((parseIntValue(Y) + 1))), StringEntry((((A + "_") + T) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + T) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(R)), StringEntry((A + "_bid_price_place"), U), StringEntry((A + "_previous_bid_amount_refund_to_address"), Z), StringEntry((A + "_prevoius_bid_amount_refund"), W), ScriptTransfer(Address(fromBase58String(Z)), parseIntValue(W), f)]
147- else nil
141+ else if ((Y == "0"))
142+ 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)]
148144 }
149145
150146
151147
152148 @Callable(o)
153-func acceptBidOffer (T,L,aa) = {
149+func acceptBidOffer (U,L,ac,W) = {
154150 let A = toBase58String(o.transactionId)
155- let R = o.caller.bytes
151+ let S = o.caller.bytes
156152 let l = fromBase58String(L)
157- let ab = getStringValue(this, (T + "_highest_bid"))
158- let ac = getStringValue(this, (T + "_winner_of_nft"))
159-[ScriptTransfer(Address(R), parseIntValue(ab), f), ScriptTransfer(Address(fromBase58String(ac)), 1, l), StringEntry((A + "_amount_paid_to_owner"), ab), StringEntry((A + "_nft_transfer_to"), ac), StringEntry((A + "_nft_status"), "REWARDED"), StringEntry((T + "_amount_paid_to_owner"), ab), StringEntry((T + "_nft_transfer_to"), ac), StringEntry((T + "_nft_status"), "REWARDED")]
153+ let ad = getStringValue(this, (U + "_highest_bid"))
154+ let ae = getStringValue(this, (U + "_winner_of_nft"))
155+[ScriptTransfer(Address(S), parseIntValue(ad), W), 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")]
160156 }
161157
162158
163159
164160 @Callable(o)
165-func cancelAuction (T) = {
161+func cancelAuction (U) = {
166162 let A = toBase58String(o.transactionId)
167- let R = o.caller.bytes
168- let ad = getStringValue(this, (T + "_nft_status"))
169- let ae = getStringValue(this, (T + "_winner_of_nft"))
170- let af = getStringValue(this, (T + "_nft_owner"))
171- let L = getStringValue(this, (T + "_nft_on_auction"))
172- let ag = getStringValue(this, (T + "_highest_bid"))
173- if ((ae == "0"))
174- then [StringEntry(((A + T) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(af)), 1, fromBase58String(L))]
163+ let S = o.caller.bytes
164+ let af = getStringValue(this, (U + "_nft_status"))
165+ let ag = getStringValue(this, (U + "_winner_of_nft"))
166+ let ah = getStringValue(this, (U + "_nft_owner"))
167+ let L = getStringValue(this, (U + "_nft_on_auction"))
168+ let ai = getStringValue(this, (U + "_highest_bid"))
169+ if ((ag == "0"))
170+ then [StringEntry(((A + U) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(ah)), 1, fromBase58String(L))]
175171 else if ((o.payments[0].assetId == unit))
176- then [StringEntry((T + "_nft_status"), "CANCELED"), StringEntry((T + "_previous_bid_amount_refund_to_address"), ae), StringEntry((T + "_prevoius_bid_amount_refund"), ag), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ae), StringEntry((A + "_prevoius_bid_amount_refund"), ag), ScriptTransfer(Address(fromBase58String(af)), 1, fromBase58String(L)), ScriptTransfer(Address(fromBase58String(ae)), parseIntValue(ag), unit)]
172+ 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)]
177173 else if ((o.payments[0].assetId == f))
178- then [StringEntry((T + "_nft_status"), "CANCELED"), StringEntry((T + "_previous_bid_amount_refund_to_address"), ae), StringEntry((T + "_prevoius_bid_amount_refund"), ag), StringEntry((A + "_nft_status"), "CANCELED"), StringEntry((A + "_previous_bid_amount_refund_to_address"), ae), StringEntry((A + "_prevoius_bid_amount_refund"), ag), ScriptTransfer(Address(fromBase58String(af)), 1, fromBase58String(L)), ScriptTransfer(Address(fromBase58String(ae)), parseIntValue(ag), f)]
174+ 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)]
179175 else nil
180176 }
181177
182178
183179
184180 @Callable(o)
185-func withdrawBid (ah) = {
186- let R = o.caller.bytes
187- let ai = getStringValue(this, (ah + "_highest_bid"))
188- let aj = getStringValue(this, (ah + "_winner"))
189- let ak = getStringValue(this, (ah + "_nft_id"))
190- if ((toBase58String(R) != aj))
181+func withdrawBid (aj) = {
182+ let S = o.caller.bytes
183+ let ak = getStringValue(this, (aj + "_highest_bid"))
184+ let al = getStringValue(this, (aj + "_winner"))
185+ let am = getStringValue(this, (aj + "_nft_id"))
186+ if ((toBase58String(S) != al))
191187 then throw("No bid")
192- else [StringEntry((ah + "_nft_bid"), "WITHDRAW"), StringEntry((ah + "_nft_id"), ak), StringEntry((ah + "_bidding_price_refund_amount"), ai), ScriptTransfer(o.caller, parseIntValue(ai), unit)]
188+ else [StringEntry((aj + "_nft_bid"), "WITHDRAW"), StringEntry((aj + "_nft_id"), am), StringEntry((aj + "_bidding_price_refund_amount"), ak), ScriptTransfer(o.caller, parseIntValue(ak), unit)]
193189 }
194190
195191
196192
197193 @Callable(o)
198-func manualFundTransfer (al,am) = {
199- let R = o.caller.bytes
200- let an = fromBase58String(al)
194+func manualFundTransfer (an,ao) = {
195+ let S = o.caller.bytes
196+ let ap = fromBase58String(an)
201197 let I = o.payments[0].amount
202198 if ((o.payments[0].assetId == unit))
203- then [IntegerEntry((toBase58String(R) + "_transfer"), I), StringEntry((toBase58String(R) + "_transfer_to"), al), ScriptTransfer(Address(an), I, unit)]
199+ then [IntegerEntry((toBase58String(S) + "_transfer"), I), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), I, unit)]
204200 else if ((o.payments[0].assetId == f))
205- then [IntegerEntry((toBase58String(R) + "_transfer"), I), StringEntry((toBase58String(R) + "_transfer_to"), al), ScriptTransfer(Address(an), I, f)]
201+ then [IntegerEntry((toBase58String(S) + "_transfer"), I), StringEntry((toBase58String(S) + "_transfer_to"), an), ScriptTransfer(Address(ap), I, f)]
206202 else nil
207203 }
208204
209205
210206
211207 @Callable(o)
212-func testBid (ao) = [StringEntry("E8kkFBYCy44JJaq6pAZ6KizsuResi5UKNhbD1WNZwhhY_highest_bid", "0")]
208+func testBid (aq) = [StringEntry("E8kkFBYCy44JJaq6pAZ6KizsuResi5UKNhbD1WNZwhhY_highest_bid", "0")]
213209
214210

github/deemru/w8io/169f3d6 
124.66 ms