tx · E6L1CGYAUG7SEq4NRhecgdY1uppyYTKhFMivDEU2x5Je 3N3b5wban4PEUuND6PxSbTvoekc66fss78g: -0.14000000 Waves 2021.10.26 16:11 [1763302] smart account 3N3b5wban4PEUuND6PxSbTvoekc66fss78g > SELF 0.00000000 Waves
{ "type": 13, "id": "E6L1CGYAUG7SEq4NRhecgdY1uppyYTKhFMivDEU2x5Je", "fee": 14000000, "feeAssetId": null, "timestamp": 1635253959166, "version": 2, "chainId": 84, "sender": "3N3b5wban4PEUuND6PxSbTvoekc66fss78g", "senderPublicKey": "DkMBTSHqT9hKVK1joeyL9DWKdzMAiCYZtYVkMPUx4Zwq", "proofs": [ "3CwHTWPsj2ioM8wHD5jUdCcZGWncQoGA9baNL1iX2X3fFPqNPD5uZj1jo2F8zF6q32r1dEd3XV5V1yaTxhLy27Pt", "6bTHDnEuoDPUAyXyEia1Q78zBMrYrsqrxqMA7gfHY8LWpLNq8EiRGSceS2tvhVYMiWfNLWRdd82PkJL67AgxC8z", "2CcXQ1GoTwWhr39PXZA7D4feYRxWfr2ndhWCJ9zMn6CQQ1wepZsDBjE5aa4HFDWHKT2xjrBknpanqRsxD2QhwzeN" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAADQAAAAARa2V5QWN0aXZhdGVIZWlnaHQCAAAAD2FjdGl2YXRlX2hlaWdodAAAAAAPa2V5RmluaXNoSGVpZ2h0AgAAAA1maW5pc2hfaGVpZ2h0AAAAAA5hY3RpdmF0ZUhlaWdodAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwUAAAARa2V5QWN0aXZhdGVIZWlnaHQAAAAADGZpbmlzaEhlaWdodAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwUAAAAPa2V5RmluaXNoSGVpZ2h0AAAAAA50b3RhbFNoYXJlRU5OTwAAAFrzEHpAAAAAAAAERU5OTwEAAAAgFbvcV9OA6rL+53m/DeV6nxGYIu+IXr9brrnP32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kQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAApGRgDc=", "height": 1763302, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GHw9NzBucj7vPzew668MM4JVno4rwAKS9S1jd8g5hTXV Next: BHUM1nAPWfWvHiiqvYaUvRsg3G3HztUoX65dB3tzZBa2 Diff:
Old | New | Differences | |
---|---|---|---|
84 | 84 | @Verifier(B) | |
85 | 85 | func C () = { | |
86 | 86 | let p = B | |
87 | - | let D = if (sigVerify(B.bodyBytes, B.proofs[0], i)) | |
88 | - | then 1 | |
89 | - | else 0 | |
90 | - | let E = if (sigVerify(B.bodyBytes, B.proofs[1], j)) | |
91 | - | then 1 | |
92 | - | else 0 | |
93 | - | let F = if (sigVerify(B.bodyBytes, B.proofs[2], k)) | |
94 | - | then 1 | |
95 | - | else 0 | |
96 | - | (((D + E) + F) >= 2) | |
87 | + | if ($isInstanceOf(p, "DataTransaction")) | |
88 | + | then { | |
89 | + | let D = p | |
90 | + | sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey) | |
91 | + | } | |
92 | + | else { | |
93 | + | let E = if (sigVerify(B.bodyBytes, B.proofs[0], i)) | |
94 | + | then 1 | |
95 | + | else 0 | |
96 | + | let F = if (sigVerify(B.bodyBytes, B.proofs[1], j)) | |
97 | + | then 1 | |
98 | + | else 0 | |
99 | + | let G = if (sigVerify(B.bodyBytes, B.proofs[2], k)) | |
100 | + | then 1 | |
101 | + | else 0 | |
102 | + | (((E + F) + G) >= 2) | |
103 | + | } | |
97 | 104 | } | |
98 | 105 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "activate_height" | |
5 | 5 | ||
6 | 6 | let b = "finish_height" | |
7 | 7 | ||
8 | 8 | let c = getIntegerValue(this, a) | |
9 | 9 | ||
10 | 10 | let d = getIntegerValue(this, b) | |
11 | 11 | ||
12 | 12 | let e = 100000000000000 | |
13 | 13 | ||
14 | 14 | let f = base58'2Tqhz5PWbkijnzYpdLxLDFfVDw5ALQWm2rmxQ79ooMRZ' | |
15 | 15 | ||
16 | 16 | let g = "_ENNO_claimed_amount" | |
17 | 17 | ||
18 | 18 | let h = "_ENNO_last_claimed_amount" | |
19 | 19 | ||
20 | 20 | let i = base58'DkMBTSHqT9hKVK1joeyL9DWKdzMAiCYZtYVkMPUx4Zwq' | |
21 | 21 | ||
22 | 22 | let j = base58'DkMBTSHqT9hKVK1joeyL9DWKdzMAiCYZtYVkMPUx4Zwq' | |
23 | 23 | ||
24 | 24 | let k = base58'DkMBTSHqT9hKVK1joeyL9DWKdzMAiCYZtYVkMPUx4Zwq' | |
25 | 25 | ||
26 | 26 | func l (m) = { | |
27 | 27 | let n = getInteger(this, ("share_" + toString(m))) | |
28 | 28 | let o = { | |
29 | 29 | let p = n | |
30 | 30 | if ($isInstanceOf(p, "Int")) | |
31 | 31 | then { | |
32 | 32 | let q = p | |
33 | 33 | q | |
34 | 34 | } | |
35 | 35 | else if ($isInstanceOf(p, "Unit")) | |
36 | 36 | then { | |
37 | 37 | let q = p | |
38 | 38 | throw("Only early liquidity providers can call this function") | |
39 | 39 | } | |
40 | 40 | else throw("Match error") | |
41 | 41 | } | |
42 | 42 | o | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func r (m) = { | |
47 | 47 | let s = getInteger(this, (toString(m) + g)) | |
48 | 48 | let t = { | |
49 | 49 | let p = s | |
50 | 50 | if ($isInstanceOf(p, "Int")) | |
51 | 51 | then { | |
52 | 52 | let q = p | |
53 | 53 | q | |
54 | 54 | } | |
55 | 55 | else if ($isInstanceOf(p, "Unit")) | |
56 | 56 | then { | |
57 | 57 | let q = p | |
58 | 58 | 0 | |
59 | 59 | } | |
60 | 60 | else throw("Match error") | |
61 | 61 | } | |
62 | 62 | t | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | @Callable(u) | |
67 | 67 | func claimENNO () = { | |
68 | 68 | let v = (d - c) | |
69 | 69 | let w = if ((d > height)) | |
70 | 70 | then height | |
71 | 71 | else d | |
72 | 72 | let x = l(u.caller) | |
73 | 73 | if ((c > height)) | |
74 | 74 | then throw("Early Bird period has not been started yet.") | |
75 | 75 | else { | |
76 | 76 | let y = r(u.caller) | |
77 | 77 | let z = (fraction((w - c), x, v) - y) | |
78 | 78 | let A = (y + z) | |
79 | 79 | [ScriptTransfer(u.caller, z, f), IntegerEntry((toString(u.caller) + g), A), IntegerEntry((toString(u.caller) + h), z)] | |
80 | 80 | } | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | @Verifier(B) | |
85 | 85 | func C () = { | |
86 | 86 | let p = B | |
87 | - | let D = if (sigVerify(B.bodyBytes, B.proofs[0], i)) | |
88 | - | then 1 | |
89 | - | else 0 | |
90 | - | let E = if (sigVerify(B.bodyBytes, B.proofs[1], j)) | |
91 | - | then 1 | |
92 | - | else 0 | |
93 | - | let F = if (sigVerify(B.bodyBytes, B.proofs[2], k)) | |
94 | - | then 1 | |
95 | - | else 0 | |
96 | - | (((D + E) + F) >= 2) | |
87 | + | if ($isInstanceOf(p, "DataTransaction")) | |
88 | + | then { | |
89 | + | let D = p | |
90 | + | sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey) | |
91 | + | } | |
92 | + | else { | |
93 | + | let E = if (sigVerify(B.bodyBytes, B.proofs[0], i)) | |
94 | + | then 1 | |
95 | + | else 0 | |
96 | + | let F = if (sigVerify(B.bodyBytes, B.proofs[1], j)) | |
97 | + | then 1 | |
98 | + | else 0 | |
99 | + | let G = if (sigVerify(B.bodyBytes, B.proofs[2], k)) | |
100 | + | then 1 | |
101 | + | else 0 | |
102 | + | (((E + F) + G) >= 2) | |
103 | + | } | |
97 | 104 | } | |
98 | 105 |
github/deemru/w8io/169f3d6 20.92 ms ◑