tx · 4iHebNf6aNwdP6orw8yEaqwdA1a9LTAZeyHbUbxYWudK 3N1oZwpYE3p4x63jWiKpszmfLU3Lk3KtSWe: -0.01200000 Waves 2024.10.07 20:25 [3316720] smart account 3N1oZwpYE3p4x63jWiKpszmfLU3Lk3KtSWe > SELF 0.00000000 Waves
{ "type": 13, "id": "4iHebNf6aNwdP6orw8yEaqwdA1a9LTAZeyHbUbxYWudK", "fee": 1200000, "feeAssetId": null, "timestamp": 1728321934647, "version": 2, "chainId": 84, "sender": "3N1oZwpYE3p4x63jWiKpszmfLU3Lk3KtSWe", "senderPublicKey": "CqqNd9FdJdY64okp1oAAQ8z3kyrEcd6UKxtboqZgrSaP", "proofs": [ "2Q5ikqTaH6ZZeVdGN6vq8eGSiXE39Ms28ZdYbQoUyQBNxFLaRRtppD3AXmQvFQsiDjWtcGwFxYGzTKRXjv2njwF7" ], "script": "base64:BgIRCAISAwoBCBIAEgQKAgQIEgAXAQdnZXRCb29sAQNrZXkEByRtYXRjaDAJAJsIAgUEdGhpcwUDa2V5AwkAAQIFByRtYXRjaDACB0Jvb2xlYW4EAWIFByRtYXRjaDAFAWIHAQlpc1Rlc3RFbnYACQEHZ2V0Qm9vbAECB1RFU1RFTlYBF3N0YXRpY0tleV9vcmFjbGVBZGRyZXNzAAIUc3RhdGljX29yYWNsZUFkZHJlc3MBGHN0YXRpY0tleV9icmVlZGVyQWRkcmVzcwACFXN0YXRpY19icmVlZGVyQWRkcmVzcwEWc3RhdGljS2V5X2l0ZW1zQWRkcmVzcwACE3N0YXRpY19pdGVtc0FkZHJlc3MBEnN0YXRpY0tleV9leHRyYUZlZQACD3N0YXRpY19leHRyYUZlZQEYc3RhdGljS2V5X2V4dHJhRmVlUmVtb3ZlAAIVc3RhdGljX2V4dHJhRmVlUmVtb3ZlARdzdGF0aWNLZXlfZmVlQWdncmVnYXRvcgACFHN0YXRpY19mZWVBZ2dyZWdhdG9yAAl3ZWFyYWJsZXMJAMwIAgIIQVJULUNBUEUJAM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FAnR4CQBnAgUPc2lnbmF0dXJlc0NvdW50AALeIUoS", "height": 3316720, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: EnKXPiVbchaW82oGzZ23AuJYdyGQmfLVwfgFniQj4G8C Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = { | |
5 | + | let c = getBoolean(this, b) | |
6 | + | if ($isInstanceOf(c, "Boolean")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else false | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | func e () = a("TESTENV") | |
16 | + | ||
17 | + | ||
18 | + | func f () = "static_oracleAddress" | |
19 | + | ||
20 | + | ||
21 | + | func g () = "static_breederAddress" | |
22 | + | ||
23 | + | ||
24 | + | func h () = "static_itemsAddress" | |
25 | + | ||
26 | + | ||
27 | + | func i () = "static_extraFee" | |
28 | + | ||
29 | + | ||
30 | + | func j () = "static_extraFeeRemove" | |
31 | + | ||
32 | + | ||
33 | + | func k () = "static_feeAggregator" | |
34 | + | ||
35 | + | ||
36 | + | let l = ["ART-CAPE", "ART-HAT", "ART-XSCARF", "ART-XSWEATER"] | |
37 | + | ||
38 | + | func m (n,o) = ((n + "_") + o) | |
39 | + | ||
40 | + | ||
41 | + | func p (n,q) = ((n + "_") + q) | |
42 | + | ||
43 | + | ||
44 | + | func r (s,b) = { | |
45 | + | let c = getString(s, b) | |
46 | + | if ($isInstanceOf(c, "String")) | |
47 | + | then { | |
48 | + | let t = c | |
49 | + | t | |
50 | + | } | |
51 | + | else "" | |
52 | + | } | |
53 | + | ||
54 | + | ||
55 | + | func u (b) = r(this, b) | |
56 | + | ||
57 | + | ||
58 | + | func v (w) = { | |
59 | + | let c = w | |
60 | + | if ($isInstanceOf(c, "Int")) | |
61 | + | then { | |
62 | + | let x = c | |
63 | + | x | |
64 | + | } | |
65 | + | else throw("wrong type, expected: Int") | |
66 | + | } | |
67 | + | ||
68 | + | ||
69 | + | func y (w) = { | |
70 | + | let c = w | |
71 | + | if ($isInstanceOf(c, "String")) | |
72 | + | then { | |
73 | + | let z = c | |
74 | + | z | |
75 | + | } | |
76 | + | else throw("wrong type, expected: String") | |
77 | + | } | |
78 | + | ||
79 | + | ||
80 | + | func A () = Address(fromBase58String(u(f()))) | |
81 | + | ||
82 | + | ||
83 | + | func B () = Address(fromBase58String(r(A(), g()))) | |
84 | + | ||
85 | + | ||
86 | + | func C () = Address(fromBase58String(r(A(), h()))) | |
87 | + | ||
88 | + | ||
89 | + | func D () = Address(fromBase58String(r(A(), k()))) | |
90 | + | ||
91 | + | ||
92 | + | func E (F,G) = if (isDefined(F.assetId)) | |
93 | + | then throw("WCAP: Please attach waves") | |
94 | + | else { | |
95 | + | let H = if ((G != 0)) | |
96 | + | then G | |
97 | + | else getIntegerValue(A(), i()) | |
98 | + | if ((F.amount != H)) | |
99 | + | then throw((("WCAP: Please attach exactly " + toString(H)) + " amount of wavelets")) | |
100 | + | else [ScriptTransfer(D(), H, unit)] | |
101 | + | } | |
102 | + | ||
103 | + | ||
104 | + | func I (J) = { | |
105 | + | let b = ("direct_cosmetic_" + J) | |
106 | + | let c = getInteger(C(), b) | |
107 | + | if ($isInstanceOf(c, "Int")) | |
108 | + | then { | |
109 | + | let t = c | |
110 | + | t | |
111 | + | } | |
112 | + | else unit | |
113 | + | } | |
114 | + | ||
115 | + | ||
116 | + | func K (o) = r(C(), ("type_cosmetic_" + o)) | |
117 | + | ||
118 | + | ||
119 | + | func L (M,n) = { | |
120 | + | let N = y(invoke(C(), "checkArtefactDetails", [M], nil)) | |
121 | + | if ((N == N)) | |
122 | + | then if (if (!(containsElement(l, N))) | |
123 | + | then !(isDefined(I(N))) | |
124 | + | else false) | |
125 | + | then throw("WRITD: Unsupported wearable") | |
126 | + | else { | |
127 | + | let O = u(m(n, N)) | |
128 | + | let P = if ((N == "ART-XSCARF")) | |
129 | + | then invoke(C(), "manipulateBoost", [69, n], nil) | |
130 | + | else nil | |
131 | + | if ((P == P)) | |
132 | + | then if ((O != "")) | |
133 | + | then throw(("Duck is already wearing a " + N)) | |
134 | + | else { | |
135 | + | let q = K(N) | |
136 | + | let Q = if ((q != "")) | |
137 | + | then (u(p(n, q)) != "") | |
138 | + | else throw(("Type undefined, please contact admins " + N)) | |
139 | + | if (Q) | |
140 | + | then throw("You can only attach 1 from each type to your duck!") | |
141 | + | else { | |
142 | + | let R = if ((q != "")) | |
143 | + | then [StringEntry(p(n, q), M)] | |
144 | + | else nil | |
145 | + | ([StringEntry(m(n, N), M)] ++ R) | |
146 | + | } | |
147 | + | } | |
148 | + | else throw("Strict value is not equal to itself.") | |
149 | + | } | |
150 | + | else throw("Strict value is not equal to itself.") | |
151 | + | } | |
152 | + | ||
153 | + | ||
154 | + | @Callable(S) | |
155 | + | func configureOracle (T) = if ((S.caller != this)) | |
156 | + | then throw("admin only") | |
157 | + | else [StringEntry(f(), T)] | |
158 | + | ||
159 | + | ||
160 | + | ||
161 | + | @Callable(S) | |
162 | + | func wearItemToDuck () = { | |
163 | + | let U = value(S.payments[0]) | |
164 | + | let V = value(S.payments[1]) | |
165 | + | let W = E(S.payments[2], 0) | |
166 | + | let n = toBase58String(value(U.assetId)) | |
167 | + | let X = toBase58String(value(V.assetId)) | |
168 | + | if (if ((U.amount != 1)) | |
169 | + | then true | |
170 | + | else (V.amount != 1)) | |
171 | + | then throw("WRITD: NFT is not attached") | |
172 | + | else { | |
173 | + | let Y = v(invoke(B(), "validateAndGetChildren", [n], nil)) | |
174 | + | if ((Y == Y)) | |
175 | + | then ((L(X, n) ++ [ScriptTransfer(S.caller, 1, U.assetId)]) ++ W) | |
176 | + | else throw("Strict value is not equal to itself.") | |
177 | + | } | |
178 | + | } | |
179 | + | ||
180 | + | ||
181 | + | ||
182 | + | @Callable(S) | |
183 | + | func removeItemFromDuck (Z,N) = { | |
184 | + | let aa = if (Z) | |
185 | + | then 0 | |
186 | + | else getIntegerValue(A(), j()) | |
187 | + | let ab = value(S.payments[0]) | |
188 | + | let ac = value(S.payments[1]) | |
189 | + | let W = E(S.payments[2], aa) | |
190 | + | let n = toBase58String(value(ab.assetId)) | |
191 | + | let ad = toBase58String(value(ac.assetId)) | |
192 | + | if (if ((ab.amount != 1)) | |
193 | + | then true | |
194 | + | else (ac.amount != 1)) | |
195 | + | then throw("WRITD: NFT is not attached") | |
196 | + | else { | |
197 | + | let Y = v(invoke(B(), "validateAndGetChildren", [n], nil)) | |
198 | + | if ((Y == Y)) | |
199 | + | then { | |
200 | + | let ae = y(invoke(C(), "checkArtefactDetails", [ad], nil)) | |
201 | + | if ((ae == ae)) | |
202 | + | then if ((ae != "ART-ROBODUCK")) | |
203 | + | then throw("Only rododuck can remove items!") | |
204 | + | else if (if (!(containsElement(l, N))) | |
205 | + | then !(isDefined(I(N))) | |
206 | + | else false) | |
207 | + | then throw("WRITD: Unsupported wearable") | |
208 | + | else { | |
209 | + | let O = u(m(n, N)) | |
210 | + | let P = if ((N == "ART-XSCARF")) | |
211 | + | then invoke(C(), "manipulateBoost", [69, n], nil) | |
212 | + | else nil | |
213 | + | if ((P == P)) | |
214 | + | then if ((O == "")) | |
215 | + | then throw(("Duck not wearing a " + N)) | |
216 | + | else { | |
217 | + | let q = K(N) | |
218 | + | let R = if ((q != "")) | |
219 | + | then [DeleteEntry(p(n, q))] | |
220 | + | else nil | |
221 | + | let af = if (Z) | |
222 | + | then [Burn(fromBase58String(O), 1)] | |
223 | + | else [ScriptTransfer(S.caller, 1, fromBase58String(O))] | |
224 | + | ((([DeleteEntry(m(n, N)), ScriptTransfer(S.caller, 1, ab.assetId), Burn(fromBase58String(ad), 1)] ++ af) ++ W) ++ R) | |
225 | + | } | |
226 | + | else throw("Strict value is not equal to itself.") | |
227 | + | } | |
228 | + | else throw("Strict value is not equal to itself.") | |
229 | + | } | |
230 | + | else throw("Strict value is not equal to itself.") | |
231 | + | } | |
232 | + | } | |
233 | + | ||
234 | + | ||
235 | + | ||
236 | + | @Callable(S) | |
237 | + | func wearXItemsToDuck () = { | |
238 | + | let W = E(S.payments[1], 0) | |
239 | + | if ((3 > size(S.payments))) | |
240 | + | then throw("WWXITD: Please attach at least 1 item and 1 duck!") | |
241 | + | else if ((size(S.payments) > 7)) | |
242 | + | then throw("WWXITD: You can only attach 5 items and one duck!") | |
243 | + | else { | |
244 | + | func ag (ah,F) = { | |
245 | + | let ai = indexOf(S.payments, F) | |
246 | + | if ((ai == 0)) | |
247 | + | then { | |
248 | + | let n = toBase58String(value(F.assetId)) | |
249 | + | if ((F.amount != 1)) | |
250 | + | then throw("WRITD: Duck is not attached") | |
251 | + | else { | |
252 | + | let Y = v(invoke(B(), "validateAndGetChildren", [n], nil)) | |
253 | + | if ((Y == Y)) | |
254 | + | then (ah ++ [ScriptTransfer(S.caller, 1, F.assetId)]) | |
255 | + | else throw("Strict value is not equal to itself.") | |
256 | + | } | |
257 | + | } | |
258 | + | else (ah ++ L(toBase58String(value(F.assetId)), toBase58String(value(S.payments[1].assetId)))) | |
259 | + | } | |
260 | + | ||
261 | + | ({ | |
262 | + | let aj = S.payments | |
263 | + | let ak = size(aj) | |
264 | + | let al = nil | |
265 | + | func am (an,ao) = if ((ao >= ak)) | |
266 | + | then an | |
267 | + | else ag(an, aj[ao]) | |
268 | + | ||
269 | + | func ap (an,ao) = if ((ao >= ak)) | |
270 | + | then an | |
271 | + | else throw("List size exceeds 6") | |
272 | + | ||
273 | + | ap(am(am(am(am(am(am(al, 0), 1), 2), 3), 4), 5), 6) | |
274 | + | } ++ W) | |
275 | + | } | |
276 | + | } | |
277 | + | ||
278 | + | ||
279 | + | @Verifier(aq) | |
280 | + | func ar () = if (e()) | |
281 | + | then sigVerify(aq.bodyBytes, aq.proofs[0], aq.senderPublicKey) | |
282 | + | else { | |
283 | + | let as = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
284 | + | let at = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
285 | + | let au = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
286 | + | let av = if (sigVerify(aq.bodyBytes, aq.proofs[0], as)) | |
287 | + | then 1 | |
288 | + | else if (sigVerify(aq.bodyBytes, aq.proofs[1], as)) | |
289 | + | then 1 | |
290 | + | else if (sigVerify(aq.bodyBytes, aq.proofs[2], as)) | |
291 | + | then 1 | |
292 | + | else 0 | |
293 | + | let aw = if (sigVerify(aq.bodyBytes, aq.proofs[0], at)) | |
294 | + | then 1 | |
295 | + | else if (sigVerify(aq.bodyBytes, aq.proofs[1], at)) | |
296 | + | then 1 | |
297 | + | else if (sigVerify(aq.bodyBytes, aq.proofs[2], at)) | |
298 | + | then 1 | |
299 | + | else 0 | |
300 | + | let ax = if (sigVerify(aq.bodyBytes, aq.proofs[0], au)) | |
301 | + | then 1 | |
302 | + | else if (sigVerify(aq.bodyBytes, aq.proofs[1], au)) | |
303 | + | then 1 | |
304 | + | else if (sigVerify(aq.bodyBytes, aq.proofs[2], au)) | |
305 | + | then 1 | |
306 | + | else 0 | |
307 | + | let ay = ((av + aw) + ax) | |
308 | + | let c = aq | |
309 | + | (ay >= 2) | |
310 | + | } | |
311 | + |
github/deemru/w8io/169f3d6 20.13 ms ◑