Skip to content

Conversation

@0xClandestine
Copy link
Member

@0xClandestine 0xClandestine commented Sep 25, 2025

Motivation:

We want to reduce codesize so there's room for future functionality.

Modifications:

  • Removed SemVerMixin imports, updated tests, scripts, etc.
  • Added ProtocolRegistry which now tracks semver on a per contract basis set by owner.
  • Wrapped some modifiers to reduce codesize.
  • TODO: Explore whether some .length == .length checks can be removed as the compiler already handles them.

Result:

Codesize savings.

@0xClandestine 0xClandestine changed the base branch from main to release-dev/slashing-ux-improvements October 9, 2025 15:49
@0xClandestine 0xClandestine changed the base branch from release-dev/slashing-ux-improvements to refactor/split-alm October 9, 2025 16:12
**Motivation:**

We want to consolidate semver logic into a single purpose built
contract.

**Modifications:**

- Removed `SemVerMixin` import from all contracts.

**Result:**

More codesize savings.
@0xClandestine 0xClandestine changed the title perf: various codesize optimizations perf: remove SemVerMixin + add ProtocolRegistry Oct 9, 2025
@0xClandestine 0xClandestine changed the title perf: remove SemVerMixin + add ProtocolRegistry feat: remove SemVerMixin + add ProtocolRegistry Oct 9, 2025
@0xClandestine 0xClandestine merged commit bec851a into refactor/split-alm Oct 9, 2025
18 of 19 checks passed
@0xClandestine 0xClandestine deleted the perf/codesize branch October 9, 2025 16:46
@0xClandestine 0xClandestine restored the perf/codesize branch October 9, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants