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