tx · A3MZ1wmGq3k3n2SJDLyrgY6fx3PXTrGW4Zsgwg4d2t2t 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.01900000 Waves 2023.03.24 06:57 [2503576] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "A3MZ1wmGq3k3n2SJDLyrgY6fx3PXTrGW4Zsgwg4d2t2t", "fee": 1900000, "feeAssetId": null, "timestamp": 1679630281399, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "5FXkL8UHcxKnwoGYdVPdXufvcseYdYyek9f38T6qng6wADSWQqSczABoJUgqaZy816uTjigFriuKSaWf1jxQD9Cu" ], "script": "base64:BgKKFQgCEgQKAggIEhAKDggICAgICAgICAgICAEIEg8KDQgICAgICAgICAgIAQgSBgoECAgICBIECgIICBIICgYIAQEIAQgSBAoCCAgSBAoCCAgSBwoFCAgICAgSBgoECAgICCIOZ2V0U3RyaW5nQnlLZXkiA2tleSIIdW5pdFRlc3QiCW9yYWNsZUZlZSIIc2lnbkRhcHAiC2ZlZVJlY2VpdmVyIgh1c2VyRGFwcCINd2hpdGVsaXN0RGFwcCILc2lnbkFzc2V0SWQiC3VzZG5Bc3NldElkIgt1c2R0QXNzZXRJZCIMd2F2ZXNBc3NldElkIgVjaHJpcyIZZ2V0SW50ZWdlckJ5S2V5RnJvbU9yYWNsZSIPZ2V0SW50ZWdlckJ5S2V5Ig5jaGVja1doaXRlbGlzdCIPZ2V0Qm9vbGVhbkJ5S2V5IgdzaWduQ3V0Igt1c2RuV2F2ZUN1dCIOZGVmYXVsdExpY2VuY2UiEmRlZmF1bHRIYXNoTGljZW5jZSILZGFwcFJ1bm5pbmciDm1haW50ZW5hbmNlTVNHIg11c2VyU3VzcGVuZGVkIgt1c2VyUmVtb3ZlZCIQdXNl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CQD0AwMIBQJjVwlib2R5Qnl0ZXMJAJEDAggFAmNXBnByb29mcwAACQDZBAEJAQJjbgEJAJEDAggFAmNZBGFyZ3MADAMDAwMJAAACCAUCY1kIZnVuY3Rpb24CC3NlbGxBcnR3b3JrCQAAAggFAmNZBGRBcHAFBHRoaXMHCQAAAggFAmNZA2ZlZQCgwh4HCQAAAggFAmNZCmZlZUFzc2V0SWQFBHVuaXQHCQD0AwMIBQJjVwlib2R5Qnl0ZXMJAJEDAggFAmNXBnByb29mcwAACQDZBAEJAQJjbgEJAJEDAggFAmNZBGFyZ3MABQMDAwMJAAACCAUCY1kIZnVuY3Rpb24CCWFjY2VwdEJpZAkAAAIIBQJjWQRkQXBwBQR0aGlzBwkAAAIIBQJjWQNmZWUAoMIeBwkAAAIIBQJjWQpmZWVBc3NldElkBQR1bml0BwkAyBMDCAUCY1cJYm9keUJ5dGVzCQCRAwIIBQJjVwZwcm9vZnMAAAkA2QQBCQECY24BCQCRAwIIBQJjWQRhcmdzAAQJAPQDAwgFAmNXCWJvZHlCeXRlcwkAkQMCCAUCY1cGcHJvb2ZzAAAIBQJjVw9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAmNXCWJvZHlCeXRlcwkAkQMCCAUCY1cGcHJvb2ZzAAAIBQJjVw9zZW5kZXJQdWJsaWNLZXndh4aU", "height": 2503576, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D5DNmHBBNvQX8fZnK9ct8VdFY218zBphrbaaVyoRPkrJ Next: AmQMAA9kpqWAbpWnjhziZShNUHoSnVNMK88gK5yWLcBg Diff:
Old | New | Differences | |
---|---|---|---|
399 | 399 | then invoke(h, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(bs)))], nil) | |
400 | 400 | else unit | |
401 | 401 | if ((bu == bu)) | |
402 | - | then $Tuple4(toBase58String(aR.transactionId), N, lastBlock.timestamp, | |
402 | + | then $Tuple4(toBase58String(aR.transactionId), N, lastBlock.timestamp, bt) | |
403 | 403 | else throw("Strict value is not equal to itself.") | |
404 | 404 | } | |
405 | 405 | else throw("Strict value is not equal to itself.") | |
423 | 423 | then throw(toString(bt)) | |
424 | 424 | else { | |
425 | 425 | let bD = if (if ((toBase58String(aR.caller.bytes) == toString(this))) | |
426 | - | then bt | |
426 | + | then (bt > 0) | |
427 | 427 | else false) | |
428 | 428 | then toString(addressFromPublicKey(fromBase58String(bs))) | |
429 | 429 | else toBase58String(aR.caller.bytes) | |
556 | 556 | let ck = if ((bV != 0)) | |
557 | 557 | then [ScriptTransfer(Address(fromBase58String(bP)), bV, aW), ScriptTransfer(Address(fromBase58String(bx)), (bW - bV), aW)] | |
558 | 558 | else [ScriptTransfer(Address(fromBase58String(bx)), bW, aW)] | |
559 | - | let cl = if (bt) | |
559 | + | let cl = if ((bt > 0)) | |
560 | 560 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
561 | 561 | else nil | |
562 | 562 | let cm = ((([IntegerEntry(X(bx, P), bX), StringEntry(("nft_" + toBase58String(ca)), cg), IntegerEntry("total_nft_issued", (bH + 1)), IntegerEntry(ah(bx, P), 0), BooleanEntry(Y(bx, P), cb), bZ, ScriptTransfer(cc, 1, ca)] ++ cj) ++ ck) ++ cl) | |
641 | 641 | else unit | |
642 | 642 | if ((cC == cC)) | |
643 | 643 | then { | |
644 | - | let cl = if (bt) | |
644 | + | let cl = if ((bt > 0)) | |
645 | 645 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
646 | 646 | else nil | |
647 | 647 | ([StringEntry(ar(F), N), StringEntry(au(F, N), P), IntegerEntry(O(N, P), bB), StringEntry(Q(N, P), aL), StringEntry(R(N, P), aM), StringEntry(S(N, P), aw), StringEntry(U(N, P), ax), StringEntry(T(N, P), aA), StringEntry(Z(N, P), aK), StringEntry(aa(N, P), aJ), StringEntry(ac(N, P), cs), StringEntry(ab(N, P), aN), IntegerEntry(V(N, P), 0), StringEntry(W(N, P), D), IntegerEntry(X(N, P), 0), BooleanEntry(Y(N, P), false), StringEntry(as(N, D), P), StringEntry(ap(N, P), F), StringEntry(ae(N, P), ct), IntegerEntry(af(N, P), aO), ScriptTransfer(Address(fromBase58String(f)), aT, i)] ++ cl) | |
682 | 682 | then throw("Cannot update ILLEGAL artwork") | |
683 | 683 | else if (!(aX(N, aq))) | |
684 | 684 | then { | |
685 | - | let cl = if (bt) | |
685 | + | let cl = if ((bt > 0)) | |
686 | 686 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
687 | 687 | else nil | |
688 | 688 | ([StringEntry(Q(N, aq), aL), StringEntry(R(N, aq), aM), StringEntry(S(N, aq), aw), StringEntry(U(N, aq), ax), StringEntry(T(N, aq), aA), StringEntry(aa(N, aq), aJ), StringEntry(Z(N, aq), aK), StringEntry(ab(N, aq), aN), StringEntry(ac(N, aq), cs), StringEntry(ae(N, aq), ct), IntegerEntry(af(N, aq), aO)] ++ cl) | |
802 | 802 | else false) | |
803 | 803 | then true | |
804 | 804 | else false | |
805 | - | let cl = if (bt) | |
805 | + | let cl = if ((bt > 0)) | |
806 | 806 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
807 | 807 | else nil | |
808 | 808 | ([BooleanEntry(Y(N, P), cb), IntegerEntry(ag(N, P), bg), IntegerEntry(V(N, P), cL), StringEntry(ai(N, P), aW), IntegerEntry(ah(N, P), (cO + bF))] ++ cl) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrElse(getString(this, b), "") | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let c = false | |
8 | 8 | ||
9 | 9 | let d = value(addressFromString(a("conf_oracle_fee"))) | |
10 | 10 | ||
11 | 11 | let e = value(addressFromString(a("conf_signweb_dapp"))) | |
12 | 12 | ||
13 | 13 | let f = a("conf_fee_receiver") | |
14 | 14 | ||
15 | 15 | let g = if (c) | |
16 | 16 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
17 | 17 | else value(addressFromString(a("conf_users_dapp"))) | |
18 | 18 | ||
19 | 19 | let h = value(addressFromString(a("conf_whitelist_dapp"))) | |
20 | 20 | ||
21 | 21 | let i = fromBase58String(a("conf_accepted_asset_SIGN")) | |
22 | 22 | ||
23 | 23 | let j = fromBase58String(a("conf_accepted_asset_USDN")) | |
24 | 24 | ||
25 | 25 | let k = fromBase58String(a("conf_accepted_asset_USDT")) | |
26 | 26 | ||
27 | 27 | let l = base58'' | |
28 | 28 | ||
29 | 29 | let m = a("conf_admin_1") | |
30 | 30 | ||
31 | 31 | func n (b) = valueOrErrorMessage(getInteger(d, b), "Integer undefine or 0 in oracle") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func o (b) = valueOrElse(getInteger(this, b), 0) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func p (b) = valueOrElse(getInteger(h, b), 0) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func q (b) = valueOrElse(getBoolean(this, b), false) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | let r = 7 | |
44 | 44 | ||
45 | 45 | let s = 10 | |
46 | 46 | ||
47 | 47 | let t = a("conf_default_licence") | |
48 | 48 | ||
49 | 49 | let u = a("conf_default_licence_hash") | |
50 | 50 | ||
51 | 51 | let v = valueOrElse(getBoolean(g, "conf_dapp_is_running"), true) | |
52 | 52 | ||
53 | 53 | let w = valueOrElse(getString(g, "conf_maintenance_msg"), "") | |
54 | 54 | ||
55 | 55 | let x = "SUSPENDED" | |
56 | 56 | ||
57 | 57 | let y = "REMOVED" | |
58 | 58 | ||
59 | 59 | let z = "UNREGISTERED" | |
60 | 60 | ||
61 | 61 | let A = "ALLOWED" | |
62 | 62 | ||
63 | 63 | let B = n(("certification_fee_" + toBase58String(i))) | |
64 | 64 | ||
65 | 65 | func C (D,E,F) = { | |
66 | 66 | let G = getString(e, ((("data_fc_" + D) + "_") + E)) | |
67 | 67 | if ($isInstanceOf(G, "String")) | |
68 | 68 | then { | |
69 | 69 | let H = G | |
70 | 70 | if (contains(H, F)) | |
71 | 71 | then true | |
72 | 72 | else false | |
73 | 73 | } | |
74 | 74 | else false | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func I (J) = if (contains(J, "/")) | |
79 | 79 | then if (if ((76 > size(J))) | |
80 | 80 | then (size(split(J, "/")[0]) == 59) | |
81 | 81 | else false) | |
82 | 82 | then (16 > size(split(J, "/")[1])) | |
83 | 83 | else false | |
84 | 84 | else false | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func K (L) = (size(L) == 64) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func M (N) = ("user_status_" + N) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func O (N,P) = ((("art_date_" + P) + "_") + N) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func Q (N,P) = ((("art_name_" + P) + "_") + N) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func R (N,P) = ((("art_desc_" + P) + "_") + N) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func S (N,P) = ((("art_display_cid_" + P) + "_") + N) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func T (N,P) = ((("art_export_hash_" + P) + "_") + N) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func U (N,P) = ((("art_export_cid_" + P) + "_") + N) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func V (N,P) = ((("art_maxmint_" + P) + "_") + N) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func W (N,P) = ((("art_signid_" + P) + "_") + N) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func X (N,P) = ((("art_issued_" + P) + "_") + N) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func Y (N,P) = ((("art_onsale_" + P) + "_") + N) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func Z (N,P) = ((("art_licence_hash_" + P) + "_") + N) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func aa (N,P) = ((("art_licence_cid_" + P) + "_") + N) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ab (N,P) = ((("art_tags_" + P) + "_") + N) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ac (N,P) = ((("art_type_" + P) + "_") + N) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ad (N,P) = ((("art_note_" + P) + "_") + N) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ae (N,P) = ((("art_crawler_cid_" + P) + "_") + N) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func af (N,P) = ((("art_royalties_" + P) + "_") + N) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ag (N,P) = ((("art_price_" + P) + "_") + N) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ah (N,P) = ((("art_endsale_" + P) + "_") + N) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ai (N,P) = ((("art_assetAccepted_" + P) + "_") + N) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func aj (N,P) = ((("art_flag_" + P) + "_") + N) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ak (al) = ("artist_agent_" + al) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func am (al) = ("artist_agent_primary_" + al) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func an (al) = ("artist_public_agent_" + al) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ao (al) = ("artist_public_agent_primary_" + al) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ap (N,aq) = ((("get_hashbytxidaddr_" + aq) + "_") + N) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func ar (F) = ("get_owner_by_hash_" + F) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func as (N,at) = ((("get_artidbysignid_" + at) + "_") + N) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func au (F,N) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((F + N))))) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func av (aw,ax,ay) = if (!(I(aw))) | |
181 | 181 | then throw("Wrong Display CID") | |
182 | 182 | else if (!(I(ax))) | |
183 | 183 | then throw("Wrong Export CID") | |
184 | 184 | else if (if ((ay != "")) | |
185 | 185 | then !(I(ay)) | |
186 | 186 | else false) | |
187 | 187 | then throw("Wrong Licence CID") | |
188 | 188 | else true | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func az (aA,aB) = if (!(K(aA))) | |
192 | 192 | then throw("Export Hash 64 char. max") | |
193 | 193 | else if (!(K(aB))) | |
194 | 194 | then throw("Licence Hash 64 char. max") | |
195 | 195 | else true | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func aC (aD,aE) = if ((size(aD) == 0)) | |
199 | 199 | then throw("Field cannot be is empty") | |
200 | 200 | else if ((size(aD) > aE)) | |
201 | 201 | then throw((aD + " is too long")) | |
202 | 202 | else true | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aF (N) = { | |
206 | 206 | let aG = valueOrElse(getString(g, M(N)), z) | |
207 | 207 | if (if ((aG == z)) | |
208 | 208 | then true | |
209 | 209 | else (aG == A)) | |
210 | 210 | then "Register this account first with \"Account\" tab" | |
211 | 211 | else if ((aG == x)) | |
212 | 212 | then "Account suspended" | |
213 | 213 | else if ((aG == y)) | |
214 | 214 | then "Account removed" | |
215 | 215 | else "" | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aH (ay,aB) = { | |
220 | 220 | let J = if ((size(ay) == 0)) | |
221 | 221 | then t | |
222 | 222 | else ay | |
223 | 223 | let L = if ((size(aB) == 0)) | |
224 | 224 | then u | |
225 | 225 | else aB | |
226 | 226 | $Tuple2(J, L) | |
227 | 227 | } | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func aI (N,aw,ax,aJ,aA,aK,aL,aM,aN,aO) = { | |
231 | 231 | let aP = aF(N) | |
232 | 232 | if ((aP != "")) | |
233 | 233 | then throw(aP) | |
234 | 234 | else if ((size(aw) == 0)) | |
235 | 235 | then throw("Display CID cannot be empty") | |
236 | 236 | else if (!(av(aw, ax, aJ))) | |
237 | 237 | then throw("Problem with CID") | |
238 | 238 | else if (!(az(aA, aK))) | |
239 | 239 | then throw("Problem with Hashes") | |
240 | 240 | else if (!(aC(aL, 100))) | |
241 | 241 | then throw("100 Char. max name") | |
242 | 242 | else if (!(aC(aM, 1000))) | |
243 | 243 | then throw("1000 Char. max description") | |
244 | 244 | else if (if ((0 > aO)) | |
245 | 245 | then true | |
246 | 246 | else (aO > 1000)) | |
247 | 247 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
248 | 248 | else if ((size(split(aN, ",")) > 5)) | |
249 | 249 | then throw("5 tags max.") | |
250 | 250 | else "" | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func aQ (aR) = if ((size(aR.payments) == 0)) | |
255 | 255 | then throw("No payment attached") | |
256 | 256 | else { | |
257 | 257 | let aS = value(aR.payments[0]) | |
258 | 258 | let aT = value(aS.amount) | |
259 | 259 | $Tuple2(aS, aT) | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func aU (aR) = { | |
264 | 264 | let aV = aQ(aR) | |
265 | 265 | let aS = aV._1 | |
266 | 266 | let aT = aV._2 | |
267 | 267 | let aW = if (if (isDefined(aS.assetId)) | |
268 | 268 | then (aS.assetId == i) | |
269 | 269 | else false) | |
270 | 270 | then aS.assetId | |
271 | 271 | else throw("Only SIGN token accepted as transaction fee") | |
272 | 272 | if ((aT != B)) | |
273 | 273 | then throw(("Payment amount should be " + toString(B))) | |
274 | 274 | else $Tuple2(aT, aW) | |
275 | 275 | } | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func aX (aY,P) = { | |
279 | 279 | let G = getInteger(this, X(aY, P)) | |
280 | 280 | if ($isInstanceOf(G, "Int")) | |
281 | 281 | then { | |
282 | 282 | let aZ = G | |
283 | 283 | if ((aZ != 0)) | |
284 | 284 | then true | |
285 | 285 | else false | |
286 | 286 | } | |
287 | 287 | else false | |
288 | 288 | } | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | func ba (aR,bb,bc) = { | |
292 | 292 | let bd = aQ(aR) | |
293 | 293 | let aS = bd._1 | |
294 | 294 | let aT = bd._2 | |
295 | 295 | let aW = if (!(isDefined(aS.assetId))) | |
296 | 296 | then unit | |
297 | 297 | else if (if ((size(bb) > 0)) | |
298 | 298 | then (toBase58String(value(aS.assetId)) == bb) | |
299 | 299 | else false) | |
300 | 300 | then aS.assetId | |
301 | 301 | else throw("Wrong asset id") | |
302 | 302 | if (if ((aW == unit)) | |
303 | 303 | then (bb != "") | |
304 | 304 | else false) | |
305 | 305 | then throw("Wrong asset id") | |
306 | 306 | else if ((bc != aT)) | |
307 | 307 | then throw("Payment don't match") | |
308 | 308 | else $Tuple2(aT, aW) | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | func be (aW) = if (if (if (if (if ((aW != toBase58String(i))) | |
313 | 313 | then (aW != toBase58String(l)) | |
314 | 314 | else false) | |
315 | 315 | then (aW != "WAVES") | |
316 | 316 | else false) | |
317 | 317 | then (aW != toBase58String(j)) | |
318 | 318 | else false) | |
319 | 319 | then (aW != toBase58String(k)) | |
320 | 320 | else false) | |
321 | 321 | then throw("Only SIGN, USDN,USDT or WAVES accepted") | |
322 | 322 | else true | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func bf (aW,bg) = { | |
326 | 326 | let bh = if (c) | |
327 | 327 | then 10 | |
328 | 328 | else n("waves_min_sell") | |
329 | 329 | let bi = 1000000 | |
330 | 330 | let bj = if (c) | |
331 | 331 | then 1 | |
332 | 332 | else (B * 2) | |
333 | 333 | if (if (if (if (if (if ((aW == toBase58String(j))) | |
334 | 334 | then (bi > bg) | |
335 | 335 | else false) | |
336 | 336 | then (bg != 0) | |
337 | 337 | else false) | |
338 | 338 | then true | |
339 | 339 | else if (if ((aW == toBase58String(k))) | |
340 | 340 | then (bi > bg) | |
341 | 341 | else false) | |
342 | 342 | then (bg != 0) | |
343 | 343 | else false) | |
344 | 344 | then true | |
345 | 345 | else if (if ((aW == toBase58String(i))) | |
346 | 346 | then (bj > bg) | |
347 | 347 | else false) | |
348 | 348 | then (bg != 0) | |
349 | 349 | else false) | |
350 | 350 | then true | |
351 | 351 | else if (if (if ((aW == toBase58String(l))) | |
352 | 352 | then true | |
353 | 353 | else (aW == "WAVES")) | |
354 | 354 | then (bh > bg) | |
355 | 355 | else false) | |
356 | 356 | then (bg != 0) | |
357 | 357 | else false) | |
358 | 358 | then throw("Wrong minimum sell price") | |
359 | 359 | else true | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func bk (aW) = if ((aW == "WAVES")) | |
364 | 364 | then unit | |
365 | 365 | else fromBase58String(aW) | |
366 | 366 | ||
367 | 367 | ||
368 | 368 | func bl (bm) = { | |
369 | 369 | let bn = a((bm + "_OPEN")) | |
370 | 370 | if ((bn == "")) | |
371 | 371 | then throw("Bid not found") | |
372 | 372 | else { | |
373 | 373 | let bo = split(bn, "_") | |
374 | 374 | let bp = parseIntValue(bo[1]) | |
375 | 375 | let bq = bk(bo[0]) | |
376 | 376 | if ((0 >= bp)) | |
377 | 377 | then throw("Wrong amount") | |
378 | 378 | else $Tuple2(bp, bq) | |
379 | 379 | } | |
380 | 380 | } | |
381 | 381 | ||
382 | 382 | ||
383 | 383 | func br (aR,bs) = if (!(v)) | |
384 | 384 | then throw(w) | |
385 | 385 | else { | |
386 | 386 | let bt = if ((bs != "")) | |
387 | 387 | then valueOrElse(p((toString(addressFromPublicKey(fromBase58String(bs))) + "_free_txs")), 0) | |
388 | 388 | else 0 | |
389 | 389 | if ((bt == bt)) | |
390 | 390 | then { | |
391 | 391 | let N = if (if ((toBase58String(aR.caller.bytes) == toString(this))) | |
392 | 392 | then (bt > 0) | |
393 | 393 | else false) | |
394 | 394 | then toString(addressFromPublicKey(fromBase58String(bs))) | |
395 | 395 | else toBase58String(aR.caller.bytes) | |
396 | 396 | let bu = if (if ((bs != "")) | |
397 | 397 | then (bt > 0) | |
398 | 398 | else false) | |
399 | 399 | then invoke(h, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(bs)))], nil) | |
400 | 400 | else unit | |
401 | 401 | if ((bu == bu)) | |
402 | - | then $Tuple4(toBase58String(aR.transactionId), N, lastBlock.timestamp, | |
402 | + | then $Tuple4(toBase58String(aR.transactionId), N, lastBlock.timestamp, bt) | |
403 | 403 | else throw("Strict value is not equal to itself.") | |
404 | 404 | } | |
405 | 405 | else throw("Strict value is not equal to itself.") | |
406 | 406 | } | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | func bv (aR) = if (!(v)) | |
410 | 410 | then throw(w) | |
411 | 411 | else $Tuple3(toBase58String(aR.transactionId), toBase58String(aR.caller.bytes), lastBlock.timestamp) | |
412 | 412 | ||
413 | 413 | ||
414 | 414 | func bw (aR,P,bx,by,bz,bs) = { | |
415 | 415 | let bA = br(aR, bs) | |
416 | 416 | if ((bA == bA)) | |
417 | 417 | then { | |
418 | 418 | let bt = bA._4 | |
419 | 419 | let bB = bA._3 | |
420 | 420 | let N = bA._2 | |
421 | 421 | let bC = bA._1 | |
422 | 422 | if (true) | |
423 | 423 | then throw(toString(bt)) | |
424 | 424 | else { | |
425 | 425 | let bD = if (if ((toBase58String(aR.caller.bytes) == toString(this))) | |
426 | - | then bt | |
426 | + | then (bt > 0) | |
427 | 427 | else false) | |
428 | 428 | then toString(addressFromPublicKey(fromBase58String(bs))) | |
429 | 429 | else toBase58String(aR.caller.bytes) | |
430 | 430 | if (true) | |
431 | 431 | then throw(((((((bD + " / ") + bx) + " / ") + bz) + " / ") + bs)) | |
432 | 432 | else { | |
433 | 433 | let bE = if (if (if ((N == bx)) | |
434 | 434 | then (bz != "") | |
435 | 435 | else false) | |
436 | 436 | then (by != "") | |
437 | 437 | else false) | |
438 | 438 | then true | |
439 | 439 | else false | |
440 | 440 | let bF = o(ah(N, P)) | |
441 | 441 | if (if (if ((bF != 0)) | |
442 | 442 | then (height >= bF) | |
443 | 443 | else false) | |
444 | 444 | then !(bE) | |
445 | 445 | else false) | |
446 | 446 | then throw("Sale ended.") | |
447 | 447 | else { | |
448 | 448 | let bG = (N == bx) | |
449 | 449 | let bH = o("total_nft_issued") | |
450 | 450 | let D = a(W(bx, P)) | |
451 | 451 | let bI = a(Q(bx, P)) | |
452 | 452 | if ((bI == "")) | |
453 | 453 | then throw("Art doesn't exist") | |
454 | 454 | else { | |
455 | 455 | let bJ = q(Y(bx, P)) | |
456 | 456 | let bK = o(X(bx, P)) | |
457 | 457 | let bc = if (bG) | |
458 | 458 | then (B * 2) | |
459 | 459 | else o(ag(bx, P)) | |
460 | 460 | let bb = if (bG) | |
461 | 461 | then toBase58String(i) | |
462 | 462 | else a(ai(bx, P)) | |
463 | 463 | let bL = o(V(bx, P)) | |
464 | 464 | if (if (if (!(bE)) | |
465 | 465 | then !(bG) | |
466 | 466 | else false) | |
467 | 467 | then if (if ((0 >= bc)) | |
468 | 468 | then true | |
469 | 469 | else !(bJ)) | |
470 | 470 | then true | |
471 | 471 | else (0 >= bL) | |
472 | 472 | else false) | |
473 | 473 | then throw("Art not for sale") | |
474 | 474 | else if (if (if (!(bE)) | |
475 | 475 | then bG | |
476 | 476 | else false) | |
477 | 477 | then (0 >= bL) | |
478 | 478 | else false) | |
479 | 479 | then throw("Max issuable not set") | |
480 | 480 | else { | |
481 | 481 | let aP = aF(bx) | |
482 | 482 | if (if (bE) | |
483 | 483 | then (aP != "") | |
484 | 484 | else false) | |
485 | 485 | then throw(aP) | |
486 | 486 | else { | |
487 | 487 | let bm = ((((((("bid_" + P) + "_") + bx) + "_") + bz) + "_") + by) | |
488 | 488 | let bM = if (bE) | |
489 | 489 | then bl(bm) | |
490 | 490 | else ba(aR, bb, bc) | |
491 | 491 | let aT = bM._1 | |
492 | 492 | let aW = bM._2 | |
493 | 493 | let bN = valueOrElse(getString(g, ak(bx)), f) | |
494 | 494 | let bO = valueOrElse(getInteger(g, am(bx)), 0) | |
495 | 495 | let bP = valueOrElse(getString(g, an(bx)), f) | |
496 | 496 | let bQ = valueOrElse(getInteger(g, ao(bx)), 0) | |
497 | 497 | let bR = p(bx) | |
498 | 498 | let bS = if ((bR > height)) | |
499 | 499 | then 0 | |
500 | 500 | else if ((aW == i)) | |
501 | 501 | then r | |
502 | 502 | else s | |
503 | 503 | let bT = fraction(aT, bS, 100) | |
504 | 504 | let bU = if (if (if ((bN != f)) | |
505 | 505 | then (bO > 0) | |
506 | 506 | else false) | |
507 | 507 | then (height > bR) | |
508 | 508 | else false) | |
509 | 509 | then fraction(aT, bO, 10000) | |
510 | 510 | else 0 | |
511 | 511 | let bV = if (if (if ((bP != f)) | |
512 | 512 | then (bQ > 0) | |
513 | 513 | else false) | |
514 | 514 | then (height > bR) | |
515 | 515 | else false) | |
516 | 516 | then fraction(aT, bQ, 10000) | |
517 | 517 | else 0 | |
518 | 518 | let bW = (aT - bT) | |
519 | 519 | if ((bK == bL)) | |
520 | 520 | then throw("Art sold out") | |
521 | 521 | else { | |
522 | 522 | let bX = (bK + 1) | |
523 | 523 | let bY = ((((((((((("Creator: " + bx) + ", | |
524 | 524 | ArtID: ") + P) + ", | |
525 | 525 | SignID: ") + D) + ", | |
526 | 526 | Artwork name: ") + bI) + ", | |
527 | 527 | Issue: ") + toString(bX)) + "/") + toString(bL)) | |
528 | 528 | let bZ = Issue(("SA_" + toString((bH + 1))), bY, 1, 0, false) | |
529 | 529 | let ca = calculateAssetId(bZ) | |
530 | 530 | let cb = if (if ((bX == bL)) | |
531 | 531 | then true | |
532 | 532 | else !(bJ)) | |
533 | 533 | then false | |
534 | 534 | else true | |
535 | 535 | let cc = if (if (if ((N == bx)) | |
536 | 536 | then (bz != "") | |
537 | 537 | else false) | |
538 | 538 | then (by != "") | |
539 | 539 | else false) | |
540 | 540 | then addressFromStringValue(bz) | |
541 | 541 | else aR.caller | |
542 | 542 | let cd = if (!(isDefined(aW))) | |
543 | 543 | then "WAVES" | |
544 | 544 | else toBase58String(value(aW)) | |
545 | 545 | let bn = a((bm + "_OPEN")) | |
546 | 546 | let ce = DeleteEntry((bm + "_OPEN")) | |
547 | 547 | let cf = StringEntry((bm + "_CLOSED"), ((bn + "_") + toString(bB))) | |
548 | 548 | let cg = ((((((("art_sold_" + toString(bX)) + "_of_") + toString(bL)) + "_") + P) + "_") + bx) | |
549 | 549 | let ch = if (!(bE)) | |
550 | 550 | then ((((((((((N + "_") + toString(bB)) + "_") + bC) + "_") + toString(bc)) + "_") + bb) + "_") + toBase58String(ca)) | |
551 | 551 | else ((((((((((toString(cc) + "_") + toString(bB)) + "_") + bC) + "_") + toString(aT)) + "_") + cd) + "_") + toBase58String(ca)) | |
552 | 552 | let ci = StringEntry(cg, ch) | |
553 | 553 | let cj = if ((bU != 0)) | |
554 | 554 | then [ScriptTransfer(Address(fromBase58String(f)), (bT - bU), aW), ScriptTransfer(Address(fromBase58String(bN)), bU, aW)] | |
555 | 555 | else [ScriptTransfer(Address(fromBase58String(f)), bT, aW)] | |
556 | 556 | let ck = if ((bV != 0)) | |
557 | 557 | then [ScriptTransfer(Address(fromBase58String(bP)), bV, aW), ScriptTransfer(Address(fromBase58String(bx)), (bW - bV), aW)] | |
558 | 558 | else [ScriptTransfer(Address(fromBase58String(bx)), bW, aW)] | |
559 | - | let cl = if (bt) | |
559 | + | let cl = if ((bt > 0)) | |
560 | 560 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
561 | 561 | else nil | |
562 | 562 | let cm = ((([IntegerEntry(X(bx, P), bX), StringEntry(("nft_" + toBase58String(ca)), cg), IntegerEntry("total_nft_issued", (bH + 1)), IntegerEntry(ah(bx, P), 0), BooleanEntry(Y(bx, P), cb), bZ, ScriptTransfer(cc, 1, ca)] ++ cj) ++ ck) ++ cl) | |
563 | 563 | if (bE) | |
564 | 564 | then [ci, cf, ce] :: cm | |
565 | 565 | else ci :: cm | |
566 | 566 | } | |
567 | 567 | } | |
568 | 568 | } | |
569 | 569 | } | |
570 | 570 | } | |
571 | 571 | } | |
572 | 572 | } | |
573 | 573 | } | |
574 | 574 | else throw("Strict value is not equal to itself.") | |
575 | 575 | } | |
576 | 576 | ||
577 | 577 | ||
578 | 578 | func cn (co) = { | |
579 | 579 | let G = co | |
580 | 580 | if ($isInstanceOf(G, "String")) | |
581 | 581 | then { | |
582 | 582 | let cp = G | |
583 | 583 | cp | |
584 | 584 | } | |
585 | 585 | else throw("Sponsored Public Key String expected") | |
586 | 586 | } | |
587 | 587 | ||
588 | 588 | ||
589 | 589 | @Callable(cq) | |
590 | 590 | func setConf (b,cr) = { | |
591 | 591 | let N = toString(cq.caller) | |
592 | 592 | if (containsElement([m, toString(this)], N)) | |
593 | 593 | then if (contains(b, "conf_")) | |
594 | 594 | then [StringEntry(b, cr)] | |
595 | 595 | else throw("Entries starting with conf_ only") | |
596 | 596 | else throw("You are not allowed to change this") | |
597 | 597 | } | |
598 | 598 | ||
599 | 599 | ||
600 | 600 | ||
601 | 601 | @Callable(aR) | |
602 | 602 | func addArtwork (F,D,aL,aM,aN,cs,aw,aA,ax,aB,ay,ct,aO,bs) = { | |
603 | 603 | let cu = br(aR, bs) | |
604 | 604 | let P = cu._1 | |
605 | 605 | let N = cu._2 | |
606 | 606 | let bB = cu._3 | |
607 | 607 | let bt = cu._4 | |
608 | 608 | if (!(K(F))) | |
609 | 609 | then throw("Hash should be 64 characters maximum") | |
610 | 610 | else { | |
611 | 611 | let cv = aH(ay, aB) | |
612 | 612 | let aJ = cv._1 | |
613 | 613 | let aK = cv._2 | |
614 | 614 | let cw = aI(N, aw, ax, aJ, aA, aK, aL, aM, aN, aO) | |
615 | 615 | if ((cw != "")) | |
616 | 616 | then throw("Something went wrong!") | |
617 | 617 | else { | |
618 | 618 | let cx = (p((N + "_free_drops")) > 0) | |
619 | 619 | let cy = if (cx) | |
620 | 620 | then $Tuple2(0, D) | |
621 | 621 | else aU(aR) | |
622 | 622 | let aT = cy._1 | |
623 | 623 | let aW = cy._2 | |
624 | 624 | if (!(isDefined(aT))) | |
625 | 625 | then throw("Something went wrong") | |
626 | 626 | else { | |
627 | 627 | let cz = a(au(F, N)) | |
628 | 628 | if ((cz != "")) | |
629 | 629 | then throw("You already added it") | |
630 | 630 | else { | |
631 | 631 | let cA = a(ar(F)) | |
632 | 632 | if ((cA != "")) | |
633 | 633 | then throw("Hash already registered") | |
634 | 634 | else { | |
635 | 635 | let cB = C(D, N, F) | |
636 | 636 | if (!(cB)) | |
637 | 637 | then throw("Sign Certificate not found for this address.") | |
638 | 638 | else { | |
639 | 639 | let cC = if (cx) | |
640 | 640 | then invoke(h, "useFreeDrop", [N], nil) | |
641 | 641 | else unit | |
642 | 642 | if ((cC == cC)) | |
643 | 643 | then { | |
644 | - | let cl = if (bt) | |
644 | + | let cl = if ((bt > 0)) | |
645 | 645 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
646 | 646 | else nil | |
647 | 647 | ([StringEntry(ar(F), N), StringEntry(au(F, N), P), IntegerEntry(O(N, P), bB), StringEntry(Q(N, P), aL), StringEntry(R(N, P), aM), StringEntry(S(N, P), aw), StringEntry(U(N, P), ax), StringEntry(T(N, P), aA), StringEntry(Z(N, P), aK), StringEntry(aa(N, P), aJ), StringEntry(ac(N, P), cs), StringEntry(ab(N, P), aN), IntegerEntry(V(N, P), 0), StringEntry(W(N, P), D), IntegerEntry(X(N, P), 0), BooleanEntry(Y(N, P), false), StringEntry(as(N, D), P), StringEntry(ap(N, P), F), StringEntry(ae(N, P), ct), IntegerEntry(af(N, P), aO), ScriptTransfer(Address(fromBase58String(f)), aT, i)] ++ cl) | |
648 | 648 | } | |
649 | 649 | else throw("Strict value is not equal to itself.") | |
650 | 650 | } | |
651 | 651 | } | |
652 | 652 | } | |
653 | 653 | } | |
654 | 654 | } | |
655 | 655 | } | |
656 | 656 | } | |
657 | 657 | ||
658 | 658 | ||
659 | 659 | ||
660 | 660 | @Callable(aR) | |
661 | 661 | func updateArtwork (aq,aL,aM,aN,cs,aw,aA,ax,aB,ay,ct,aO,bs) = if (!(v)) | |
662 | 662 | then throw(w) | |
663 | 663 | else { | |
664 | 664 | let cD = br(aR, bs) | |
665 | 665 | let bC = cD._1 | |
666 | 666 | let N = cD._2 | |
667 | 667 | let bB = cD._3 | |
668 | 668 | let bt = cD._4 | |
669 | 669 | let cE = aH(ay, aB) | |
670 | 670 | let aJ = cE._1 | |
671 | 671 | let aK = cE._2 | |
672 | 672 | let cw = aI(N, aw, ax, aJ, aA, aK, aL, aM, aN, aO) | |
673 | 673 | if ((cw != "")) | |
674 | 674 | then throw("Something went wrong!") | |
675 | 675 | else { | |
676 | 676 | let cz = a(Q(N, aq)) | |
677 | 677 | if ((cz == "")) | |
678 | 678 | then throw("Entry not found") | |
679 | 679 | else { | |
680 | 680 | let cF = a(aj(N, aq)) | |
681 | 681 | if ((cF == "ILLEGAL")) | |
682 | 682 | then throw("Cannot update ILLEGAL artwork") | |
683 | 683 | else if (!(aX(N, aq))) | |
684 | 684 | then { | |
685 | - | let cl = if (bt) | |
685 | + | let cl = if ((bt > 0)) | |
686 | 686 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
687 | 687 | else nil | |
688 | 688 | ([StringEntry(Q(N, aq), aL), StringEntry(R(N, aq), aM), StringEntry(S(N, aq), aw), StringEntry(U(N, aq), ax), StringEntry(T(N, aq), aA), StringEntry(aa(N, aq), aJ), StringEntry(Z(N, aq), aK), StringEntry(ab(N, aq), aN), StringEntry(ac(N, aq), cs), StringEntry(ae(N, aq), ct), IntegerEntry(af(N, aq), aO)] ++ cl) | |
689 | 689 | } | |
690 | 690 | else throw("Already minted") | |
691 | 691 | } | |
692 | 692 | } | |
693 | 693 | } | |
694 | 694 | ||
695 | 695 | ||
696 | 696 | ||
697 | 697 | @Callable(aR) | |
698 | 698 | func flagArtwork (P,cG,cF,cH) = { | |
699 | 699 | let cI = bv(aR) | |
700 | 700 | let bC = cI._1 | |
701 | 701 | let N = cI._2 | |
702 | 702 | if (containsElement([m, toString(this)], N)) | |
703 | 703 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cF)) | |
704 | 704 | then [StringEntry(aj(cG, P), cF), StringEntry(ad(cG, P), cH)] | |
705 | 705 | else throw(("Unknow status " + cF)) | |
706 | 706 | else throw("You are not allowed") | |
707 | 707 | } | |
708 | 708 | ||
709 | 709 | ||
710 | 710 | ||
711 | 711 | @Callable(aR) | |
712 | 712 | func deleteArtwork (P,cG) = { | |
713 | 713 | let cJ = bv(aR) | |
714 | 714 | let bC = cJ._1 | |
715 | 715 | let N = cJ._2 | |
716 | 716 | let aY = if (containsElement([m, toString(this)], N)) | |
717 | 717 | then cG | |
718 | 718 | else N | |
719 | 719 | let cz = valueOrErrorMessage(a(Q(aY, P)), "No art matching for this address") | |
720 | 720 | if ((cz == "")) | |
721 | 721 | then throw("No art matching for this address") | |
722 | 722 | else { | |
723 | 723 | let F = a(ap(aY, P)) | |
724 | 724 | if ((F == "")) | |
725 | 725 | then throw("No art hash matching for this address") | |
726 | 726 | else { | |
727 | 727 | let D = a(W(aY, P)) | |
728 | 728 | if ((D == "")) | |
729 | 729 | then throw("No SIGN ID matching") | |
730 | 730 | else { | |
731 | 731 | let cK = [DeleteEntry(O(aY, P)), DeleteEntry(Q(aY, P)), DeleteEntry(R(aY, P)), DeleteEntry(S(aY, P)), DeleteEntry(U(aY, P)), DeleteEntry(T(aY, P)), DeleteEntry(Z(aY, P)), DeleteEntry(aa(aY, P)), DeleteEntry(ac(aY, P)), DeleteEntry(ab(aY, P)), DeleteEntry(V(aY, P)), DeleteEntry(W(aY, P)), DeleteEntry(X(aY, P)), DeleteEntry(Y(aY, P)), DeleteEntry(aj(aY, P)), DeleteEntry(ag(aY, P)), DeleteEntry(ai(aY, P)), DeleteEntry(ar(F)), DeleteEntry(as(aY, D)), DeleteEntry(au(F, aY)), DeleteEntry(ah(aY, P)), DeleteEntry(ad(aY, P)), DeleteEntry(ae(aY, P)), DeleteEntry(af(aY, P))] | |
732 | 732 | if (!(aX(aY, P))) | |
733 | 733 | then if (!(v)) | |
734 | 734 | then throw(w) | |
735 | 735 | else cK | |
736 | 736 | else if (containsElement([m, toString(this)], N)) | |
737 | 737 | then cK | |
738 | 738 | else throw("Art already minted, you cannot delete it") | |
739 | 739 | } | |
740 | 740 | } | |
741 | 741 | } | |
742 | 742 | } | |
743 | 743 | ||
744 | 744 | ||
745 | 745 | ||
746 | 746 | @Callable(aR) | |
747 | 747 | func sellArtwork (P,bg,cL,aW,bF,bs) = { | |
748 | 748 | let cM = br(aR, bs) | |
749 | 749 | let bC = cM._1 | |
750 | 750 | let N = cM._2 | |
751 | 751 | let bB = cM._3 | |
752 | 752 | let bt = cM._4 | |
753 | 753 | let bI = a(Q(N, P)) | |
754 | 754 | if ((bI == "")) | |
755 | 755 | then throw("This art doesn't match your account") | |
756 | 756 | else { | |
757 | 757 | let cF = a(aj(N, P)) | |
758 | 758 | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cF)) | |
759 | 759 | then throw("Flagged artwork") | |
760 | 760 | else { | |
761 | 761 | let cN = o(("current_bidamount_" + P)) | |
762 | 762 | if ((0 > bF)) | |
763 | 763 | then throw("Negative end") | |
764 | 764 | else if (if ((bF > 0)) | |
765 | 765 | then if ((cL != 1)) | |
766 | 766 | then true | |
767 | 767 | else (bg != 0) | |
768 | 768 | else false) | |
769 | 769 | then throw("Timed offer only allowed for unique edition and offer only") | |
770 | 770 | else { | |
771 | 771 | let cO = if ((bF == 0)) | |
772 | 772 | then 0 | |
773 | 773 | else height | |
774 | 774 | if (!(be(aW))) | |
775 | 775 | then throw("Something went wrong!") | |
776 | 776 | else if (!(bf(aW, bg))) | |
777 | 777 | then throw("Something went wrong!") | |
778 | 778 | else { | |
779 | 779 | let aP = aF(N) | |
780 | 780 | if ((aP != "")) | |
781 | 781 | then throw(aP) | |
782 | 782 | else { | |
783 | 783 | let bK = o(X(N, P)) | |
784 | 784 | let bL = o(V(N, P)) | |
785 | 785 | if ((cL > 100)) | |
786 | 786 | then throw("100 editions max per artwork") | |
787 | 787 | else if (if ((bK != 0)) | |
788 | 788 | then (bK == bL) | |
789 | 789 | else false) | |
790 | 790 | then throw("Max edition reached.") | |
791 | 791 | else if (if ((bK > 0)) | |
792 | 792 | then (bL != cL) | |
793 | 793 | else false) | |
794 | 794 | then throw("Cannot change maximum issuable anymore") | |
795 | 795 | else if (if ((cN > 0)) | |
796 | 796 | then (bL != cL) | |
797 | 797 | else false) | |
798 | 798 | then throw("Cannot change maximum issuable with active orders") | |
799 | 799 | else { | |
800 | 800 | let cb = if (if ((bg > 0)) | |
801 | 801 | then (cL > 0) | |
802 | 802 | else false) | |
803 | 803 | then true | |
804 | 804 | else false | |
805 | - | let cl = if (bt) | |
805 | + | let cl = if ((bt > 0)) | |
806 | 806 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
807 | 807 | else nil | |
808 | 808 | ([BooleanEntry(Y(N, P), cb), IntegerEntry(ag(N, P), bg), IntegerEntry(V(N, P), cL), StringEntry(ai(N, P), aW), IntegerEntry(ah(N, P), (cO + bF))] ++ cl) | |
809 | 809 | } | |
810 | 810 | } | |
811 | 811 | } | |
812 | 812 | } | |
813 | 813 | } | |
814 | 814 | } | |
815 | 815 | } | |
816 | 816 | ||
817 | 817 | ||
818 | 818 | ||
819 | 819 | @Callable(aR) | |
820 | 820 | func buyArtwork (P,bx) = bw(aR, P, bx, "", "", "") | |
821 | 821 | ||
822 | 822 | ||
823 | 823 | ||
824 | 824 | @Callable(aR) | |
825 | 825 | func setBid (P,bx) = { | |
826 | 826 | let cP = bv(aR) | |
827 | 827 | let bC = cP._1 | |
828 | 828 | let N = cP._2 | |
829 | 829 | let bB = cP._3 | |
830 | 830 | let cQ = aQ(aR) | |
831 | 831 | let aS = cQ._1 | |
832 | 832 | let aT = cQ._2 | |
833 | 833 | let aW = if (!(isDefined(aS.assetId))) | |
834 | 834 | then "WAVES" | |
835 | 835 | else toBase58String(value(aS.assetId)) | |
836 | 836 | let bF = o(ah(bx, P)) | |
837 | 837 | if (if ((bF != 0)) | |
838 | 838 | then (height >= bF) | |
839 | 839 | else false) | |
840 | 840 | then throw("Sale ended.") | |
841 | 841 | else { | |
842 | 842 | let cN = o(("current_bidamount_" + P)) | |
843 | 843 | if (!(be(aW))) | |
844 | 844 | then throw("asset not accepted") | |
845 | 845 | else if (!(bf(aW, aT))) | |
846 | 846 | then throw("Wrong min sell") | |
847 | 847 | else { | |
848 | 848 | let bK = o(X(bx, P)) | |
849 | 849 | let bL = o(V(bx, P)) | |
850 | 850 | if ((0 >= bL)) | |
851 | 851 | then throw("No max edition set for this artwork") | |
852 | 852 | else if ((bK >= bL)) | |
853 | 853 | then throw("Sold out, you cannot bid") | |
854 | 854 | else [StringEntry((((((((("bid_" + P) + "_") + bx) + "_") + N) + "_") + bC) + "_OPEN"), ((((aW + "_") + toString(aT)) + "_") + toString(bB))), IntegerEntry(("current_bidamount_" + P), (cN + 1))] | |
855 | 855 | } | |
856 | 856 | } | |
857 | 857 | } | |
858 | 858 | ||
859 | 859 | ||
860 | 860 | ||
861 | 861 | @Callable(aR) | |
862 | 862 | func acceptBid (P,bx,by,bz,bs) = { | |
863 | 863 | let cR = br(aR, bs) | |
864 | 864 | let bC = cR._1 | |
865 | 865 | let cS = cR._2 | |
866 | 866 | let bB = cR._3 | |
867 | 867 | let bt = cR._4 | |
868 | 868 | if ((cS != bx)) | |
869 | 869 | then throw("You cannot do this action") | |
870 | 870 | else bw(aR, P, bx, by, bz, bs) | |
871 | 871 | } | |
872 | 872 | ||
873 | 873 | ||
874 | 874 | ||
875 | 875 | @Callable(aR) | |
876 | 876 | func cancelBid (P,bx,by,bz) = { | |
877 | 877 | let cT = bv(aR) | |
878 | 878 | let bC = cT._1 | |
879 | 879 | let N = cT._2 | |
880 | 880 | let bB = cT._3 | |
881 | 881 | if (if ((N != bz)) | |
882 | 882 | then (N != bx) | |
883 | 883 | else false) | |
884 | 884 | then throw("You cannot do this action") | |
885 | 885 | else { | |
886 | 886 | let cU = if ((N == bx)) | |
887 | 887 | then bz | |
888 | 888 | else N | |
889 | 889 | let cN = o(("current_bidamount_" + P)) | |
890 | 890 | let bm = ((((((("bid_" + P) + "_") + bx) + "_") + bz) + "_") + by) | |
891 | 891 | let bn = a((bm + "_OPEN")) | |
892 | 892 | if ((bn == "")) | |
893 | 893 | then throw("Bid not found") | |
894 | 894 | else { | |
895 | 895 | let bo = split(bn, "_") | |
896 | 896 | let aW = bk(bo[0]) | |
897 | 897 | let cV = "CANCELED" | |
898 | 898 | [DeleteEntry((bm + "_OPEN")), StringEntry(((bm + "_") + cV), ((bn + "_") + toString(bB))), IntegerEntry(("current_bidamount_" + P), (cN - 1)), ScriptTransfer(Address(fromBase58String(cU)), parseIntValue(bo[1]), aW)] | |
899 | 899 | } | |
900 | 900 | } | |
901 | 901 | } | |
902 | 902 | ||
903 | 903 | ||
904 | 904 | @Verifier(cW) | |
905 | 905 | func cX () = { | |
906 | 906 | let G = cW | |
907 | 907 | if ($isInstanceOf(G, "InvokeScriptTransaction")) | |
908 | 908 | then { | |
909 | 909 | let cY = G | |
910 | 910 | if (if (if (if ((cY.function == "addArtwork")) | |
911 | 911 | then (cY.dApp == this) | |
912 | 912 | else false) | |
913 | 913 | then (cY.fee == 500000) | |
914 | 914 | else false) | |
915 | 915 | then (cY.feeAssetId == unit) | |
916 | 916 | else false) | |
917 | 917 | then sigVerify(cW.bodyBytes, cW.proofs[0], fromBase58String(cn(cY.args[13]))) | |
918 | 918 | else if (if (if (if ((cY.function == "updateArtwork")) | |
919 | 919 | then (cY.dApp == this) | |
920 | 920 | else false) | |
921 | 921 | then (cY.fee == 500000) | |
922 | 922 | else false) | |
923 | 923 | then (cY.feeAssetId == unit) | |
924 | 924 | else false) | |
925 | 925 | then sigVerify(cW.bodyBytes, cW.proofs[0], fromBase58String(cn(cY.args[12]))) | |
926 | 926 | else if (if (if (if ((cY.function == "sellArtwork")) | |
927 | 927 | then (cY.dApp == this) | |
928 | 928 | else false) | |
929 | 929 | then (cY.fee == 500000) | |
930 | 930 | else false) | |
931 | 931 | then (cY.feeAssetId == unit) | |
932 | 932 | else false) | |
933 | 933 | then sigVerify(cW.bodyBytes, cW.proofs[0], fromBase58String(cn(cY.args[5]))) | |
934 | 934 | else if (if (if (if ((cY.function == "acceptBid")) | |
935 | 935 | then (cY.dApp == this) | |
936 | 936 | else false) | |
937 | 937 | then (cY.fee == 500000) | |
938 | 938 | else false) | |
939 | 939 | then (cY.feeAssetId == unit) | |
940 | 940 | else false) | |
941 | 941 | then sigVerify_128Kb(cW.bodyBytes, cW.proofs[0], fromBase58String(cn(cY.args[4]))) | |
942 | 942 | else sigVerify(cW.bodyBytes, cW.proofs[0], cW.senderPublicKey) | |
943 | 943 | } | |
944 | 944 | else sigVerify(cW.bodyBytes, cW.proofs[0], cW.senderPublicKey) | |
945 | 945 | } | |
946 | 946 |
github/deemru/w8io/026f985 105.60 ms ◑