tx · EvHo7gvesgTyH9Hww9tamPharBS3YokaMrHCNMtXcC6U 3N3xK7o8iTZDHaPBBvHi3JJWJz6C7Tymcft: -0.05000000 Waves 2023.10.06 13:29 [2786640] smart account 3N3xK7o8iTZDHaPBBvHi3JJWJz6C7Tymcft > SELF 0.00000000 Waves
{ "type": 13, "id": "EvHo7gvesgTyH9Hww9tamPharBS3YokaMrHCNMtXcC6U", "fee": 5000000, "feeAssetId": null, "timestamp": 1696588257724, "version": 1, "sender": "3N3xK7o8iTZDHaPBBvHi3JJWJz6C7Tymcft", "senderPublicKey": "CYAsf6Hy74tD5cPSfLqMdiQBbK5CjvLYASmDYzAZh8ju", "proofs": [ "3mHeoWkbAhiejb8w2XQMuDw9j29gNsrAA6puS8x8R5Qfr3zgc9d3yPtbYWG8vM74tpVD8CkxzFfyxG9j9rBMs4Jm" ], "script": "base64:BgJjCAISDAoKCAEBAQEBAQgICBIECgIIARIECgIICBIECgIICBIDCgEIEgMKAQgSBQoDCAEBEgMKAQgSBAoCCAESAwoBCBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgSAwoBCBIDCgEIMwEQd3JpdGVDb25zdFN0cmluZwIDa2V5BXZhbHVlAwkBASEBCQEJaXNEZWZpbmVkAQkAnQgCBQR0aGlzBQNrZXkJAQtTdHJpbmdFbnRyeQIFA2tleQUFdmFsdWUJAAIBCQCsAgICFWFscmVhZHkgaW5pdGlhbGl6ZWQ6IAUDa2V5AQh3cml0ZUludAIDa2V5BXZhbHVlAwkAZgIAAAUFdmFsdWUJAAIBCQCsAgIJAKwCAgkArAICAhd3cml0aW5nIG5lZ2F0aXZlIHZhbHVlIAkApAMBBQV2YWx1ZQIJIGZvciBrZXkgBQNrZXkJAQxJbnRlZ2VyRW50cnkCBQNrZXkFBXZhbHVlAQhjaGFuZ2VCeQIDa2V5BXZhbHVlCQEId3JpdGVJbnQCBQNrZXkJAGQCCQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAABQV2YWx1ZQE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QKAgkAzAgCCQELRGVsZXRlRW50cnkBBQ51c2VyU2tpblN0b3JlMQkAzAgCCQEIY2hhbmdlQnkCCQEOc2tpblRvdGFsU3RvcmUBBQVjaGlsZAkBAS0BBQRza2luCQDMCAIJAQhjaGFuZ2VCeQIFDXB3clRvdGFsU3RvcmUJAQEtAQUEc2tpbgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFBHNraW4FCnB3ckFzc2V0SWQFA25pbAUEc2tpbgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQl1c2VyUG93ZXICBWNoaWxkBHVzZXIJAJQKAgUDbmlsCQELdmFsdWVPckVsc2UCCQEOdXNlckNvbW1pdG1lbnQCBQVjaGlsZAUEdXNlcgAAAWkBCnRvdGFsUG93ZXIBBWNoaWxkCQCUCgIFA25pbAkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCfCAEJAQ5za2luVG90YWxTdG9yZQEFBWNoaWxkAht0b3RhbFBvd2VyOiBjaGlsZCBub3QgZm91bmQBaQEEaW5pdAEEY29uZgkAzAgCCQEQd3JpdGVDb25zdFN0cmluZwIFEmNvbmZpZ0FkZHJlc3NTdG9yZQUEY29uZgUDbmlsAHKlyJo=", "chainId": 84, "height": 2786640, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b,c) = if (!(isDefined(getString(this, b)))) | |
5 | + | then StringEntry(b, c) | |
6 | + | else throw(("already initialized: " + b)) | |
7 | + | ||
8 | + | ||
9 | + | func d (b,c) = if ((0 > c)) | |
10 | + | then throw(((("writing negative value " + toString(c)) + " for key ") + b)) | |
11 | + | else IntegerEntry(b, c) | |
12 | + | ||
13 | + | ||
14 | + | func e (b,c) = d(b, (valueOrElse(getInteger(this, b), 0) + c)) | |
15 | + | ||
16 | + | ||
17 | + | func f (c) = { | |
18 | + | let g = c | |
19 | + | if ($isInstanceOf(g, "Int")) | |
20 | + | then { | |
21 | + | let h = g | |
22 | + | h | |
23 | + | } | |
24 | + | else throw("wrong type, expected: Int") | |
25 | + | } | |
26 | + | ||
27 | + | ||
28 | + | func i (j) = if ((j == "WAVES")) | |
29 | + | then unit | |
30 | + | else fromBase58String(j) | |
31 | + | ||
32 | + | ||
33 | + | let k = "config" | |
34 | + | ||
35 | + | let l = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, k), "children: config address not found")), "invalid config address") | |
36 | + | ||
37 | + | func m (n) = invoke(l, "opAllowed", [n], nil) | |
38 | + | ||
39 | + | ||
40 | + | let o = height | |
41 | + | ||
42 | + | let p = fromBase58String(valueOrErrorMessage(getString(l, "powerAssetId"), "pwr asset id not found")) | |
43 | + | ||
44 | + | let q = valueOrElse(getString(l, (toString(this) + "_slashers")), "") | |
45 | + | ||
46 | + | let r = valueOrElse(getString(l, "main_addresses"), "") | |
47 | + | ||
48 | + | func s (t) = ("period_" + t) | |
49 | + | ||
50 | + | ||
51 | + | func u (t) = valueOrElse(getInteger(s(t)), 0) | |
52 | + | ||
53 | + | ||
54 | + | func v (t) = ("owner_" + t) | |
55 | + | ||
56 | + | ||
57 | + | func w (t) = ("treasury_" + t) | |
58 | + | ||
59 | + | ||
60 | + | func x (t) = ("lockTime_" + t) | |
61 | + | ||
62 | + | ||
63 | + | func y (t,u) = ((("period_" + toString(u)) + "_lockTime_") + t) | |
64 | + | ||
65 | + | ||
66 | + | func z (t) = ("skin_required_" + t) | |
67 | + | ||
68 | + | ||
69 | + | func A (t) = ("skin_max_" + t) | |
70 | + | ||
71 | + | ||
72 | + | func B (t) = ("investments_max_" + t) | |
73 | + | ||
74 | + | ||
75 | + | func C (t) = ("min_commitment" + t) | |
76 | + | ||
77 | + | ||
78 | + | func D (t) = ("skin_total_" + t) | |
79 | + | ||
80 | + | ||
81 | + | let E = "pwr_total" | |
82 | + | ||
83 | + | func F (t) = ("investments_required_" + t) | |
84 | + | ||
85 | + | ||
86 | + | func G (t) = ("investments_total_" + t) | |
87 | + | ||
88 | + | ||
89 | + | func H (t) = ((("period_" + toString(u(t))) + "_investments_total_") + t) | |
90 | + | ||
91 | + | ||
92 | + | func I (t) = ("investments_token_" + t) | |
93 | + | ||
94 | + | ||
95 | + | func J (t) = ("commitments_" + t) | |
96 | + | ||
97 | + | ||
98 | + | func K (t) = ("create_height_" + t) | |
99 | + | ||
100 | + | ||
101 | + | func L (t) = ("start_height_" + t) | |
102 | + | ||
103 | + | ||
104 | + | func M (t,u) = ((("period_" + toString(u)) + "_start_height_") + t) | |
105 | + | ||
106 | + | ||
107 | + | func N (t,u) = ((("period_" + toString(u)) + "_start_after_height_") + t) | |
108 | + | ||
109 | + | ||
110 | + | func O (t) = M(t, u(t)) | |
111 | + | ||
112 | + | ||
113 | + | func P (t) = ("cancel_height_" + t) | |
114 | + | ||
115 | + | ||
116 | + | func Q (t) = i(valueOrErrorMessage(getString(I(t)), "investments asset id not found")) | |
117 | + | ||
118 | + | ||
119 | + | func R (t,S) = ((("skin_" + t) + "_") + S) | |
120 | + | ||
121 | + | ||
122 | + | func T (t,S) = (R(t, S) + "_history") | |
123 | + | ||
124 | + | ||
125 | + | func U (t,V) = ((("investor_" + t) + "_") + V) | |
126 | + | ||
127 | + | ||
128 | + | func W (t) = if (isDefined(getInteger(L(t)))) | |
129 | + | then throw("already started") | |
130 | + | else false | |
131 | + | ||
132 | + | ||
133 | + | func X (t) = if (isDefined(getInteger(P(t)))) | |
134 | + | then throw("already canceled") | |
135 | + | else false | |
136 | + | ||
137 | + | ||
138 | + | func Y (t) = if ((u(t) == 0)) | |
139 | + | then W(t) | |
140 | + | else if (isDefined(getInteger(O(t)))) | |
141 | + | then throw("period already started") | |
142 | + | else false | |
143 | + | ||
144 | + | ||
145 | + | func Z (t,S) = getInteger(R(t, S)) | |
146 | + | ||
147 | + | ||
148 | + | func aa (t,S) = valueOrElse(Z(t, S), 0) | |
149 | + | ||
150 | + | ||
151 | + | func ab (t,u) = valueOrElse(getInteger(y(t, u)), valueOrErrorMessage(getInteger(x(t)), "no child lockTime")) | |
152 | + | ||
153 | + | ||
154 | + | func ac (t) = { | |
155 | + | let ad = u(t) | |
156 | + | let ae = getInteger(M(t, ad)) | |
157 | + | if (isDefined(ae)) | |
158 | + | then (value(ae) + ab(t, ad)) | |
159 | + | else { | |
160 | + | let af = (ad - 1) | |
161 | + | let ag = valueOrErrorMessage(getInteger(L(t)), "no child start height") | |
162 | + | (valueOrElse(getInteger(M(t, af)), ag) + ab(t, af)) | |
163 | + | } | |
164 | + | } | |
165 | + | ||
166 | + | ||
167 | + | func ah (t) = valueOrElse(getString(w(t)), t) | |
168 | + | ||
169 | + | ||
170 | + | func h (b) = toString(valueOrElse(getInteger(b), 0)) | |
171 | + | ||
172 | + | ||
173 | + | func j (b) = valueOrElse(getString(b), "") | |
174 | + | ||
175 | + | ||
176 | + | func ai (t) = { | |
177 | + | let ad = u(t) | |
178 | + | let aj = toString(ad) | |
179 | + | ((((((((((((((((((((((((((((((((((((((((((((((((((("height: " + toString(o)) + ", project: ") + t) + ", owner: ") + j(v(t))) + ", treasury: ") + ah(t)) + ", lock_time: ") + h(x(t))) + ", skin_required: ") + h(z(t))) + ", skin_max: ") + h(A(t))) + ", min_commitment: ") + h(C(t))) + ", skin_total: ") + h(D(t))) + ", investments_required: ") + h(F(t))) + ", investments_max: ") + h(B(t))) + ", investments_total: ") + h(G(t))) + ", investments_token: ") + j(I(t))) + ", commitments: ") + j(J(t))) + ", create_height: ") + h(K(t))) + ", start_height: ") + toString(valueOrElse(getInteger(L(t)), -1))) + ", cancel_height: ") + toString(valueOrElse(getInteger(P(t)), -1))) + ", period: ") + aj) + ", period_") + aj) + "_start_after_height: ") + toString(valueOrElse(getInteger(N(t, ad)), -1))) + ", period_") + aj) + "_start_height: ") + toString(valueOrElse(getInteger(O(t)), -1))) + ", period_") + aj) + "_lock_time: ") + toString(ab(t, ad))) + ", unlock_height: ") + toString(ac(t))) + ", period_investments_total: ") + h(H(t))) | |
180 | + | } | |
181 | + | ||
182 | + | ||
183 | + | func ak (t,S) = ((((((((("height: " + toString(o)) + ", project: ") + t) + ", skin:") + toString(aa(t, S))) + ", power:") + toString(valueOrElse(Z(t, S), 0))) + ", investments: ") + h(U(t, S))) | |
184 | + | ||
185 | + | ||
186 | + | @Callable(al) | |
187 | + | func projectFor (am,an,ao,ap,ab,aq,ar,Q,as,t) = { | |
188 | + | let at = m("projectFor") | |
189 | + | if ((at == at)) | |
190 | + | then if (!(contains(r, toString(al.caller)))) | |
191 | + | then throw("denied") | |
192 | + | else { | |
193 | + | let au = valueOrErrorMessage(addressFromString(t), "invalid treasury address") | |
194 | + | if ((au == au)) | |
195 | + | then { | |
196 | + | let av = i(Q) | |
197 | + | if ((av == av)) | |
198 | + | then if (if ((ao > 0)) | |
199 | + | then (an > ao) | |
200 | + | else false) | |
201 | + | then throw("invalid maxSkin") | |
202 | + | else if (if ((ar > 0)) | |
203 | + | then (aq > ar) | |
204 | + | else false) | |
205 | + | then throw("invalid maxInvestments") | |
206 | + | else [a(v(t), am), d(K(t), o), d(z(t), an), d(A(t), ao), d(C(t), ap), d(x(t), ab), d(F(t), aq), a(I(t), Q), a(J(t), as), a(w(t), t), d(B(t), ar)] | |
207 | + | else throw("Strict value is not equal to itself.") | |
208 | + | } | |
209 | + | else throw("Strict value is not equal to itself.") | |
210 | + | } | |
211 | + | else throw("Strict value is not equal to itself.") | |
212 | + | } | |
213 | + | ||
214 | + | ||
215 | + | ||
216 | + | @Callable(al) | |
217 | + | func increraseSkin (t,aw) = { | |
218 | + | let at = m("increraseSkin") | |
219 | + | if ((at == at)) | |
220 | + | then { | |
221 | + | let ax = if (W(t)) | |
222 | + | then X(t) | |
223 | + | else false | |
224 | + | if ((ax == ax)) | |
225 | + | then if ((0 >= aw)) | |
226 | + | then throw("invalid argument: skinIncrement should be positive") | |
227 | + | else { | |
228 | + | let am = getStringValue(v(t)) | |
229 | + | if ((toString(al.caller) != am)) | |
230 | + | then throw("denied") | |
231 | + | else [e(z(t), aw)] | |
232 | + | } | |
233 | + | else throw("Strict value is not equal to itself.") | |
234 | + | } | |
235 | + | else throw("Strict value is not equal to itself.") | |
236 | + | } | |
237 | + | ||
238 | + | ||
239 | + | ||
240 | + | @Callable(al) | |
241 | + | func commitFor (t,ay) = { | |
242 | + | let at = m("commitFor") | |
243 | + | if ((at == at)) | |
244 | + | then { | |
245 | + | let ax = Y(t) | |
246 | + | if ((ax == ax)) | |
247 | + | then { | |
248 | + | let ad = al.payments[0] | |
249 | + | if ((ad.assetId != p)) | |
250 | + | then throw("invalid attached payment: $power token expected") | |
251 | + | else { | |
252 | + | let az = ad.amount | |
253 | + | let ap = valueOrErrorMessage(getInteger(C(t)), "Child DAO not found") | |
254 | + | if ((ap > az)) | |
255 | + | then throw(("Min. commitment is " + toString(ap))) | |
256 | + | else { | |
257 | + | let aA = D(t) | |
258 | + | let aB = (valueOrElse(getInteger(aA), 0) + az) | |
259 | + | let aC = valueOrElse(getInteger(A(t)), 0) | |
260 | + | if (if ((aC > 0)) | |
261 | + | then (aB > aC) | |
262 | + | else false) | |
263 | + | then throw(("Total max. skin is reached: " + toString(aC))) | |
264 | + | else [e(R(t, ay), az), IntegerEntry(aA, aB), e(E, az)] | |
265 | + | } | |
266 | + | } | |
267 | + | } | |
268 | + | else throw("Strict value is not equal to itself.") | |
269 | + | } | |
270 | + | else throw("Strict value is not equal to itself.") | |
271 | + | } | |
272 | + | ||
273 | + | ||
274 | + | ||
275 | + | @Callable(al) | |
276 | + | func commitForMiner (t,ay) = { | |
277 | + | let at = m("commitForMiner") | |
278 | + | if ((at == at)) | |
279 | + | then if (!(contains(r, toString(al.caller)))) | |
280 | + | then throw("denied") | |
281 | + | else { | |
282 | + | let ad = al.payments[0] | |
283 | + | if (if ((ad.assetId != p)) | |
284 | + | then true | |
285 | + | else (size(al.payments) != 1)) | |
286 | + | then throw("invalid payments: only $power token expected") | |
287 | + | else { | |
288 | + | let az = ad.amount | |
289 | + | [e(R(t, ay), az), e(D(t), az), e(E, az)] | |
290 | + | } | |
291 | + | } | |
292 | + | else throw("Strict value is not equal to itself.") | |
293 | + | } | |
294 | + | ||
295 | + | ||
296 | + | ||
297 | + | @Callable(al) | |
298 | + | func invest (t) = { | |
299 | + | let at = m("invest") | |
300 | + | if ((at == at)) | |
301 | + | then { | |
302 | + | let ax = Y(t) | |
303 | + | if ((ax == ax)) | |
304 | + | then { | |
305 | + | let av = Q(t) | |
306 | + | if ((al.payments[0].assetId != av)) | |
307 | + | then throw("invalid investments asset id") | |
308 | + | else { | |
309 | + | let aD = al.payments[0].amount | |
310 | + | let aE = valueOrElse(getInteger(B(t)), 0) | |
311 | + | func aF (at) = [e(U(t, toString(al.caller)), at), e(G(t), at), e(H(t), at)] | |
312 | + | ||
313 | + | if ((aE > 0)) | |
314 | + | then { | |
315 | + | let aG = G(t) | |
316 | + | let aH = valueOrElse(getInteger(aG), 0) | |
317 | + | let aI = min([aD, (aE - aH)]) | |
318 | + | if ((0 >= aI)) | |
319 | + | then throw(("Total max. investments is reached: " + toString(aE))) | |
320 | + | else { | |
321 | + | let aJ = (aD - aI) | |
322 | + | if ((aJ > 0)) | |
323 | + | then [ScriptTransfer(al.caller, aJ, av), aF(aI)] | |
324 | + | else aF(aI) | |
325 | + | } | |
326 | + | } | |
327 | + | else aF(aD) | |
328 | + | } | |
329 | + | } | |
330 | + | else throw("Strict value is not equal to itself.") | |
331 | + | } | |
332 | + | else throw("Strict value is not equal to itself.") | |
333 | + | } | |
334 | + | ||
335 | + | ||
336 | + | ||
337 | + | @Callable(al) | |
338 | + | func start (t) = { | |
339 | + | let aK = m("start") | |
340 | + | if ((aK == aK)) | |
341 | + | then { | |
342 | + | let ax = if (W(t)) | |
343 | + | then X(t) | |
344 | + | else false | |
345 | + | if ((ax == ax)) | |
346 | + | then { | |
347 | + | let aL = valueOrElse(getInteger(D(t)), 0) | |
348 | + | let aM = valueOrErrorMessage(getInteger(z(t)), "child not registered") | |
349 | + | if ((aM > aL)) | |
350 | + | then throw("not enough skin in the game") | |
351 | + | else { | |
352 | + | let aN = valueOrElse(getInteger(G(t)), 0) | |
353 | + | if ((getIntegerValue(F(t)) > aN)) | |
354 | + | then throw("not enough investments") | |
355 | + | else [IntegerEntry(L(t), o), ScriptTransfer(addressFromStringValue(ah(t)), aN, Q(t))] | |
356 | + | } | |
357 | + | } | |
358 | + | else throw("Strict value is not equal to itself.") | |
359 | + | } | |
360 | + | else throw("Strict value is not equal to itself.") | |
361 | + | } | |
362 | + | ||
363 | + | ||
364 | + | ||
365 | + | @Callable(al) | |
366 | + | func initNextPeriod (t,aO,ab) = { | |
367 | + | let aK = m("initNextPeriod") | |
368 | + | if ((aK == aK)) | |
369 | + | then if (if ((toString(al.caller) != getStringValue(v(t)))) | |
370 | + | then (al.caller != this) | |
371 | + | else false) | |
372 | + | then throw("denied") | |
373 | + | else if ((0 > aO)) | |
374 | + | then throw("blockBetweenPeriods should be positive or zero") | |
375 | + | else if ((1 > ab)) | |
376 | + | then throw("lockTime should be positive") | |
377 | + | else { | |
378 | + | let aP = ac(t) | |
379 | + | if ((aP > o)) | |
380 | + | then throw("current period is still active") | |
381 | + | else { | |
382 | + | let ad = u(t) | |
383 | + | if (if ((ad > 0)) | |
384 | + | then !(isDefined(M(t, ad))) | |
385 | + | else false) | |
386 | + | then throw("next period already initialized") | |
387 | + | else { | |
388 | + | let aQ = (ad + 1) | |
389 | + | [IntegerEntry(s(t), aQ), IntegerEntry(N(t, aQ), (aP + aO)), IntegerEntry(y(t, aQ), ab)] | |
390 | + | } | |
391 | + | } | |
392 | + | } | |
393 | + | else throw("Strict value is not equal to itself.") | |
394 | + | } | |
395 | + | ||
396 | + | ||
397 | + | ||
398 | + | @Callable(al) | |
399 | + | func startPeriod (t) = { | |
400 | + | let aK = m("startPeriod") | |
401 | + | if ((aK == aK)) | |
402 | + | then { | |
403 | + | let ax = Y(t) | |
404 | + | if ((ax == ax)) | |
405 | + | then { | |
406 | + | let aR = u(t) | |
407 | + | let aS = N(t, aR) | |
408 | + | let aT = valueOrErrorMessage(getInteger(aS), ("key not found: " + aS)) | |
409 | + | if ((aT > o)) | |
410 | + | then throw("too early") | |
411 | + | else { | |
412 | + | let aL = valueOrElse(getInteger(D(t)), 0) | |
413 | + | let aM = valueOrErrorMessage(getInteger(z(t)), "child not registered") | |
414 | + | if ((aM > aL)) | |
415 | + | then throw("not enough skin in the game") | |
416 | + | else { | |
417 | + | let aU = valueOrElse(getInteger(H(t)), 0) | |
418 | + | [IntegerEntry(O(t), o), ScriptTransfer(addressFromStringValue(t), aU, Q(t))] | |
419 | + | } | |
420 | + | } | |
421 | + | } | |
422 | + | else throw("Strict value is not equal to itself.") | |
423 | + | } | |
424 | + | else throw("Strict value is not equal to itself.") | |
425 | + | } | |
426 | + | ||
427 | + | ||
428 | + | ||
429 | + | @Callable(al) | |
430 | + | func slash (t,aD) = { | |
431 | + | let aK = m("/") | |
432 | + | if ((aK == aK)) | |
433 | + | then if (!(contains(q, toString(al.caller)))) | |
434 | + | then throw("denied") | |
435 | + | else if (!(isDefined(getInteger(L(t))))) | |
436 | + | then throw("not started") | |
437 | + | else [e(D(t), -(aD)), Burn(p, aD)] | |
438 | + | else throw("Strict value is not equal to itself.") | |
439 | + | } | |
440 | + | ||
441 | + | ||
442 | + | ||
443 | + | @Callable(al) | |
444 | + | func complete (t) = { | |
445 | + | let aK = m("complete") | |
446 | + | if ((aK == aK)) | |
447 | + | then { | |
448 | + | let aP = ac(t) | |
449 | + | if ((aP > o)) | |
450 | + | then throw("still locked") | |
451 | + | else { | |
452 | + | let S = toString(al.caller) | |
453 | + | let an = aa(t, S) | |
454 | + | if ((an == 0)) | |
455 | + | then throw("you had no skin in the game") | |
456 | + | else { | |
457 | + | let aH = getIntegerValue(D(t)) | |
458 | + | [ScriptTransfer(al.caller, an, p), DeleteEntry(R(t, S)), e(D(t), -(an)), e(E, -(an)), IntegerEntry(T(t, S), an)] | |
459 | + | } | |
460 | + | } | |
461 | + | } | |
462 | + | else throw("Strict value is not equal to itself.") | |
463 | + | } | |
464 | + | ||
465 | + | ||
466 | + | ||
467 | + | @Callable(al) | |
468 | + | func cancel (t) = { | |
469 | + | let aK = m("cancel") | |
470 | + | if ((aK == aK)) | |
471 | + | then { | |
472 | + | let ax = if (W(t)) | |
473 | + | then true | |
474 | + | else X(t) | |
475 | + | if ((ax == ax)) | |
476 | + | then if ((toString(al.caller) != getStringValue(v(t)))) | |
477 | + | then throw("denied. not an owner") | |
478 | + | else [IntegerEntry(P(t), o)] | |
479 | + | else throw("Strict value is not equal to itself.") | |
480 | + | } | |
481 | + | else throw("Strict value is not equal to itself.") | |
482 | + | } | |
483 | + | ||
484 | + | ||
485 | + | ||
486 | + | @Callable(al) | |
487 | + | func undoInvest (t) = { | |
488 | + | let aK = m("undoInvest") | |
489 | + | if ((aK == aK)) | |
490 | + | then { | |
491 | + | let ax = W(t) | |
492 | + | if ((ax == ax)) | |
493 | + | then { | |
494 | + | let aV = U(t, toString(al.caller)) | |
495 | + | let aq = valueOrElse(getInteger(aV), 0) | |
496 | + | if ((aq == 0)) | |
497 | + | then throw("no investments") | |
498 | + | else [DeleteEntry(aV), e(G(t), -(aq)), ScriptTransfer(al.caller, aq, Q(t))] | |
499 | + | } | |
500 | + | else throw("Strict value is not equal to itself.") | |
501 | + | } | |
502 | + | else throw("Strict value is not equal to itself.") | |
503 | + | } | |
504 | + | ||
505 | + | ||
506 | + | ||
507 | + | @Callable(al) | |
508 | + | func undoCommitFor (t,ay) = { | |
509 | + | let aK = m("undoCommitFor") | |
510 | + | if ((aK == aK)) | |
511 | + | then if (!(contains(r, toString(al.caller)))) | |
512 | + | then throw("denied") | |
513 | + | else { | |
514 | + | let ax = W(t) | |
515 | + | if ((ax == ax)) | |
516 | + | then { | |
517 | + | let aW = R(t, ay) | |
518 | + | let an = valueOrElse(getInteger(aW), 0) | |
519 | + | if ((an == 0)) | |
520 | + | then throw("no skin") | |
521 | + | else $Tuple2([DeleteEntry(aW), e(D(t), -(an)), e(E, -(an)), ScriptTransfer(al.caller, an, p)], an) | |
522 | + | } | |
523 | + | else throw("Strict value is not equal to itself.") | |
524 | + | } | |
525 | + | else throw("Strict value is not equal to itself.") | |
526 | + | } | |
527 | + | ||
528 | + | ||
529 | + | ||
530 | + | @Callable(al) | |
531 | + | func userPower (t,S) = $Tuple2(nil, valueOrElse(Z(t, S), 0)) | |
532 | + | ||
533 | + | ||
534 | + | ||
535 | + | @Callable(al) | |
536 | + | func totalPower (t) = $Tuple2(nil, valueOrErrorMessage(getInteger(D(t)), "totalPower: child not found")) | |
537 | + | ||
538 | + | ||
539 | + | ||
540 | + | @Callable(al) | |
541 | + | func init (aX) = [a(k, aX)] | |
542 | + | ||
543 | + |
github/deemru/w8io/fabc49c 35.42 ms ◑