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:BgI3CAISCgoICAgICAgBCAgSBAoCCAgSBAoCCAESBAoCCAgSBAoCCAgSBAoCCAgSBAoCBAgSAwoBCDQAB3ZlcnNpb24CAzEuMAALQ09ORl9JTklUX0sCC2NvbmZpZ19pbml0AAtDT05GX0FNSU5fSwIMY29uZmlnX2FkbWluAA1DT05GX09SQUNMRV9LAg1jb25maWdfb3JhY2xlABNDT05GX0FSVFdPUktfREFQUF9LAhNjb25maWdfYXJ0d29ya19kYXBwABFDT05GX1VTRVJTX0RBUFBfSwIRY29uZmlnX3VzZXJzX2RhcHAAEENPTkZfRkVFX0FTU0VUX0sCEGNvbmZpZ19mZWVfYXNzZXQAEUNPTkZfRkVFX0FNT1VOVF9LAhFjb25maWdfZmVlX2Ftb3VudAAVQ09ORl9TV09QX1NJR05fREFQUF9LAhVjb25maWdfc3dvcF9zaWduX2RhcHAAFENPTkZfU1dPUF9FVEhfREFQUF9LAhVjb25maWdfc3dvcF9zaWduX2RhcHAADmRhcHBSdW5uaW5nS2V5AhRjb25mX2RhcHBfaXNfcnVubmluZwARbWFpbnRlbmFuY2VNU0dLZX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mdFbnRyeQIFEW1haW50ZW5hbmNlTVNHS2V5BQdtZXNzYWdlBQNuaWwJAAIBAiJZb3UgYXJlIG5vdCBhbGxvd2VkIHRvIGNoYW5nZSB0aGlzAWkBC2RlbGV0ZUVudHJ5AQVlbnRyeQMJAQlvd25lck9ubHkBBQFpCQDMCAIJAQtEZWxldGVFbnRyeQEFBWVudHJ5BQNuaWwJAAIBAgJubwBvv/Ck", "height": 2185386, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F7m79Gp3sp4KEaYRBtYVET62vDShyAVDQYMwW7ED1VVJ Next: 5VtZScpqZCfwYC76KjNTA3YgVATUgPFdWbREkaqBsaQi Diff:
OldNewDifferences
1717
1818 let h = "config_fee_amount"
1919
20-let i = "conf_dapp_is_running"
20+let i = "config_swop_sign_dapp"
2121
22-let j = "conf_maintenance_msg"
22+let j = "config_swop_sign_dapp"
2323
24-let k = valueOrElse(getBoolean(this, i), true)
24+let k = "conf_dapp_is_running"
2525
26-let l = valueOrElse(getString(this, j), "")
26+let l = "conf_maintenance_msg"
2727
28-let m = "LOCKED"
28+let m = valueOrElse(getBoolean(this, k), true)
2929
30-let n = "UNLOCKED"
30+let n = valueOrElse(getString(this, l), "")
3131
32-let o = "PENDING"
32+let o = "LOCKED"
3333
34-let p = "CLOSED"
34+let p = "UNLOCKED"
3535
36-let q = "REGISTERED"
36+let q = "PENDING"
3737
38-let r = "VERIFIED"
38+let r = "CLOSED"
3939
40-let s = "FLAGGED"
40+let s = "REGISTERED"
4141
42-let t = "ILLEGAL"
42+let t = "VERIFIED"
4343
44-let u = "CHANGE_REQUIRED"
44+let u = "FLAGGED"
4545
46-let v = ["ETH"]
46+let v = "ILLEGAL"
4747
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")
4953
5054
51-func y (x,z) = ((("transfer_" + x) + "_") + z)
55+func A (z,B) = ((("transfer_" + z) + "_") + B)
5256
5357
54-let A = "cost_non_minted"
58+let C = "cost_non_minted"
5559
56-let B = "cost_minted"
60+let D = "cost_minted"
5761
58-func C (D) = valueOrElse(getString(this, D), "")
62+func E (F) = valueOrElse(getString(this, F), "")
5963
6064
61-func E (D) = valueOrElse(getInteger(this, D), 0)
65+func G (F) = valueOrElse(getInteger(this, F), 0)
6266
6367
64-func F (D) = valueOrElse(getBoolean(this, D), false)
68+func H (F) = valueOrElse(getBoolean(this, F), false)
6569
6670
67-let G = value(addressFromString(C(c)))
71+let I = value(addressFromString(E(c)))
6872
69-let H = value(addressFromString(C(e)))
73+let J = value(addressFromString(E(e)))
7074
71-let I = value(addressFromString(C(f)))
75+let K = value(addressFromString(E(f)))
7276
73-let J = value(addressFromString(C(d)))
77+let L = value(addressFromString(E(d)))
7478
75-let K = C(g)
79+let M = E(g)
7680
77-let L = E(h)
81+let N = G(h)
7882
79-func M (D) = valueOrElse(getString(I, D), "")
83+func O (F) = valueOrElse(getString(K, F), "")
8084
8185
82-func N (D) = valueOrElse(getString(H, D), "")
86+func P (F) = valueOrElse(getString(J, F), "")
8387
8488
85-func O (D) = valueOrErrorMessage(getInteger(J, D), "Integer undefine or 0 in oracle")
89+func Q (F) = valueOrErrorMessage(getInteger(L, F), "Integer undefine or 0 in oracle")
8690
8791
88-func P (Q) = if (if (if ((Q.quantity == 1))
89- then (Q.decimals == 0)
92+func R (S) = if (if (if ((S.quantity == 1))
93+ then (S.decimals == 0)
9094 else false)
91- then (Q.reissuable == false)
95+ then (S.reissuable == false)
9296 else false)
93- then (Q.issuer == H)
97+ then (S.issuer == J)
9498 else false
9599
96100
97-func R (S) = {
98- let Q = value(assetInfo(S))
99- P(Q)
101+func T (U) = {
102+ let S = value(assetInfo(U))
103+ R(S)
100104 }
101105
102106
103-func T (U) = if ((size(U.payments) == 0))
107+func V (W) = if ((size(W.payments) == 0))
104108 then throw("No payment attached")
105109 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])
109111 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)
111115 }
112116
113117
114-let Z = valueOrElse(F(b), false)
118+let ab = valueOrElse(H(b), false)
115119
116-func aa (U) = {
117- let ab = toString(U.caller)
118- let S = toBase58String(U.transactionId)
119- let ac = if (Z)
120- then [toString(G), toString(this)]
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)]
121125 else [toString(this)]
122- if (containsElement(ac, ab))
126+ if (containsElement(ae, ad))
123127 then true
124128 else false
125129 }
126130
127131
128-func ad (U) = if (!(k))
129- then throw(l)
130- else $Tuple3(toBase58String(U.transactionId), toBase58String(U.caller.bytes), lastBlock.timestamp)
132+func af (W) = if (!(m))
133+ then throw(n)
134+ else $Tuple3(toBase58String(W.transactionId), toBase58String(W.caller.bytes), lastBlock.timestamp)
131135
132136
133-func ae (af) = {
134- let ag = N(("nft_" + af))
135- let ah = split(ag, "_")[6]
136- let ai = split(ag, "_")[5]
137- $Tuple2(ah, ai)
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)
138142 }
139143
140144
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))
149147 an
150148 }
151149
152150
153-func ao (ai,ak) = {
154- let an = N(((("art_flag_" + ai) + "_") + ak))
155- an
151+func ao (am) = {
152+ let ap = O(("user_status_" + am))
153+ ap
156154 }
157155
158156
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+ }
162161
163162
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)
166170 else false)
167- then (an != u)
171+ then (ap != w)
168172 else false
169173
170174
171-@Callable(U)
172-func init (ar,J,H,I,as,at) = if (aa(U))
175+@Callable(W)
176+func init (at,L,J,K,au,av,aw,ax) = if (ac(W))
173177 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+ }
177186 else throw("Strict value is not equal to itself.")
178187 }
179188 else throw("Not allowed")
180189
181190
182191
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)]
190206 else throw("Not allowed")
191207 }
192208
193209
194210
195-@Callable(U)
196-func lock (ax,ay) = if (!(Z))
211+@Callable(W)
212+func lock (aC,aD) = if (!(ab))
197213 then throw("dApp not ready")
198- else if (!(containsElement(v, ay)))
214+ else if (!(containsElement(x, aD)))
199215 then throw("Network not supported")
200216 else {
201- let az = ad(U)
202- let S = az._1
203- let ab = az._2
204- let aA = az._3
205- let aB = T(U)
206- let V = aB._1
207- let W = aB._2
208- let X = aB._3
209- let Y = aB._4
210- if ((W != 1))
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))
211227 then throw("No NFT attached")
212228 else {
213- let x = if (if (isDefined(V.assetId))
214- then R(value(V.assetId))
229+ let z = if (if (isDefined(X.assetId))
230+ then T(value(X.assetId))
215231 else false)
216- then toBase58String(value(V.assetId))
232+ then toBase58String(value(X.assetId))
217233 else throw("Only SIGN Art NFT accepted.")
218- let aC = ae(x)
219- let ah = aC._1
220- let ai = aC._2
221- if (!(ap(am(ah))))
222- then throw(("Creator status is :" + am(ah)))
223- else if (!(aq(ao(ai, ah))))
224- then throw(("Artwork status is :" + ao(ai, ah)))
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)))
225241 else {
226- let al = aj(ah)
227- if ((size(al) == 0))
242+ let an = al(aj)
243+ if ((size(an) == 0))
228244 then throw("This artist didn't allow crosschain transfer")
229245 else {
230- let aD = C(w(x))
231- if (if ((aD == m))
246+ let aI = E(y(z))
247+ if (if ((aI == o))
232248 then true
233- else (aD == o))
249+ else (aI == q))
234250 then throw("NFT already locked")
235251 else {
236- let aE = O(A)
237- let aF = O(B)
238- let aG = if ((aD == n))
252+ let aJ = Q(C)
253+ let aK = Q(D)
254+ let aL = if ((aI == p))
239255 then true
240256 else false
241- if (if (!(isDefined(X.assetId)))
257+ if (if (!(isDefined(Z.assetId)))
242258 then true
243- else (toBase58String(value(X.assetId)) != K))
259+ else (toBase58String(value(Z.assetId)) != M))
244260 then throw("Wrong payment asset")
245- else if (if (aG)
246- then (Y > (aF + L))
261+ else if (if (aL)
262+ then (aa > (aK + N))
247263 else false)
248264 then throw("Wrong payment amount to unlock")
249- else if (if (!(aG))
250- then (Y > (aE + L))
265+ else if (if (!(aL))
266+ then (aa > (aJ + N))
251267 else false)
252268 then throw("Wrong payment amount to mint and unlock")
253- else [StringEntry(w(x), o), StringEntry(((y(x, S) + "_") + o), ((((((((((((ax + "_") + ay) + "_") + ab) + "_") + S) + "_") + value(assetInfo(value(V.assetId))).name) + "_") + toString(aA)) + "_") + toString(height)))]
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)))]
254270 }
255271 }
256272 }
259275
260276
261277
262-@Callable(U)
263-func confirmLock (x,aH) = if (!(Z))
278+@Callable(W)
279+func confirmLock (z,aM) = if (!(ab))
264280 then throw("dApp not ready")
265- else if (aa(U))
281+ else if (ac(W))
266282 then {
267- let aD = C(w(x))
268- if ((aD != o))
283+ let aI = E(y(z))
284+ if ((aI != q))
269285 then throw("NFT not pending")
270286 else {
271- let aI = C(((y(x, aH) + "_") + o))
272- let aJ = ((y(x, aH) + "_") + p)
273-[DeleteEntry(((y(x, aH) + "_") + o)), StringEntry(aJ, aI), StringEntry(w(x), m)]
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)]
274290 }
275291 }
276292 else throw("Not allowed")
277293
278294
279295
280-@Callable(U)
281-func unlock (ax,x) = if (!(Z))
296+@Callable(W)
297+func unlock (aC,z) = if (!(ab))
282298 then throw("dApp not ready")
283- else if (aa(U))
299+ else if (ac(W))
284300 then {
285- let aD = C(w(x))
286- if ((aD != m))
301+ let aI = E(y(z))
302+ if ((aI != o))
287303 then throw("NFT not locked, finalize first if pending")
288- else [StringEntry(w(x), n), ScriptTransfer(Address(fromBase58String(ax)), 1, fromBase58String(x))]
304+ else [StringEntry(y(z), p), ScriptTransfer(Address(fromBase58String(aC)), 1, fromBase58String(z))]
289305 }
290306 else throw("Not allowed")
291307
292308
293309
294-@Callable(U)
295-func appRunning (aK,aL) = if (!(Z))
310+@Callable(W)
311+func appRunning (aP,aQ) = if (!(ab))
296312 then throw("dApp not ready")
297- else if (aa(U))
298- then [BooleanEntry(i, aK), StringEntry(j, aL)]
313+ else if (ac(W))
314+ then [BooleanEntry(k, aP), StringEntry(l, aQ)]
299315 else throw("You are not allowed to change this")
300316
301317
302318
303-@Callable(U)
304-func deleteEntry (aM) = if (aa(U))
305- then [DeleteEntry(aM)]
319+@Callable(W)
320+func deleteEntry (aR) = if (ac(W))
321+ then [DeleteEntry(aR)]
306322 else throw("no")
307323
308324
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
20-let i = "conf_dapp_is_running"
20+let i = "config_swop_sign_dapp"
2121
22-let j = "conf_maintenance_msg"
22+let j = "config_swop_sign_dapp"
2323
24-let k = valueOrElse(getBoolean(this, i), true)
24+let k = "conf_dapp_is_running"
2525
26-let l = valueOrElse(getString(this, j), "")
26+let l = "conf_maintenance_msg"
2727
28-let m = "LOCKED"
28+let m = valueOrElse(getBoolean(this, k), true)
2929
30-let n = "UNLOCKED"
30+let n = valueOrElse(getString(this, l), "")
3131
32-let o = "PENDING"
32+let o = "LOCKED"
3333
34-let p = "CLOSED"
34+let p = "UNLOCKED"
3535
36-let q = "REGISTERED"
36+let q = "PENDING"
3737
38-let r = "VERIFIED"
38+let r = "CLOSED"
3939
40-let s = "FLAGGED"
40+let s = "REGISTERED"
4141
42-let t = "ILLEGAL"
42+let t = "VERIFIED"
4343
44-let u = "CHANGE_REQUIRED"
44+let u = "FLAGGED"
4545
46-let v = ["ETH"]
46+let v = "ILLEGAL"
4747
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")
4953
5054
51-func y (x,z) = ((("transfer_" + x) + "_") + z)
55+func A (z,B) = ((("transfer_" + z) + "_") + B)
5256
5357
54-let A = "cost_non_minted"
58+let C = "cost_non_minted"
5559
56-let B = "cost_minted"
60+let D = "cost_minted"
5761
58-func C (D) = valueOrElse(getString(this, D), "")
62+func E (F) = valueOrElse(getString(this, F), "")
5963
6064
61-func E (D) = valueOrElse(getInteger(this, D), 0)
65+func G (F) = valueOrElse(getInteger(this, F), 0)
6266
6367
64-func F (D) = valueOrElse(getBoolean(this, D), false)
68+func H (F) = valueOrElse(getBoolean(this, F), false)
6569
6670
67-let G = value(addressFromString(C(c)))
71+let I = value(addressFromString(E(c)))
6872
69-let H = value(addressFromString(C(e)))
73+let J = value(addressFromString(E(e)))
7074
71-let I = value(addressFromString(C(f)))
75+let K = value(addressFromString(E(f)))
7276
73-let J = value(addressFromString(C(d)))
77+let L = value(addressFromString(E(d)))
7478
75-let K = C(g)
79+let M = E(g)
7680
77-let L = E(h)
81+let N = G(h)
7882
79-func M (D) = valueOrElse(getString(I, D), "")
83+func O (F) = valueOrElse(getString(K, F), "")
8084
8185
82-func N (D) = valueOrElse(getString(H, D), "")
86+func P (F) = valueOrElse(getString(J, F), "")
8387
8488
85-func O (D) = valueOrErrorMessage(getInteger(J, D), "Integer undefine or 0 in oracle")
89+func Q (F) = valueOrErrorMessage(getInteger(L, F), "Integer undefine or 0 in oracle")
8690
8791
88-func P (Q) = if (if (if ((Q.quantity == 1))
89- then (Q.decimals == 0)
92+func R (S) = if (if (if ((S.quantity == 1))
93+ then (S.decimals == 0)
9094 else false)
91- then (Q.reissuable == false)
95+ then (S.reissuable == false)
9296 else false)
93- then (Q.issuer == H)
97+ then (S.issuer == J)
9498 else false
9599
96100
97-func R (S) = {
98- let Q = value(assetInfo(S))
99- P(Q)
101+func T (U) = {
102+ let S = value(assetInfo(U))
103+ R(S)
100104 }
101105
102106
103-func T (U) = if ((size(U.payments) == 0))
107+func V (W) = if ((size(W.payments) == 0))
104108 then throw("No payment attached")
105109 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])
109111 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)
111115 }
112116
113117
114-let Z = valueOrElse(F(b), false)
118+let ab = valueOrElse(H(b), false)
115119
116-func aa (U) = {
117- let ab = toString(U.caller)
118- let S = toBase58String(U.transactionId)
119- let ac = if (Z)
120- then [toString(G), toString(this)]
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)]
121125 else [toString(this)]
122- if (containsElement(ac, ab))
126+ if (containsElement(ae, ad))
123127 then true
124128 else false
125129 }
126130
127131
128-func ad (U) = if (!(k))
129- then throw(l)
130- else $Tuple3(toBase58String(U.transactionId), toBase58String(U.caller.bytes), lastBlock.timestamp)
132+func af (W) = if (!(m))
133+ then throw(n)
134+ else $Tuple3(toBase58String(W.transactionId), toBase58String(W.caller.bytes), lastBlock.timestamp)
131135
132136
133-func ae (af) = {
134- let ag = N(("nft_" + af))
135- let ah = split(ag, "_")[6]
136- let ai = split(ag, "_")[5]
137- $Tuple2(ah, ai)
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)
138142 }
139143
140144
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))
149147 an
150148 }
151149
152150
153-func ao (ai,ak) = {
154- let an = N(((("art_flag_" + ai) + "_") + ak))
155- an
151+func ao (am) = {
152+ let ap = O(("user_status_" + am))
153+ ap
156154 }
157155
158156
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+ }
162161
163162
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)
166170 else false)
167- then (an != u)
171+ then (ap != w)
168172 else false
169173
170174
171-@Callable(U)
172-func init (ar,J,H,I,as,at) = if (aa(U))
175+@Callable(W)
176+func init (at,L,J,K,au,av,aw,ax) = if (ac(W))
173177 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+ }
177186 else throw("Strict value is not equal to itself.")
178187 }
179188 else throw("Not allowed")
180189
181190
182191
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)]
190206 else throw("Not allowed")
191207 }
192208
193209
194210
195-@Callable(U)
196-func lock (ax,ay) = if (!(Z))
211+@Callable(W)
212+func lock (aC,aD) = if (!(ab))
197213 then throw("dApp not ready")
198- else if (!(containsElement(v, ay)))
214+ else if (!(containsElement(x, aD)))
199215 then throw("Network not supported")
200216 else {
201- let az = ad(U)
202- let S = az._1
203- let ab = az._2
204- let aA = az._3
205- let aB = T(U)
206- let V = aB._1
207- let W = aB._2
208- let X = aB._3
209- let Y = aB._4
210- if ((W != 1))
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))
211227 then throw("No NFT attached")
212228 else {
213- let x = if (if (isDefined(V.assetId))
214- then R(value(V.assetId))
229+ let z = if (if (isDefined(X.assetId))
230+ then T(value(X.assetId))
215231 else false)
216- then toBase58String(value(V.assetId))
232+ then toBase58String(value(X.assetId))
217233 else throw("Only SIGN Art NFT accepted.")
218- let aC = ae(x)
219- let ah = aC._1
220- let ai = aC._2
221- if (!(ap(am(ah))))
222- then throw(("Creator status is :" + am(ah)))
223- else if (!(aq(ao(ai, ah))))
224- then throw(("Artwork status is :" + ao(ai, ah)))
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)))
225241 else {
226- let al = aj(ah)
227- if ((size(al) == 0))
242+ let an = al(aj)
243+ if ((size(an) == 0))
228244 then throw("This artist didn't allow crosschain transfer")
229245 else {
230- let aD = C(w(x))
231- if (if ((aD == m))
246+ let aI = E(y(z))
247+ if (if ((aI == o))
232248 then true
233- else (aD == o))
249+ else (aI == q))
234250 then throw("NFT already locked")
235251 else {
236- let aE = O(A)
237- let aF = O(B)
238- let aG = if ((aD == n))
252+ let aJ = Q(C)
253+ let aK = Q(D)
254+ let aL = if ((aI == p))
239255 then true
240256 else false
241- if (if (!(isDefined(X.assetId)))
257+ if (if (!(isDefined(Z.assetId)))
242258 then true
243- else (toBase58String(value(X.assetId)) != K))
259+ else (toBase58String(value(Z.assetId)) != M))
244260 then throw("Wrong payment asset")
245- else if (if (aG)
246- then (Y > (aF + L))
261+ else if (if (aL)
262+ then (aa > (aK + N))
247263 else false)
248264 then throw("Wrong payment amount to unlock")
249- else if (if (!(aG))
250- then (Y > (aE + L))
265+ else if (if (!(aL))
266+ then (aa > (aJ + N))
251267 else false)
252268 then throw("Wrong payment amount to mint and unlock")
253- else [StringEntry(w(x), o), StringEntry(((y(x, S) + "_") + o), ((((((((((((ax + "_") + ay) + "_") + ab) + "_") + S) + "_") + value(assetInfo(value(V.assetId))).name) + "_") + toString(aA)) + "_") + toString(height)))]
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)))]
254270 }
255271 }
256272 }
257273 }
258274 }
259275
260276
261277
262-@Callable(U)
263-func confirmLock (x,aH) = if (!(Z))
278+@Callable(W)
279+func confirmLock (z,aM) = if (!(ab))
264280 then throw("dApp not ready")
265- else if (aa(U))
281+ else if (ac(W))
266282 then {
267- let aD = C(w(x))
268- if ((aD != o))
283+ let aI = E(y(z))
284+ if ((aI != q))
269285 then throw("NFT not pending")
270286 else {
271- let aI = C(((y(x, aH) + "_") + o))
272- let aJ = ((y(x, aH) + "_") + p)
273-[DeleteEntry(((y(x, aH) + "_") + o)), StringEntry(aJ, aI), StringEntry(w(x), m)]
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)]
274290 }
275291 }
276292 else throw("Not allowed")
277293
278294
279295
280-@Callable(U)
281-func unlock (ax,x) = if (!(Z))
296+@Callable(W)
297+func unlock (aC,z) = if (!(ab))
282298 then throw("dApp not ready")
283- else if (aa(U))
299+ else if (ac(W))
284300 then {
285- let aD = C(w(x))
286- if ((aD != m))
301+ let aI = E(y(z))
302+ if ((aI != o))
287303 then throw("NFT not locked, finalize first if pending")
288- else [StringEntry(w(x), n), ScriptTransfer(Address(fromBase58String(ax)), 1, fromBase58String(x))]
304+ else [StringEntry(y(z), p), ScriptTransfer(Address(fromBase58String(aC)), 1, fromBase58String(z))]
289305 }
290306 else throw("Not allowed")
291307
292308
293309
294-@Callable(U)
295-func appRunning (aK,aL) = if (!(Z))
310+@Callable(W)
311+func appRunning (aP,aQ) = if (!(ab))
296312 then throw("dApp not ready")
297- else if (aa(U))
298- then [BooleanEntry(i, aK), StringEntry(j, aL)]
313+ else if (ac(W))
314+ then [BooleanEntry(k, aP), StringEntry(l, aQ)]
299315 else throw("You are not allowed to change this")
300316
301317
302318
303-@Callable(U)
304-func deleteEntry (aM) = if (aa(U))
305- then [DeleteEntry(aM)]
319+@Callable(W)
320+func deleteEntry (aR) = if (ac(W))
321+ then [DeleteEntry(aR)]
306322 else throw("no")
307323
308324

github/deemru/w8io/169f3d6 
271.21 ms