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