-
Notifications
You must be signed in to change notification settings - Fork 428
test: redistribution upgrade #1410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: redistribution upgrade #1410
Conversation
02658c6
to
452537c
Compare
452537c
to
9ba5f3d
Compare
@@ -462,44 +462,6 @@ contract SlashEscrowFactoryUnitTests_setStrategyEscrowDelay is SlashEscrowFactor | |||
} | |||
} | |||
|
|||
contract SlashEscrowFactoryUnitTests_getBurnOrRedistributionDelay is SlashEscrowFactoryUnitTests { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant test: SlashEscrowFactoryUnitTests_getEscrowDelay
d0ae1e7
to
ba469b5
Compare
7e82d53
to
d88ee4f
Compare
ba469b5
to
a88a807
Compare
test: increase burnable shares chore: add tests feat: simplify escrow delay chore: format chore: clarify natspec chore: fix typos feat: add convenience view functions (#1407) chore: remove commented code chore: format chore: format chore: add regression chore: naming chore: naming fix: build fix: slaky test chore: format chore: push chore: push test: passing redistribution upgrade test
a88a807
to
15a2bce
Compare
* @dev The interface remains the exact same, except `SlashOperator` does not return the slashID or shares | ||
* @dev This interface is the minimal possibl interface needed for the redistribution upgrade test | ||
*/ | ||
interface IAllocationManager_PreRedistribution { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed given only return values were changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main issue lies with existing return values changing, since contracts calling wold attempt to copy returndata that doesn't exist or is misplaced.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would assume it's not needed, but for some reason I'm reverting...
**Motivation:** We need to sanity test that slashes completed prior to redistribution can be burned after redistribution. **Modifications:** - Add redistribution upgrade test which tests: 1. A slash prior to redistribution can have its shares burned after the upgrade 2. A slash prior to redistribution can have its shares burned prior to upgrade & storage is cleared - Remove all User_m2/m1 functionality **Result:** Basic upgrade test.
Motivation:
We need to sanity test that slashes completed prior to redistribution can be burned after redistribution.
Modifications:
Result:
Basic upgrade test.