tx · DALUtW1dMsRCquyWm8svBxVim3jk8AkrT2SUyGswHwZM 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib: -0.01400000 Waves 2022.09.15 05:25 [2229607] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves
{ "type": 13, "id": "DALUtW1dMsRCquyWm8svBxVim3jk8AkrT2SUyGswHwZM", "fee": 1400000, "feeAssetId": null, "timestamp": 1663208726745, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "2GdesypRAWhawd6WPRCCmyNm11j9mrXXiPQZaVcQzYX2RdWxef5bSydCXPf6BP1CxxqAnyM1gNYuSPSJ4wGKDpEK" ], "script": "base64:BgJGCAISDQoLCAgICAgBCAgBAQQSBAoCCAgSBAoCCAESBAoCAQESAwoBBBIECgIICBIFCgMICAgSBAoCCAgSBAoCBAgSAwoBCD0AB3ZlcnNpb24CAzEuMAALQ09ORl9JTklUX0sCC2NvbmZpZ19pbml0AAtDT05GX0FNSU5fSwIMY29uZmlnX2FkbWluAA1DT05GX09SQUNMRV9LAg1jb25maWdfb3JhY2xlABNDT05GX0FSVFdPUktfREFQUF9LAhNjb25maWdfYXJ0d29ya19kYXBwABFDT05GX1VTRVJTX0RBUFBfSwIRY29uZmlnX3VzZXJzX2RhcHAAEENPTkZfRkVFX0FTU0VUX0sCEGNvbmZpZ19mZWVfYXNzZXQAEUNPTkZfRkVFX0FNT1VOVF9LAhFjb25maWdfZmVlX2Ftb3VudAAVQ09ORl9TV09QX1NJR05fREFQUF9LAhVjb25maWdfc3dvcF9zaWduX2RhcHAAFENPTkZfU1dPUF9FVEhfREFQUF9LAhRjb25maWdfc3dvcF9ldGhfZGFwcAAfQ09ORl9DT05GSVJNQVRJT05TX0ZST01fV0FWRVNfSwIfY29uZmlnX2NvbmZpcm1hd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wIGaXNMaXZlB21lc3NhZ2UDCQEBIQEFBmlzSW5pdAkAAgECDmRBcHAgbm90IHJlYWR5AwkBCW93bmVyT25seQEFAWkJAMwIAgkBDEJvb2xlYW5FbnRyeQIFDWRhcHBSdW5uaW5nX0sFBmlzTGl2ZQkAzAgCCQELU3RyaW5nRW50cnkCBRBtYWludGVuYW5jZU1TR19LBQdtZXNzYWdlBQNuaWwJAAIBAiJZb3UgYXJlIG5vdCBhbGxvd2VkIHRvIGNoYW5nZSB0aGlzAWkBC2RlbGV0ZUVudHJ5AQVlbnRyeQMJAQlvd25lck9ubHkBBQFpCQDMCAIJAQtEZWxldGVFbnRyeQEFBWVudHJ5BQNuaWwJAAIBAgJubwBhC09g", "height": 2229607, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 45Bt8N9suyfqKfoLjzTtKbPAHvzkQ3u9FUH9MKos9dZH Next: Fo8uUoWi1T5j8fvw4nWVEgUnrBf7kyBUD1Um1PmBtAbW Diff:
Old | New | Differences | |
---|---|---|---|
188 | 188 | func aF (aG,aH) = [IntegerEntry(k, aG), IntegerEntry(l, aH)] | |
189 | 189 | ||
190 | 190 | ||
191 | - | func aI ( | |
191 | + | func aI (aJ) = [BooleanEntry(m, aJ)] | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Callable(ab) | |
195 | - | func init ( | |
195 | + | func init (aK,P,N,O,aB,aC,ay,az,aG,aH,aJ) = if (ah(ab)) | |
196 | 196 | then { | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | (((([StringEntry(c, | |
197 | + | let aL = ax(ay, az) | |
198 | + | let aM = aA(aB, aC) | |
199 | + | let aN = aF(aG, aH) | |
200 | + | let aO = aI(aJ) | |
201 | + | (((([StringEntry(c, aK), StringEntry(d, P), StringEntry(e, N), StringEntry(f, O), BooleanEntry(b, true)] ++ aL) ++ aM) ++ aN) ++ aO) | |
202 | 202 | } | |
203 | 203 | else throw("Not allowed") | |
204 | 204 | ||
226 | 226 | ||
227 | 227 | ||
228 | 228 | @Callable(ab) | |
229 | - | func | |
230 | - | then aI( | |
229 | + | func setAutoswapFee (aJ) = if (ah(ab)) | |
230 | + | then aI(aJ) | |
231 | 231 | else throw("Not allowed") | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | ||
235 | 235 | @Callable(ab) | |
236 | - | func lock ( | |
236 | + | func lock (aP,aQ) = if (!(ag)) | |
237 | 237 | then throw("dApp not ready") | |
238 | - | else if (!(containsElement(A, | |
238 | + | else if (!(containsElement(A, aQ))) | |
239 | 239 | then throw("Network not supported") | |
240 | - | else if (!(aw( | |
240 | + | else if (!(aw(aP))) | |
241 | 241 | then throw("Wrong recipient address") | |
242 | 242 | else { | |
243 | - | let | |
244 | - | let Z = | |
245 | - | let F = | |
246 | - | let | |
247 | - | let | |
248 | - | let ac = | |
249 | - | let ad = | |
250 | - | let ae = | |
251 | - | let af = | |
243 | + | let aR = aj(ab) | |
244 | + | let Z = aR._1 | |
245 | + | let F = aR._2 | |
246 | + | let aS = aR._3 | |
247 | + | let aT = aa(ab) | |
248 | + | let ac = aT._1 | |
249 | + | let ad = aT._2 | |
250 | + | let ae = aT._3 | |
251 | + | let af = aT._4 | |
252 | 252 | if ((ad != 1)) | |
253 | 253 | then throw("No NFT attached") | |
254 | 254 | else { | |
257 | 257 | else false) | |
258 | 258 | then toBase58String(value(ac.assetId)) | |
259 | 259 | else throw("Only SIGN Art NFT accepted.") | |
260 | - | let | |
261 | - | let an = | |
262 | - | let ao = | |
260 | + | let aU = ak(C) | |
261 | + | let an = aU._1 | |
262 | + | let ao = aU._2 | |
263 | 263 | if (!(at(ar(an)))) | |
264 | 264 | then throw(("Creator status is :" + ar(an))) | |
265 | 265 | else if (!(av(as(ao, an)))) | |
266 | 266 | then throw(("Artwork status is :" + as(ao, an))) | |
267 | 267 | else { | |
268 | - | let | |
269 | - | if ((size( | |
268 | + | let aV = ap(an) | |
269 | + | if ((size(aV) == 0)) | |
270 | 270 | then throw("This artist didn't allow crosschain transfer") | |
271 | 271 | else { | |
272 | - | let | |
273 | - | if (if (( | |
272 | + | let aW = I(B(C)) | |
273 | + | if (if ((aW == r)) | |
274 | 274 | then true | |
275 | - | else ( | |
275 | + | else (aW == t)) | |
276 | 276 | then throw("NFT already locked") | |
277 | 277 | else { | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
278 | + | let aX = V(G) | |
279 | + | let aY = V(H) | |
280 | + | let aZ = if ((aW == s)) | |
281 | 281 | then true | |
282 | 282 | else false | |
283 | 283 | if (if (!(isDefined(ae.assetId))) | |
284 | 284 | then true | |
285 | 285 | else (toBase58String(value(ae.assetId)) != R)) | |
286 | 286 | then throw("Wrong payment asset") | |
287 | - | else if (if ( | |
288 | - | then (af > ( | |
287 | + | else if (if (aZ) | |
288 | + | then (af > (aY + S)) | |
289 | 289 | else false) | |
290 | 290 | then throw("Wrong payment amount to unlock") | |
291 | - | else if (if (!( | |
292 | - | then (af > ( | |
291 | + | else if (if (!(aZ)) | |
292 | + | then (af > (aX + S)) | |
293 | 293 | else false) | |
294 | 294 | then throw("Wrong payment amount to mint and unlock") | |
295 | 295 | else { | |
296 | - | let | |
297 | - | then | |
298 | - | else | |
299 | - | let | |
296 | + | let ba = if (aZ) | |
297 | + | then aY | |
298 | + | else aX | |
299 | + | let bb = if (Q) | |
300 | 300 | then invoke(addressFromStringValue(I(i)), "exchange", [1], [AttachedPayment(fromBase58String(R), S)]) | |
301 | 301 | else unit | |
302 | - | if (( | |
302 | + | if ((bb == bb)) | |
303 | 303 | then { | |
304 | - | let | |
305 | - | then invoke(addressFromStringValue(I(j)), "exchange", [1], [AttachedPayment(fromBase58String(R), | |
304 | + | let bc = if (Q) | |
305 | + | then invoke(addressFromStringValue(I(j)), "exchange", [1], [AttachedPayment(fromBase58String(R), ba)]) | |
306 | 306 | else unit | |
307 | - | if (( | |
308 | - | then [StringEntry(B(C), t), StringEntry(((D(C, Z, F) + "_") + t), (((((((((((( | |
307 | + | if ((bc == bc)) | |
308 | + | then [StringEntry(B(C), t), StringEntry(((D(C, Z, F) + "_") + t), ((((((((((((aP + "_") + aQ) + "_") + F) + "_") + Z) + "_") + value(assetInfo(value(ac.assetId))).name) + "_") + toString(aS)) + "_") + toString(height)))] | |
309 | 309 | else throw("Strict value is not equal to itself.") | |
310 | 310 | } | |
311 | 311 | else throw("Strict value is not equal to itself.") | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | @Callable(ab) | |
322 | - | func confirmLock (C, | |
322 | + | func confirmLock (C,bd,F) = if (!(ag)) | |
323 | 323 | then throw("dApp not ready") | |
324 | 324 | else if (ah(ab)) | |
325 | 325 | then { | |
326 | - | let | |
327 | - | if (( | |
326 | + | let aW = I(B(C)) | |
327 | + | if ((aW != t)) | |
328 | 328 | then throw("NFT not pending") | |
329 | 329 | else { | |
330 | - | let | |
331 | - | let | |
332 | - | [DeleteEntry(((D(C, | |
330 | + | let be = I(((D(C, bd, F) + "_") + t)) | |
331 | + | let bf = ((D(C, bd, F) + "_") + u) | |
332 | + | [DeleteEntry(((D(C, bd, F) + "_") + t)), StringEntry(bf, be), StringEntry(B(C), r)] | |
333 | 333 | } | |
334 | 334 | } | |
335 | 335 | else throw("Not allowed") | |
337 | 337 | ||
338 | 338 | ||
339 | 339 | @Callable(ab) | |
340 | - | func unlock ( | |
340 | + | func unlock (aP,C) = if (!(ag)) | |
341 | 341 | then throw("dApp not ready") | |
342 | 342 | else if (ah(ab)) | |
343 | 343 | then { | |
344 | - | let | |
345 | - | if (( | |
344 | + | let aW = I(B(C)) | |
345 | + | if ((aW != r)) | |
346 | 346 | then throw("NFT not locked, finalize first if pending") | |
347 | - | else [StringEntry(B(C), s), ScriptTransfer(Address(fromBase58String( | |
347 | + | else [StringEntry(B(C), s), ScriptTransfer(Address(fromBase58String(aP)), 1, fromBase58String(C))] | |
348 | 348 | } | |
349 | 349 | else throw("Not allowed") | |
350 | 350 | ||
351 | 351 | ||
352 | 352 | ||
353 | 353 | @Callable(ab) | |
354 | - | func appRunning ( | |
354 | + | func appRunning (bg,bh) = if (!(ag)) | |
355 | 355 | then throw("dApp not ready") | |
356 | 356 | else if (ah(ab)) | |
357 | - | then [BooleanEntry(n, | |
357 | + | then [BooleanEntry(n, bg), StringEntry(o, bh)] | |
358 | 358 | else throw("You are not allowed to change this") | |
359 | 359 | ||
360 | 360 | ||
361 | 361 | ||
362 | 362 | @Callable(ab) | |
363 | - | func deleteEntry ( | |
364 | - | then [DeleteEntry( | |
363 | + | func deleteEntry (bi) = if (ah(ab)) | |
364 | + | then [DeleteEntry(bi)] | |
365 | 365 | else throw("no") | |
366 | 366 | ||
367 | 367 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0" | |
5 | 5 | ||
6 | 6 | let b = "config_init" | |
7 | 7 | ||
8 | 8 | let c = "config_admin" | |
9 | 9 | ||
10 | 10 | let d = "config_oracle" | |
11 | 11 | ||
12 | 12 | let e = "config_artwork_dapp" | |
13 | 13 | ||
14 | 14 | let f = "config_users_dapp" | |
15 | 15 | ||
16 | 16 | let g = "config_fee_asset" | |
17 | 17 | ||
18 | 18 | let h = "config_fee_amount" | |
19 | 19 | ||
20 | 20 | let i = "config_swop_sign_dapp" | |
21 | 21 | ||
22 | 22 | let j = "config_swop_eth_dapp" | |
23 | 23 | ||
24 | 24 | let k = "config_confirmations_from_waves" | |
25 | 25 | ||
26 | 26 | let l = "config_confirmations_from_eth" | |
27 | 27 | ||
28 | 28 | let m = "config_autoswap" | |
29 | 29 | ||
30 | 30 | let n = "conf_dapp_is_running" | |
31 | 31 | ||
32 | 32 | let o = "conf_maintenance_msg" | |
33 | 33 | ||
34 | 34 | let p = valueOrElse(getBoolean(this, n), true) | |
35 | 35 | ||
36 | 36 | let q = valueOrElse(getString(this, o), "") | |
37 | 37 | ||
38 | 38 | let r = "LOCKED" | |
39 | 39 | ||
40 | 40 | let s = "UNLOCKED" | |
41 | 41 | ||
42 | 42 | let t = "PENDING" | |
43 | 43 | ||
44 | 44 | let u = "CLOSED" | |
45 | 45 | ||
46 | 46 | let v = "REGISTERED" | |
47 | 47 | ||
48 | 48 | let w = "VERIFIED" | |
49 | 49 | ||
50 | 50 | let x = "FLAGGED" | |
51 | 51 | ||
52 | 52 | let y = "ILLEGAL" | |
53 | 53 | ||
54 | 54 | let z = "CHANGE_REQUIRED" | |
55 | 55 | ||
56 | 56 | let A = ["ETH"] | |
57 | 57 | ||
58 | 58 | func B (C) = (("nft_" + C) + "_status") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func D (C,E,F) = ((((("transfer_" + C) + "_") + E) + "_") + F) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | let G = "cost_non_minted" | |
65 | 65 | ||
66 | 66 | let H = "cost_minted" | |
67 | 67 | ||
68 | 68 | func I (J) = valueOrElse(getString(this, J), "") | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func K (J) = valueOrElse(getInteger(this, J), 0) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func L (J) = valueOrElse(getBoolean(this, J), false) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | let M = value(addressFromStringValue(I(c))) | |
78 | 78 | ||
79 | 79 | let N = value(addressFromString(I(e))) | |
80 | 80 | ||
81 | 81 | let O = value(addressFromString(I(f))) | |
82 | 82 | ||
83 | 83 | let P = value(addressFromString(I(d))) | |
84 | 84 | ||
85 | 85 | let Q = valueOrElse(L(m), false) | |
86 | 86 | ||
87 | 87 | let R = I(g) | |
88 | 88 | ||
89 | 89 | let S = K(h) | |
90 | 90 | ||
91 | 91 | func T (J) = valueOrElse(getString(O, J), "") | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func U (J) = valueOrElse(getString(N, J), "") | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func V (J) = valueOrErrorMessage(getInteger(P, J), "Integer undefined in oracle") | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func W (X) = if (if (if ((X.quantity == 1)) | |
101 | 101 | then (X.decimals == 0) | |
102 | 102 | else false) | |
103 | 103 | then (X.reissuable == false) | |
104 | 104 | else false) | |
105 | 105 | then (X.issuer == N) | |
106 | 106 | else false | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func Y (Z) = { | |
110 | 110 | let X = value(assetInfo(Z)) | |
111 | 111 | W(X) | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func aa (ab) = if ((size(ab.payments) != 2)) | |
116 | 116 | then throw("Need to attach 2 payments") | |
117 | 117 | else { | |
118 | 118 | let ac = value(ab.payments[0]) | |
119 | 119 | let ad = value(ac.amount) | |
120 | 120 | let ae = value(ab.payments[1]) | |
121 | 121 | let af = value(ae.amount) | |
122 | 122 | $Tuple4(ac, ad, ae, af) | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | let ag = valueOrElse(L(b), false) | |
127 | 127 | ||
128 | 128 | func ah (ab) = { | |
129 | 129 | let F = toString(ab.caller) | |
130 | 130 | let Z = toBase58String(ab.transactionId) | |
131 | 131 | let ai = if (ag) | |
132 | 132 | then [toString(M), toString(this)] | |
133 | 133 | else [toString(this)] | |
134 | 134 | containsElement(ai, F) | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func aj (ab) = if (!(p)) | |
139 | 139 | then throw(q) | |
140 | 140 | else $Tuple3(toBase58String(ab.transactionId), toBase58String(ab.caller.bytes), lastBlock.timestamp) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ak (al) = { | |
144 | 144 | let am = U(("nft_" + al)) | |
145 | 145 | let an = split(am, "_")[6] | |
146 | 146 | let ao = split(am, "_")[5] | |
147 | 147 | $Tuple2(an, ao) | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ap (aq) = T(("user_ERC20_" + aq)) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ar (aq) = T(("user_status_" + aq)) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func as (ao,aq) = U(((("art_flag_" + ao) + "_") + aq)) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func at (au) = if ((au == v)) | |
161 | 161 | then true | |
162 | 162 | else (au == w) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func av (au) = if (if ((au != x)) | |
166 | 166 | then (au != y) | |
167 | 167 | else false) | |
168 | 168 | then (au != z) | |
169 | 169 | else false | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func aw (aq) = if ((size(aq) == 42)) | |
173 | 173 | then (take(aq, 2) == "0x") | |
174 | 174 | else false | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func ax (ay,az) = [StringEntry(i, ay), StringEntry(j, az)] | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aA (aB,aC) = { | |
181 | 181 | let X = assetInfo(fromBase58String(aB)) | |
182 | 182 | let aD = value(X).decimals | |
183 | 183 | let aE = pow(aC, 0, 10, 1, aD, HALFUP) | |
184 | 184 | [StringEntry(g, aB), IntegerEntry(h, aE)] | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func aF (aG,aH) = [IntegerEntry(k, aG), IntegerEntry(l, aH)] | |
189 | 189 | ||
190 | 190 | ||
191 | - | func aI ( | |
191 | + | func aI (aJ) = [BooleanEntry(m, aJ)] | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Callable(ab) | |
195 | - | func init ( | |
195 | + | func init (aK,P,N,O,aB,aC,ay,az,aG,aH,aJ) = if (ah(ab)) | |
196 | 196 | then { | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | (((([StringEntry(c, | |
197 | + | let aL = ax(ay, az) | |
198 | + | let aM = aA(aB, aC) | |
199 | + | let aN = aF(aG, aH) | |
200 | + | let aO = aI(aJ) | |
201 | + | (((([StringEntry(c, aK), StringEntry(d, P), StringEntry(e, N), StringEntry(f, O), BooleanEntry(b, true)] ++ aL) ++ aM) ++ aN) ++ aO) | |
202 | 202 | } | |
203 | 203 | else throw("Not allowed") | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | ||
207 | 207 | @Callable(ab) | |
208 | 208 | func setSwopDapps (ay,az) = if (ah(ab)) | |
209 | 209 | then ax(ay, az) | |
210 | 210 | else throw("Not allowed") | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(ab) | |
215 | 215 | func setFee (aB,aC) = if (ah(ab)) | |
216 | 216 | then aA(aB, aC) | |
217 | 217 | else throw("Not allowed") | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | ||
221 | 221 | @Callable(ab) | |
222 | 222 | func setConfirmations (aG,aH) = if (ah(ab)) | |
223 | 223 | then aF(aG, aH) | |
224 | 224 | else throw("Not allowed") | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | ||
228 | 228 | @Callable(ab) | |
229 | - | func | |
230 | - | then aI( | |
229 | + | func setAutoswapFee (aJ) = if (ah(ab)) | |
230 | + | then aI(aJ) | |
231 | 231 | else throw("Not allowed") | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | ||
235 | 235 | @Callable(ab) | |
236 | - | func lock ( | |
236 | + | func lock (aP,aQ) = if (!(ag)) | |
237 | 237 | then throw("dApp not ready") | |
238 | - | else if (!(containsElement(A, | |
238 | + | else if (!(containsElement(A, aQ))) | |
239 | 239 | then throw("Network not supported") | |
240 | - | else if (!(aw( | |
240 | + | else if (!(aw(aP))) | |
241 | 241 | then throw("Wrong recipient address") | |
242 | 242 | else { | |
243 | - | let | |
244 | - | let Z = | |
245 | - | let F = | |
246 | - | let | |
247 | - | let | |
248 | - | let ac = | |
249 | - | let ad = | |
250 | - | let ae = | |
251 | - | let af = | |
243 | + | let aR = aj(ab) | |
244 | + | let Z = aR._1 | |
245 | + | let F = aR._2 | |
246 | + | let aS = aR._3 | |
247 | + | let aT = aa(ab) | |
248 | + | let ac = aT._1 | |
249 | + | let ad = aT._2 | |
250 | + | let ae = aT._3 | |
251 | + | let af = aT._4 | |
252 | 252 | if ((ad != 1)) | |
253 | 253 | then throw("No NFT attached") | |
254 | 254 | else { | |
255 | 255 | let C = if (if (isDefined(ac.assetId)) | |
256 | 256 | then Y(value(ac.assetId)) | |
257 | 257 | else false) | |
258 | 258 | then toBase58String(value(ac.assetId)) | |
259 | 259 | else throw("Only SIGN Art NFT accepted.") | |
260 | - | let | |
261 | - | let an = | |
262 | - | let ao = | |
260 | + | let aU = ak(C) | |
261 | + | let an = aU._1 | |
262 | + | let ao = aU._2 | |
263 | 263 | if (!(at(ar(an)))) | |
264 | 264 | then throw(("Creator status is :" + ar(an))) | |
265 | 265 | else if (!(av(as(ao, an)))) | |
266 | 266 | then throw(("Artwork status is :" + as(ao, an))) | |
267 | 267 | else { | |
268 | - | let | |
269 | - | if ((size( | |
268 | + | let aV = ap(an) | |
269 | + | if ((size(aV) == 0)) | |
270 | 270 | then throw("This artist didn't allow crosschain transfer") | |
271 | 271 | else { | |
272 | - | let | |
273 | - | if (if (( | |
272 | + | let aW = I(B(C)) | |
273 | + | if (if ((aW == r)) | |
274 | 274 | then true | |
275 | - | else ( | |
275 | + | else (aW == t)) | |
276 | 276 | then throw("NFT already locked") | |
277 | 277 | else { | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
278 | + | let aX = V(G) | |
279 | + | let aY = V(H) | |
280 | + | let aZ = if ((aW == s)) | |
281 | 281 | then true | |
282 | 282 | else false | |
283 | 283 | if (if (!(isDefined(ae.assetId))) | |
284 | 284 | then true | |
285 | 285 | else (toBase58String(value(ae.assetId)) != R)) | |
286 | 286 | then throw("Wrong payment asset") | |
287 | - | else if (if ( | |
288 | - | then (af > ( | |
287 | + | else if (if (aZ) | |
288 | + | then (af > (aY + S)) | |
289 | 289 | else false) | |
290 | 290 | then throw("Wrong payment amount to unlock") | |
291 | - | else if (if (!( | |
292 | - | then (af > ( | |
291 | + | else if (if (!(aZ)) | |
292 | + | then (af > (aX + S)) | |
293 | 293 | else false) | |
294 | 294 | then throw("Wrong payment amount to mint and unlock") | |
295 | 295 | else { | |
296 | - | let | |
297 | - | then | |
298 | - | else | |
299 | - | let | |
296 | + | let ba = if (aZ) | |
297 | + | then aY | |
298 | + | else aX | |
299 | + | let bb = if (Q) | |
300 | 300 | then invoke(addressFromStringValue(I(i)), "exchange", [1], [AttachedPayment(fromBase58String(R), S)]) | |
301 | 301 | else unit | |
302 | - | if (( | |
302 | + | if ((bb == bb)) | |
303 | 303 | then { | |
304 | - | let | |
305 | - | then invoke(addressFromStringValue(I(j)), "exchange", [1], [AttachedPayment(fromBase58String(R), | |
304 | + | let bc = if (Q) | |
305 | + | then invoke(addressFromStringValue(I(j)), "exchange", [1], [AttachedPayment(fromBase58String(R), ba)]) | |
306 | 306 | else unit | |
307 | - | if (( | |
308 | - | then [StringEntry(B(C), t), StringEntry(((D(C, Z, F) + "_") + t), (((((((((((( | |
307 | + | if ((bc == bc)) | |
308 | + | then [StringEntry(B(C), t), StringEntry(((D(C, Z, F) + "_") + t), ((((((((((((aP + "_") + aQ) + "_") + F) + "_") + Z) + "_") + value(assetInfo(value(ac.assetId))).name) + "_") + toString(aS)) + "_") + toString(height)))] | |
309 | 309 | else throw("Strict value is not equal to itself.") | |
310 | 310 | } | |
311 | 311 | else throw("Strict value is not equal to itself.") | |
312 | 312 | } | |
313 | 313 | } | |
314 | 314 | } | |
315 | 315 | } | |
316 | 316 | } | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | ||
321 | 321 | @Callable(ab) | |
322 | - | func confirmLock (C, | |
322 | + | func confirmLock (C,bd,F) = if (!(ag)) | |
323 | 323 | then throw("dApp not ready") | |
324 | 324 | else if (ah(ab)) | |
325 | 325 | then { | |
326 | - | let | |
327 | - | if (( | |
326 | + | let aW = I(B(C)) | |
327 | + | if ((aW != t)) | |
328 | 328 | then throw("NFT not pending") | |
329 | 329 | else { | |
330 | - | let | |
331 | - | let | |
332 | - | [DeleteEntry(((D(C, | |
330 | + | let be = I(((D(C, bd, F) + "_") + t)) | |
331 | + | let bf = ((D(C, bd, F) + "_") + u) | |
332 | + | [DeleteEntry(((D(C, bd, F) + "_") + t)), StringEntry(bf, be), StringEntry(B(C), r)] | |
333 | 333 | } | |
334 | 334 | } | |
335 | 335 | else throw("Not allowed") | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | ||
339 | 339 | @Callable(ab) | |
340 | - | func unlock ( | |
340 | + | func unlock (aP,C) = if (!(ag)) | |
341 | 341 | then throw("dApp not ready") | |
342 | 342 | else if (ah(ab)) | |
343 | 343 | then { | |
344 | - | let | |
345 | - | if (( | |
344 | + | let aW = I(B(C)) | |
345 | + | if ((aW != r)) | |
346 | 346 | then throw("NFT not locked, finalize first if pending") | |
347 | - | else [StringEntry(B(C), s), ScriptTransfer(Address(fromBase58String( | |
347 | + | else [StringEntry(B(C), s), ScriptTransfer(Address(fromBase58String(aP)), 1, fromBase58String(C))] | |
348 | 348 | } | |
349 | 349 | else throw("Not allowed") | |
350 | 350 | ||
351 | 351 | ||
352 | 352 | ||
353 | 353 | @Callable(ab) | |
354 | - | func appRunning ( | |
354 | + | func appRunning (bg,bh) = if (!(ag)) | |
355 | 355 | then throw("dApp not ready") | |
356 | 356 | else if (ah(ab)) | |
357 | - | then [BooleanEntry(n, | |
357 | + | then [BooleanEntry(n, bg), StringEntry(o, bh)] | |
358 | 358 | else throw("You are not allowed to change this") | |
359 | 359 | ||
360 | 360 | ||
361 | 361 | ||
362 | 362 | @Callable(ab) | |
363 | - | func deleteEntry ( | |
364 | - | then [DeleteEntry( | |
363 | + | func deleteEntry (bi) = if (ah(ab)) | |
364 | + | then [DeleteEntry(bi)] | |
365 | 365 | else throw("no") | |
366 | 366 | ||
367 | 367 |
github/deemru/w8io/169f3d6 87.71 ms ◑