tx · F7m79Gp3sp4KEaYRBtYVET62vDShyAVDQYMwW7ED1VVJ 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib: -0.00800000 Waves 2022.08.10 11:47 [2178123] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves
{ "type": 13, "id": "F7m79Gp3sp4KEaYRBtYVET62vDShyAVDQYMwW7ED1VVJ", "fee": 800000, "feeAssetId": null, "timestamp": 1660121278260, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "5jjetXbLcLr6ugJepKdmZUFPucjZofqqNmdtnQYDtSR3h7W8YbABb5RTVqeSoabKSRuvrVHb8HFuF7aMZvcNSstV" ], "script": "base64:BgIvCAISCAoGCAgICAgBEgQKAggBEgQKAggIEgQKAggIEgQKAggIEgQKAgQIEgMKAQgyAAd2ZXJzaW9uAgMxLjAAC0NPTkZfSU5JVF9LAgtjb25maWdfaW5pdAALQ09ORl9BTUlOX0sCDGNvbmZpZ19hZG1pbgANQ09ORl9PUkFDTEVfSwINY29uZmlnX29yYWNsZQATQ09ORl9BUlRXT1JLX0RBUFBfSwITY29uZmlnX2FydHdvcmtfZGFwcAARQ09ORl9VU0VSU19EQVBQX0sCEWNvbmZpZ191c2Vyc19kYXBwABBDT05GX0ZFRV9BU1NFVF9LAhBjb25maWdfZmVlX2Fzc2V0ABFDT05GX0ZFRV9BTU9VTlRfSwIRY29uZmlnX2ZlZV9hbW91bnQADmRhcHBSdW5uaW5nS2V5AhRjb25mX2RhcHBfaXNfcnVubmluZwARbWFpbnRlbmFuY2VNU0dLZXkCFGNvbmZfbWFpbnRlbmFuY2VfbXNnAAtkYXBwUnVubmluZwkBC3ZhbHVlT3JFbHNlAgkAmwgCBQR0aGlzBQ5kYXBwUnVubmluZ0tleQYADm1haW50ZW5hbmNlTVNHC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AQIpTkZUIG5vdCBsb2NrZWQsIGZpbmFsaXplIGZpcnN0IGlmIHBlbmRpbmcJAMwIAgkBC1N0cmluZ0VudHJ5AgkBDGtleU5GVHN0YXR1cwEFBW5mdElkBQ9zdGF0dXNfVU5MT0NLRUQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBB0FkZHJlc3MBCQDZBAEFCXJlY2lwaWVudAABCQDZBAEFBW5mdElkBQNuaWwJAAIBAgtOb3QgYWxsb3dlZAFpAQphcHBSdW5uaW5nAgZpc0xpdmUHbWVzc2FnZQMJAQEhAQUGaXNJbml0CQACAQIOZEFwcCBub3QgcmVhZHkDCQEJb3duZXJPbmx5AQUBaQkAzAgCCQEMQm9vbGVhbkVudHJ5AgUOZGFwcFJ1bm5pbmdLZXkFBmlzTGl2ZQkAzAgCCQELU3RyaW5nRW50cnkCBRFtYWludGVuYW5jZU1TR0tleQUHbWVzc2FnZQUDbmlsCQACAQIiWW91IGFyZSBub3QgYWxsb3dlZCB0byBjaGFuZ2UgdGhpcwFpAQtkZWxldGVFbnRyeQEFZW50cnkDCQEJb3duZXJPbmx5AQUBaQkAzAgCCQELRGVsZXRlRW50cnkBBQVlbnRyeQUDbmlsCQACAQICbm8ArfddXQ==", "height": 2178123, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AJ8u6LzVsNKamjW31VAMTKj8KXSfvzEcxd3ZtEfAMNyq Next: GBcz3SgfT4hWwhZcNNdnLCWWzfupndmHv67ss6vx4jfQ Diff:
Old | New | Differences | |
---|---|---|---|
43 | 43 | ||
44 | 44 | let u = "CHANGE_REQUIRED" | |
45 | 45 | ||
46 | - | let v = ["ETH" | |
46 | + | let v = ["ETH"] | |
47 | 47 | ||
48 | 48 | func w (x) = (("nft_" + x) + "_status") | |
49 | 49 |
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_artwork_dapp" | |
13 | 13 | ||
14 | 14 | let f = "config_users_dapp" | |
15 | 15 | ||
16 | 16 | let g = "config_fee_asset" | |
17 | 17 | ||
18 | 18 | let h = "config_fee_amount" | |
19 | 19 | ||
20 | 20 | let i = "conf_dapp_is_running" | |
21 | 21 | ||
22 | 22 | let j = "conf_maintenance_msg" | |
23 | 23 | ||
24 | 24 | let k = valueOrElse(getBoolean(this, i), true) | |
25 | 25 | ||
26 | 26 | let l = valueOrElse(getString(this, j), "") | |
27 | 27 | ||
28 | 28 | let m = "LOCKED" | |
29 | 29 | ||
30 | 30 | let n = "UNLOCKED" | |
31 | 31 | ||
32 | 32 | let o = "PENDING" | |
33 | 33 | ||
34 | 34 | let p = "CLOSED" | |
35 | 35 | ||
36 | 36 | let q = "REGISTERED" | |
37 | 37 | ||
38 | 38 | let r = "VERIFIED" | |
39 | 39 | ||
40 | 40 | let s = "FLAGGED" | |
41 | 41 | ||
42 | 42 | let t = "ILLEGAL" | |
43 | 43 | ||
44 | 44 | let u = "CHANGE_REQUIRED" | |
45 | 45 | ||
46 | - | let v = ["ETH" | |
46 | + | let v = ["ETH"] | |
47 | 47 | ||
48 | 48 | func w (x) = (("nft_" + x) + "_status") | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func y (x,z) = ((("transfer_" + x) + "_") + z) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | let A = "cost_non_minted" | |
55 | 55 | ||
56 | 56 | let B = "cost_minted" | |
57 | 57 | ||
58 | 58 | func C (D) = valueOrElse(getString(this, D), "") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func E (D) = valueOrElse(getInteger(this, D), 0) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func F (D) = valueOrElse(getBoolean(this, D), false) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | let G = value(addressFromString(C(c))) | |
68 | 68 | ||
69 | 69 | let H = value(addressFromString(C(e))) | |
70 | 70 | ||
71 | 71 | let I = value(addressFromString(C(f))) | |
72 | 72 | ||
73 | 73 | let J = value(addressFromString(C(d))) | |
74 | 74 | ||
75 | 75 | let K = C(g) | |
76 | 76 | ||
77 | 77 | let L = E(h) | |
78 | 78 | ||
79 | 79 | func M (D) = valueOrElse(getString(I, D), "") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func N (D) = valueOrElse(getString(H, D), "") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func O (D) = valueOrErrorMessage(getInteger(J, D), "Integer undefine or 0 in oracle") | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func P (Q) = if (if (if ((Q.quantity == 1)) | |
89 | 89 | then (Q.decimals == 0) | |
90 | 90 | else false) | |
91 | 91 | then (Q.reissuable == false) | |
92 | 92 | else false) | |
93 | 93 | then (Q.issuer == H) | |
94 | 94 | else false | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func R (S) = { | |
98 | 98 | let Q = value(assetInfo(S)) | |
99 | 99 | P(Q) | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func T (U) = if ((size(U.payments) == 0)) | |
104 | 104 | then throw("No payment attached") | |
105 | 105 | else { | |
106 | 106 | let V = value(U.payments[0]) | |
107 | 107 | let W = value(V.amount) | |
108 | 108 | let X = value(U.payments[1]) | |
109 | 109 | let Y = value(X.amount) | |
110 | 110 | $Tuple4(V, W, X, Y) | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | let Z = valueOrElse(F(b), false) | |
115 | 115 | ||
116 | 116 | func aa (U) = { | |
117 | 117 | let ab = toString(U.caller) | |
118 | 118 | let S = toBase58String(U.transactionId) | |
119 | 119 | let ac = if (Z) | |
120 | 120 | then [toString(G), toString(this)] | |
121 | 121 | else [toString(this)] | |
122 | 122 | if (containsElement(ac, ab)) | |
123 | 123 | then true | |
124 | 124 | else false | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func ad (U) = if (!(k)) | |
129 | 129 | then throw(l) | |
130 | 130 | else $Tuple3(toBase58String(U.transactionId), toBase58String(U.caller.bytes), lastBlock.timestamp) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ae (af) = { | |
134 | 134 | let ag = N(("nft_" + af)) | |
135 | 135 | let ah = split(ag, "_")[6] | |
136 | 136 | let ai = split(ag, "_")[5] | |
137 | 137 | $Tuple2(ah, ai) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func aj (ak) = { | |
142 | 142 | let al = M(("user_ERC20_" + ak)) | |
143 | 143 | al | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func am (ak) = { | |
148 | 148 | let an = M(("user_status_" + ak)) | |
149 | 149 | an | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func ao (ai,ak) = { | |
154 | 154 | let an = N(((("art_flag_" + ai) + "_") + ak)) | |
155 | 155 | an | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func ap (an) = if ((an == q)) | |
160 | 160 | then true | |
161 | 161 | else (an == r) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func aq (an) = if (if ((an != s)) | |
165 | 165 | then (an != t) | |
166 | 166 | else false) | |
167 | 167 | then (an != u) | |
168 | 168 | else false | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | @Callable(U) | |
172 | 172 | func init (ar,J,H,I,as,at) = if (aa(U)) | |
173 | 173 | then { | |
174 | 174 | let au = invoke(this, "setFee", [as, at], nil) | |
175 | 175 | if ((au == au)) | |
176 | 176 | then [StringEntry(c, ar), StringEntry(d, J), StringEntry(e, H), StringEntry(f, I), BooleanEntry(b, true)] | |
177 | 177 | else throw("Strict value is not equal to itself.") | |
178 | 178 | } | |
179 | 179 | else throw("Not allowed") | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Callable(U) | |
184 | 184 | func setFee (as,at) = { | |
185 | 185 | let Q = assetInfo(fromBase58String(as)) | |
186 | 186 | let av = value(Q).decimals | |
187 | 187 | let aw = pow(at, 0, 10, 1, av, HALFUP) | |
188 | 188 | if (aa(U)) | |
189 | 189 | then [StringEntry(g, as), IntegerEntry(h, aw)] | |
190 | 190 | else throw("Not allowed") | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | ||
195 | 195 | @Callable(U) | |
196 | 196 | func lock (ax,ay) = if (!(Z)) | |
197 | 197 | then throw("dApp not ready") | |
198 | 198 | else if (!(containsElement(v, ay))) | |
199 | 199 | then throw("Network not supported") | |
200 | 200 | else { | |
201 | 201 | let az = ad(U) | |
202 | 202 | let S = az._1 | |
203 | 203 | let ab = az._2 | |
204 | 204 | let aA = az._3 | |
205 | 205 | let aB = T(U) | |
206 | 206 | let V = aB._1 | |
207 | 207 | let W = aB._2 | |
208 | 208 | let X = aB._3 | |
209 | 209 | let Y = aB._4 | |
210 | 210 | if ((W != 1)) | |
211 | 211 | then throw("No NFT attached") | |
212 | 212 | else { | |
213 | 213 | let x = if (if (isDefined(V.assetId)) | |
214 | 214 | then R(value(V.assetId)) | |
215 | 215 | else false) | |
216 | 216 | then toBase58String(value(V.assetId)) | |
217 | 217 | else throw("Only SIGN Art NFT accepted.") | |
218 | 218 | let aC = ae(x) | |
219 | 219 | let ah = aC._1 | |
220 | 220 | let ai = aC._2 | |
221 | 221 | if (!(ap(am(ah)))) | |
222 | 222 | then throw(("Creator status is :" + am(ah))) | |
223 | 223 | else if (!(aq(ao(ai, ah)))) | |
224 | 224 | then throw(("Artwork status is :" + ao(ai, ah))) | |
225 | 225 | else { | |
226 | 226 | let al = aj(ah) | |
227 | 227 | if ((size(al) == 0)) | |
228 | 228 | then throw("This artist didn't allow crosschain transfer") | |
229 | 229 | else { | |
230 | 230 | let aD = C(w(x)) | |
231 | 231 | if (if ((aD == m)) | |
232 | 232 | then true | |
233 | 233 | else (aD == o)) | |
234 | 234 | then throw("NFT already locked") | |
235 | 235 | else { | |
236 | 236 | let aE = O(A) | |
237 | 237 | let aF = O(B) | |
238 | 238 | let aG = if ((aD == n)) | |
239 | 239 | then true | |
240 | 240 | else false | |
241 | 241 | if (if (!(isDefined(X.assetId))) | |
242 | 242 | then true | |
243 | 243 | else (toBase58String(value(X.assetId)) != K)) | |
244 | 244 | then throw("Wrong payment asset") | |
245 | 245 | else if (if (aG) | |
246 | 246 | then (Y > (aF + L)) | |
247 | 247 | else false) | |
248 | 248 | then throw("Wrong payment amount to unlock") | |
249 | 249 | else if (if (!(aG)) | |
250 | 250 | then (Y > (aE + L)) | |
251 | 251 | else false) | |
252 | 252 | then throw("Wrong payment amount to mint and unlock") | |
253 | 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)))] | |
254 | 254 | } | |
255 | 255 | } | |
256 | 256 | } | |
257 | 257 | } | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | ||
262 | 262 | @Callable(U) | |
263 | 263 | func confirmLock (x,aH) = if (!(Z)) | |
264 | 264 | then throw("dApp not ready") | |
265 | 265 | else if (aa(U)) | |
266 | 266 | then { | |
267 | 267 | let aD = C(w(x)) | |
268 | 268 | if ((aD != o)) | |
269 | 269 | then throw("NFT not pending") | |
270 | 270 | else { | |
271 | 271 | let aI = C(((y(x, aH) + "_") + o)) | |
272 | 272 | let aJ = ((y(x, aH) + "_") + p) | |
273 | 273 | [DeleteEntry(((y(x, aH) + "_") + o)), StringEntry(aJ, aI), StringEntry(w(x), m)] | |
274 | 274 | } | |
275 | 275 | } | |
276 | 276 | else throw("Not allowed") | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | ||
280 | 280 | @Callable(U) | |
281 | 281 | func unlock (ax,x) = if (!(Z)) | |
282 | 282 | then throw("dApp not ready") | |
283 | 283 | else if (aa(U)) | |
284 | 284 | then { | |
285 | 285 | let aD = C(w(x)) | |
286 | 286 | if ((aD != m)) | |
287 | 287 | then throw("NFT not locked, finalize first if pending") | |
288 | 288 | else [StringEntry(w(x), n), ScriptTransfer(Address(fromBase58String(ax)), 1, fromBase58String(x))] | |
289 | 289 | } | |
290 | 290 | else throw("Not allowed") | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | ||
294 | 294 | @Callable(U) | |
295 | 295 | func appRunning (aK,aL) = if (!(Z)) | |
296 | 296 | then throw("dApp not ready") | |
297 | 297 | else if (aa(U)) | |
298 | 298 | then [BooleanEntry(i, aK), StringEntry(j, aL)] | |
299 | 299 | else throw("You are not allowed to change this") | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | ||
303 | 303 | @Callable(U) | |
304 | 304 | func deleteEntry (aM) = if (aa(U)) | |
305 | 305 | then [DeleteEntry(aM)] | |
306 | 306 | else throw("no") | |
307 | 307 | ||
308 | 308 |
github/deemru/w8io/169f3d6 66.72 ms ◑