tx · 6ixG6d9UGskiuQ1u46FyJUaGuV9VhRL1wwxWqKr5cgzz

3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib:  -0.01400000 Waves

2022.08.01 12:37 [2165269] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves

{ "type": 13, "id": "6ixG6d9UGskiuQ1u46FyJUaGuV9VhRL1wwxWqKr5cgzz", "fee": 1400000, "feeAssetId": null, "timestamp": 1659346652506, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "4tSCny9TeuGNrhWVBZ6hRYHYxcjEnb6jKMTfQJ9kPWRfnMR3NWoBgPH6kbrPPNqzW5Usk7j96xvF1zcDvbK4fTJb" ], "script": "base64:AAIFAAAAAAAAACcIAhIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgQKAgQIEgMKAQgAAAAiAAAAAAtDT05GX0lOSVRfSwIAAAALY29uZmlnX2luaXQAAAAAC0NPTkZfQU1JTl9LAgAAAAxjb25maWdfYWRtaW4AAAAADUNPTkZfT1JBQ0xFX0sCAAAADWNvbmZpZ19vcmFjbGUAAAAAE0NPTkZfQVJUV09SS19EQVBQX0sCAAAAE2NvbmZpZ19hcnR3b3JrX2RhcHAAAAAAEUNPTkZfVVNFUlNfREFQUF9LAgAAABFjb25maWdfdXNlcnNfZGFwcAAAAAAOZGFwcFJ1bm5pbmdLZXkCAAAAFGNvbmZfZGFwcF9pc19ydW5uaW5nAAAAABFtYWludGVuYW5jZU1TR0tleQIAAAAUY29uZl9tYWludGVuYW5jZV9tc2cAAAAAC2RhcHBSdW5uaW5nCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAADmRhcHBSdW5uaW5nS2V5BgAAAAAObWFpbnRlbmFuY2VNU0cJAQAAAAt2YWx1ZU9y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GaXNMaXZlAAAAB21lc3NhZ2UDCQEAAAABIQAAAAEFAAAABmlzSW5pdAkAAAIAAAABAgAAAA5kQXBwIG5vdCByZWFkeQMJAQAAAAlvd25lck9ubHkAAAABBQAAAAFpCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAA5kYXBwUnVubmluZ0tleQUAAAAGaXNMaXZlCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAEW1haW50ZW5hbmNlTVNHS2V5BQAAAAdtZXNzYWdlBQAAAANuaWwJAAACAAAAAQIAAAAiWW91IGFyZSBub3QgYWxsb3dlZCB0byBjaGFuZ2UgdGhpcwAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkDCQEAAAAJb3duZXJPbmx5AAAAAQUAAAABaQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAPHgud8=", "height": 2165269, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FKbW6xy1PihcHjY1LRFbuc4FB8HGrkdM8oaraZBz8VtF Next: AjwQwJTjiekyzLPhfwEa3ttKafVNvTXtYGhR6YbGPCnZ Diff:
OldNewDifferences
151151 then toBase58String(value(J.assetId))
152152 else throw("Only SIGN Art NFT accepted.")
153153 let af = S(p)
154+ let Y = W(af)
154155 if (true)
155- then throw(("creatorFromNFTId = " + af))
156- else {
157- let Y = W(af)
158- if (true)
159- then throw(("erc20Addr = " + Y))
160- else if ((Y == ""))
161- then throw("This artist didn't allow crosschain transfer")
162- else {
163- let ag = s(o(p))
164- if (if ((ag == j))
165- then true
166- else (ag == l))
167- then throw("NFT already locked")
168- else [StringEntry(o(p), l), StringEntry(((q(p, G) + "_") + l), ((((((((((((aa + "_") + ab) + "_") + P) + "_") + G) + "_") + value(assetInfo(value(J.assetId))).name) + "_") + toString(ad)) + "_") + toString(height)))]
169- }
170- }
156+ then throw(("erc20Addr = " + Y))
157+ else if ((size(Y) == 0))
158+ then throw("This artist didn't allow crosschain transfer")
159+ else {
160+ let ag = s(o(p))
161+ if (if ((ag == j))
162+ then true
163+ else (ag == l))
164+ then throw("NFT already locked")
165+ else [StringEntry(o(p), l), StringEntry(((q(p, G) + "_") + l), ((((((((((((aa + "_") + ab) + "_") + P) + "_") + G) + "_") + value(assetInfo(value(J.assetId))).name) + "_") + toString(ad)) + "_") + toString(height)))]
166+ }
171167 }
172168 }
173169
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 U = A(("user_ERC20_" + X))
118118 let Y = split(U, "_")[6]
119119 Y
120120 }
121121
122122
123123 @Callable(I)
124124 func init (Z,z,x,y) = if (O(I))
125125 then [StringEntry(b, Z), StringEntry(c, z), StringEntry(d, x), StringEntry(e, y), BooleanEntry(a, true)]
126126 else throw("Not allowed")
127127
128128
129129
130130 @Callable(I)
131131 func lock (aa,ab) = if (!(N))
132132 then throw("dApp not ready")
133133 else if (!(containsElement(n, ab)))
134134 then throw("Network not supported")
135135 else {
136136 let ac = R(I)
137137 let G = ac._1
138138 let P = ac._2
139139 let ad = ac._3
140140 let ae = H(I)
141141 let J = ae._1
142142 let K = ae._2
143143 let L = ae._3
144144 let M = ae._4
145145 if ((K != 1))
146146 then throw("No NFT attached")
147147 else {
148148 let p = if (if (isDefined(J.assetId))
149149 then F(value(J.assetId))
150150 else false)
151151 then toBase58String(value(J.assetId))
152152 else throw("Only SIGN Art NFT accepted.")
153153 let af = S(p)
154+ let Y = W(af)
154155 if (true)
155- then throw(("creatorFromNFTId = " + af))
156- else {
157- let Y = W(af)
158- if (true)
159- then throw(("erc20Addr = " + Y))
160- else if ((Y == ""))
161- then throw("This artist didn't allow crosschain transfer")
162- else {
163- let ag = s(o(p))
164- if (if ((ag == j))
165- then true
166- else (ag == l))
167- then throw("NFT already locked")
168- else [StringEntry(o(p), l), StringEntry(((q(p, G) + "_") + l), ((((((((((((aa + "_") + ab) + "_") + P) + "_") + G) + "_") + value(assetInfo(value(J.assetId))).name) + "_") + toString(ad)) + "_") + toString(height)))]
169- }
170- }
156+ then throw(("erc20Addr = " + Y))
157+ else if ((size(Y) == 0))
158+ then throw("This artist didn't allow crosschain transfer")
159+ else {
160+ let ag = s(o(p))
161+ if (if ((ag == j))
162+ then true
163+ else (ag == l))
164+ then throw("NFT already locked")
165+ else [StringEntry(o(p), l), StringEntry(((q(p, G) + "_") + l), ((((((((((((aa + "_") + ab) + "_") + P) + "_") + G) + "_") + value(assetInfo(value(J.assetId))).name) + "_") + toString(ad)) + "_") + toString(height)))]
166+ }
171167 }
172168 }
173169
174170
175171
176172 @Callable(I)
177173 func confirmLock (p,ah) = if (!(N))
178174 then throw("dApp not ready")
179175 else if (O(I))
180176 then {
181177 let ag = s(o(p))
182178 if ((ag != l))
183179 then throw("NFT not pending")
184180 else {
185181 let ai = s(((q(p, ah) + "_") + l))
186182 let aj = ((q(p, ah) + "_") + m)
187183 [DeleteEntry(((q(p, ah) + "_") + l)), StringEntry(aj, ai), StringEntry(o(p), j)]
188184 }
189185 }
190186 else throw("Not allowed")
191187
192188
193189
194190 @Callable(I)
195191 func unlock (aa,p) = if (!(N))
196192 then throw("dApp not ready")
197193 else if (O(I))
198194 then {
199195 let ag = s(o(p))
200196 if ((ag != j))
201197 then throw("NFT not locked, finalize first if pending")
202198 else [StringEntry(o(p), k), ScriptTransfer(Address(fromBase58String(aa)), 1, fromBase58String(p))]
203199 }
204200 else throw("Not allowed")
205201
206202
207203
208204 @Callable(I)
209205 func appRunning (ak,al) = if (!(N))
210206 then throw("dApp not ready")
211207 else if (O(I))
212208 then [BooleanEntry(f, ak), StringEntry(g, al)]
213209 else throw("You are not allowed to change this")
214210
215211
216212
217213 @Callable(I)
218214 func deleteEntry (am) = if (O(I))
219215 then [DeleteEntry(am)]
220216 else throw("no")
221217
222218

github/deemru/w8io/873ac7e 
82.09 ms