tx · 3gH8THxNKMtCmgJBNM3bAJx5Prwo7vgz4QETMUymaVRt

3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib:  -0.00900000 Waves

2022.08.15 12:36 [2185406] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves

{ "type": 13, "id": "3gH8THxNKMtCmgJBNM3bAJx5Prwo7vgz4QETMUymaVRt", "fee": 900000, "feeAssetId": null, "timestamp": 1660556182538, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "5y9vBmjDaBXhRCSUALVMqu17aF7iJo6LMmYHdjSZodHcGVG8ken1TDKh75MFnASjWasbG1jo5VbEhUe5r7hh1Q6j" ], "script": "base64:BgI3CAISCgoICAgICAgBCAgSBAoCCAgSBAoCCAESBAoCCAgSBAoCCAgSBAoCCAgSBAoCBAgSAwoBCDQAB3ZlcnNpb24CAzEuMAALQ09ORl9JTklUX0sCC2NvbmZpZ19pbml0AAtDT05GX0FNSU5fSwIMY29uZmlnX2FkbWluAA1DT05GX09SQUNMRV9LAg1jb25maWdfb3JhY2xlABNDT05GX0FSVFdPUktfREFQUF9LAhNjb25maWdfYXJ0d29ya19kYXBwABFDT05GX1VTRVJTX0RBUFBfSwIRY29uZmlnX3VzZXJzX2RhcHAAEENPTkZfRkVFX0FTU0VUX0sCEGNvbmZpZ19mZWVfYXNzZXQAEUNPTkZfRkVFX0FNT1VOVF9LAhFjb25maWdfZmVlX2Ftb3VudAAVQ09ORl9TV09QX1NJR05fREFQUF9LAhVjb25maWdfc3dvcF9zaWduX2RhcHAAFENPTkZfU1dPUF9FVEhfREFQUF9LAhRjb25maWdfc3dvcF9ldGhfZGFwcAAOZGFwcFJ1bm5pbmdLZXkCFGNvbmZfZGFwcF9pc19ydW5uaW5nABFtYWludGVuYW5jZU1TR0tleQIUY29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jVbSya2EBhmbUdEViuMW8iLamSY6dW9776EYv Next: G1MuvMVT8JoFXfs9GkhPY4W3sJBigK4g5BBKtTxa7iLC Diff:
OldNewDifferences
1919
2020 let i = "config_swop_sign_dapp"
2121
22-let j = "config_swop_sign_dapp"
22+let j = "config_swop_eth_dapp"
2323
2424 let k = "conf_dapp_is_running"
2525
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "1.0"
55
66 let b = "config_init"
77
88 let c = "config_admin"
99
1010 let d = "config_oracle"
1111
1212 let e = "config_artwork_dapp"
1313
1414 let f = "config_users_dapp"
1515
1616 let g = "config_fee_asset"
1717
1818 let h = "config_fee_amount"
1919
2020 let i = "config_swop_sign_dapp"
2121
22-let j = "config_swop_sign_dapp"
22+let j = "config_swop_eth_dapp"
2323
2424 let k = "conf_dapp_is_running"
2525
2626 let l = "conf_maintenance_msg"
2727
2828 let m = valueOrElse(getBoolean(this, k), true)
2929
3030 let n = valueOrElse(getString(this, l), "")
3131
3232 let o = "LOCKED"
3333
3434 let p = "UNLOCKED"
3535
3636 let q = "PENDING"
3737
3838 let r = "CLOSED"
3939
4040 let s = "REGISTERED"
4141
4242 let t = "VERIFIED"
4343
4444 let u = "FLAGGED"
4545
4646 let v = "ILLEGAL"
4747
4848 let w = "CHANGE_REQUIRED"
4949
5050 let x = ["ETH"]
5151
5252 func y (z) = (("nft_" + z) + "_status")
5353
5454
5555 func A (z,B) = ((("transfer_" + z) + "_") + B)
5656
5757
5858 let C = "cost_non_minted"
5959
6060 let D = "cost_minted"
6161
6262 func E (F) = valueOrElse(getString(this, F), "")
6363
6464
6565 func G (F) = valueOrElse(getInteger(this, F), 0)
6666
6767
6868 func H (F) = valueOrElse(getBoolean(this, F), false)
6969
7070
7171 let I = value(addressFromString(E(c)))
7272
7373 let J = value(addressFromString(E(e)))
7474
7575 let K = value(addressFromString(E(f)))
7676
7777 let L = value(addressFromString(E(d)))
7878
7979 let M = E(g)
8080
8181 let N = G(h)
8282
8383 func O (F) = valueOrElse(getString(K, F), "")
8484
8585
8686 func P (F) = valueOrElse(getString(J, F), "")
8787
8888
8989 func Q (F) = valueOrErrorMessage(getInteger(L, F), "Integer undefine or 0 in oracle")
9090
9191
9292 func R (S) = if (if (if ((S.quantity == 1))
9393 then (S.decimals == 0)
9494 else false)
9595 then (S.reissuable == false)
9696 else false)
9797 then (S.issuer == J)
9898 else false
9999
100100
101101 func T (U) = {
102102 let S = value(assetInfo(U))
103103 R(S)
104104 }
105105
106106
107107 func V (W) = if ((size(W.payments) == 0))
108108 then throw("No payment attached")
109109 else {
110110 let X = value(W.payments[0])
111111 let Y = value(X.amount)
112112 let Z = value(W.payments[1])
113113 let aa = value(Z.amount)
114114 $Tuple4(X, Y, Z, aa)
115115 }
116116
117117
118118 let ab = valueOrElse(H(b), false)
119119
120120 func ac (W) = {
121121 let ad = toString(W.caller)
122122 let U = toBase58String(W.transactionId)
123123 let ae = if (ab)
124124 then [toString(I), toString(this)]
125125 else [toString(this)]
126126 if (containsElement(ae, ad))
127127 then true
128128 else false
129129 }
130130
131131
132132 func af (W) = if (!(m))
133133 then throw(n)
134134 else $Tuple3(toBase58String(W.transactionId), toBase58String(W.caller.bytes), lastBlock.timestamp)
135135
136136
137137 func ag (ah) = {
138138 let ai = P(("nft_" + ah))
139139 let aj = split(ai, "_")[6]
140140 let ak = split(ai, "_")[5]
141141 $Tuple2(aj, ak)
142142 }
143143
144144
145145 func al (am) = {
146146 let an = O(("user_ERC20_" + am))
147147 an
148148 }
149149
150150
151151 func ao (am) = {
152152 let ap = O(("user_status_" + am))
153153 ap
154154 }
155155
156156
157157 func aq (ak,am) = {
158158 let ap = P(((("art_flag_" + ak) + "_") + am))
159159 ap
160160 }
161161
162162
163163 func ar (ap) = if ((ap == s))
164164 then true
165165 else (ap == t)
166166
167167
168168 func as (ap) = if (if ((ap != u))
169169 then (ap != v)
170170 else false)
171171 then (ap != w)
172172 else false
173173
174174
175175 @Callable(W)
176176 func init (at,L,J,K,au,av,aw,ax) = if (ac(W))
177177 then {
178178 let ay = invoke(this, "setFee", [au, av], nil)
179179 if ((ay == ay))
180180 then {
181181 let az = invoke(this, "setSwopDapps", [aw, ax], nil)
182182 if ((az == az))
183183 then [StringEntry(c, at), StringEntry(d, L), StringEntry(e, J), StringEntry(f, K), BooleanEntry(b, true)]
184184 else throw("Strict value is not equal to itself.")
185185 }
186186 else throw("Strict value is not equal to itself.")
187187 }
188188 else throw("Not allowed")
189189
190190
191191
192192 @Callable(W)
193193 func setSwopDapps (aw,ax) = if (ac(W))
194194 then [StringEntry(i, aw), StringEntry(j, ax)]
195195 else throw("Not allowed")
196196
197197
198198
199199 @Callable(W)
200200 func setFee (au,av) = {
201201 let S = assetInfo(fromBase58String(au))
202202 let aA = value(S).decimals
203203 let aB = pow(av, 0, 10, 1, aA, HALFUP)
204204 if (ac(W))
205205 then [StringEntry(g, au), IntegerEntry(h, aB)]
206206 else throw("Not allowed")
207207 }
208208
209209
210210
211211 @Callable(W)
212212 func lock (aC,aD) = if (!(ab))
213213 then throw("dApp not ready")
214214 else if (!(containsElement(x, aD)))
215215 then throw("Network not supported")
216216 else {
217217 let aE = af(W)
218218 let U = aE._1
219219 let ad = aE._2
220220 let aF = aE._3
221221 let aG = V(W)
222222 let X = aG._1
223223 let Y = aG._2
224224 let Z = aG._3
225225 let aa = aG._4
226226 if ((Y != 1))
227227 then throw("No NFT attached")
228228 else {
229229 let z = if (if (isDefined(X.assetId))
230230 then T(value(X.assetId))
231231 else false)
232232 then toBase58String(value(X.assetId))
233233 else throw("Only SIGN Art NFT accepted.")
234234 let aH = ag(z)
235235 let aj = aH._1
236236 let ak = aH._2
237237 if (!(ar(ao(aj))))
238238 then throw(("Creator status is :" + ao(aj)))
239239 else if (!(as(aq(ak, aj))))
240240 then throw(("Artwork status is :" + aq(ak, aj)))
241241 else {
242242 let an = al(aj)
243243 if ((size(an) == 0))
244244 then throw("This artist didn't allow crosschain transfer")
245245 else {
246246 let aI = E(y(z))
247247 if (if ((aI == o))
248248 then true
249249 else (aI == q))
250250 then throw("NFT already locked")
251251 else {
252252 let aJ = Q(C)
253253 let aK = Q(D)
254254 let aL = if ((aI == p))
255255 then true
256256 else false
257257 if (if (!(isDefined(Z.assetId)))
258258 then true
259259 else (toBase58String(value(Z.assetId)) != M))
260260 then throw("Wrong payment asset")
261261 else if (if (aL)
262262 then (aa > (aK + N))
263263 else false)
264264 then throw("Wrong payment amount to unlock")
265265 else if (if (!(aL))
266266 then (aa > (aJ + N))
267267 else false)
268268 then throw("Wrong payment amount to mint and unlock")
269269 else {
270270 let aM = if (aL)
271271 then aK
272272 else aJ
273273 let aN = invoke(addressFromStringValue(E(i)), "exchange", [1], [AttachedPayment(fromBase58String(M), N)])
274274 if ((aN == aN))
275275 then {
276276 let aO = invoke(addressFromStringValue(E(j)), "exchange", [1], [AttachedPayment(fromBase58String(M), aM)])
277277 if ((aO == aO))
278278 then [StringEntry(y(z), q), StringEntry(((A(z, U) + "_") + q), ((((((((((((aC + "_") + aD) + "_") + ad) + "_") + U) + "_") + value(assetInfo(value(X.assetId))).name) + "_") + toString(aF)) + "_") + toString(height)))]
279279 else throw("Strict value is not equal to itself.")
280280 }
281281 else throw("Strict value is not equal to itself.")
282282 }
283283 }
284284 }
285285 }
286286 }
287287 }
288288
289289
290290
291291 @Callable(W)
292292 func confirmLock (z,aP) = if (!(ab))
293293 then throw("dApp not ready")
294294 else if (ac(W))
295295 then {
296296 let aI = E(y(z))
297297 if ((aI != q))
298298 then throw("NFT not pending")
299299 else {
300300 let aQ = E(((A(z, aP) + "_") + q))
301301 let aR = ((A(z, aP) + "_") + r)
302302 [DeleteEntry(((A(z, aP) + "_") + q)), StringEntry(aR, aQ), StringEntry(y(z), o)]
303303 }
304304 }
305305 else throw("Not allowed")
306306
307307
308308
309309 @Callable(W)
310310 func unlock (aC,z) = if (!(ab))
311311 then throw("dApp not ready")
312312 else if (ac(W))
313313 then {
314314 let aI = E(y(z))
315315 if ((aI != o))
316316 then throw("NFT not locked, finalize first if pending")
317317 else [StringEntry(y(z), p), ScriptTransfer(Address(fromBase58String(aC)), 1, fromBase58String(z))]
318318 }
319319 else throw("Not allowed")
320320
321321
322322
323323 @Callable(W)
324324 func appRunning (aS,aT) = if (!(ab))
325325 then throw("dApp not ready")
326326 else if (ac(W))
327327 then [BooleanEntry(k, aS), StringEntry(l, aT)]
328328 else throw("You are not allowed to change this")
329329
330330
331331
332332 @Callable(W)
333333 func deleteEntry (aU) = if (ac(W))
334334 then [DeleteEntry(aU)]
335335 else throw("no")
336336
337337

github/deemru/w8io/169f3d6 
62.63 ms