tx · DfHkPw4YykxW4txAS84cn8LtSQ396YGADTVXhqSC2JFX 3NCVWoqgP5evS1BbN2RYeDofxSSfc83UPrm: -0.14000000 Waves 2021.10.27 09:31 [1764344] smart account 3NCVWoqgP5evS1BbN2RYeDofxSSfc83UPrm > SELF 0.00000000 Waves
{ "type": 13, "id": "DfHkPw4YykxW4txAS84cn8LtSQ396YGADTVXhqSC2JFX", "fee": 14000000, "feeAssetId": null, "timestamp": 1635316385821, "version": 2, "chainId": 84, "sender": "3NCVWoqgP5evS1BbN2RYeDofxSSfc83UPrm", "senderPublicKey": "Ebjd61Ze5xP5ZS519XxDrSmiRo4s1e2BEaxbYCXzrSs2", "proofs": [ "wkjE5uktvuJPA1EXCzaDGGAWtHkTch8h2fJtDgF6wouZ2HSuJ9nnXcVGKJWJQbeBhoG2BBmUWugFk4DtjYatXuU" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAACQAAAAAYa2V5VXNlckVOTk9DbGFpbWVkQW1vdW50AgAAABRfRU5OT19jbGFpbWVkX2Ftb3VudAAAAAAca2V5VXNlckVOTk9MYXN0Q2xhaW1lZEFtb3VudAIAAAAZX0VOTk9fbGFzdF9jbGFpbWVkX2Ftb3VudAAAAAAERU5OTwEAAAAgFbvcV9OA6rL+53m/DeV6nxGYIu+IXr9brrnP32tIN3AAAAAADGFkbWluUHViS2V5MQEAAAAgW0PkM1DAtWhdk96onqOjXkZ/zYsUGYYG4p+U0apV6FkAAAAADGFkbWluUHViS2V5MgEAAAAgW0PkM1DAtWhdk96onqOjXkZ/zYsUGYYG4p+U0apV6FkAAAAADGFkbWluUHViS2V5MwEAAAAgW0PkM1DAtWhdk96onqOjXkZ/zYsUGYYG4p+U0apV6FkAAAAACXNoYXJlRGF0YQEAAAAgW0PkM1DAtWhdk96onqOjXkZ/zYsUGYYG4p+U0apV6FkBAAAADmdldENhbGxlclNoYXJlAAAAAQAAAAZjYWxsZXIEAAAAC2NhbGxlclNoYXJlCQAEGgAAAAIJAQAAABRh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AJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAAC2iIFmA==", "height": 1764344, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 79K9UXbeL9Lck6YHpoHEnHs8eUpaZCRmSMavgU2UfRTB Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "_ENNO_claimed_amount" | |
5 | + | ||
6 | + | let b = "_ENNO_last_claimed_amount" | |
7 | + | ||
8 | + | let c = base58'2Tqhz5PWbkijnzYpdLxLDFfVDw5ALQWm2rmxQ79ooMRZ' | |
9 | + | ||
10 | + | let d = base58'79G9MRTWPsir5gThDeuicpBuQxx8UFNqVaDUYcRfWtPA' | |
11 | + | ||
12 | + | let e = base58'79G9MRTWPsir5gThDeuicpBuQxx8UFNqVaDUYcRfWtPA' | |
13 | + | ||
14 | + | let f = base58'79G9MRTWPsir5gThDeuicpBuQxx8UFNqVaDUYcRfWtPA' | |
15 | + | ||
16 | + | let g = base58'79G9MRTWPsir5gThDeuicpBuQxx8UFNqVaDUYcRfWtPA' | |
17 | + | ||
18 | + | func h (i) = { | |
19 | + | let j = getInteger(addressFromPublicKey(g), ("share_" + toString(i))) | |
20 | + | let k = { | |
21 | + | let l = j | |
22 | + | if ($isInstanceOf(l, "Int")) | |
23 | + | then { | |
24 | + | let m = l | |
25 | + | m | |
26 | + | } | |
27 | + | else if ($isInstanceOf(l, "Unit")) | |
28 | + | then { | |
29 | + | let m = l | |
30 | + | throw("Only governance qualifiers can call this function.") | |
31 | + | } | |
32 | + | else throw("Match error") | |
33 | + | } | |
34 | + | k | |
35 | + | } | |
36 | + | ||
37 | + | ||
38 | + | func n (i) = { | |
39 | + | let o = getInteger(this, (toString(i) + a)) | |
40 | + | let p = { | |
41 | + | let l = o | |
42 | + | if ($isInstanceOf(l, "Int")) | |
43 | + | then { | |
44 | + | let m = l | |
45 | + | m | |
46 | + | } | |
47 | + | else if ($isInstanceOf(l, "Unit")) | |
48 | + | then { | |
49 | + | let m = l | |
50 | + | 0 | |
51 | + | } | |
52 | + | else throw("Match error") | |
53 | + | } | |
54 | + | p | |
55 | + | } | |
56 | + | ||
57 | + | ||
58 | + | @Callable(q) | |
59 | + | func claimENNO () = { | |
60 | + | let r = h(q.caller) | |
61 | + | let s = n(q.caller) | |
62 | + | let t = (r - s) | |
63 | + | let u = (s + t) | |
64 | + | [ScriptTransfer(q.caller, t, c), IntegerEntry((toString(q.caller) + a), u), IntegerEntry((toString(q.caller) + b), t)] | |
65 | + | } | |
66 | + | ||
67 | + | ||
68 | + | @Verifier(v) | |
69 | + | func w () = { | |
70 | + | let l = v | |
71 | + | let x = if (sigVerify(v.bodyBytes, v.proofs[0], d)) | |
72 | + | then 1 | |
73 | + | else 0 | |
74 | + | let y = if (sigVerify(v.bodyBytes, v.proofs[1], e)) | |
75 | + | then 1 | |
76 | + | else 0 | |
77 | + | let z = if (sigVerify(v.bodyBytes, v.proofs[2], f)) | |
78 | + | then 1 | |
79 | + | else 0 | |
80 | + | (((x + y) + z) >= 2) | |
81 | + | } | |
82 | + |
github/deemru/w8io/169f3d6 65.93 ms ◑