tx · AZQHVKJyenZnuxRGZ4FgLYddpod7S1kqqEZV6uZh9Eiy

3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib:  -0.01400000 Waves

2022.08.01 12:39 [2165272] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves

{ "type": 13, "id": "AZQHVKJyenZnuxRGZ4FgLYddpod7S1kqqEZV6uZh9Eiy", "fee": 1400000, "feeAssetId": null, "timestamp": 1659346801291, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "frrVHZNmPqfGPkinR2tr9N8FpYEGLBbu2VD6QHn7vZo3TW1pKrWWDN3WYMMX5bHrRGifBzuLsz5ELXgGMEW3ATU" ], "script": "base64:AAIFAAAAAAAAACcIAhIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgQKAgQIEgMKAQgAAAAiAAAAAAtDT05GX0lOSVRfSwIAAAALY29uZmlnX2luaXQAAAAAC0NPTkZfQU1JTl9LAgAAAAxjb25maWdfYWRtaW4AAAAADUNPTkZfT1JBQ0xFX0sCAAAADWNvbmZpZ19vcmFjbGUAAAAAE0NPTkZfQVJUV09SS19EQVBQX0sCAAAAE2NvbmZpZ19hcnR3b3JrX2RhcHAAAAAAEUNPTkZfVVNFUlNfREFQUF9LAgAAABFjb25maWdfdXNlcnNfZGFwcAAAAAAOZGFwcFJ1bm5pbmdLZXkCAAAAFGNvbmZfZGFwcF9pc19ydW5uaW5nAAAAABFtYWludGVuYW5jZU1TR0tleQIAAAAUY29uZl9tYWludGVuYW5jZV9tc2cAAAAAC2RhcHBSdW5uaW5nCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAADmRhcHBSdW5uaW5nS2V5BgAAAAAObWFpbnRlbmFuY2VNU0cJAQAAAAt2YWx1ZU9yRWxzZ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UAAAABaQkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAAOZGFwcFJ1bm5pbmdLZXkFAAAABmlzTGl2ZQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAABFtYWludGVuYW5jZU1TR0tleQUAAAAHbWVzc2FnZQUAAAADbmlsCQAAAgAAAAECAAAAIllvdSBhcmUgbm90IGFsbG93ZWQgdG8gY2hhbmdlIHRoaXMAAAABaQEAAAALZGVsZXRlRW50cnkAAAABAAAABWVudHJ5AwkBAAAACW93bmVyT25seQAAAAEFAAAAAWkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAACGSIGC", "height": 2165272, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AjwQwJTjiekyzLPhfwEa3ttKafVNvTXtYGhR6YbGPCnZ Next: HgjCP7Dp7dH5Wd6a8AVHzMdsVFqPfgUMtoYQjWgAWQPx Diff:
OldNewDifferences
151151 else throw("Only SIGN Art NFT accepted.")
152152 let af = S(p)
153153 let Y = W(af)
154- if (true)
155- then throw(("erc20Addr = " + Y))
156- else if ((size(Y) == 0))
157- then throw("This artist didn't allow crosschain transfer")
158- else {
159- let ag = s(o(p))
160- if (if ((ag == j))
161- then true
162- else (ag == l))
163- then throw("NFT already locked")
164- else [StringEntry(o(p), l), StringEntry(((q(p, G) + "_") + l), ((((((((((((aa + "_") + ab) + "_") + P) + "_") + G) + "_") + value(assetInfo(value(J.assetId))).name) + "_") + toString(ad)) + "_") + toString(height)))]
165- }
154+ if ((size(Y) == 0))
155+ then throw("This artist didn't allow crosschain transfer")
156+ else {
157+ let ag = s(o(p))
158+ if (if ((ag == j))
159+ then true
160+ else (ag == l))
161+ 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)))]
163+ }
166164 }
167165 }
168166
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "config_init"
55
66 let b = "config_admin"
77
88 let c = "config_oracle"
99
1010 let d = "config_artwork_dapp"
1111
1212 let e = "config_users_dapp"
1313
1414 let f = "conf_dapp_is_running"
1515
1616 let g = "conf_maintenance_msg"
1717
1818 let h = valueOrElse(getBoolean(this, f), true)
1919
2020 let i = valueOrElse(getString(this, g), "")
2121
2222 let j = "LOCKED"
2323
2424 let k = "UNLOCKED"
2525
2626 let l = "PENDING"
2727
2828 let m = "CLOSED"
2929
3030 let n = ["ETH", "POLYGON"]
3131
3232 func o (p) = (("nft_" + p) + "_status")
3333
3434
3535 func q (p,r) = ((("transfer_" + p) + "_") + r)
3636
3737
3838 func s (t) = valueOrElse(getString(this, t), "")
3939
4040
4141 func u (t) = valueOrElse(getInteger(this, t), 0)
4242
4343
4444 func v (t) = valueOrElse(getBoolean(this, t), false)
4545
4646
4747 let w = value(addressFromString(s(b)))
4848
4949 let x = value(addressFromString(s(d)))
5050
5151 let y = value(addressFromString(s(e)))
5252
5353 let z = value(addressFromString(s(c)))
5454
5555 func A (t) = valueOrElse(getString(y, t), "")
5656
5757
5858 func B (t) = valueOrElse(getString(x, t), "")
5959
6060
6161 func C (t) = valueOrErrorMessage(getInteger(z, t), "Integer undefine or 0 in oracle")
6262
6363
6464 func D (E) = if (if (if ((E.quantity == 1))
6565 then (E.decimals == 0)
6666 else false)
6767 then (E.reissuable == false)
6868 else false)
6969 then (E.issuer == x)
7070 else false
7171
7272
7373 func F (G) = {
7474 let E = value(assetInfo(G))
7575 D(E)
7676 }
7777
7878
7979 func H (I) = if ((size(I.payments) == 0))
8080 then throw("No payment attached")
8181 else {
8282 let J = value(I.payments[0])
8383 let K = value(J.amount)
8484 let L = value(I.payments[1])
8585 let M = value(L.amount)
8686 $Tuple4(J, K, L, M)
8787 }
8888
8989
9090 let N = valueOrElse(v(a), false)
9191
9292 func O (I) = {
9393 let P = toString(I.caller)
9494 let G = toBase58String(I.transactionId)
9595 let Q = if (N)
9696 then [toString(w), toString(this)]
9797 else [toString(this)]
9898 if (containsElement(Q, P))
9999 then true
100100 else false
101101 }
102102
103103
104104 func R (I) = if (!(h))
105105 then throw(i)
106106 else $Tuple3(toBase58String(I.transactionId), toBase58String(I.caller.bytes), lastBlock.timestamp)
107107
108108
109109 func S (T) = {
110110 let U = B(("nft_" + T))
111111 let V = split(U, "_")[6]
112112 V
113113 }
114114
115115
116116 func W (X) = {
117117 let Y = A(("user_ERC20_" + X))
118118 Y
119119 }
120120
121121
122122 @Callable(I)
123123 func init (Z,z,x,y) = if (O(I))
124124 then [StringEntry(b, Z), StringEntry(c, z), StringEntry(d, x), StringEntry(e, y), BooleanEntry(a, true)]
125125 else throw("Not allowed")
126126
127127
128128
129129 @Callable(I)
130130 func lock (aa,ab) = if (!(N))
131131 then throw("dApp not ready")
132132 else if (!(containsElement(n, ab)))
133133 then throw("Network not supported")
134134 else {
135135 let ac = R(I)
136136 let G = ac._1
137137 let P = ac._2
138138 let ad = ac._3
139139 let ae = H(I)
140140 let J = ae._1
141141 let K = ae._2
142142 let L = ae._3
143143 let M = ae._4
144144 if ((K != 1))
145145 then throw("No NFT attached")
146146 else {
147147 let p = if (if (isDefined(J.assetId))
148148 then F(value(J.assetId))
149149 else false)
150150 then toBase58String(value(J.assetId))
151151 else throw("Only SIGN Art NFT accepted.")
152152 let af = S(p)
153153 let Y = W(af)
154- if (true)
155- then throw(("erc20Addr = " + Y))
156- else if ((size(Y) == 0))
157- then throw("This artist didn't allow crosschain transfer")
158- else {
159- let ag = s(o(p))
160- if (if ((ag == j))
161- then true
162- else (ag == l))
163- then throw("NFT already locked")
164- else [StringEntry(o(p), l), StringEntry(((q(p, G) + "_") + l), ((((((((((((aa + "_") + ab) + "_") + P) + "_") + G) + "_") + value(assetInfo(value(J.assetId))).name) + "_") + toString(ad)) + "_") + toString(height)))]
165- }
154+ if ((size(Y) == 0))
155+ then throw("This artist didn't allow crosschain transfer")
156+ else {
157+ let ag = s(o(p))
158+ if (if ((ag == j))
159+ then true
160+ else (ag == l))
161+ 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)))]
163+ }
166164 }
167165 }
168166
169167
170168
171169 @Callable(I)
172170 func confirmLock (p,ah) = if (!(N))
173171 then throw("dApp not ready")
174172 else if (O(I))
175173 then {
176174 let ag = s(o(p))
177175 if ((ag != l))
178176 then throw("NFT not pending")
179177 else {
180178 let ai = s(((q(p, ah) + "_") + l))
181179 let aj = ((q(p, ah) + "_") + m)
182180 [DeleteEntry(((q(p, ah) + "_") + l)), StringEntry(aj, ai), StringEntry(o(p), j)]
183181 }
184182 }
185183 else throw("Not allowed")
186184
187185
188186
189187 @Callable(I)
190188 func unlock (aa,p) = if (!(N))
191189 then throw("dApp not ready")
192190 else if (O(I))
193191 then {
194192 let ag = s(o(p))
195193 if ((ag != j))
196194 then throw("NFT not locked, finalize first if pending")
197195 else [StringEntry(o(p), k), ScriptTransfer(Address(fromBase58String(aa)), 1, fromBase58String(p))]
198196 }
199197 else throw("Not allowed")
200198
201199
202200
203201 @Callable(I)
204202 func appRunning (ak,al) = if (!(N))
205203 then throw("dApp not ready")
206204 else if (O(I))
207205 then [BooleanEntry(f, ak), StringEntry(g, al)]
208206 else throw("You are not allowed to change this")
209207
210208
211209
212210 @Callable(I)
213211 func deleteEntry (am) = if (O(I))
214212 then [DeleteEntry(am)]
215213 else throw("no")
216214
217215

github/deemru/w8io/169f3d6 
64.68 ms