tx · 7e7drXjcddLtvaHiaAwEumFDcbzWQH7noiiBSosG4GtE 3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx: -0.02500000 Waves 2023.03.28 17:52 [2509947] smart account 3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx > SELF 0.00000000 Waves
{ "type": 13, "id": "7e7drXjcddLtvaHiaAwEumFDcbzWQH7noiiBSosG4GtE", "fee": 2500000, "feeAssetId": null, "timestamp": 1680015275031, "version": 2, "chainId": 84, "sender": "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx", "senderPublicKey": "EKZmHJ5bK3qKKgRdq8rAamt9qrDbVMLARzRqXoQW258v", "proofs": [ "39CgrNg7xyamD4QC8D7CxuWd2C81Tqy9W5B7j2ZzJTWsPfTRLwEZNdpih4R5cqZeCqoWYFoi6bFcw6SjecdNCQsm" ], "script": "base64:BgJiCAISCwoJCAgICAgBCAgIEgQKAggIEgQKAggIEgMKAQgSBwoFCAgIAQgSBwoFCAgICAISBgoECAgICBIDCgEIEgQKAggIEgMKAQgSBAoCCAgSBAoCCAgSBAoCGAgSBAoCGAgMAAlzZXBhcmF0b3ICAV8ABGtCdXkCA2J1eQAGa1ByaWNlAgVwcmljZQAFa1NlbGwCBHNlbGwAEm1heEF1Y3Rpb25EdXJhdGlvbgAeAAV0ZWFtcwEghWOVo/OIjrDeDBeOCE6/mj+SuybbOuh2jhbcFCIqSH4ABVdBVkVTAQAABGtCaWQCA2JpZAAGcGF1c2VkBgAMc3RhdHVzRm9yTkZUCQCWCgQCBE9QRU4CBkNMT1NFRAIIUkVXQVJERUQCCENBTkNFTEVEAAtkQXBwQWRkcmVzcwEaAVRKuE9s3sLak+30julKNvjVT3+V1VVbXaABBWlzTmZ0AQdhc3NldElkBAckbWF0Y2gwCQDsBwEFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIFQXNzZXQEBXRva2VuBQckbWF0Y2gwAwMJAAACCAUFdG9rZW4IZGVjaW1hbHMAAAkAAA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dFRyYW5zZmVyAwkBB0FkZHJlc3MBCQDZBAEJAJEDAgUEbmZUMwABCQENcGFyc2VJbnRWYWx1ZQEJAJEDAgUEbmZUMwACBQR1bml0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQkA2QQBCQCRAwIFBG5mVDQAAQkBDXBhcnNlSW50VmFsdWUBCQCRAwIFBG5mVDQAAgUEdW5pdAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEJANkEAQkAkQMCBQRuZlQ1AAEJAQ1wYXJzZUludFZhbHVlAQkAkQMCBQRuZlQ1AAIFBHVuaXQFA25pbAMJAGYCCQCQAwEFB25mdEluZm8ABQkAAgECLXNvcnJ5ISBtYXhpbXVtIGxpbWl0IG9mIHlvdXIgIGNhcnQgaXMgNSBpdGVtcwUDbmlsAD2k9MM=", "height": 2509947, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ExKBYU8N9FURKa5xxPjK3MvydBi5ewxyoJAG1V2EQ1FK Next: Cv2RHsB9SX6WJTTv4yXZGVWbB124GgtgSTaLERJL2Mwy Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | ||
18 | 18 | let h = "bid" | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = true | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED") | |
23 | 23 | ||
24 | - | func k (l) = { | |
25 | - | let m = assetInfo(l) | |
26 | - | if ($isInstanceOf(m, "Asset")) | |
24 | + | let k = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq' | |
25 | + | ||
26 | + | func l (m) = { | |
27 | + | let n = assetInfo(m) | |
28 | + | if ($isInstanceOf(n, "Asset")) | |
27 | 29 | then { | |
28 | - | let | |
29 | - | if (if (( | |
30 | - | then ( | |
30 | + | let o = n | |
31 | + | if (if ((o.decimals == 0)) | |
32 | + | then (o.quantity == 1) | |
31 | 33 | else false) | |
32 | - | then ( | |
34 | + | then (o.reissuable == false) | |
33 | 35 | else false | |
34 | 36 | } | |
35 | 37 | else false | |
36 | 38 | } | |
37 | 39 | ||
38 | 40 | ||
39 | - | @Callable( | |
40 | - | func createNft ( | |
41 | - | let | |
42 | - | let | |
43 | - | let | |
44 | - | [ | |
41 | + | @Callable(p) | |
42 | + | func createNft (q,r,s,t,u,v,w,x,y) = { | |
43 | + | let z = Issue(q, w, 1, 0, false) | |
44 | + | let A = calculateAssetId(z) | |
45 | + | let B = p.transactionId | |
46 | + | [z, ScriptTransfer(p.caller, 1, A), StringEntry(((toBase58String(A) + a) + "Owner"), toString(p.caller)), StringEntry(((toBase58String(A) + a) + "nft_type"), t), StringEntry(((toBase58String(A) + a) + "nft_tags"), u), StringEntry(((toBase58String(A) + a) + "nft_dAppAddress"), s), IntegerEntry(((toBase58String(A) + a) + "nft_selling_price"), v), StringEntry(((toBase58String(A) + a) + "nft_onSell"), x), StringEntry(((toBase58String(A) + a) + "nft_data"), y), StringEntry(((toBase58String(B) + a) + "issue_nft"), toBase58String(A))] | |
45 | 47 | } | |
46 | 48 | ||
47 | 49 | ||
48 | 50 | ||
49 | - | @Callable( | |
50 | - | func sellNFT ( | |
51 | - | let | |
52 | - | let | |
53 | - | let | |
54 | - | let | |
55 | - | let | |
56 | - | if (!( | |
51 | + | @Callable(p) | |
52 | + | func sellNFT (C,D) = { | |
53 | + | let B = p.transactionId | |
54 | + | let E = p.caller.bytes | |
55 | + | let F = $Tuple2(value(p.payments[0].assetId), value(p.payments[0].amount)) | |
56 | + | let G = F._1 | |
57 | + | let H = F._2 | |
58 | + | if (!(l(G))) | |
57 | 59 | then throw("Token is not NFT") | |
58 | - | else [StringEntry(((c + a) + toBase58String(value( | |
60 | + | else [StringEntry(((c + a) + toBase58String(value(p.payments[0].assetId))), C), StringEntry(((toString(p.caller) + a) + d), (((toBase58String(G) + a) + toString(H)) + D))] | |
59 | 61 | } | |
60 | 62 | ||
61 | 63 | ||
62 | 64 | ||
63 | - | @Callable(o) | |
64 | - | func buyNFT (H,I) = { | |
65 | - | let l = fromBase58String(H) | |
66 | - | let J = value(o.payments[0].amount) | |
65 | + | @Callable(p) | |
66 | + | func buyNFT (I,J) = { | |
67 | + | let m = fromBase58String(I) | |
67 | 68 | let K = { | |
68 | - | let | |
69 | - | if ($isInstanceOf( | |
69 | + | let n = getString(this, (("nft_" + J) + "_owner")) | |
70 | + | if ($isInstanceOf(n, "String")) | |
70 | 71 | then { | |
71 | - | let L = | |
72 | + | let L = n | |
72 | 73 | L | |
73 | 74 | } | |
74 | 75 | else false | |
75 | 76 | } | |
76 | - | let B = getStringValue(((((c + a) + H) + "_") + I)) | |
77 | - | let M = ((J / 1000) * 975) | |
78 | - | let N = ((J / 1000) * 25) | |
79 | - | if ((I == toString(o.caller))) | |
77 | + | let C = getStringValue(((((c + a) + I) + "_") + J)) | |
78 | + | let M = value(p.payments[0].amount) | |
79 | + | let N = (M - ((M / 1000) * 25)) | |
80 | + | let O = (M - N) | |
81 | + | if ((J == toString(p.caller))) | |
80 | 82 | then throw("current Owner of NFT not able to purchase") | |
81 | - | else if (( | |
82 | - | then [ScriptTransfer( | |
83 | - | else if (( | |
84 | - | then [ScriptTransfer( | |
83 | + | else if ((p.payments[0].assetId == f)) | |
84 | + | then [ScriptTransfer(p.caller, 1, m), ScriptTransfer(Address(fromBase58String(J)), N, f), StringEntry((("nft_" + I) + "platform_fee"), toString(O)), StringEntry(((toString(p.caller) + a) + b), ((I + a) + toString(M))), DeleteEntry((("nft_" + J) + "_owner")), StringEntry((("nft_" + J) + "_owner"), toString(p.caller)), StringEntry(((I + a) + "_owner"), toString(p.caller))] | |
85 | + | else if ((p.payments[0].assetId == unit)) | |
86 | + | then [ScriptTransfer(p.caller, 1, m), ScriptTransfer(Address(fromBase58String(J)), N, unit), StringEntry((("nft_" + I) + "platform_fee"), toString(O)), StringEntry(((toString(p.caller) + a) + b), ((I + a) + toString(M))), DeleteEntry((("nft_" + J) + "_owner")), StringEntry((("nft_" + J) + "_owner"), toString(p.caller)), StringEntry(((I + a) + "_owner"), toString(p.caller))] | |
85 | 87 | else nil | |
86 | 88 | } | |
87 | 89 | ||
88 | 90 | ||
89 | 91 | ||
90 | - | @Callable( | |
91 | - | func cancelSell ( | |
92 | - | let | |
93 | - | let | |
94 | - | [StringEntry((( | |
92 | + | @Callable(p) | |
93 | + | func cancelSell (P) = { | |
94 | + | let B = toBase58String(p.transactionId) | |
95 | + | let E = p.caller.bytes | |
96 | + | [StringEntry(((B + P) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(E), 1, fromBase58String(P))] | |
95 | 97 | } | |
96 | 98 | ||
97 | 99 | ||
98 | 100 | ||
99 | - | @Callable( | |
100 | - | func addAuction ( | |
101 | - | let | |
102 | - | let | |
103 | - | let | |
104 | - | let | |
105 | - | let | |
106 | - | let | |
107 | - | let | |
108 | - | if ($isInstanceOf( | |
101 | + | @Callable(p) | |
102 | + | func addAuction (Q,R,S,T,D) = { | |
103 | + | let B = toBase58String(p.transactionId) | |
104 | + | let P = value(p.payments[0].assetId) | |
105 | + | let C = value(S) | |
106 | + | let U = (lastBlock.height + T) | |
107 | + | let V = p.caller.bytes | |
108 | + | let W = { | |
109 | + | let n = getString(this, (((toBase58String(P) + a) + "nft_status_") + toBase58String(V))) | |
110 | + | if ($isInstanceOf(n, "String")) | |
109 | 111 | then { | |
110 | - | let L = | |
112 | + | let L = n | |
111 | 113 | true | |
112 | 114 | } | |
113 | 115 | else false | |
114 | 116 | } | |
115 | - | if (( | |
117 | + | if ((W == true)) | |
116 | 118 | then throw("Already in auction list") | |
117 | - | else if (( | |
118 | - | then throw(("Duration is too long. Must be less than or equal to | |
119 | - | else if (( | |
119 | + | else if ((T > e)) | |
120 | + | then throw(("Duration is too long. Must be less than or equal to 30 " + toString(e))) | |
121 | + | else if ((p.payments[0].assetId == unit)) | |
120 | 122 | then throw("NFT not attached") | |
121 | - | else if (( | |
123 | + | else if ((p.payments[0].assetId == f)) | |
122 | 124 | then throw("NFT not attached") | |
123 | - | else [StringEntry((( | |
125 | + | else [StringEntry(((B + "nft_start_auction_date") + toBase58String(V)), Q), StringEntry(((B + "nft_end_auction_date") + toBase58String(V)), R), StringEntry((B + "_nft_start_price"), S), StringEntry((B + "_nft_owner"), toString(p.caller)), StringEntry((B + "_nft_on_auction"), toBase58String(P)), StringEntry((B + "_previous_bidder"), "none"), StringEntry((B + "_highest_bid"), "0"), StringEntry((B + "_winner_of_nft"), "0"), StringEntry((B + "_bidder_count"), "0"), StringEntry((B + "_nft_status"), "OPEN")] | |
124 | 126 | } | |
125 | 127 | ||
126 | 128 | ||
127 | 129 | ||
128 | - | @Callable( | |
129 | - | func placeBid ( | |
130 | - | let | |
131 | - | let | |
132 | - | let | |
133 | - | let | |
134 | - | let | |
135 | - | let | |
136 | - | let | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | if (( | |
130 | + | @Callable(p) | |
131 | + | func placeBid (X,P,r,Y,Z) = { | |
132 | + | let B = toBase58String(p.transactionId) | |
133 | + | let V = p.caller.bytes | |
134 | + | let m = fromBase58String(P) | |
135 | + | let aa = p.payments[0].assetId | |
136 | + | let ab = p.payments[0].amount | |
137 | + | let ac = getStringValue(this, (X + "_highest_bid")) | |
138 | + | let ad = getString(this, (X + "_previous_bidder")) | |
139 | + | let ae = getStringValue(this, (X + "_bidder_count")) | |
140 | + | let af = getStringValue(this, (X + "_winner_of_nft")) | |
141 | + | let W = getStringValue(this, (X + "_nft_status")) | |
142 | + | if ((W != "OPEN")) | |
141 | 143 | then throw("Not open for auction") | |
142 | - | else if ((parseIntValue( | |
144 | + | else if ((parseIntValue(ac) >= ab)) | |
143 | 145 | then throw("Bid is less then starting/highest Bid") | |
144 | - | else if (( | |
145 | - | then [StringEntry(( | |
146 | - | else if (( | |
147 | - | then [ScriptTransfer(Address(fromBase58String( | |
146 | + | else if ((ac == "0")) | |
147 | + | then [StringEntry((X + "_highest_bid"), toString(ab)), StringEntry((X + "_winner_of_nft"), toBase58String(p.caller.bytes)), StringEntry((X + "_bidder_count"), toString((parseIntValue(ae) + 1))), StringEntry((X + "_nft_id"), toBase58String(m)), StringEntry((X + "_nft_owner"), r), StringEntry((((B + "_") + X) + "_highest_bid"), toString(ab)), StringEntry((((B + "_") + X) + "_winner"), toBase58String(p.caller.bytes)), StringEntry((((B + "_") + X) + "_bidder_count"), toString((parseIntValue(ae) + 1))), StringEntry((((B + "_") + X) + "_nft_id"), toBase58String(m)), StringEntry((((B + "_") + X) + "_nft_owner"), r), StringEntry((B + "_bid_for_nft_by"), toBase58String(V)), StringEntry((B + "_bid_price_place"), Y), StringEntry((B + "_previous_bid_amount_refund_to_address"), af), StringEntry((B + "_prevoius_bid_amount_refund"), ac)] | |
148 | + | else if ((ac != "0")) | |
149 | + | then [ScriptTransfer(Address(fromBase58String(af)), parseIntValue(ac), aa), StringEntry((B + "_previous_bid_amount_refund_to_address"), af), StringEntry((B + "_prevoius_bid_amount_refund"), ac), StringEntry((X + "_bidder_count"), toString((parseIntValue(ae) + 1))), StringEntry((X + "_highest_bid"), toString(ab)), StringEntry((X + "_winner_of_nft"), toBase58String(p.caller.bytes)), StringEntry((X + "_nft_id"), toBase58String(m)), StringEntry((X + "_nft_owner"), r), StringEntry((((B + "_") + X) + "_highest_bid"), toString(ab)), StringEntry((((B + "_") + X) + "_winner"), toBase58String(p.caller.bytes)), StringEntry((((B + "_") + X) + "_bidder_count"), toString((parseIntValue(ae) + 1))), StringEntry((((B + "_") + X) + "_nft_id"), toBase58String(m)), StringEntry((((B + "_") + X) + "_nft_owner"), r), StringEntry((B + "_bid_for_nft_by"), toBase58String(V)), StringEntry((B + "_bid_price_place"), Y)] | |
148 | 150 | else nil | |
149 | 151 | } | |
150 | 152 | ||
151 | 153 | ||
152 | 154 | ||
153 | - | @Callable( | |
154 | - | func acceptBidOffer ( | |
155 | - | let | |
156 | - | let | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | let | |
163 | - | let | |
164 | - | if (( | |
165 | - | then [ScriptTransfer(Address( | |
166 | - | else if (( | |
167 | - | then [ScriptTransfer(Address( | |
155 | + | @Callable(p) | |
156 | + | func acceptBidOffer (X,P,ag,Z) = { | |
157 | + | let ah = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
158 | + | let B = toBase58String(p.transactionId) | |
159 | + | let ai = fromBase58String(Z) | |
160 | + | let V = p.caller.bytes | |
161 | + | let m = fromBase58String(P) | |
162 | + | let aj = getStringValue(this, (X + "_highest_bid")) | |
163 | + | let ak = ((parseIntValue(aj) / 1000) * 975) | |
164 | + | let O = ((parseIntValue(aj) / 1000) * 25) | |
165 | + | let al = getStringValue(this, (X + "_winner_of_nft")) | |
166 | + | if ((Z == ah)) | |
167 | + | then [ScriptTransfer(Address(V), ak, ai), ScriptTransfer(Address(fromBase58String(al)), 1, m), StringEntry((B + "_amount_paid_to_owner"), aj), StringEntry((B + "_nft_transfer_to"), al), StringEntry((B + "_nft_status"), "REWARDED"), StringEntry((X + "_amount_paid_to_owner"), aj), StringEntry((X + "_nft_transfer_to"), al), StringEntry((X + "_nft_status"), "REWARDED")] | |
168 | + | else if ((Z == "WAVES")) | |
169 | + | then [ScriptTransfer(Address(V), parseIntValue(aj), unit), ScriptTransfer(Address(fromBase58String(al)), 1, m), StringEntry((B + "_amount_paid_to_owner"), aj), StringEntry((B + "_nft_transfer_to"), al), StringEntry((B + "_nft_status"), "REWARDED"), StringEntry((X + "_amount_paid_to_owner"), aj), StringEntry((X + "_nft_transfer_to"), al), StringEntry((X + "_nft_status"), "REWARDED")] | |
168 | 170 | else nil | |
169 | 171 | } | |
170 | 172 | ||
171 | 173 | ||
172 | 174 | ||
173 | - | @Callable( | |
174 | - | func cancelAuction ( | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
182 | - | if (( | |
183 | - | then [StringEntry((( | |
184 | - | else if (( | |
175 | + | @Callable(p) | |
176 | + | func cancelAuction (X) = { | |
177 | + | let B = toBase58String(p.transactionId) | |
178 | + | let V = p.caller.bytes | |
179 | + | let am = getStringValue(this, (X + "_nft_status")) | |
180 | + | let an = getStringValue(this, (X + "_winner_of_nft")) | |
181 | + | let ao = getStringValue(this, (X + "_nft_owner")) | |
182 | + | let P = getStringValue(this, (X + "_nft_on_auction")) | |
183 | + | let ap = getStringValue(this, (X + "_highest_bid")) | |
184 | + | if ((an == "0")) | |
185 | + | then [StringEntry(((B + X) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(ao)), 1, fromBase58String(P))] | |
186 | + | else if ((an != "0")) | |
185 | 187 | then throw("soory you can't cancel it because already auction placed by someone") | |
186 | 188 | else nil | |
187 | 189 | } | |
188 | 190 | ||
189 | 191 | ||
190 | 192 | ||
191 | - | @Callable(o) | |
192 | - | func manualFundTransfer (ap,aq) = { | |
193 | - | let U = o.caller.bytes | |
194 | - | let ar = fromBase58String(ap) | |
195 | - | let J = o.payments[0].amount | |
196 | - | let as = ((J / 1000) * 975) | |
197 | - | let N = ((J / 1000) * 25) | |
198 | - | if ((o.payments[0].assetId == unit)) | |
199 | - | then [IntegerEntry((toBase58String(U) + "_transfer"), J), StringEntry("platform_fee", toString(N)), StringEntry((toBase58String(U) + "_transfer_to"), ap), ScriptTransfer(Address(ar), as, unit)] | |
200 | - | else if ((o.payments[0].assetId == f)) | |
201 | - | then [IntegerEntry((toBase58String(U) + "_transfer"), J), StringEntry("platform_fee", toString(N)), StringEntry((toBase58String(U) + "_transfer_to"), ap), ScriptTransfer(Address(ar), as, f)] | |
193 | + | @Callable(p) | |
194 | + | func manualFundTransfer (aq,ar) = { | |
195 | + | let as = p.caller.bytes | |
196 | + | let at = fromBase58String(aq) | |
197 | + | let M = p.payments[0].amount | |
198 | + | let au = parseIntValue(ar) | |
199 | + | let O = ((M / 1000) * 25) | |
200 | + | let av = (M + O) | |
201 | + | if ((av != M)) | |
202 | + | then throw("please submit the sum of actual amount and platform") | |
203 | + | else if ((p.payments[0].assetId == unit)) | |
204 | + | then [IntegerEntry((toBase58String(as) + "_transfer"), M), StringEntry("platform_fee", toString(O)), StringEntry((toBase58String(as) + "_transfer_to"), aq), ScriptTransfer(Address(at), au, unit)] | |
205 | + | else if ((p.payments[0].assetId == f)) | |
206 | + | then [IntegerEntry((toBase58String(as) + "_transfer"), M), StringEntry("platform_fee", toString(O)), StringEntry((toBase58String(as) + "_transfer_to"), aq), ScriptTransfer(Address(at), au, f)] | |
207 | + | else nil | |
208 | + | } | |
209 | + | ||
210 | + | ||
211 | + | ||
212 | + | @Callable(p) | |
213 | + | func backValue (X) = { | |
214 | + | let V = p.caller.bytes | |
215 | + | let P = getStringValue(this, (X + "_nft_on_auction")) | |
216 | + | let ao = getStringValue(this, (X + "_nft_owner")) | |
217 | + | [StringEntry((X + "_nft_status"), "Auction_time over"), ScriptTransfer(Address(fromBase58String(ao)), 1, fromBase58String(P))] | |
218 | + | } | |
219 | + | ||
220 | + | ||
221 | + | ||
222 | + | @Callable(p) | |
223 | + | func withdrawBid (aw,Z) = { | |
224 | + | let V = p.caller.bytes | |
225 | + | let ah = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
226 | + | let B = toBase58String(p.transactionId) | |
227 | + | let ai = fromBase58String(Z) | |
228 | + | let ax = getStringValue(this, (aw + "_highest_bid")) | |
229 | + | let ay = getStringValue(this, (aw + "_winner")) | |
230 | + | let az = getStringValue(this, (aw + "_nft_id")) | |
231 | + | if ((Z == ah)) | |
232 | + | then [StringEntry((aw + "_nft_bid"), "WITHDRAW"), StringEntry((aw + "_nft_id"), az), StringEntry((aw + "_bidding_price_refund_amount"), ax), ScriptTransfer(p.caller, parseIntValue(ax), ai)] | |
233 | + | else if ((Z == "WAVES")) | |
234 | + | then [StringEntry((aw + "_nft_bid"), "WITHDRAW"), StringEntry((aw + "_nft_id"), az), StringEntry((aw + "_bidding_price_refund_amount"), ax), ScriptTransfer(p.caller, parseIntValue(ax), unit)] | |
202 | 235 | else nil | |
203 | 236 | } | |
204 | 237 | ||
205 | 238 | ||
206 | 239 | ||
207 | - | @Callable(o) | |
208 | - | func backValue (W) = { | |
209 | - | let U = o.caller.bytes | |
210 | - | let O = getStringValue(this, (W + "_nft_on_auction")) | |
211 | - | let an = getStringValue(this, (W + "_nft_owner")) | |
212 | - | [StringEntry((W + "_nft_status"), "Auction_time over"), ScriptTransfer(Address(fromBase58String(an)), 1, fromBase58String(O))] | |
240 | + | @Callable(p) | |
241 | + | func automateFunction (X,Z) = { | |
242 | + | let V = p.caller.bytes | |
243 | + | let P = getStringValue(this, (X + "_nft_on_auction")) | |
244 | + | let ao = getStringValue(this, (X + "_nft_owner")) | |
245 | + | let ah = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
246 | + | let ai = fromBase58String(Z) | |
247 | + | let ac = getStringValue(this, (X + "_highest_bid")) | |
248 | + | let af = getStringValue(this, (X + "_winner_of_nft")) | |
249 | + | let an = getStringValue(this, (X + "_winner_of_nft")) | |
250 | + | if ((an == "0")) | |
251 | + | then [ScriptTransfer(Address(fromBase58String(ao)), 1, fromBase58String(P))] | |
252 | + | else if (if ((an != "0")) | |
253 | + | then (Z == ah) | |
254 | + | else false) | |
255 | + | then [ScriptTransfer(Address(fromBase58String(ao)), 1, fromBase58String(P)), ScriptTransfer(Address(fromBase58String(af)), parseIntValue(ac), ai)] | |
256 | + | else if (if ((an != "0")) | |
257 | + | then (Z == "WAVES") | |
258 | + | else false) | |
259 | + | then [ScriptTransfer(Address(fromBase58String(ao)), 1, fromBase58String(P)), ScriptTransfer(Address(fromBase58String(af)), parseIntValue(ac), unit)] | |
260 | + | else nil | |
213 | 261 | } | |
214 | 262 | ||
215 | 263 | ||
216 | 264 | ||
217 | - | @Callable(o) | |
218 | - | func withdrawBid (at,Y) = { | |
219 | - | let U = o.caller.bytes | |
220 | - | let ag = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
221 | - | let A = toBase58String(o.transactionId) | |
222 | - | let ah = fromBase58String(Y) | |
223 | - | let au = getStringValue(this, (at + "_highest_bid")) | |
224 | - | let av = getStringValue(this, (at + "_winner")) | |
225 | - | let aw = getStringValue(this, (at + "_nft_id")) | |
226 | - | if ((Y == ag)) | |
227 | - | then [StringEntry((at + "_nft_bid"), "WITHDRAW"), StringEntry((at + "_nft_id"), aw), StringEntry((at + "_bidding_price_refund_amount"), au), ScriptTransfer(o.caller, parseIntValue(au), ah)] | |
228 | - | else if ((Y == "WAVES")) | |
229 | - | then [StringEntry((at + "_nft_bid"), "WITHDRAW"), StringEntry((at + "_nft_id"), aw), StringEntry((at + "_bidding_price_refund_amount"), au), ScriptTransfer(o.caller, parseIntValue(au), unit)] | |
230 | - | else nil | |
265 | + | @Callable(p) | |
266 | + | func buyAllProducts_asimi (aA,aB) = { | |
267 | + | let aC = p.caller | |
268 | + | let aD = assetBalance(aC, f) | |
269 | + | let M = value(p.payments[0].amount) | |
270 | + | let av = parseIntValue(aB) | |
271 | + | let aE = ((av / 1000) * 25) | |
272 | + | let aF = (av + aE) | |
273 | + | let aG = split(aA[0], "_") | |
274 | + | let aH = split(aA[1], "_") | |
275 | + | let aI = split(aA[2], "_") | |
276 | + | let aJ = split(aA[3], "_") | |
277 | + | let aK = split(aA[4], "_") | |
278 | + | if ((aF > M)) | |
279 | + | then throw("your paying amount is wrong ") | |
280 | + | else if ((M > aD)) | |
281 | + | then throw("Buyer does not have enough funds to complete the purchase.") | |
282 | + | else if ((size(aA) == 1)) | |
283 | + | then [StringEntry((("first_nft_Info=" + "nftId") + aG[0]), ("buyer" + toString(aC))), StringEntry((("first_nft_Info=" + "seller_address") + aG[1]), ("price" + aG[2])), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(Address(fromBase58String(aG[1])), (parseIntValue(aG[2]) * 100), f)] | |
284 | + | else if ((size(aA) == 2)) | |
285 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(Address(fromBase58String(aG[1])), (parseIntValue(aG[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aH[1])), (parseIntValue(aH[2]) * 100), f)] | |
286 | + | else if ((size(aA) == 3)) | |
287 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(Address(fromBase58String(aG[1])), (parseIntValue(aG[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aH[1])), (parseIntValue(aH[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aI[1])), (parseIntValue(aI[2]) * 100), f)] | |
288 | + | else if ((size(aA) == 4)) | |
289 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), StringEntry((((((("fourth_nft_Info=" + "nftId") + aJ[0]) + "seller_address") + aJ[1]) + "price") + aJ[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(aC, 1, fromBase58String(aJ[0])), ScriptTransfer(Address(fromBase58String(aG[1])), (parseIntValue(aG[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aH[1])), (parseIntValue(aH[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aI[1])), (parseIntValue(aI[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aJ[1])), (parseIntValue(aJ[2]) * 100), f)] | |
290 | + | else if ((size(aA) == 5)) | |
291 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), StringEntry((((((("fourth_nft_Info=" + "nftId") + aJ[0]) + "seller_address") + aJ[1]) + "price") + aJ[2]), ("buyer" + toString(aC))), StringEntry((((((("fifth_nft_Info=" + "nftId") + aK[0]) + "seller_address") + aK[1]) + "price") + aK[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(aC, 1, fromBase58String(aJ[0])), ScriptTransfer(aC, 1, fromBase58String(aK[0])), ScriptTransfer(Address(fromBase58String(aG[1])), (parseIntValue(aG[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aH[1])), (parseIntValue(aH[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aI[1])), (parseIntValue(aI[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aJ[1])), (parseIntValue(aJ[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aK[1])), (parseIntValue(aK[2]) * 100), f)] | |
292 | + | else if ((size(aA) > 5)) | |
293 | + | then throw("sorry! maximum limit of your cart is 5 items") | |
294 | + | else nil | |
295 | + | } | |
296 | + | ||
297 | + | ||
298 | + | ||
299 | + | @Callable(p) | |
300 | + | func buyAllProducts_waves (aA,aB) = { | |
301 | + | let aC = p.caller | |
302 | + | let aD = assetBalance(aC, g) | |
303 | + | let M = value(p.payments[0].amount) | |
304 | + | let av = parseIntValue(aB) | |
305 | + | let aE = ((av / 1000) * 25) | |
306 | + | let aF = (av + aE) | |
307 | + | let aG = split(aA[0], "_") | |
308 | + | let aH = split(aA[1], "_") | |
309 | + | let aI = split(aA[2], "_") | |
310 | + | let aJ = split(aA[3], "_") | |
311 | + | let aK = split(aA[4], "_") | |
312 | + | if ((aF > M)) | |
313 | + | then throw("your paying amount is wrong ") | |
314 | + | else if ((M > aD)) | |
315 | + | then throw("Buyer does not have enough funds to complete the purchase.") | |
316 | + | else if ((size(aA) == 1)) | |
317 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(Address(fromBase58String(aG[1])), parseIntValue(aG[2]), unit)] | |
318 | + | else if ((size(aA) == 2)) | |
319 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(Address(fromBase58String(aG[1])), parseIntValue(aG[2]), unit), ScriptTransfer(Address(fromBase58String(aH[1])), parseIntValue(aH[2]), unit)] | |
320 | + | else if ((size(aA) == 3)) | |
321 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(Address(fromBase58String(aG[1])), parseIntValue(aG[2]), unit), ScriptTransfer(Address(fromBase58String(aH[1])), parseIntValue(aH[2]), unit), ScriptTransfer(Address(fromBase58String(aI[1])), parseIntValue(aI[2]), unit)] | |
322 | + | else if ((size(aA) == 4)) | |
323 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), StringEntry((((((("fourth_nft_Info=" + "nftId") + aJ[0]) + "seller_address") + aJ[1]) + "price") + aJ[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(aC, 1, fromBase58String(aJ[0])), ScriptTransfer(Address(fromBase58String(aG[1])), parseIntValue(aG[2]), unit), ScriptTransfer(Address(fromBase58String(aH[1])), parseIntValue(aH[2]), unit), ScriptTransfer(Address(fromBase58String(aI[1])), parseIntValue(aI[2]), unit), ScriptTransfer(Address(fromBase58String(aJ[1])), parseIntValue(aJ[2]), unit)] | |
324 | + | else if ((size(aA) == 5)) | |
325 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), StringEntry((((((("fourth_nft_Info=" + "nftId") + aJ[0]) + "seller_address") + aJ[1]) + "price") + aJ[2]), ("buyer" + toString(aC))), StringEntry((((((("fifth_nft_Info=" + "nftId") + aK[0]) + "seller_address") + aK[1]) + "price") + aK[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(aC, 1, fromBase58String(aJ[0])), ScriptTransfer(aC, 1, fromBase58String(aK[0])), ScriptTransfer(Address(fromBase58String(aG[1])), parseIntValue(aG[2]), unit), ScriptTransfer(Address(fromBase58String(aH[1])), parseIntValue(aH[2]), unit), ScriptTransfer(Address(fromBase58String(aI[1])), parseIntValue(aI[2]), unit), ScriptTransfer(Address(fromBase58String(aJ[1])), parseIntValue(aJ[2]), unit), ScriptTransfer(Address(fromBase58String(aK[1])), parseIntValue(aK[2]), unit)] | |
326 | + | else if ((size(aA) > 5)) | |
327 | + | then throw("sorry! maximum limit of your cart is 5 items") | |
328 | + | else nil | |
231 | 329 | } | |
232 | 330 | ||
233 | 331 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_" | |
5 | 5 | ||
6 | 6 | let b = "buy" | |
7 | 7 | ||
8 | 8 | let c = "price" | |
9 | 9 | ||
10 | 10 | let d = "sell" | |
11 | 11 | ||
12 | 12 | let e = 30 | |
13 | 13 | ||
14 | 14 | let f = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' | |
15 | 15 | ||
16 | 16 | let g = base58'' | |
17 | 17 | ||
18 | 18 | let h = "bid" | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = true | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED") | |
23 | 23 | ||
24 | - | func k (l) = { | |
25 | - | let m = assetInfo(l) | |
26 | - | if ($isInstanceOf(m, "Asset")) | |
24 | + | let k = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq' | |
25 | + | ||
26 | + | func l (m) = { | |
27 | + | let n = assetInfo(m) | |
28 | + | if ($isInstanceOf(n, "Asset")) | |
27 | 29 | then { | |
28 | - | let | |
29 | - | if (if (( | |
30 | - | then ( | |
30 | + | let o = n | |
31 | + | if (if ((o.decimals == 0)) | |
32 | + | then (o.quantity == 1) | |
31 | 33 | else false) | |
32 | - | then ( | |
34 | + | then (o.reissuable == false) | |
33 | 35 | else false | |
34 | 36 | } | |
35 | 37 | else false | |
36 | 38 | } | |
37 | 39 | ||
38 | 40 | ||
39 | - | @Callable( | |
40 | - | func createNft ( | |
41 | - | let | |
42 | - | let | |
43 | - | let | |
44 | - | [ | |
41 | + | @Callable(p) | |
42 | + | func createNft (q,r,s,t,u,v,w,x,y) = { | |
43 | + | let z = Issue(q, w, 1, 0, false) | |
44 | + | let A = calculateAssetId(z) | |
45 | + | let B = p.transactionId | |
46 | + | [z, ScriptTransfer(p.caller, 1, A), StringEntry(((toBase58String(A) + a) + "Owner"), toString(p.caller)), StringEntry(((toBase58String(A) + a) + "nft_type"), t), StringEntry(((toBase58String(A) + a) + "nft_tags"), u), StringEntry(((toBase58String(A) + a) + "nft_dAppAddress"), s), IntegerEntry(((toBase58String(A) + a) + "nft_selling_price"), v), StringEntry(((toBase58String(A) + a) + "nft_onSell"), x), StringEntry(((toBase58String(A) + a) + "nft_data"), y), StringEntry(((toBase58String(B) + a) + "issue_nft"), toBase58String(A))] | |
45 | 47 | } | |
46 | 48 | ||
47 | 49 | ||
48 | 50 | ||
49 | - | @Callable( | |
50 | - | func sellNFT ( | |
51 | - | let | |
52 | - | let | |
53 | - | let | |
54 | - | let | |
55 | - | let | |
56 | - | if (!( | |
51 | + | @Callable(p) | |
52 | + | func sellNFT (C,D) = { | |
53 | + | let B = p.transactionId | |
54 | + | let E = p.caller.bytes | |
55 | + | let F = $Tuple2(value(p.payments[0].assetId), value(p.payments[0].amount)) | |
56 | + | let G = F._1 | |
57 | + | let H = F._2 | |
58 | + | if (!(l(G))) | |
57 | 59 | then throw("Token is not NFT") | |
58 | - | else [StringEntry(((c + a) + toBase58String(value( | |
60 | + | else [StringEntry(((c + a) + toBase58String(value(p.payments[0].assetId))), C), StringEntry(((toString(p.caller) + a) + d), (((toBase58String(G) + a) + toString(H)) + D))] | |
59 | 61 | } | |
60 | 62 | ||
61 | 63 | ||
62 | 64 | ||
63 | - | @Callable(o) | |
64 | - | func buyNFT (H,I) = { | |
65 | - | let l = fromBase58String(H) | |
66 | - | let J = value(o.payments[0].amount) | |
65 | + | @Callable(p) | |
66 | + | func buyNFT (I,J) = { | |
67 | + | let m = fromBase58String(I) | |
67 | 68 | let K = { | |
68 | - | let | |
69 | - | if ($isInstanceOf( | |
69 | + | let n = getString(this, (("nft_" + J) + "_owner")) | |
70 | + | if ($isInstanceOf(n, "String")) | |
70 | 71 | then { | |
71 | - | let L = | |
72 | + | let L = n | |
72 | 73 | L | |
73 | 74 | } | |
74 | 75 | else false | |
75 | 76 | } | |
76 | - | let B = getStringValue(((((c + a) + H) + "_") + I)) | |
77 | - | let M = ((J / 1000) * 975) | |
78 | - | let N = ((J / 1000) * 25) | |
79 | - | if ((I == toString(o.caller))) | |
77 | + | let C = getStringValue(((((c + a) + I) + "_") + J)) | |
78 | + | let M = value(p.payments[0].amount) | |
79 | + | let N = (M - ((M / 1000) * 25)) | |
80 | + | let O = (M - N) | |
81 | + | if ((J == toString(p.caller))) | |
80 | 82 | then throw("current Owner of NFT not able to purchase") | |
81 | - | else if (( | |
82 | - | then [ScriptTransfer( | |
83 | - | else if (( | |
84 | - | then [ScriptTransfer( | |
83 | + | else if ((p.payments[0].assetId == f)) | |
84 | + | then [ScriptTransfer(p.caller, 1, m), ScriptTransfer(Address(fromBase58String(J)), N, f), StringEntry((("nft_" + I) + "platform_fee"), toString(O)), StringEntry(((toString(p.caller) + a) + b), ((I + a) + toString(M))), DeleteEntry((("nft_" + J) + "_owner")), StringEntry((("nft_" + J) + "_owner"), toString(p.caller)), StringEntry(((I + a) + "_owner"), toString(p.caller))] | |
85 | + | else if ((p.payments[0].assetId == unit)) | |
86 | + | then [ScriptTransfer(p.caller, 1, m), ScriptTransfer(Address(fromBase58String(J)), N, unit), StringEntry((("nft_" + I) + "platform_fee"), toString(O)), StringEntry(((toString(p.caller) + a) + b), ((I + a) + toString(M))), DeleteEntry((("nft_" + J) + "_owner")), StringEntry((("nft_" + J) + "_owner"), toString(p.caller)), StringEntry(((I + a) + "_owner"), toString(p.caller))] | |
85 | 87 | else nil | |
86 | 88 | } | |
87 | 89 | ||
88 | 90 | ||
89 | 91 | ||
90 | - | @Callable( | |
91 | - | func cancelSell ( | |
92 | - | let | |
93 | - | let | |
94 | - | [StringEntry((( | |
92 | + | @Callable(p) | |
93 | + | func cancelSell (P) = { | |
94 | + | let B = toBase58String(p.transactionId) | |
95 | + | let E = p.caller.bytes | |
96 | + | [StringEntry(((B + P) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(E), 1, fromBase58String(P))] | |
95 | 97 | } | |
96 | 98 | ||
97 | 99 | ||
98 | 100 | ||
99 | - | @Callable( | |
100 | - | func addAuction ( | |
101 | - | let | |
102 | - | let | |
103 | - | let | |
104 | - | let | |
105 | - | let | |
106 | - | let | |
107 | - | let | |
108 | - | if ($isInstanceOf( | |
101 | + | @Callable(p) | |
102 | + | func addAuction (Q,R,S,T,D) = { | |
103 | + | let B = toBase58String(p.transactionId) | |
104 | + | let P = value(p.payments[0].assetId) | |
105 | + | let C = value(S) | |
106 | + | let U = (lastBlock.height + T) | |
107 | + | let V = p.caller.bytes | |
108 | + | let W = { | |
109 | + | let n = getString(this, (((toBase58String(P) + a) + "nft_status_") + toBase58String(V))) | |
110 | + | if ($isInstanceOf(n, "String")) | |
109 | 111 | then { | |
110 | - | let L = | |
112 | + | let L = n | |
111 | 113 | true | |
112 | 114 | } | |
113 | 115 | else false | |
114 | 116 | } | |
115 | - | if (( | |
117 | + | if ((W == true)) | |
116 | 118 | then throw("Already in auction list") | |
117 | - | else if (( | |
118 | - | then throw(("Duration is too long. Must be less than or equal to | |
119 | - | else if (( | |
119 | + | else if ((T > e)) | |
120 | + | then throw(("Duration is too long. Must be less than or equal to 30 " + toString(e))) | |
121 | + | else if ((p.payments[0].assetId == unit)) | |
120 | 122 | then throw("NFT not attached") | |
121 | - | else if (( | |
123 | + | else if ((p.payments[0].assetId == f)) | |
122 | 124 | then throw("NFT not attached") | |
123 | - | else [StringEntry((( | |
125 | + | else [StringEntry(((B + "nft_start_auction_date") + toBase58String(V)), Q), StringEntry(((B + "nft_end_auction_date") + toBase58String(V)), R), StringEntry((B + "_nft_start_price"), S), StringEntry((B + "_nft_owner"), toString(p.caller)), StringEntry((B + "_nft_on_auction"), toBase58String(P)), StringEntry((B + "_previous_bidder"), "none"), StringEntry((B + "_highest_bid"), "0"), StringEntry((B + "_winner_of_nft"), "0"), StringEntry((B + "_bidder_count"), "0"), StringEntry((B + "_nft_status"), "OPEN")] | |
124 | 126 | } | |
125 | 127 | ||
126 | 128 | ||
127 | 129 | ||
128 | - | @Callable( | |
129 | - | func placeBid ( | |
130 | - | let | |
131 | - | let | |
132 | - | let | |
133 | - | let | |
134 | - | let | |
135 | - | let | |
136 | - | let | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | if (( | |
130 | + | @Callable(p) | |
131 | + | func placeBid (X,P,r,Y,Z) = { | |
132 | + | let B = toBase58String(p.transactionId) | |
133 | + | let V = p.caller.bytes | |
134 | + | let m = fromBase58String(P) | |
135 | + | let aa = p.payments[0].assetId | |
136 | + | let ab = p.payments[0].amount | |
137 | + | let ac = getStringValue(this, (X + "_highest_bid")) | |
138 | + | let ad = getString(this, (X + "_previous_bidder")) | |
139 | + | let ae = getStringValue(this, (X + "_bidder_count")) | |
140 | + | let af = getStringValue(this, (X + "_winner_of_nft")) | |
141 | + | let W = getStringValue(this, (X + "_nft_status")) | |
142 | + | if ((W != "OPEN")) | |
141 | 143 | then throw("Not open for auction") | |
142 | - | else if ((parseIntValue( | |
144 | + | else if ((parseIntValue(ac) >= ab)) | |
143 | 145 | then throw("Bid is less then starting/highest Bid") | |
144 | - | else if (( | |
145 | - | then [StringEntry(( | |
146 | - | else if (( | |
147 | - | then [ScriptTransfer(Address(fromBase58String( | |
146 | + | else if ((ac == "0")) | |
147 | + | then [StringEntry((X + "_highest_bid"), toString(ab)), StringEntry((X + "_winner_of_nft"), toBase58String(p.caller.bytes)), StringEntry((X + "_bidder_count"), toString((parseIntValue(ae) + 1))), StringEntry((X + "_nft_id"), toBase58String(m)), StringEntry((X + "_nft_owner"), r), StringEntry((((B + "_") + X) + "_highest_bid"), toString(ab)), StringEntry((((B + "_") + X) + "_winner"), toBase58String(p.caller.bytes)), StringEntry((((B + "_") + X) + "_bidder_count"), toString((parseIntValue(ae) + 1))), StringEntry((((B + "_") + X) + "_nft_id"), toBase58String(m)), StringEntry((((B + "_") + X) + "_nft_owner"), r), StringEntry((B + "_bid_for_nft_by"), toBase58String(V)), StringEntry((B + "_bid_price_place"), Y), StringEntry((B + "_previous_bid_amount_refund_to_address"), af), StringEntry((B + "_prevoius_bid_amount_refund"), ac)] | |
148 | + | else if ((ac != "0")) | |
149 | + | then [ScriptTransfer(Address(fromBase58String(af)), parseIntValue(ac), aa), StringEntry((B + "_previous_bid_amount_refund_to_address"), af), StringEntry((B + "_prevoius_bid_amount_refund"), ac), StringEntry((X + "_bidder_count"), toString((parseIntValue(ae) + 1))), StringEntry((X + "_highest_bid"), toString(ab)), StringEntry((X + "_winner_of_nft"), toBase58String(p.caller.bytes)), StringEntry((X + "_nft_id"), toBase58String(m)), StringEntry((X + "_nft_owner"), r), StringEntry((((B + "_") + X) + "_highest_bid"), toString(ab)), StringEntry((((B + "_") + X) + "_winner"), toBase58String(p.caller.bytes)), StringEntry((((B + "_") + X) + "_bidder_count"), toString((parseIntValue(ae) + 1))), StringEntry((((B + "_") + X) + "_nft_id"), toBase58String(m)), StringEntry((((B + "_") + X) + "_nft_owner"), r), StringEntry((B + "_bid_for_nft_by"), toBase58String(V)), StringEntry((B + "_bid_price_place"), Y)] | |
148 | 150 | else nil | |
149 | 151 | } | |
150 | 152 | ||
151 | 153 | ||
152 | 154 | ||
153 | - | @Callable( | |
154 | - | func acceptBidOffer ( | |
155 | - | let | |
156 | - | let | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | let | |
163 | - | let | |
164 | - | if (( | |
165 | - | then [ScriptTransfer(Address( | |
166 | - | else if (( | |
167 | - | then [ScriptTransfer(Address( | |
155 | + | @Callable(p) | |
156 | + | func acceptBidOffer (X,P,ag,Z) = { | |
157 | + | let ah = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
158 | + | let B = toBase58String(p.transactionId) | |
159 | + | let ai = fromBase58String(Z) | |
160 | + | let V = p.caller.bytes | |
161 | + | let m = fromBase58String(P) | |
162 | + | let aj = getStringValue(this, (X + "_highest_bid")) | |
163 | + | let ak = ((parseIntValue(aj) / 1000) * 975) | |
164 | + | let O = ((parseIntValue(aj) / 1000) * 25) | |
165 | + | let al = getStringValue(this, (X + "_winner_of_nft")) | |
166 | + | if ((Z == ah)) | |
167 | + | then [ScriptTransfer(Address(V), ak, ai), ScriptTransfer(Address(fromBase58String(al)), 1, m), StringEntry((B + "_amount_paid_to_owner"), aj), StringEntry((B + "_nft_transfer_to"), al), StringEntry((B + "_nft_status"), "REWARDED"), StringEntry((X + "_amount_paid_to_owner"), aj), StringEntry((X + "_nft_transfer_to"), al), StringEntry((X + "_nft_status"), "REWARDED")] | |
168 | + | else if ((Z == "WAVES")) | |
169 | + | then [ScriptTransfer(Address(V), parseIntValue(aj), unit), ScriptTransfer(Address(fromBase58String(al)), 1, m), StringEntry((B + "_amount_paid_to_owner"), aj), StringEntry((B + "_nft_transfer_to"), al), StringEntry((B + "_nft_status"), "REWARDED"), StringEntry((X + "_amount_paid_to_owner"), aj), StringEntry((X + "_nft_transfer_to"), al), StringEntry((X + "_nft_status"), "REWARDED")] | |
168 | 170 | else nil | |
169 | 171 | } | |
170 | 172 | ||
171 | 173 | ||
172 | 174 | ||
173 | - | @Callable( | |
174 | - | func cancelAuction ( | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
182 | - | if (( | |
183 | - | then [StringEntry((( | |
184 | - | else if (( | |
175 | + | @Callable(p) | |
176 | + | func cancelAuction (X) = { | |
177 | + | let B = toBase58String(p.transactionId) | |
178 | + | let V = p.caller.bytes | |
179 | + | let am = getStringValue(this, (X + "_nft_status")) | |
180 | + | let an = getStringValue(this, (X + "_winner_of_nft")) | |
181 | + | let ao = getStringValue(this, (X + "_nft_owner")) | |
182 | + | let P = getStringValue(this, (X + "_nft_on_auction")) | |
183 | + | let ap = getStringValue(this, (X + "_highest_bid")) | |
184 | + | if ((an == "0")) | |
185 | + | then [StringEntry(((B + X) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(ao)), 1, fromBase58String(P))] | |
186 | + | else if ((an != "0")) | |
185 | 187 | then throw("soory you can't cancel it because already auction placed by someone") | |
186 | 188 | else nil | |
187 | 189 | } | |
188 | 190 | ||
189 | 191 | ||
190 | 192 | ||
191 | - | @Callable(o) | |
192 | - | func manualFundTransfer (ap,aq) = { | |
193 | - | let U = o.caller.bytes | |
194 | - | let ar = fromBase58String(ap) | |
195 | - | let J = o.payments[0].amount | |
196 | - | let as = ((J / 1000) * 975) | |
197 | - | let N = ((J / 1000) * 25) | |
198 | - | if ((o.payments[0].assetId == unit)) | |
199 | - | then [IntegerEntry((toBase58String(U) + "_transfer"), J), StringEntry("platform_fee", toString(N)), StringEntry((toBase58String(U) + "_transfer_to"), ap), ScriptTransfer(Address(ar), as, unit)] | |
200 | - | else if ((o.payments[0].assetId == f)) | |
201 | - | then [IntegerEntry((toBase58String(U) + "_transfer"), J), StringEntry("platform_fee", toString(N)), StringEntry((toBase58String(U) + "_transfer_to"), ap), ScriptTransfer(Address(ar), as, f)] | |
193 | + | @Callable(p) | |
194 | + | func manualFundTransfer (aq,ar) = { | |
195 | + | let as = p.caller.bytes | |
196 | + | let at = fromBase58String(aq) | |
197 | + | let M = p.payments[0].amount | |
198 | + | let au = parseIntValue(ar) | |
199 | + | let O = ((M / 1000) * 25) | |
200 | + | let av = (M + O) | |
201 | + | if ((av != M)) | |
202 | + | then throw("please submit the sum of actual amount and platform") | |
203 | + | else if ((p.payments[0].assetId == unit)) | |
204 | + | then [IntegerEntry((toBase58String(as) + "_transfer"), M), StringEntry("platform_fee", toString(O)), StringEntry((toBase58String(as) + "_transfer_to"), aq), ScriptTransfer(Address(at), au, unit)] | |
205 | + | else if ((p.payments[0].assetId == f)) | |
206 | + | then [IntegerEntry((toBase58String(as) + "_transfer"), M), StringEntry("platform_fee", toString(O)), StringEntry((toBase58String(as) + "_transfer_to"), aq), ScriptTransfer(Address(at), au, f)] | |
207 | + | else nil | |
208 | + | } | |
209 | + | ||
210 | + | ||
211 | + | ||
212 | + | @Callable(p) | |
213 | + | func backValue (X) = { | |
214 | + | let V = p.caller.bytes | |
215 | + | let P = getStringValue(this, (X + "_nft_on_auction")) | |
216 | + | let ao = getStringValue(this, (X + "_nft_owner")) | |
217 | + | [StringEntry((X + "_nft_status"), "Auction_time over"), ScriptTransfer(Address(fromBase58String(ao)), 1, fromBase58String(P))] | |
218 | + | } | |
219 | + | ||
220 | + | ||
221 | + | ||
222 | + | @Callable(p) | |
223 | + | func withdrawBid (aw,Z) = { | |
224 | + | let V = p.caller.bytes | |
225 | + | let ah = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
226 | + | let B = toBase58String(p.transactionId) | |
227 | + | let ai = fromBase58String(Z) | |
228 | + | let ax = getStringValue(this, (aw + "_highest_bid")) | |
229 | + | let ay = getStringValue(this, (aw + "_winner")) | |
230 | + | let az = getStringValue(this, (aw + "_nft_id")) | |
231 | + | if ((Z == ah)) | |
232 | + | then [StringEntry((aw + "_nft_bid"), "WITHDRAW"), StringEntry((aw + "_nft_id"), az), StringEntry((aw + "_bidding_price_refund_amount"), ax), ScriptTransfer(p.caller, parseIntValue(ax), ai)] | |
233 | + | else if ((Z == "WAVES")) | |
234 | + | then [StringEntry((aw + "_nft_bid"), "WITHDRAW"), StringEntry((aw + "_nft_id"), az), StringEntry((aw + "_bidding_price_refund_amount"), ax), ScriptTransfer(p.caller, parseIntValue(ax), unit)] | |
202 | 235 | else nil | |
203 | 236 | } | |
204 | 237 | ||
205 | 238 | ||
206 | 239 | ||
207 | - | @Callable(o) | |
208 | - | func backValue (W) = { | |
209 | - | let U = o.caller.bytes | |
210 | - | let O = getStringValue(this, (W + "_nft_on_auction")) | |
211 | - | let an = getStringValue(this, (W + "_nft_owner")) | |
212 | - | [StringEntry((W + "_nft_status"), "Auction_time over"), ScriptTransfer(Address(fromBase58String(an)), 1, fromBase58String(O))] | |
240 | + | @Callable(p) | |
241 | + | func automateFunction (X,Z) = { | |
242 | + | let V = p.caller.bytes | |
243 | + | let P = getStringValue(this, (X + "_nft_on_auction")) | |
244 | + | let ao = getStringValue(this, (X + "_nft_owner")) | |
245 | + | let ah = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
246 | + | let ai = fromBase58String(Z) | |
247 | + | let ac = getStringValue(this, (X + "_highest_bid")) | |
248 | + | let af = getStringValue(this, (X + "_winner_of_nft")) | |
249 | + | let an = getStringValue(this, (X + "_winner_of_nft")) | |
250 | + | if ((an == "0")) | |
251 | + | then [ScriptTransfer(Address(fromBase58String(ao)), 1, fromBase58String(P))] | |
252 | + | else if (if ((an != "0")) | |
253 | + | then (Z == ah) | |
254 | + | else false) | |
255 | + | then [ScriptTransfer(Address(fromBase58String(ao)), 1, fromBase58String(P)), ScriptTransfer(Address(fromBase58String(af)), parseIntValue(ac), ai)] | |
256 | + | else if (if ((an != "0")) | |
257 | + | then (Z == "WAVES") | |
258 | + | else false) | |
259 | + | then [ScriptTransfer(Address(fromBase58String(ao)), 1, fromBase58String(P)), ScriptTransfer(Address(fromBase58String(af)), parseIntValue(ac), unit)] | |
260 | + | else nil | |
213 | 261 | } | |
214 | 262 | ||
215 | 263 | ||
216 | 264 | ||
217 | - | @Callable(o) | |
218 | - | func withdrawBid (at,Y) = { | |
219 | - | let U = o.caller.bytes | |
220 | - | let ag = "9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq" | |
221 | - | let A = toBase58String(o.transactionId) | |
222 | - | let ah = fromBase58String(Y) | |
223 | - | let au = getStringValue(this, (at + "_highest_bid")) | |
224 | - | let av = getStringValue(this, (at + "_winner")) | |
225 | - | let aw = getStringValue(this, (at + "_nft_id")) | |
226 | - | if ((Y == ag)) | |
227 | - | then [StringEntry((at + "_nft_bid"), "WITHDRAW"), StringEntry((at + "_nft_id"), aw), StringEntry((at + "_bidding_price_refund_amount"), au), ScriptTransfer(o.caller, parseIntValue(au), ah)] | |
228 | - | else if ((Y == "WAVES")) | |
229 | - | then [StringEntry((at + "_nft_bid"), "WITHDRAW"), StringEntry((at + "_nft_id"), aw), StringEntry((at + "_bidding_price_refund_amount"), au), ScriptTransfer(o.caller, parseIntValue(au), unit)] | |
230 | - | else nil | |
265 | + | @Callable(p) | |
266 | + | func buyAllProducts_asimi (aA,aB) = { | |
267 | + | let aC = p.caller | |
268 | + | let aD = assetBalance(aC, f) | |
269 | + | let M = value(p.payments[0].amount) | |
270 | + | let av = parseIntValue(aB) | |
271 | + | let aE = ((av / 1000) * 25) | |
272 | + | let aF = (av + aE) | |
273 | + | let aG = split(aA[0], "_") | |
274 | + | let aH = split(aA[1], "_") | |
275 | + | let aI = split(aA[2], "_") | |
276 | + | let aJ = split(aA[3], "_") | |
277 | + | let aK = split(aA[4], "_") | |
278 | + | if ((aF > M)) | |
279 | + | then throw("your paying amount is wrong ") | |
280 | + | else if ((M > aD)) | |
281 | + | then throw("Buyer does not have enough funds to complete the purchase.") | |
282 | + | else if ((size(aA) == 1)) | |
283 | + | then [StringEntry((("first_nft_Info=" + "nftId") + aG[0]), ("buyer" + toString(aC))), StringEntry((("first_nft_Info=" + "seller_address") + aG[1]), ("price" + aG[2])), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(Address(fromBase58String(aG[1])), (parseIntValue(aG[2]) * 100), f)] | |
284 | + | else if ((size(aA) == 2)) | |
285 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(Address(fromBase58String(aG[1])), (parseIntValue(aG[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aH[1])), (parseIntValue(aH[2]) * 100), f)] | |
286 | + | else if ((size(aA) == 3)) | |
287 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(Address(fromBase58String(aG[1])), (parseIntValue(aG[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aH[1])), (parseIntValue(aH[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aI[1])), (parseIntValue(aI[2]) * 100), f)] | |
288 | + | else if ((size(aA) == 4)) | |
289 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), StringEntry((((((("fourth_nft_Info=" + "nftId") + aJ[0]) + "seller_address") + aJ[1]) + "price") + aJ[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(aC, 1, fromBase58String(aJ[0])), ScriptTransfer(Address(fromBase58String(aG[1])), (parseIntValue(aG[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aH[1])), (parseIntValue(aH[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aI[1])), (parseIntValue(aI[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aJ[1])), (parseIntValue(aJ[2]) * 100), f)] | |
290 | + | else if ((size(aA) == 5)) | |
291 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), StringEntry((((((("fourth_nft_Info=" + "nftId") + aJ[0]) + "seller_address") + aJ[1]) + "price") + aJ[2]), ("buyer" + toString(aC))), StringEntry((((((("fifth_nft_Info=" + "nftId") + aK[0]) + "seller_address") + aK[1]) + "price") + aK[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(aC, 1, fromBase58String(aJ[0])), ScriptTransfer(aC, 1, fromBase58String(aK[0])), ScriptTransfer(Address(fromBase58String(aG[1])), (parseIntValue(aG[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aH[1])), (parseIntValue(aH[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aI[1])), (parseIntValue(aI[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aJ[1])), (parseIntValue(aJ[2]) * 100), f), ScriptTransfer(Address(fromBase58String(aK[1])), (parseIntValue(aK[2]) * 100), f)] | |
292 | + | else if ((size(aA) > 5)) | |
293 | + | then throw("sorry! maximum limit of your cart is 5 items") | |
294 | + | else nil | |
295 | + | } | |
296 | + | ||
297 | + | ||
298 | + | ||
299 | + | @Callable(p) | |
300 | + | func buyAllProducts_waves (aA,aB) = { | |
301 | + | let aC = p.caller | |
302 | + | let aD = assetBalance(aC, g) | |
303 | + | let M = value(p.payments[0].amount) | |
304 | + | let av = parseIntValue(aB) | |
305 | + | let aE = ((av / 1000) * 25) | |
306 | + | let aF = (av + aE) | |
307 | + | let aG = split(aA[0], "_") | |
308 | + | let aH = split(aA[1], "_") | |
309 | + | let aI = split(aA[2], "_") | |
310 | + | let aJ = split(aA[3], "_") | |
311 | + | let aK = split(aA[4], "_") | |
312 | + | if ((aF > M)) | |
313 | + | then throw("your paying amount is wrong ") | |
314 | + | else if ((M > aD)) | |
315 | + | then throw("Buyer does not have enough funds to complete the purchase.") | |
316 | + | else if ((size(aA) == 1)) | |
317 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(Address(fromBase58String(aG[1])), parseIntValue(aG[2]), unit)] | |
318 | + | else if ((size(aA) == 2)) | |
319 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(Address(fromBase58String(aG[1])), parseIntValue(aG[2]), unit), ScriptTransfer(Address(fromBase58String(aH[1])), parseIntValue(aH[2]), unit)] | |
320 | + | else if ((size(aA) == 3)) | |
321 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(Address(fromBase58String(aG[1])), parseIntValue(aG[2]), unit), ScriptTransfer(Address(fromBase58String(aH[1])), parseIntValue(aH[2]), unit), ScriptTransfer(Address(fromBase58String(aI[1])), parseIntValue(aI[2]), unit)] | |
322 | + | else if ((size(aA) == 4)) | |
323 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), StringEntry((((((("fourth_nft_Info=" + "nftId") + aJ[0]) + "seller_address") + aJ[1]) + "price") + aJ[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(aC, 1, fromBase58String(aJ[0])), ScriptTransfer(Address(fromBase58String(aG[1])), parseIntValue(aG[2]), unit), ScriptTransfer(Address(fromBase58String(aH[1])), parseIntValue(aH[2]), unit), ScriptTransfer(Address(fromBase58String(aI[1])), parseIntValue(aI[2]), unit), ScriptTransfer(Address(fromBase58String(aJ[1])), parseIntValue(aJ[2]), unit)] | |
324 | + | else if ((size(aA) == 5)) | |
325 | + | then [StringEntry((((((("first_nft_Info=" + "nftId") + aG[0]) + "seller_address") + aG[1]) + "price") + aG[2]), ("buyer" + toString(aC))), StringEntry((((((("second_nft_Info=" + "nftId") + aH[0]) + "seller_address") + aH[1]) + "price") + aH[2]), ("buyer" + toString(aC))), StringEntry((((((("third_nft_Info=" + "nftId") + aI[0]) + "seller_address") + aI[1]) + "price") + aI[2]), ("buyer" + toString(aC))), StringEntry((((((("fourth_nft_Info=" + "nftId") + aJ[0]) + "seller_address") + aJ[1]) + "price") + aJ[2]), ("buyer" + toString(aC))), StringEntry((((((("fifth_nft_Info=" + "nftId") + aK[0]) + "seller_address") + aK[1]) + "price") + aK[2]), ("buyer" + toString(aC))), ScriptTransfer(aC, 1, fromBase58String(aG[0])), ScriptTransfer(aC, 1, fromBase58String(aH[0])), ScriptTransfer(aC, 1, fromBase58String(aI[0])), ScriptTransfer(aC, 1, fromBase58String(aJ[0])), ScriptTransfer(aC, 1, fromBase58String(aK[0])), ScriptTransfer(Address(fromBase58String(aG[1])), parseIntValue(aG[2]), unit), ScriptTransfer(Address(fromBase58String(aH[1])), parseIntValue(aH[2]), unit), ScriptTransfer(Address(fromBase58String(aI[1])), parseIntValue(aI[2]), unit), ScriptTransfer(Address(fromBase58String(aJ[1])), parseIntValue(aJ[2]), unit), ScriptTransfer(Address(fromBase58String(aK[1])), parseIntValue(aK[2]), unit)] | |
326 | + | else if ((size(aA) > 5)) | |
327 | + | then throw("sorry! maximum limit of your cart is 5 items") | |
328 | + | else nil | |
231 | 329 | } | |
232 | 330 | ||
233 | 331 |
github/deemru/w8io/169f3d6 176.60 ms ◑