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