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