tx · BNzNLAeEzKNMkQYn1XieKbmf4VimvZCyd8ykuVTBwDpn 3NA6gug1TT67nGzrAGa36rG5nzTzUGtFQG9: -0.01300000 Waves 2025.01.28 18:59 [3479143] smart account 3NA6gug1TT67nGzrAGa36rG5nzTzUGtFQG9 > SELF 0.00000000 Waves
{ "type": 13, "id": "BNzNLAeEzKNMkQYn1XieKbmf4VimvZCyd8ykuVTBwDpn", "fee": 1300000, "feeAssetId": null, "timestamp": 1738080001325, "version": 2, "chainId": 84, "sender": "3NA6gug1TT67nGzrAGa36rG5nzTzUGtFQG9", "senderPublicKey": "3gX6tHzxt5SFVKDcuDS9r5RxJ9erHrBxGwv3dZoi4SAW", "proofs": [ "2BCFnJVZpdMH2vpquSH1BXrrrDF1GG91uExmA987xSCV7dmA1skK9yXuPHsPd9e7aRnG72Q5wiQqxbrjmGLkSRZp" ], "script": "base64:AAIFAAAAAAAAABYIAhIDCgEIEgASAwoBCBIAEgQKAgEIAAAAGAEAAAAHZ2V0Qm9vbAAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgcBAAAACWlzVGVzdEVudgAAAAAJAQAAAAdnZXRCb29sAAAAAQIAAAAHVEVTVEVOVgEAAAAXc3RhdGljS2V5X29yYWNsZUFkZHJlc3MAAAAAAgAAABRzdGF0aWNfb3JhY2xlQWRkcmVzcwEAAAAWc3RhdGljS2V5X2l0ZW1zQWRkcmVzcwAAAAACAAAAE3N0YXRpY19pdGVtc0FkZHJlc3MBAAAAHnN0YXRpY0tleV9tdXRhbnRGYXJtaW5nQWRkcmVzcwAAAAACAAAAG3N0YXRpY19tdXRhbnRGYXJtaW5nQWRkcmVzcwEAAAASc3RhdGljS2V5X2V4dHJhRmVlAAAAAAIAAAAPc3RhdGljX2V4dHJhRmVlAQAAABdzdGF0aWNLZ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AAAAAAUAAAAKc2Vjb25kVXNlcgAAAAAAAAAAAQMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAApzZWNvbmRVc2VyAAAAAAAAAAABAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAACnNlY29uZFVzZXIAAAAAAAAAAAEAAAAAAAAAAAAEAAAAD3RoaXJkVXNlclNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAl0aGlyZFVzZXIAAAAAAAAAAAEDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAJdGhpcmRVc2VyAAAAAAAAAAABAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAACXRoaXJkVXNlcgAAAAAAAAAAAQAAAAAAAAAAAAQAAAAPc2lnbmF0dXJlc0NvdW50CQAAZAAAAAIJAABkAAAAAgUAAAAPZmlyc3RVc2VyU2lnbmVkBQAAABBzZWNvbmRVc2VyU2lnbmVkBQAAAA90aGlyZFVzZXJTaWduZWQEAAAAByRtYXRjaDAFAAAAAnR4CQAAZwAAAAIFAAAAD3NpZ25hdHVyZXNDb3VudAAAAAAAAAAAAXivPuo=", "height": 3479143, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: nJ8AUT8N1vUDwkfN5ZBmZRQmMMREzxg48wZpUd8r6Vq Next: 5mRRCsVUaXPVqKpSm48sU9papkYbHZCTNBTwV17kemxR Diff:
Old | New | Differences | |
---|---|---|---|
30 | 30 | func j () = "static_feeAggregator" | |
31 | 31 | ||
32 | 32 | ||
33 | - | func k ( | |
33 | + | func k () = "static_scriptMasterAddress" | |
34 | 34 | ||
35 | 35 | ||
36 | - | func | |
36 | + | func l (m,n) = (((m + "_") + n) + "_unstake_height") | |
37 | 37 | ||
38 | 38 | ||
39 | - | func | |
39 | + | func o (m,p) = (((m + "_") + p) + "_owner") | |
40 | 40 | ||
41 | 41 | ||
42 | - | ||
42 | + | func q (p) = ("limit_" + p) | |
43 | 43 | ||
44 | - | func r (b) = { | |
44 | + | ||
45 | + | let r = ["ART-LAKE", "ART-XTREE", "ART-XSOCK", "ART-XMISTL"] | |
46 | + | ||
47 | + | func s (b) = { | |
45 | 48 | let c = getString(this, b) | |
46 | 49 | if ($isInstanceOf(c, "String")) | |
47 | 50 | then { | |
48 | - | let | |
49 | - | | |
51 | + | let t = c | |
52 | + | t | |
50 | 53 | } | |
51 | 54 | else "" | |
52 | 55 | } | |
53 | 56 | ||
54 | 57 | ||
55 | - | func | |
58 | + | func u (b) = { | |
56 | 59 | let c = getInteger(this, b) | |
57 | 60 | if ($isInstanceOf(c, "Int")) | |
58 | 61 | then { | |
59 | - | let | |
60 | - | | |
62 | + | let t = c | |
63 | + | t | |
61 | 64 | } | |
62 | 65 | else 0 | |
63 | 66 | } | |
64 | 67 | ||
65 | 68 | ||
66 | - | func | |
67 | - | let c = getString( | |
69 | + | func v (w,b) = { | |
70 | + | let c = getString(w, b) | |
68 | 71 | if ($isInstanceOf(c, "String")) | |
69 | 72 | then { | |
70 | - | let | |
71 | - | | |
73 | + | let t = c | |
74 | + | t | |
72 | 75 | } | |
73 | 76 | else "" | |
74 | 77 | } | |
75 | 78 | ||
76 | 79 | ||
77 | - | func | |
80 | + | func x () = Address(fromBase58String(s(f()))) | |
78 | 81 | ||
79 | 82 | ||
80 | - | func | |
83 | + | func y () = Address(fromBase58String(v(x(), g()))) | |
81 | 84 | ||
82 | 85 | ||
83 | - | func | |
86 | + | func z () = Address(fromBase58String(v(x(), j()))) | |
84 | 87 | ||
85 | 88 | ||
86 | - | func | |
89 | + | func A () = Address(fromBase58String(v(x(), h()))) | |
87 | 90 | ||
88 | 91 | ||
89 | - | func A (B) = { | |
90 | - | let c = B | |
92 | + | func B () = Address(fromBase58String(v(x(), k()))) | |
93 | + | ||
94 | + | ||
95 | + | func C (D) = { | |
96 | + | let c = D | |
91 | 97 | if ($isInstanceOf(c, "String")) | |
92 | 98 | then { | |
93 | - | let | |
94 | - | | |
99 | + | let E = c | |
100 | + | E | |
95 | 101 | } | |
96 | 102 | else throw("wrong type, expected: String") | |
97 | 103 | } | |
98 | 104 | ||
99 | 105 | ||
100 | - | func | |
101 | - | let c = | |
106 | + | func F (D) = { | |
107 | + | let c = D | |
102 | 108 | if ($isInstanceOf(c, "Int")) | |
103 | 109 | then { | |
104 | - | let | |
105 | - | | |
110 | + | let G = c | |
111 | + | G | |
106 | 112 | } | |
107 | 113 | else throw("wrong type, expected: Int") | |
108 | 114 | } | |
109 | 115 | ||
110 | 116 | ||
111 | - | func | |
117 | + | func H (I) = if (isDefined(I.assetId)) | |
112 | 118 | then throw("WCAP: Please attach waves") | |
113 | 119 | else { | |
114 | - | let | |
115 | - | if (( | |
116 | - | then throw((("WCAP: Please attach exactly " + toString( | |
117 | - | else [ScriptTransfer( | |
120 | + | let J = getIntegerValue(x(), i()) | |
121 | + | if ((I.amount != J)) | |
122 | + | then throw((("WCAP: Please attach exactly " + toString(J)) + " amount of wavelets")) | |
123 | + | else [ScriptTransfer(z(), J, unit)] | |
118 | 124 | } | |
119 | 125 | ||
120 | 126 | ||
121 | - | func | |
122 | - | let | |
123 | - | let | |
124 | - | if ((height > ( | |
127 | + | func K (m,n) = { | |
128 | + | let L = u(l(m, n)) | |
129 | + | let M = 240 | |
130 | + | if ((height > (L + M))) | |
125 | 131 | then false | |
126 | 132 | else true | |
127 | 133 | } | |
128 | 134 | ||
129 | 135 | ||
130 | - | @Callable( | |
131 | - | func configureOracle ( | |
136 | + | @Callable(N) | |
137 | + | func configureOracle (O) = if ((N.caller != this)) | |
132 | 138 | then throw("admin only") | |
133 | - | else [StringEntry(f(), | |
139 | + | else [StringEntry(f(), O)] | |
134 | 140 | ||
135 | 141 | ||
136 | 142 | ||
137 | - | @Callable( | |
143 | + | @Callable(N) | |
138 | 144 | func stakeItem () = { | |
139 | - | let | |
140 | - | if (!(if ((size( | |
141 | - | then ( | |
145 | + | let P = H(N.payments[1]) | |
146 | + | if (!(if ((size(N.payments) == 2)) | |
147 | + | then (N.payments[0].amount == 1) | |
142 | 148 | else false)) | |
143 | 149 | then throw("Invalid payment") | |
144 | 150 | else { | |
145 | - | let | |
146 | - | let | |
147 | - | if (( | |
148 | - | then if (!(containsElement( | |
151 | + | let Q = value(N.payments[0].assetId) | |
152 | + | let m = C(invoke(y(), "checkArtefactDetails", [toBase58String(Q)], nil)) | |
153 | + | if ((m == m)) | |
154 | + | then if (!(containsElement(r, m))) | |
149 | 155 | then throw("You can't stake this artafect") | |
150 | - | else if ( | |
156 | + | else if (K(m, toBase58String(Q))) | |
151 | 157 | then throw("Item can't be staked yet, it's in cooldown") | |
152 | 158 | else { | |
153 | - | let | |
154 | - | let | |
155 | - | if (( | |
156 | - | then throw(("You are already staking " + | |
159 | + | let R = toString(N.caller) | |
160 | + | let n = s(o(m, R)) | |
161 | + | if ((n != "")) | |
162 | + | then throw(("You are already staking " + m)) | |
157 | 163 | else { | |
158 | - | let | |
159 | - | then invoke( | |
160 | - | else if (( | |
161 | - | then invoke( | |
164 | + | let S = if ((m == "ART-LAKE")) | |
165 | + | then invoke(y(), "manipulateBoostAccount", [2, R], nil) | |
166 | + | else if ((m == "ART-XTREE")) | |
167 | + | then invoke(y(), "manipulateBoostAccount", [3, R], nil) | |
162 | 168 | else nil | |
163 | - | if (( | |
164 | - | then ([StringEntry( | |
169 | + | if ((S == S)) | |
170 | + | then ([StringEntry(o(m, R), toBase58String(Q))] ++ P) | |
165 | 171 | else throw("Strict value is not equal to itself.") | |
166 | 172 | } | |
167 | 173 | } | |
171 | 177 | ||
172 | 178 | ||
173 | 179 | ||
174 | - | @Callable( | |
175 | - | func unstakeItem ( | |
176 | - | let | |
177 | - | if (!(containsElement( | |
180 | + | @Callable(N) | |
181 | + | func unstakeItem (m) = { | |
182 | + | let P = H(N.payments[0]) | |
183 | + | if (!(containsElement(r, m))) | |
178 | 184 | then throw("This artefact doesn't exist") | |
179 | 185 | else { | |
180 | - | let | |
181 | - | let | |
186 | + | let R = toString(N.caller) | |
187 | + | let n = s(o(m, R)) | |
182 | 188 | if ((m == "ART-XSOCK")) | |
183 | 189 | then throw("You can not unstake ART-XSOCK anymore") | |
184 | - | else if (( | |
185 | - | then throw(("You didnt stake " + | |
190 | + | else if ((n == "")) | |
191 | + | then throw(("You didnt stake " + m)) | |
186 | 192 | else { | |
187 | - | let | |
188 | - | then invoke( | |
189 | - | else if (( | |
190 | - | then invoke( | |
193 | + | let S = if ((m == "ART-LAKE")) | |
194 | + | then invoke(y(), "manipulateBoostAccount", [-2, R], nil) | |
195 | + | else if ((m == "ART-XTREE")) | |
196 | + | then invoke(y(), "manipulateBoostAccount", [-3, R], nil) | |
191 | 197 | else nil | |
192 | - | if (( | |
193 | - | then ([IntegerEntry( | |
198 | + | if ((S == S)) | |
199 | + | then ([IntegerEntry(l(m, n), height), ScriptTransfer(N.caller, 1, fromBase58String(n)), DeleteEntry(o(m, R))] ++ P) | |
194 | 200 | else throw("Strict value is not equal to itself.") | |
195 | 201 | } | |
196 | 202 | } | |
198 | 204 | ||
199 | 205 | ||
200 | 206 | ||
201 | - | @Callable( | |
207 | + | @Callable(N) | |
202 | 208 | func oneTimeUseFeed () = { | |
203 | - | let | |
204 | - | if (!(if ((size( | |
205 | - | then ( | |
209 | + | let P = H(N.payments[1]) | |
210 | + | if (!(if ((size(N.payments) == 2)) | |
211 | + | then (N.payments[0].amount == 1) | |
206 | 212 | else false)) | |
207 | 213 | then throw("Invalid payment") | |
208 | 214 | else { | |
209 | - | let O = value(L.payments[0].assetId) | |
210 | - | let l = A(invoke(x(), "checkArtefactDetails", [toBase58String(O)], nil)) | |
211 | - | if ((l == l)) | |
212 | - | then if (!(contains(l, "ART-FEED"))) | |
213 | - | then throw("You can't use this artafect to earn feedlimit!") | |
214 | - | else { | |
215 | - | let P = toString(L.caller) | |
216 | - | let R = drop(l, 8) | |
217 | - | let S = parseIntValue(R) | |
218 | - | let T = invoke(z(), "topUpReward", ["FEED", (S / 2)], nil) | |
219 | - | if ((T == T)) | |
220 | - | then ([IntegerEntry(p(P), (t(p(P)) + S)), Burn(O, 1)] ++ N) | |
221 | - | else throw("Strict value is not equal to itself.") | |
222 | - | } | |
215 | + | let Q = value(N.payments[0].assetId) | |
216 | + | let m = C(invoke(y(), "checkArtefactDetails", [toBase58String(Q)], nil)) | |
217 | + | if ((m == m)) | |
218 | + | then { | |
219 | + | let n = s(o("ART-XSOCK", toString(N.caller))) | |
220 | + | if (!(contains(m, "ART-FEED"))) | |
221 | + | then throw("You can't use this artafect to earn feedlimit!") | |
222 | + | else { | |
223 | + | let R = toString(N.caller) | |
224 | + | let T = drop(m, 8) | |
225 | + | let U = parseIntValue(T) | |
226 | + | let V = invoke(A(), "topUpReward", ["FEED", (U / 2)], nil) | |
227 | + | if ((V == V)) | |
228 | + | then { | |
229 | + | let W = if ((n == "")) | |
230 | + | then 0 | |
231 | + | else (U / 10) | |
232 | + | ([IntegerEntry(q(R), ((u(q(R)) + U) + W)), Burn(Q, 1)] ++ P) | |
233 | + | } | |
234 | + | else throw("Strict value is not equal to itself.") | |
235 | + | } | |
236 | + | } | |
223 | 237 | else throw("Strict value is not equal to itself.") | |
224 | 238 | } | |
225 | 239 | } | |
226 | 240 | ||
227 | 241 | ||
228 | 242 | ||
229 | - | @Callable(L) | |
230 | - | func addFeedLimit (R,v) = if ((L.caller != z())) | |
243 | + | @Callable(N) | |
244 | + | func addFeedLimit (T,w) = if (if ((N.caller != A())) | |
245 | + | then (N.caller != B()) | |
246 | + | else false) | |
231 | 247 | then throw("admin only") | |
232 | - | else [IntegerEntry( | |
248 | + | else [IntegerEntry(q(w), (u(q(w)) + T))] | |
233 | 249 | ||
234 | 250 | ||
235 | - | @Verifier( | |
236 | - | func | |
237 | - | then sigVerify( | |
251 | + | @Verifier(X) | |
252 | + | func Y () = if (e()) | |
253 | + | then sigVerify(X.bodyBytes, X.proofs[0], X.senderPublicKey) | |
238 | 254 | else { | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
255 | + | let Z = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
256 | + | let aa = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
257 | + | let ab = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
258 | + | let ac = if (sigVerify(X.bodyBytes, X.proofs[0], Z)) | |
243 | 259 | then 1 | |
244 | - | else if (sigVerify( | |
260 | + | else if (sigVerify(X.bodyBytes, X.proofs[1], Z)) | |
245 | 261 | then 1 | |
246 | - | else if (sigVerify( | |
262 | + | else if (sigVerify(X.bodyBytes, X.proofs[2], Z)) | |
247 | 263 | then 1 | |
248 | 264 | else 0 | |
249 | - | let | |
265 | + | let ad = if (sigVerify(X.bodyBytes, X.proofs[0], aa)) | |
250 | 266 | then 1 | |
251 | - | else if (sigVerify( | |
267 | + | else if (sigVerify(X.bodyBytes, X.proofs[1], aa)) | |
252 | 268 | then 1 | |
253 | - | else if (sigVerify( | |
269 | + | else if (sigVerify(X.bodyBytes, X.proofs[2], aa)) | |
254 | 270 | then 1 | |
255 | 271 | else 0 | |
256 | - | let | |
272 | + | let ae = if (sigVerify(X.bodyBytes, X.proofs[0], ab)) | |
257 | 273 | then 1 | |
258 | - | else if (sigVerify( | |
274 | + | else if (sigVerify(X.bodyBytes, X.proofs[1], ab)) | |
259 | 275 | then 1 | |
260 | - | else if (sigVerify( | |
276 | + | else if (sigVerify(X.bodyBytes, X.proofs[2], ab)) | |
261 | 277 | then 1 | |
262 | 278 | else 0 | |
263 | - | let | |
264 | - | let c = | |
265 | - | ( | |
279 | + | let af = ((ac + ad) + ae) | |
280 | + | let c = X | |
281 | + | (af >= 1) | |
266 | 282 | } | |
267 | 283 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = { | |
5 | 5 | let c = getBoolean(this, b) | |
6 | 6 | if ($isInstanceOf(c, "Boolean")) | |
7 | 7 | then { | |
8 | 8 | let d = c | |
9 | 9 | d | |
10 | 10 | } | |
11 | 11 | else false | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func e () = a("TESTENV") | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func f () = "static_oracleAddress" | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func g () = "static_itemsAddress" | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func h () = "static_mutantFarmingAddress" | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func i () = "static_extraFee" | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func j () = "static_feeAggregator" | |
31 | 31 | ||
32 | 32 | ||
33 | - | func k ( | |
33 | + | func k () = "static_scriptMasterAddress" | |
34 | 34 | ||
35 | 35 | ||
36 | - | func | |
36 | + | func l (m,n) = (((m + "_") + n) + "_unstake_height") | |
37 | 37 | ||
38 | 38 | ||
39 | - | func | |
39 | + | func o (m,p) = (((m + "_") + p) + "_owner") | |
40 | 40 | ||
41 | 41 | ||
42 | - | ||
42 | + | func q (p) = ("limit_" + p) | |
43 | 43 | ||
44 | - | func r (b) = { | |
44 | + | ||
45 | + | let r = ["ART-LAKE", "ART-XTREE", "ART-XSOCK", "ART-XMISTL"] | |
46 | + | ||
47 | + | func s (b) = { | |
45 | 48 | let c = getString(this, b) | |
46 | 49 | if ($isInstanceOf(c, "String")) | |
47 | 50 | then { | |
48 | - | let | |
49 | - | | |
51 | + | let t = c | |
52 | + | t | |
50 | 53 | } | |
51 | 54 | else "" | |
52 | 55 | } | |
53 | 56 | ||
54 | 57 | ||
55 | - | func | |
58 | + | func u (b) = { | |
56 | 59 | let c = getInteger(this, b) | |
57 | 60 | if ($isInstanceOf(c, "Int")) | |
58 | 61 | then { | |
59 | - | let | |
60 | - | | |
62 | + | let t = c | |
63 | + | t | |
61 | 64 | } | |
62 | 65 | else 0 | |
63 | 66 | } | |
64 | 67 | ||
65 | 68 | ||
66 | - | func | |
67 | - | let c = getString( | |
69 | + | func v (w,b) = { | |
70 | + | let c = getString(w, b) | |
68 | 71 | if ($isInstanceOf(c, "String")) | |
69 | 72 | then { | |
70 | - | let | |
71 | - | | |
73 | + | let t = c | |
74 | + | t | |
72 | 75 | } | |
73 | 76 | else "" | |
74 | 77 | } | |
75 | 78 | ||
76 | 79 | ||
77 | - | func | |
80 | + | func x () = Address(fromBase58String(s(f()))) | |
78 | 81 | ||
79 | 82 | ||
80 | - | func | |
83 | + | func y () = Address(fromBase58String(v(x(), g()))) | |
81 | 84 | ||
82 | 85 | ||
83 | - | func | |
86 | + | func z () = Address(fromBase58String(v(x(), j()))) | |
84 | 87 | ||
85 | 88 | ||
86 | - | func | |
89 | + | func A () = Address(fromBase58String(v(x(), h()))) | |
87 | 90 | ||
88 | 91 | ||
89 | - | func A (B) = { | |
90 | - | let c = B | |
92 | + | func B () = Address(fromBase58String(v(x(), k()))) | |
93 | + | ||
94 | + | ||
95 | + | func C (D) = { | |
96 | + | let c = D | |
91 | 97 | if ($isInstanceOf(c, "String")) | |
92 | 98 | then { | |
93 | - | let | |
94 | - | | |
99 | + | let E = c | |
100 | + | E | |
95 | 101 | } | |
96 | 102 | else throw("wrong type, expected: String") | |
97 | 103 | } | |
98 | 104 | ||
99 | 105 | ||
100 | - | func | |
101 | - | let c = | |
106 | + | func F (D) = { | |
107 | + | let c = D | |
102 | 108 | if ($isInstanceOf(c, "Int")) | |
103 | 109 | then { | |
104 | - | let | |
105 | - | | |
110 | + | let G = c | |
111 | + | G | |
106 | 112 | } | |
107 | 113 | else throw("wrong type, expected: Int") | |
108 | 114 | } | |
109 | 115 | ||
110 | 116 | ||
111 | - | func | |
117 | + | func H (I) = if (isDefined(I.assetId)) | |
112 | 118 | then throw("WCAP: Please attach waves") | |
113 | 119 | else { | |
114 | - | let | |
115 | - | if (( | |
116 | - | then throw((("WCAP: Please attach exactly " + toString( | |
117 | - | else [ScriptTransfer( | |
120 | + | let J = getIntegerValue(x(), i()) | |
121 | + | if ((I.amount != J)) | |
122 | + | then throw((("WCAP: Please attach exactly " + toString(J)) + " amount of wavelets")) | |
123 | + | else [ScriptTransfer(z(), J, unit)] | |
118 | 124 | } | |
119 | 125 | ||
120 | 126 | ||
121 | - | func | |
122 | - | let | |
123 | - | let | |
124 | - | if ((height > ( | |
127 | + | func K (m,n) = { | |
128 | + | let L = u(l(m, n)) | |
129 | + | let M = 240 | |
130 | + | if ((height > (L + M))) | |
125 | 131 | then false | |
126 | 132 | else true | |
127 | 133 | } | |
128 | 134 | ||
129 | 135 | ||
130 | - | @Callable( | |
131 | - | func configureOracle ( | |
136 | + | @Callable(N) | |
137 | + | func configureOracle (O) = if ((N.caller != this)) | |
132 | 138 | then throw("admin only") | |
133 | - | else [StringEntry(f(), | |
139 | + | else [StringEntry(f(), O)] | |
134 | 140 | ||
135 | 141 | ||
136 | 142 | ||
137 | - | @Callable( | |
143 | + | @Callable(N) | |
138 | 144 | func stakeItem () = { | |
139 | - | let | |
140 | - | if (!(if ((size( | |
141 | - | then ( | |
145 | + | let P = H(N.payments[1]) | |
146 | + | if (!(if ((size(N.payments) == 2)) | |
147 | + | then (N.payments[0].amount == 1) | |
142 | 148 | else false)) | |
143 | 149 | then throw("Invalid payment") | |
144 | 150 | else { | |
145 | - | let | |
146 | - | let | |
147 | - | if (( | |
148 | - | then if (!(containsElement( | |
151 | + | let Q = value(N.payments[0].assetId) | |
152 | + | let m = C(invoke(y(), "checkArtefactDetails", [toBase58String(Q)], nil)) | |
153 | + | if ((m == m)) | |
154 | + | then if (!(containsElement(r, m))) | |
149 | 155 | then throw("You can't stake this artafect") | |
150 | - | else if ( | |
156 | + | else if (K(m, toBase58String(Q))) | |
151 | 157 | then throw("Item can't be staked yet, it's in cooldown") | |
152 | 158 | else { | |
153 | - | let | |
154 | - | let | |
155 | - | if (( | |
156 | - | then throw(("You are already staking " + | |
159 | + | let R = toString(N.caller) | |
160 | + | let n = s(o(m, R)) | |
161 | + | if ((n != "")) | |
162 | + | then throw(("You are already staking " + m)) | |
157 | 163 | else { | |
158 | - | let | |
159 | - | then invoke( | |
160 | - | else if (( | |
161 | - | then invoke( | |
164 | + | let S = if ((m == "ART-LAKE")) | |
165 | + | then invoke(y(), "manipulateBoostAccount", [2, R], nil) | |
166 | + | else if ((m == "ART-XTREE")) | |
167 | + | then invoke(y(), "manipulateBoostAccount", [3, R], nil) | |
162 | 168 | else nil | |
163 | - | if (( | |
164 | - | then ([StringEntry( | |
169 | + | if ((S == S)) | |
170 | + | then ([StringEntry(o(m, R), toBase58String(Q))] ++ P) | |
165 | 171 | else throw("Strict value is not equal to itself.") | |
166 | 172 | } | |
167 | 173 | } | |
168 | 174 | else throw("Strict value is not equal to itself.") | |
169 | 175 | } | |
170 | 176 | } | |
171 | 177 | ||
172 | 178 | ||
173 | 179 | ||
174 | - | @Callable( | |
175 | - | func unstakeItem ( | |
176 | - | let | |
177 | - | if (!(containsElement( | |
180 | + | @Callable(N) | |
181 | + | func unstakeItem (m) = { | |
182 | + | let P = H(N.payments[0]) | |
183 | + | if (!(containsElement(r, m))) | |
178 | 184 | then throw("This artefact doesn't exist") | |
179 | 185 | else { | |
180 | - | let | |
181 | - | let | |
186 | + | let R = toString(N.caller) | |
187 | + | let n = s(o(m, R)) | |
182 | 188 | if ((m == "ART-XSOCK")) | |
183 | 189 | then throw("You can not unstake ART-XSOCK anymore") | |
184 | - | else if (( | |
185 | - | then throw(("You didnt stake " + | |
190 | + | else if ((n == "")) | |
191 | + | then throw(("You didnt stake " + m)) | |
186 | 192 | else { | |
187 | - | let | |
188 | - | then invoke( | |
189 | - | else if (( | |
190 | - | then invoke( | |
193 | + | let S = if ((m == "ART-LAKE")) | |
194 | + | then invoke(y(), "manipulateBoostAccount", [-2, R], nil) | |
195 | + | else if ((m == "ART-XTREE")) | |
196 | + | then invoke(y(), "manipulateBoostAccount", [-3, R], nil) | |
191 | 197 | else nil | |
192 | - | if (( | |
193 | - | then ([IntegerEntry( | |
198 | + | if ((S == S)) | |
199 | + | then ([IntegerEntry(l(m, n), height), ScriptTransfer(N.caller, 1, fromBase58String(n)), DeleteEntry(o(m, R))] ++ P) | |
194 | 200 | else throw("Strict value is not equal to itself.") | |
195 | 201 | } | |
196 | 202 | } | |
197 | 203 | } | |
198 | 204 | ||
199 | 205 | ||
200 | 206 | ||
201 | - | @Callable( | |
207 | + | @Callable(N) | |
202 | 208 | func oneTimeUseFeed () = { | |
203 | - | let | |
204 | - | if (!(if ((size( | |
205 | - | then ( | |
209 | + | let P = H(N.payments[1]) | |
210 | + | if (!(if ((size(N.payments) == 2)) | |
211 | + | then (N.payments[0].amount == 1) | |
206 | 212 | else false)) | |
207 | 213 | then throw("Invalid payment") | |
208 | 214 | else { | |
209 | - | let O = value(L.payments[0].assetId) | |
210 | - | let l = A(invoke(x(), "checkArtefactDetails", [toBase58String(O)], nil)) | |
211 | - | if ((l == l)) | |
212 | - | then if (!(contains(l, "ART-FEED"))) | |
213 | - | then throw("You can't use this artafect to earn feedlimit!") | |
214 | - | else { | |
215 | - | let P = toString(L.caller) | |
216 | - | let R = drop(l, 8) | |
217 | - | let S = parseIntValue(R) | |
218 | - | let T = invoke(z(), "topUpReward", ["FEED", (S / 2)], nil) | |
219 | - | if ((T == T)) | |
220 | - | then ([IntegerEntry(p(P), (t(p(P)) + S)), Burn(O, 1)] ++ N) | |
221 | - | else throw("Strict value is not equal to itself.") | |
222 | - | } | |
215 | + | let Q = value(N.payments[0].assetId) | |
216 | + | let m = C(invoke(y(), "checkArtefactDetails", [toBase58String(Q)], nil)) | |
217 | + | if ((m == m)) | |
218 | + | then { | |
219 | + | let n = s(o("ART-XSOCK", toString(N.caller))) | |
220 | + | if (!(contains(m, "ART-FEED"))) | |
221 | + | then throw("You can't use this artafect to earn feedlimit!") | |
222 | + | else { | |
223 | + | let R = toString(N.caller) | |
224 | + | let T = drop(m, 8) | |
225 | + | let U = parseIntValue(T) | |
226 | + | let V = invoke(A(), "topUpReward", ["FEED", (U / 2)], nil) | |
227 | + | if ((V == V)) | |
228 | + | then { | |
229 | + | let W = if ((n == "")) | |
230 | + | then 0 | |
231 | + | else (U / 10) | |
232 | + | ([IntegerEntry(q(R), ((u(q(R)) + U) + W)), Burn(Q, 1)] ++ P) | |
233 | + | } | |
234 | + | else throw("Strict value is not equal to itself.") | |
235 | + | } | |
236 | + | } | |
223 | 237 | else throw("Strict value is not equal to itself.") | |
224 | 238 | } | |
225 | 239 | } | |
226 | 240 | ||
227 | 241 | ||
228 | 242 | ||
229 | - | @Callable(L) | |
230 | - | func addFeedLimit (R,v) = if ((L.caller != z())) | |
243 | + | @Callable(N) | |
244 | + | func addFeedLimit (T,w) = if (if ((N.caller != A())) | |
245 | + | then (N.caller != B()) | |
246 | + | else false) | |
231 | 247 | then throw("admin only") | |
232 | - | else [IntegerEntry( | |
248 | + | else [IntegerEntry(q(w), (u(q(w)) + T))] | |
233 | 249 | ||
234 | 250 | ||
235 | - | @Verifier( | |
236 | - | func | |
237 | - | then sigVerify( | |
251 | + | @Verifier(X) | |
252 | + | func Y () = if (e()) | |
253 | + | then sigVerify(X.bodyBytes, X.proofs[0], X.senderPublicKey) | |
238 | 254 | else { | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
255 | + | let Z = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
256 | + | let aa = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
257 | + | let ab = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
258 | + | let ac = if (sigVerify(X.bodyBytes, X.proofs[0], Z)) | |
243 | 259 | then 1 | |
244 | - | else if (sigVerify( | |
260 | + | else if (sigVerify(X.bodyBytes, X.proofs[1], Z)) | |
245 | 261 | then 1 | |
246 | - | else if (sigVerify( | |
262 | + | else if (sigVerify(X.bodyBytes, X.proofs[2], Z)) | |
247 | 263 | then 1 | |
248 | 264 | else 0 | |
249 | - | let | |
265 | + | let ad = if (sigVerify(X.bodyBytes, X.proofs[0], aa)) | |
250 | 266 | then 1 | |
251 | - | else if (sigVerify( | |
267 | + | else if (sigVerify(X.bodyBytes, X.proofs[1], aa)) | |
252 | 268 | then 1 | |
253 | - | else if (sigVerify( | |
269 | + | else if (sigVerify(X.bodyBytes, X.proofs[2], aa)) | |
254 | 270 | then 1 | |
255 | 271 | else 0 | |
256 | - | let | |
272 | + | let ae = if (sigVerify(X.bodyBytes, X.proofs[0], ab)) | |
257 | 273 | then 1 | |
258 | - | else if (sigVerify( | |
274 | + | else if (sigVerify(X.bodyBytes, X.proofs[1], ab)) | |
259 | 275 | then 1 | |
260 | - | else if (sigVerify( | |
276 | + | else if (sigVerify(X.bodyBytes, X.proofs[2], ab)) | |
261 | 277 | then 1 | |
262 | 278 | else 0 | |
263 | - | let | |
264 | - | let c = | |
265 | - | ( | |
279 | + | let af = ((ac + ad) + ae) | |
280 | + | let c = X | |
281 | + | (af >= 1) | |
266 | 282 | } | |
267 | 283 |
github/deemru/w8io/169f3d6 74.76 ms ◑