tx · 9yS2XqdA2CSaP83fdiEnXmLdKDuMuwtToZQYyBcSvyHr 3MqV2hxYA4F3eyVzMPfpPXkmvQMVjhWJ2Zz: -0.01400000 Waves 2022.05.11 10:46 [2046722] smart account 3MqV2hxYA4F3eyVzMPfpPXkmvQMVjhWJ2Zz > SELF 0.00000000 Waves
{ "type": 13, "id": "9yS2XqdA2CSaP83fdiEnXmLdKDuMuwtToZQYyBcSvyHr", "fee": 1400000, "feeAssetId": null, "timestamp": 1652255183509, "version": 1, "sender": "3MqV2hxYA4F3eyVzMPfpPXkmvQMVjhWJ2Zz", "senderPublicKey": "E7cYpzqL1fF9VQjL3m4zr3xXfV289rCkrfE2fJyAHMqR", "proofs": [ "52FtRE9ZwMsTHc7YoaKc9TA3fpD8FjVqMSorKb2ij7ZByy2xsLGHy8Qj5wLoAUZzP4BQYkh8CpqopvEPR33jke8b" ], "script": "base64:AAIFAAAAAAAAACwIAhIDCgEIEgASBAoCCAESAwoBCBIDCgEIEgASAwoBCBIDCgEIEgMKAQgSAAAAABYAAAAAA1NFUAIAAAACX18BAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAAAgAAABQlc19fbWFuYWdlclB1YmxpY0tleQEAAAAaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkAAAAAAgAAABslc19fcGVuZGluZ01hbmFnZXJQdWJsaWNLZXkBAAAAB2tleVVzZXIAAAABAAAAB2FkZHJlc3MJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACBQAAAAdhZGRyZXNzBQAAAANuaWwFAAAAA1NFUAEAAAAKa2V5UmV2b2tlZAAAAAEAAAAHYWRkcmVzcwkABLkAAAACCQAETAAAAAICAAAABCVzJXMJAARMAAAAAgIAAAAHcmV2b2tlZAkABEwAAAACBQAAAAdhZGRyZXNzBQAAAANuaWwFAAAAA1NFUAEAAAAPa2V5UmV2b2tlZFRvdGFsAAAAAAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAADHJld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CAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXlER8N3", "chainId": 84, "height": 2046722, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6iMHavscDYT1uv5PncfW99MvxNABQqhdJrK4XiQGg6T4 Next: 2kzrXNWzegKLHKwoncomvnTN24jjNMap3gMtsR3uPXtP Diff:
Old | New | Differences | |
---|---|---|---|
117 | 117 | ||
118 | 118 | ||
119 | 119 | func K (e) = { | |
120 | - | let L = | |
120 | + | let L = addressFromStringValue(e) | |
121 | 121 | let M = fromBase58String(value(getString(k()))) | |
122 | 122 | let N = F(e) | |
123 | 123 | let O = if ((N != 0)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | func b () = "%s__managerPublicKey" | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func c () = "%s__pendingManagerPublicKey" | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func d (e) = makeString(["%s", e], a) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f (e) = makeString(["%s%s", "revoked", e], a) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func g () = makeString(["%s", "revokedTotal"], a) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func h (e) = makeString(["%s%s", "vestingStart", e], a) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func i (e) = makeString(["%s%s", "vestingEnd", e], a) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func j (e) = makeString(["%s%s", "amountPerBlock", e], a) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func k () = makeString(["%s", "wxAssetId"], a) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func l (m) = throw(makeString(["vesting.ride:", m], " ")) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func n () = { | |
37 | 37 | let o = getString(b()) | |
38 | 38 | if ($isInstanceOf(o, "String")) | |
39 | 39 | then { | |
40 | 40 | let p = o | |
41 | 41 | fromBase58String(p) | |
42 | 42 | } | |
43 | 43 | else if ($isInstanceOf(o, "Unit")) | |
44 | 44 | then unit | |
45 | 45 | else throw("Match error") | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func q () = { | |
50 | 50 | let o = getString(c()) | |
51 | 51 | if ($isInstanceOf(o, "String")) | |
52 | 52 | then { | |
53 | 53 | let p = o | |
54 | 54 | fromBase58String(p) | |
55 | 55 | } | |
56 | 56 | else if ($isInstanceOf(o, "Unit")) | |
57 | 57 | then unit | |
58 | 58 | else throw("Match error") | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func r (s) = { | |
63 | 63 | let t = l("permission denied") | |
64 | 64 | let o = n() | |
65 | 65 | if ($isInstanceOf(o, "ByteVector")) | |
66 | 66 | then { | |
67 | 67 | let u = o | |
68 | 68 | if ((s.callerPublicKey == u)) | |
69 | 69 | then true | |
70 | 70 | else t | |
71 | 71 | } | |
72 | 72 | else if ($isInstanceOf(o, "Unit")) | |
73 | 73 | then if ((s.caller == this)) | |
74 | 74 | then true | |
75 | 75 | else t | |
76 | 76 | else throw("Match error") | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func v (w,x,y,z) = makeString(["%d%d%d%d%d", w, x, "0", y, z], a) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func A (w,x,y,z) = v(toString(w), toString(x), toString(y), toString(z)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func B (e) = parseIntValue(split(value(getString(d(e))), a)[1]) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func C (e) = parseIntValue(split(value(getString(d(e))), a)[2]) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func D (e) = parseIntValue(split(value(getString(d(e))), a)[3]) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func E (e) = parseIntValue(split(value(getString(d(e))), a)[5]) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func F (e) = { | |
99 | 99 | let G = valueOrElse(getBoolean(f(e)), false) | |
100 | 100 | if (G) | |
101 | 101 | then C(e) | |
102 | 102 | else { | |
103 | 103 | let H = E(e) | |
104 | 104 | if ((H >= height)) | |
105 | 105 | then 0 | |
106 | 106 | else { | |
107 | 107 | let I = value(getInteger(i(e))) | |
108 | 108 | if ((height > I)) | |
109 | 109 | then C(e) | |
110 | 110 | else { | |
111 | 111 | let J = (height - H) | |
112 | 112 | (value(getInteger(j(e))) * J) | |
113 | 113 | } | |
114 | 114 | } | |
115 | 115 | } | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func K (e) = { | |
120 | - | let L = | |
120 | + | let L = addressFromStringValue(e) | |
121 | 121 | let M = fromBase58String(value(getString(k()))) | |
122 | 122 | let N = F(e) | |
123 | 123 | let O = if ((N != 0)) | |
124 | 124 | then true | |
125 | 125 | else l("nothing to claim") | |
126 | 126 | if ((O == O)) | |
127 | 127 | then { | |
128 | 128 | let w = B(e) | |
129 | 129 | let x = C(e) | |
130 | 130 | let y = D(e) | |
131 | 131 | let G = valueOrElse(getBoolean(f(e)), false) | |
132 | 132 | if (G) | |
133 | 133 | then [ScriptTransfer(L, x, M), StringEntry(d(e), A(w, 0, (y + x), height))] | |
134 | 134 | else [ScriptTransfer(L, N, M), StringEntry(d(e), A(w, (x - N), (y + N), height))] | |
135 | 135 | } | |
136 | 136 | else throw("Strict value is not equal to itself.") | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(s) | |
141 | 141 | func constructor (P) = { | |
142 | 142 | let Q = r(s) | |
143 | 143 | if ((Q == Q)) | |
144 | 144 | then [StringEntry(k(), P)] | |
145 | 145 | else throw("Strict value is not equal to itself.") | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | ||
150 | 150 | @Callable(s) | |
151 | 151 | func withdrawRevoked () = { | |
152 | 152 | let N = valueOrElse(getInteger(g()), 0) | |
153 | 153 | let M = fromBase58String(value(getString(k()))) | |
154 | 154 | let R = [r(s), if ((N > 0)) | |
155 | 155 | then true | |
156 | 156 | else l("revoked amount is zero, nothing to withdraw")] | |
157 | 157 | if ((R == R)) | |
158 | 158 | then [ScriptTransfer(s.caller, N, M), IntegerEntry(g(), 0)] | |
159 | 159 | else throw("Strict value is not equal to itself.") | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | ||
164 | 164 | @Callable(s) | |
165 | 165 | func createDepositFor (e,S) = { | |
166 | 166 | let N = s.payments[0].amount | |
167 | 167 | let T = (height + S) | |
168 | 168 | let U = (T - height) | |
169 | 169 | let V = (N / U) | |
170 | 170 | let R = [r(s), if ((T > height)) | |
171 | 171 | then true | |
172 | 172 | else l("endHeight must be more than height"), if ((getString(d(e)) == unit)) | |
173 | 173 | then true | |
174 | 174 | else l("deposit for user already exists"), if ((toBase58String(value(s.payments[0].assetId)) == value(getString(k())))) | |
175 | 175 | then true | |
176 | 176 | else l("attached payment is not WX"), if ((V != 0)) | |
177 | 177 | then true | |
178 | 178 | else l("attached amount too small or blocksDuration too large — will claimed zero per block")] | |
179 | 179 | if ((R == R)) | |
180 | 180 | then [StringEntry(d(e), A(N, N, 0, height)), IntegerEntry(h(e), height), IntegerEntry(i(e), T), IntegerEntry(j(e), V)] | |
181 | 181 | else throw("Strict value is not equal to itself.") | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | ||
186 | 186 | @Callable(s) | |
187 | 187 | func increaseDepositFor (e) = { | |
188 | 188 | let W = F(e) | |
189 | 189 | let X = if ((W > 0)) | |
190 | 190 | then K(e) | |
191 | 191 | else unit | |
192 | 192 | if ((X == X)) | |
193 | 193 | then { | |
194 | 194 | let N = s.payments[0].amount | |
195 | 195 | let T = value(getInteger(i(e))) | |
196 | 196 | let U = (T - height) | |
197 | 197 | let V = value(getInteger(j(e))) | |
198 | 198 | let Y = (N / U) | |
199 | 199 | let Z = B(e) | |
200 | 200 | let aa = C(e) | |
201 | 201 | let ab = D(e) | |
202 | 202 | let ac = E(e) | |
203 | 203 | let R = [r(s), if ((valueOrElse(getBoolean(f(e)), false) == false)) | |
204 | 204 | then true | |
205 | 205 | else l("deposit for user is revoked"), if ((getString(d(e)) != unit)) | |
206 | 206 | then true | |
207 | 207 | else l("deposit for user doesn't exists"), if ((toBase58String(value(s.payments[0].assetId)) == value(getString(k())))) | |
208 | 208 | then true | |
209 | 209 | else l("attached payment is not WX"), if ((Y != 0)) | |
210 | 210 | then true | |
211 | 211 | else l("attached amount too small — increase is zero per block")] | |
212 | 212 | if ((R == R)) | |
213 | 213 | then [StringEntry(d(e), A((Z + N), (aa + N), ab, ac)), IntegerEntry(j(e), (V + Y))] | |
214 | 214 | else throw("Strict value is not equal to itself.") | |
215 | 215 | } | |
216 | 216 | else throw("Strict value is not equal to itself.") | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | ||
221 | 221 | @Callable(s) | |
222 | 222 | func revokeDepositFor (e) = { | |
223 | 223 | let w = B(e) | |
224 | 224 | let x = C(e) | |
225 | 225 | let y = D(e) | |
226 | 226 | let z = E(e) | |
227 | 227 | let ad = F(e) | |
228 | 228 | let ae = valueOrElse(getInteger(g()), 0) | |
229 | 229 | let af = (x - ad) | |
230 | 230 | let ag = (ae + af) | |
231 | 231 | let R = [r(s), if ((getString(d(e)) != unit)) | |
232 | 232 | then true | |
233 | 233 | else l("deposit for user is not exists"), if ((ag > ae)) | |
234 | 234 | then true | |
235 | 235 | else l("newRevokedTotal can't be less or equal than revokedTotal")] | |
236 | 236 | if ((R == R)) | |
237 | 237 | then [BooleanEntry(f(e), true), IntegerEntry(g(), ag), StringEntry(d(e), A(w, ad, y, z))] | |
238 | 238 | else throw("Strict value is not equal to itself.") | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | ||
243 | 243 | @Callable(s) | |
244 | 244 | func claim () = K(toBase58String(s.caller.bytes)) | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | ||
248 | 248 | @Callable(s) | |
249 | 249 | func claimREADONLY (e) = { | |
250 | 250 | let N = F(e) | |
251 | 251 | $Tuple2(nil, N) | |
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | ||
256 | 256 | @Callable(s) | |
257 | 257 | func stats (e) = $Tuple2(nil, [value(getInteger(h(e))), value(getInteger(i(e))), B(e), D(e), C(e), F(e)]) | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | ||
261 | 261 | @Callable(s) | |
262 | 262 | func setManager (ah) = { | |
263 | 263 | let ai = r(s) | |
264 | 264 | if ((ai == ai)) | |
265 | 265 | then { | |
266 | 266 | let aj = fromBase58String(ah) | |
267 | 267 | if ((aj == aj)) | |
268 | 268 | then [StringEntry(c(), ah)] | |
269 | 269 | else throw("Strict value is not equal to itself.") | |
270 | 270 | } | |
271 | 271 | else throw("Strict value is not equal to itself.") | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | ||
276 | 276 | @Callable(s) | |
277 | 277 | func confirmManager () = { | |
278 | 278 | let ak = q() | |
279 | 279 | let al = if (isDefined(ak)) | |
280 | 280 | then true | |
281 | 281 | else l("no pending manager") | |
282 | 282 | if ((al == al)) | |
283 | 283 | then { | |
284 | 284 | let am = if ((s.callerPublicKey == value(ak))) | |
285 | 285 | then true | |
286 | 286 | else l("you are not pending manager") | |
287 | 287 | if ((am == am)) | |
288 | 288 | then [StringEntry(b(), toBase58String(value(ak))), DeleteEntry(c())] | |
289 | 289 | else throw("Strict value is not equal to itself.") | |
290 | 290 | } | |
291 | 291 | else throw("Strict value is not equal to itself.") | |
292 | 292 | } | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Verifier(an) | |
296 | 296 | func ao () = { | |
297 | 297 | let ap = { | |
298 | 298 | let o = n() | |
299 | 299 | if ($isInstanceOf(o, "ByteVector")) | |
300 | 300 | then { | |
301 | 301 | let u = o | |
302 | 302 | u | |
303 | 303 | } | |
304 | 304 | else if ($isInstanceOf(o, "Unit")) | |
305 | 305 | then an.senderPublicKey | |
306 | 306 | else throw("Match error") | |
307 | 307 | } | |
308 | 308 | sigVerify(an.bodyBytes, an.proofs[0], ap) | |
309 | 309 | } | |
310 | 310 |
github/deemru/w8io/026f985 77.48 ms ◑