Skip to content

test: add invariant check for staker strategy list#1197

Merged
ypatil12 merged 3 commits intotest/slashing-integration-testingfrom
yash/invariant-for-staker-strategy-deposits
Mar 3, 2025
Merged

test: add invariant check for staker strategy list#1197
ypatil12 merged 3 commits intotest/slashing-integration-testingfrom
yash/invariant-for-staker-strategy-deposits

Conversation

@ypatil12
Copy link
Copy Markdown
Contributor

@ypatil12 ypatil12 commented Mar 2, 2025

Motivation:

The staker strategy list should properly account for strategies when deposited or queued completely for withdrawal.

Modifications:

Added the following checks:

  • assert_StrategyNotInStakerStrategyList
  • assert_StrategyInStakerStrategyList
  • assert_StakerStrategyListEmpty

The first two are used on deposits or withdrawals. The last is used on undelegations.

Result:

More comprehensive invariant checks

@ypatil12 ypatil12 changed the base branch from dev to test/slashing-integration-testing March 2, 2025 19:19
@ypatil12 ypatil12 added 🗡️ Slashing Release Changes for the slashing release. 🧪 Test Test-related changes (unit, integration, etc.). labels Mar 2, 2025
@ypatil12 ypatil12 merged commit 6cef2b8 into test/slashing-integration-testing Mar 3, 2025
10 checks passed
@ypatil12 ypatil12 deleted the yash/invariant-for-staker-strategy-deposits branch March 3, 2025 16:43
ypatil12 added a commit that referenced this pull request Mar 5, 2025
**Motivation:**

The staker strategy list should properly account for strategies when
deposited or queued completely for withdrawal.

**Modifications:**

Added the following checks:

- assert_StrategyNotInStakerStrategyList
- assert_StrategyInStakerStrategyList
- assert_StakerStrategyListEmpty

The first two are used on deposits or withdrawals. The last is used on
undelegations.

**Result:**

More comprehensive invariant checks
ypatil12 added a commit that referenced this pull request Mar 5, 2025
**Motivation:**

The staker strategy list should properly account for strategies when
deposited or queued completely for withdrawal.

**Modifications:**

Added the following checks:

- assert_StrategyNotInStakerStrategyList
- assert_StrategyInStakerStrategyList
- assert_StakerStrategyListEmpty

The first two are used on deposits or withdrawals. The last is used on
undelegations.

**Result:**

More comprehensive invariant checks
ypatil12 added a commit that referenced this pull request Mar 5, 2025
**Motivation:**

Slashing Integration Testing for Competition Audit

**Modifications:**

***General State Validation***
- #1204
- #1198
- #1169
- #1158

***Upgrade Tests***
- #1187
- #1171
- #1143

***Dual Slash Tests***
- #1195
- #1153

***Rounding Tests***
- #1178

***EigenPod Tests***
- #1191
- #1188
- #1203
- #1194
- #1163

***Invariants***
- #1201
- #1176
- #1192
- #1197
- #1175
- #1189
- #1150
- #1149

**Result:**

Comprehensive Test Coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗡️ Slashing Release Changes for the slashing release. 🧪 Test Test-related changes (unit, integration, etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants