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