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