tx · HgjCP7Dp7dH5Wd6a8AVHzMdsVFqPfgUMtoYQjWgAWQPx 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib: -0.00800000 Waves 2022.08.04 14:49 [2169707] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves
{ "type": 13, "id": "HgjCP7Dp7dH5Wd6a8AVHzMdsVFqPfgUMtoYQjWgAWQPx", "fee": 800000, "feeAssetId": null, "timestamp": 1659613764508, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "3qHnr3c7eNMWA4eadwgfM7aN3BCsLDJyFmQhqAPVRxoypDVF2iddhHePqahiGfeUcK7QDdtevJYemhKBGwNSZdZ5" ], "script": "base64:AAIFAAAAAAAAACgIAhIHCgUICAgICBIECgIICBIECgIICBIECgIICBIECgIECBIDCgEIAAAAJgAAAAALQ09ORl9JTklUX0sCAAAAC2NvbmZpZ19pbml0AAAAAAtDT05GX0FNSU5fSwIAAAAMY29uZmlnX2FkbWluAAAAAA1DT05GX09SQUNMRV9LAgAAAA1jb25maWdfb3JhY2xlAAAAABNDT05GX0FSVFdPUktfREFQUF9LAgAAABNjb25maWdfYXJ0d29ya19kYXBwAAAAABFDT05GX1VTRVJTX0RBUFBfSwIAAAARY29uZmlnX3VzZXJzX2RhcHAAAAAAEENPTkZfRkVFX0FTU0VUX0sCAAAAEGNvbmZpZ19mZWVfYXNzZXQAAAAADmRhcHBSdW5uaW5nS2V5AgAAABRjb25mX2RhcHBfaXNfcnVubmluZwAAAAARbWFpbnRlbmFuY2VNU0dLZXkCAAAAFGNvbmZfbWFpbnRlbmFuY2VfbXNnAAAAAAtkYXBwUnVubmluZwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAR0aGlzBQAAAA5kYXBwUnVubmluZ0tleQYAAA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Cb29sZWFuRW50cnkAAAACBQAAAA5kYXBwUnVubmluZ0tleQUAAAAGaXNMaXZlCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAEW1haW50ZW5hbmNlTVNHS2V5BQAAAAdtZXNzYWdlBQAAAANuaWwJAAACAAAAAQIAAAAiWW91IGFyZSBub3QgYWxsb3dlZCB0byBjaGFuZ2UgdGhpcwAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkDCQEAAAAJb3duZXJPbmx5AAAAAQUAAAABaQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAOyVSKQ=", "height": 2169707, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AZQHVKJyenZnuxRGZ4FgLYddpod7S1kqqEZV6uZh9Eiy Next: 3GYqYRMKLCo5SY748DcX2z9xzB4MJzqTgfKk3ZNKDGwC Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | ||
12 | 12 | let e = "config_users_dapp" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "config_fee_asset" | |
15 | 15 | ||
16 | - | let g = "conf_ | |
16 | + | let g = "conf_dapp_is_running" | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = "conf_maintenance_msg" | |
19 | 19 | ||
20 | - | let i = valueOrElse( | |
20 | + | let i = valueOrElse(getBoolean(this, g), true) | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = valueOrElse(getString(this, h), "") | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "LOCKED" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "UNLOCKED" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "PENDING" | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = "CLOSED" | |
31 | 31 | ||
32 | - | func o (p) = (("nft_" + p) + "_status") | |
32 | + | let o = ["ETH", "POLYGON"] | |
33 | + | ||
34 | + | func p (q) = (("nft_" + q) + "_status") | |
33 | 35 | ||
34 | 36 | ||
35 | - | func | |
37 | + | func r (q,s) = ((("transfer_" + q) + "_") + s) | |
36 | 38 | ||
37 | 39 | ||
38 | - | func s (t) = valueOrElse(getString(this, t), "") | |
40 | + | let t = "cost_non_minted" | |
41 | + | ||
42 | + | let u = "cost_minted" | |
43 | + | ||
44 | + | func v (w) = valueOrElse(getString(this, w), "") | |
39 | 45 | ||
40 | 46 | ||
41 | - | func | |
47 | + | func x (w) = valueOrElse(getInteger(this, w), 0) | |
42 | 48 | ||
43 | 49 | ||
44 | - | func | |
50 | + | func y (w) = valueOrElse(getBoolean(this, w), false) | |
45 | 51 | ||
46 | 52 | ||
47 | - | let | |
53 | + | let z = value(addressFromString(v(b))) | |
48 | 54 | ||
49 | - | let | |
55 | + | let A = value(addressFromString(v(d))) | |
50 | 56 | ||
51 | - | let | |
57 | + | let B = value(addressFromString(v(e))) | |
52 | 58 | ||
53 | - | let | |
59 | + | let C = value(addressFromString(v(c))) | |
54 | 60 | ||
55 | - | func A (t) = valueOrElse(getString(y, t), "") | |
61 | + | let D = v(f) | |
62 | + | ||
63 | + | func E (w) = valueOrElse(getString(B, w), "") | |
56 | 64 | ||
57 | 65 | ||
58 | - | func | |
66 | + | func F (w) = valueOrElse(getString(A, w), "") | |
59 | 67 | ||
60 | 68 | ||
61 | - | func | |
69 | + | func G (w) = valueOrErrorMessage(getInteger(C, w), "Integer undefine or 0 in oracle") | |
62 | 70 | ||
63 | 71 | ||
64 | - | func | |
65 | - | then ( | |
72 | + | func H (I) = if (if (if ((I.quantity == 1)) | |
73 | + | then (I.decimals == 0) | |
66 | 74 | else false) | |
67 | - | then ( | |
75 | + | then (I.reissuable == false) | |
68 | 76 | else false) | |
69 | - | then ( | |
77 | + | then (I.issuer == A) | |
70 | 78 | else false | |
71 | 79 | ||
72 | 80 | ||
73 | - | func | |
74 | - | let | |
75 | - | | |
81 | + | func J (K) = { | |
82 | + | let I = value(assetInfo(K)) | |
83 | + | H(I) | |
76 | 84 | } | |
77 | 85 | ||
78 | 86 | ||
79 | - | func | |
87 | + | func L (M) = if ((size(M.payments) == 0)) | |
80 | 88 | then throw("No payment attached") | |
81 | 89 | else { | |
82 | - | let | |
83 | - | let | |
84 | - | let | |
85 | - | let | |
86 | - | $Tuple4( | |
90 | + | let N = value(M.payments[0]) | |
91 | + | let O = value(N.amount) | |
92 | + | let P = value(M.payments[1]) | |
93 | + | let Q = value(P.amount) | |
94 | + | $Tuple4(N, O, P, Q) | |
87 | 95 | } | |
88 | 96 | ||
89 | 97 | ||
90 | - | let | |
98 | + | let R = valueOrElse(y(a), false) | |
91 | 99 | ||
92 | - | func | |
93 | - | let | |
94 | - | let | |
95 | - | let | |
96 | - | then [toString( | |
100 | + | func S (M) = { | |
101 | + | let T = toString(M.caller) | |
102 | + | let K = toBase58String(M.transactionId) | |
103 | + | let U = if (R) | |
104 | + | then [toString(z), toString(this)] | |
97 | 105 | else [toString(this)] | |
98 | - | if (containsElement( | |
106 | + | if (containsElement(U, T)) | |
99 | 107 | then true | |
100 | 108 | else false | |
101 | 109 | } | |
102 | 110 | ||
103 | 111 | ||
104 | - | func | |
105 | - | then throw( | |
106 | - | else $Tuple3(toBase58String( | |
112 | + | func V (M) = if (!(i)) | |
113 | + | then throw(j) | |
114 | + | else $Tuple3(toBase58String(M.transactionId), toBase58String(M.caller.bytes), lastBlock.timestamp) | |
107 | 115 | ||
108 | 116 | ||
109 | - | func | |
110 | - | let | |
111 | - | let | |
112 | - | | |
117 | + | func W (X) = { | |
118 | + | let Y = F(("nft_" + X)) | |
119 | + | let Z = split(Y, "_")[6] | |
120 | + | Z | |
113 | 121 | } | |
114 | 122 | ||
115 | 123 | ||
116 | - | func | |
117 | - | let | |
118 | - | | |
124 | + | func aa (ab) = { | |
125 | + | let ac = E(("user_ERC20_" + ab)) | |
126 | + | ac | |
119 | 127 | } | |
120 | 128 | ||
121 | 129 | ||
122 | - | @Callable( | |
123 | - | func init ( | |
124 | - | then [StringEntry(b, | |
130 | + | @Callable(M) | |
131 | + | func init (ad,C,A,B,ae) = if (S(M)) | |
132 | + | then [StringEntry(b, ad), StringEntry(c, C), StringEntry(d, A), StringEntry(e, B), StringEntry(f, ae), BooleanEntry(a, true)] | |
125 | 133 | else throw("Not allowed") | |
126 | 134 | ||
127 | 135 | ||
128 | 136 | ||
129 | - | @Callable( | |
130 | - | func lock ( | |
137 | + | @Callable(M) | |
138 | + | func lock (af,ag) = if (!(R)) | |
131 | 139 | then throw("dApp not ready") | |
132 | - | else if (!(containsElement( | |
140 | + | else if (!(containsElement(o, ag))) | |
133 | 141 | then throw("Network not supported") | |
134 | 142 | else { | |
135 | - | let | |
136 | - | let | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | let | |
144 | - | if (( | |
143 | + | let ah = V(M) | |
144 | + | let K = ah._1 | |
145 | + | let T = ah._2 | |
146 | + | let ai = ah._3 | |
147 | + | let aj = L(M) | |
148 | + | let N = aj._1 | |
149 | + | let O = aj._2 | |
150 | + | let P = aj._3 | |
151 | + | let Q = aj._4 | |
152 | + | if ((O != 1)) | |
145 | 153 | then throw("No NFT attached") | |
146 | 154 | else { | |
147 | - | let | |
148 | - | then | |
155 | + | let q = if (if (isDefined(N.assetId)) | |
156 | + | then J(value(N.assetId)) | |
149 | 157 | else false) | |
150 | - | then toBase58String(value( | |
158 | + | then toBase58String(value(N.assetId)) | |
151 | 159 | else throw("Only SIGN Art NFT accepted.") | |
152 | - | let | |
153 | - | let | |
154 | - | if ((size( | |
160 | + | let ak = W(q) | |
161 | + | let ac = aa(ak) | |
162 | + | if ((size(ac) == 0)) | |
155 | 163 | then throw("This artist didn't allow crosschain transfer") | |
156 | 164 | else { | |
157 | - | let | |
158 | - | if (if (( | |
165 | + | let al = v(p(q)) | |
166 | + | if (if ((al == k)) | |
159 | 167 | then true | |
160 | - | else ( | |
168 | + | else (al == m)) | |
161 | 169 | then throw("NFT already locked") | |
162 | - | else [StringEntry(o(p), l), StringEntry(((q(p, G) + "_") + l), ((((((((((((aa + "_") + ab) + "_") + P) + "_") + G) + "_") + value(assetInfo(value(J.assetId))).name) + "_") + toString(ad)) + "_") + toString(height)))] | |
170 | + | else { | |
171 | + | let am = G(t) | |
172 | + | let an = G(u) | |
173 | + | let ao = if ((al == l)) | |
174 | + | then true | |
175 | + | else false | |
176 | + | if ((toBase58String(value(P.assetId)) != D)) | |
177 | + | then throw("Wrong payment asset") | |
178 | + | else if (if (ao) | |
179 | + | then (Q > an) | |
180 | + | else false) | |
181 | + | then throw("Wrong payment amount to unlock") | |
182 | + | else if (if (!(ao)) | |
183 | + | then (Q > am) | |
184 | + | else false) | |
185 | + | then throw("Wrong payment amount to mint and unlock") | |
186 | + | else [StringEntry(p(q), m), StringEntry(((r(q, K) + "_") + m), ((((((((((((af + "_") + ag) + "_") + T) + "_") + K) + "_") + value(assetInfo(value(N.assetId))).name) + "_") + toString(ai)) + "_") + toString(height)))] | |
187 | + | } | |
163 | 188 | } | |
164 | 189 | } | |
165 | 190 | } | |
166 | 191 | ||
167 | 192 | ||
168 | 193 | ||
169 | - | @Callable( | |
170 | - | func confirmLock ( | |
194 | + | @Callable(M) | |
195 | + | func confirmLock (q,ap) = if (!(R)) | |
171 | 196 | then throw("dApp not ready") | |
172 | - | else if ( | |
197 | + | else if (S(M)) | |
173 | 198 | then { | |
174 | - | let | |
175 | - | if (( | |
199 | + | let al = v(p(q)) | |
200 | + | if ((al != m)) | |
176 | 201 | then throw("NFT not pending") | |
177 | 202 | else { | |
178 | - | let | |
179 | - | let | |
180 | - | [DeleteEntry(((q | |
203 | + | let aq = v(((r(q, ap) + "_") + m)) | |
204 | + | let ar = ((r(q, ap) + "_") + n) | |
205 | + | [DeleteEntry(((r(q, ap) + "_") + m)), StringEntry(ar, aq), StringEntry(p(q), k)] | |
181 | 206 | } | |
182 | 207 | } | |
183 | 208 | else throw("Not allowed") | |
184 | 209 | ||
185 | 210 | ||
186 | 211 | ||
187 | - | @Callable( | |
188 | - | func unlock ( | |
212 | + | @Callable(M) | |
213 | + | func unlock (af,q) = if (!(R)) | |
189 | 214 | then throw("dApp not ready") | |
190 | - | else if ( | |
215 | + | else if (S(M)) | |
191 | 216 | then { | |
192 | - | let | |
193 | - | if (( | |
217 | + | let al = v(p(q)) | |
218 | + | if ((al != k)) | |
194 | 219 | then throw("NFT not locked, finalize first if pending") | |
195 | - | else [StringEntry( | |
220 | + | else [StringEntry(p(q), l), ScriptTransfer(Address(fromBase58String(af)), 1, fromBase58String(q))] | |
196 | 221 | } | |
197 | 222 | else throw("Not allowed") | |
198 | 223 | ||
199 | 224 | ||
200 | 225 | ||
201 | - | @Callable( | |
202 | - | func appRunning ( | |
226 | + | @Callable(M) | |
227 | + | func appRunning (as,at) = if (!(R)) | |
203 | 228 | then throw("dApp not ready") | |
204 | - | else if ( | |
205 | - | then [BooleanEntry( | |
229 | + | else if (S(M)) | |
230 | + | then [BooleanEntry(g, as), StringEntry(h, at)] | |
206 | 231 | else throw("You are not allowed to change this") | |
207 | 232 | ||
208 | 233 | ||
209 | 234 | ||
210 | - | @Callable( | |
211 | - | func deleteEntry ( | |
212 | - | then [DeleteEntry( | |
235 | + | @Callable(M) | |
236 | + | func deleteEntry (au) = if (S(M)) | |
237 | + | then [DeleteEntry(au)] | |
213 | 238 | else throw("no") | |
214 | 239 | ||
215 | 240 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "config_init" | |
5 | 5 | ||
6 | 6 | let b = "config_admin" | |
7 | 7 | ||
8 | 8 | let c = "config_oracle" | |
9 | 9 | ||
10 | 10 | let d = "config_artwork_dapp" | |
11 | 11 | ||
12 | 12 | let e = "config_users_dapp" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "config_fee_asset" | |
15 | 15 | ||
16 | - | let g = "conf_ | |
16 | + | let g = "conf_dapp_is_running" | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = "conf_maintenance_msg" | |
19 | 19 | ||
20 | - | let i = valueOrElse( | |
20 | + | let i = valueOrElse(getBoolean(this, g), true) | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = valueOrElse(getString(this, h), "") | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "LOCKED" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "UNLOCKED" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "PENDING" | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = "CLOSED" | |
31 | 31 | ||
32 | - | func o (p) = (("nft_" + p) + "_status") | |
32 | + | let o = ["ETH", "POLYGON"] | |
33 | + | ||
34 | + | func p (q) = (("nft_" + q) + "_status") | |
33 | 35 | ||
34 | 36 | ||
35 | - | func | |
37 | + | func r (q,s) = ((("transfer_" + q) + "_") + s) | |
36 | 38 | ||
37 | 39 | ||
38 | - | func s (t) = valueOrElse(getString(this, t), "") | |
40 | + | let t = "cost_non_minted" | |
41 | + | ||
42 | + | let u = "cost_minted" | |
43 | + | ||
44 | + | func v (w) = valueOrElse(getString(this, w), "") | |
39 | 45 | ||
40 | 46 | ||
41 | - | func | |
47 | + | func x (w) = valueOrElse(getInteger(this, w), 0) | |
42 | 48 | ||
43 | 49 | ||
44 | - | func | |
50 | + | func y (w) = valueOrElse(getBoolean(this, w), false) | |
45 | 51 | ||
46 | 52 | ||
47 | - | let | |
53 | + | let z = value(addressFromString(v(b))) | |
48 | 54 | ||
49 | - | let | |
55 | + | let A = value(addressFromString(v(d))) | |
50 | 56 | ||
51 | - | let | |
57 | + | let B = value(addressFromString(v(e))) | |
52 | 58 | ||
53 | - | let | |
59 | + | let C = value(addressFromString(v(c))) | |
54 | 60 | ||
55 | - | func A (t) = valueOrElse(getString(y, t), "") | |
61 | + | let D = v(f) | |
62 | + | ||
63 | + | func E (w) = valueOrElse(getString(B, w), "") | |
56 | 64 | ||
57 | 65 | ||
58 | - | func | |
66 | + | func F (w) = valueOrElse(getString(A, w), "") | |
59 | 67 | ||
60 | 68 | ||
61 | - | func | |
69 | + | func G (w) = valueOrErrorMessage(getInteger(C, w), "Integer undefine or 0 in oracle") | |
62 | 70 | ||
63 | 71 | ||
64 | - | func | |
65 | - | then ( | |
72 | + | func H (I) = if (if (if ((I.quantity == 1)) | |
73 | + | then (I.decimals == 0) | |
66 | 74 | else false) | |
67 | - | then ( | |
75 | + | then (I.reissuable == false) | |
68 | 76 | else false) | |
69 | - | then ( | |
77 | + | then (I.issuer == A) | |
70 | 78 | else false | |
71 | 79 | ||
72 | 80 | ||
73 | - | func | |
74 | - | let | |
75 | - | | |
81 | + | func J (K) = { | |
82 | + | let I = value(assetInfo(K)) | |
83 | + | H(I) | |
76 | 84 | } | |
77 | 85 | ||
78 | 86 | ||
79 | - | func | |
87 | + | func L (M) = if ((size(M.payments) == 0)) | |
80 | 88 | then throw("No payment attached") | |
81 | 89 | else { | |
82 | - | let | |
83 | - | let | |
84 | - | let | |
85 | - | let | |
86 | - | $Tuple4( | |
90 | + | let N = value(M.payments[0]) | |
91 | + | let O = value(N.amount) | |
92 | + | let P = value(M.payments[1]) | |
93 | + | let Q = value(P.amount) | |
94 | + | $Tuple4(N, O, P, Q) | |
87 | 95 | } | |
88 | 96 | ||
89 | 97 | ||
90 | - | let | |
98 | + | let R = valueOrElse(y(a), false) | |
91 | 99 | ||
92 | - | func | |
93 | - | let | |
94 | - | let | |
95 | - | let | |
96 | - | then [toString( | |
100 | + | func S (M) = { | |
101 | + | let T = toString(M.caller) | |
102 | + | let K = toBase58String(M.transactionId) | |
103 | + | let U = if (R) | |
104 | + | then [toString(z), toString(this)] | |
97 | 105 | else [toString(this)] | |
98 | - | if (containsElement( | |
106 | + | if (containsElement(U, T)) | |
99 | 107 | then true | |
100 | 108 | else false | |
101 | 109 | } | |
102 | 110 | ||
103 | 111 | ||
104 | - | func | |
105 | - | then throw( | |
106 | - | else $Tuple3(toBase58String( | |
112 | + | func V (M) = if (!(i)) | |
113 | + | then throw(j) | |
114 | + | else $Tuple3(toBase58String(M.transactionId), toBase58String(M.caller.bytes), lastBlock.timestamp) | |
107 | 115 | ||
108 | 116 | ||
109 | - | func | |
110 | - | let | |
111 | - | let | |
112 | - | | |
117 | + | func W (X) = { | |
118 | + | let Y = F(("nft_" + X)) | |
119 | + | let Z = split(Y, "_")[6] | |
120 | + | Z | |
113 | 121 | } | |
114 | 122 | ||
115 | 123 | ||
116 | - | func | |
117 | - | let | |
118 | - | | |
124 | + | func aa (ab) = { | |
125 | + | let ac = E(("user_ERC20_" + ab)) | |
126 | + | ac | |
119 | 127 | } | |
120 | 128 | ||
121 | 129 | ||
122 | - | @Callable( | |
123 | - | func init ( | |
124 | - | then [StringEntry(b, | |
130 | + | @Callable(M) | |
131 | + | func init (ad,C,A,B,ae) = if (S(M)) | |
132 | + | then [StringEntry(b, ad), StringEntry(c, C), StringEntry(d, A), StringEntry(e, B), StringEntry(f, ae), BooleanEntry(a, true)] | |
125 | 133 | else throw("Not allowed") | |
126 | 134 | ||
127 | 135 | ||
128 | 136 | ||
129 | - | @Callable( | |
130 | - | func lock ( | |
137 | + | @Callable(M) | |
138 | + | func lock (af,ag) = if (!(R)) | |
131 | 139 | then throw("dApp not ready") | |
132 | - | else if (!(containsElement( | |
140 | + | else if (!(containsElement(o, ag))) | |
133 | 141 | then throw("Network not supported") | |
134 | 142 | else { | |
135 | - | let | |
136 | - | let | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | let | |
144 | - | if (( | |
143 | + | let ah = V(M) | |
144 | + | let K = ah._1 | |
145 | + | let T = ah._2 | |
146 | + | let ai = ah._3 | |
147 | + | let aj = L(M) | |
148 | + | let N = aj._1 | |
149 | + | let O = aj._2 | |
150 | + | let P = aj._3 | |
151 | + | let Q = aj._4 | |
152 | + | if ((O != 1)) | |
145 | 153 | then throw("No NFT attached") | |
146 | 154 | else { | |
147 | - | let | |
148 | - | then | |
155 | + | let q = if (if (isDefined(N.assetId)) | |
156 | + | then J(value(N.assetId)) | |
149 | 157 | else false) | |
150 | - | then toBase58String(value( | |
158 | + | then toBase58String(value(N.assetId)) | |
151 | 159 | else throw("Only SIGN Art NFT accepted.") | |
152 | - | let | |
153 | - | let | |
154 | - | if ((size( | |
160 | + | let ak = W(q) | |
161 | + | let ac = aa(ak) | |
162 | + | if ((size(ac) == 0)) | |
155 | 163 | then throw("This artist didn't allow crosschain transfer") | |
156 | 164 | else { | |
157 | - | let | |
158 | - | if (if (( | |
165 | + | let al = v(p(q)) | |
166 | + | if (if ((al == k)) | |
159 | 167 | then true | |
160 | - | else ( | |
168 | + | else (al == m)) | |
161 | 169 | then throw("NFT already locked") | |
162 | - | else [StringEntry(o(p), l), StringEntry(((q(p, G) + "_") + l), ((((((((((((aa + "_") + ab) + "_") + P) + "_") + G) + "_") + value(assetInfo(value(J.assetId))).name) + "_") + toString(ad)) + "_") + toString(height)))] | |
170 | + | else { | |
171 | + | let am = G(t) | |
172 | + | let an = G(u) | |
173 | + | let ao = if ((al == l)) | |
174 | + | then true | |
175 | + | else false | |
176 | + | if ((toBase58String(value(P.assetId)) != D)) | |
177 | + | then throw("Wrong payment asset") | |
178 | + | else if (if (ao) | |
179 | + | then (Q > an) | |
180 | + | else false) | |
181 | + | then throw("Wrong payment amount to unlock") | |
182 | + | else if (if (!(ao)) | |
183 | + | then (Q > am) | |
184 | + | else false) | |
185 | + | then throw("Wrong payment amount to mint and unlock") | |
186 | + | else [StringEntry(p(q), m), StringEntry(((r(q, K) + "_") + m), ((((((((((((af + "_") + ag) + "_") + T) + "_") + K) + "_") + value(assetInfo(value(N.assetId))).name) + "_") + toString(ai)) + "_") + toString(height)))] | |
187 | + | } | |
163 | 188 | } | |
164 | 189 | } | |
165 | 190 | } | |
166 | 191 | ||
167 | 192 | ||
168 | 193 | ||
169 | - | @Callable( | |
170 | - | func confirmLock ( | |
194 | + | @Callable(M) | |
195 | + | func confirmLock (q,ap) = if (!(R)) | |
171 | 196 | then throw("dApp not ready") | |
172 | - | else if ( | |
197 | + | else if (S(M)) | |
173 | 198 | then { | |
174 | - | let | |
175 | - | if (( | |
199 | + | let al = v(p(q)) | |
200 | + | if ((al != m)) | |
176 | 201 | then throw("NFT not pending") | |
177 | 202 | else { | |
178 | - | let | |
179 | - | let | |
180 | - | [DeleteEntry(((q | |
203 | + | let aq = v(((r(q, ap) + "_") + m)) | |
204 | + | let ar = ((r(q, ap) + "_") + n) | |
205 | + | [DeleteEntry(((r(q, ap) + "_") + m)), StringEntry(ar, aq), StringEntry(p(q), k)] | |
181 | 206 | } | |
182 | 207 | } | |
183 | 208 | else throw("Not allowed") | |
184 | 209 | ||
185 | 210 | ||
186 | 211 | ||
187 | - | @Callable( | |
188 | - | func unlock ( | |
212 | + | @Callable(M) | |
213 | + | func unlock (af,q) = if (!(R)) | |
189 | 214 | then throw("dApp not ready") | |
190 | - | else if ( | |
215 | + | else if (S(M)) | |
191 | 216 | then { | |
192 | - | let | |
193 | - | if (( | |
217 | + | let al = v(p(q)) | |
218 | + | if ((al != k)) | |
194 | 219 | then throw("NFT not locked, finalize first if pending") | |
195 | - | else [StringEntry( | |
220 | + | else [StringEntry(p(q), l), ScriptTransfer(Address(fromBase58String(af)), 1, fromBase58String(q))] | |
196 | 221 | } | |
197 | 222 | else throw("Not allowed") | |
198 | 223 | ||
199 | 224 | ||
200 | 225 | ||
201 | - | @Callable( | |
202 | - | func appRunning ( | |
226 | + | @Callable(M) | |
227 | + | func appRunning (as,at) = if (!(R)) | |
203 | 228 | then throw("dApp not ready") | |
204 | - | else if ( | |
205 | - | then [BooleanEntry( | |
229 | + | else if (S(M)) | |
230 | + | then [BooleanEntry(g, as), StringEntry(h, at)] | |
206 | 231 | else throw("You are not allowed to change this") | |
207 | 232 | ||
208 | 233 | ||
209 | 234 | ||
210 | - | @Callable( | |
211 | - | func deleteEntry ( | |
212 | - | then [DeleteEntry( | |
235 | + | @Callable(M) | |
236 | + | func deleteEntry (au) = if (S(M)) | |
237 | + | then [DeleteEntry(au)] | |
213 | 238 | else throw("no") | |
214 | 239 | ||
215 | 240 |
github/deemru/w8io/169f3d6 85.96 ms ◑