tx · ALRoUu2Rjw7UGiSNch45uv6aTcfarucUWgtuhg2VquEs 3NCzUsFn22SqL6SiuFpRSo8VRj6XpBzNCTK: -0.00800000 Waves 2022.06.24 12:13 [2110297] smart account 3NCzUsFn22SqL6SiuFpRSo8VRj6XpBzNCTK > SELF 0.00000000 Waves
{ "type": 13, "id": "ALRoUu2Rjw7UGiSNch45uv6aTcfarucUWgtuhg2VquEs", "fee": 800000, "feeAssetId": null, "timestamp": 1656062037787, "version": 2, "chainId": 84, "sender": "3NCzUsFn22SqL6SiuFpRSo8VRj6XpBzNCTK", "senderPublicKey": "8tc6RQVnwQMdDY1k9GxP7EvBttrJT2a6GeBMQHEsKnW7", "proofs": [ "2z7TFBQhHn8uPdiupd5sfnrbpz8BJjQUxjybtm16HSmH8hgoKYvFN3vzn2hsZVgr78BbFpHt8nMX6Xg4aeB7j6gN" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAAYAAAAABWZhcm1zCQAETAAAAAICAAAABGJldGEJAARMAAAAAgIAAAAEbWV0YQkABEwAAAACAgAAAAR6ZXRhBQAAAANuaWwBAAAABmdldFN0cgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAABAAAABmdldEludAAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAAAQAAAAVzdGFrZQAAAAIAAAAEZmFybQAAAAZhbW91bnQEAAAAB2Fzc2V0SWQJAAJZAAAAAQkBAAAABmdldFN0cgAAAAEJAAEsAAAAAgUAAAAEZmFybQIAAAADX2lkBAAAAARkQXBwCQEAAAAGZ2V0U3RyAAAAA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5kZXJQdWJsaWNLZXk4Pi0b", "height": 2110297, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G6MKMGnAMhxre7ziz84y4cf2m3wBsiWhuLK9sKEwfo8b Next: 7e2fyHr9YGe9mn5g4xa83T7C5Mc4aE6iVNAifoS4VRrc Diff:
Old | New | Differences | |
---|---|---|---|
61 | 61 | ||
62 | 62 | func z (x,y) = if ((y >= u)) | |
63 | 63 | then x | |
64 | - | else throw("List size exceeds | |
64 | + | else throw("List size exceeds 3") | |
65 | 65 | ||
66 | - | z | |
66 | + | z(w(w(w(v, 0), 1), 2), 3) | |
67 | 67 | })] | |
68 | 68 | else throw("Private Farm. Access prohibited!") | |
69 | 69 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = ["beta", "meta", "zeta"] | |
5 | 5 | ||
6 | 6 | func b (c) = { | |
7 | 7 | let d = getString(this, c) | |
8 | 8 | if ($isInstanceOf(d, "String")) | |
9 | 9 | then { | |
10 | 10 | let e = d | |
11 | 11 | e | |
12 | 12 | } | |
13 | 13 | else "" | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func f (c) = { | |
18 | 18 | let d = getInteger(this, c) | |
19 | 19 | if ($isInstanceOf(d, "Int")) | |
20 | 20 | then { | |
21 | 21 | let e = d | |
22 | 22 | e | |
23 | 23 | } | |
24 | 24 | else 0 | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func g (h,i) = { | |
29 | 29 | let j = fromBase58String(b((h + "_id"))) | |
30 | 30 | let k = b((h + "_st")) | |
31 | 31 | let l = assetBalance(this, j) | |
32 | 32 | if ((i == -1)) | |
33 | 33 | then invoke(Address(fromBase58String(k)), "stakeFarmTokens", [false], [AttachedPayment(j, l)]) | |
34 | 34 | else if ((l >= i)) | |
35 | 35 | then invoke(Address(fromBase58String(k)), "stakeFarmTokens", [false], [AttachedPayment(j, i)]) | |
36 | 36 | else throw(((("Low balance: " + toString(l)) + " and need: ") + toString(i))) | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func m (n) = { | |
41 | 41 | let o = toBase58String(n) | |
42 | 42 | let p = getStringValue("points") | |
43 | 43 | contains(p, o) | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func q (r,h) = if ((r == 0)) | |
48 | 48 | then g(h, -1) | |
49 | 49 | else 0 | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Callable(s) | |
53 | 53 | func StakeAll () = if (m(s.callerPublicKey)) | |
54 | 54 | then [IntegerEntry("stake", { | |
55 | 55 | let t = a | |
56 | 56 | let u = size(t) | |
57 | 57 | let v = 0 | |
58 | 58 | func w (x,y) = if ((y >= u)) | |
59 | 59 | then x | |
60 | 60 | else q(x, t[y]) | |
61 | 61 | ||
62 | 62 | func z (x,y) = if ((y >= u)) | |
63 | 63 | then x | |
64 | - | else throw("List size exceeds | |
64 | + | else throw("List size exceeds 3") | |
65 | 65 | ||
66 | - | z | |
66 | + | z(w(w(w(v, 0), 1), 2), 3) | |
67 | 67 | })] | |
68 | 68 | else throw("Private Farm. Access prohibited!") | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | ||
72 | 72 | @Callable(s) | |
73 | 73 | func UnstakeAll () = if (m(s.callerPublicKey)) | |
74 | 74 | then throw("Welcome") | |
75 | 75 | else throw("Private Farm. Access prohibited!") | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | ||
79 | 79 | @Callable(s) | |
80 | 80 | func ClaimAll () = if (m(s.callerPublicKey)) | |
81 | 81 | then throw("Welcome") | |
82 | 82 | else throw("Private Farm. Access prohibited!") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | @Verifier(A) | |
86 | 86 | func B () = sigVerify(A.bodyBytes, A.proofs[0], A.senderPublicKey) | |
87 | 87 |
github/deemru/w8io/169f3d6 23.88 ms ◑