Primata/contract pipeline - #1285
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR appears to be updating the Movement staking contract pipeline with various optimizations and configuration changes. The changes focus on code cleanup, deployment configuration updates, and build optimization.
Key changes include:
- Removed unused debug imports and simplified variable usage in smart contracts
- Updated deployment addresses for Movement Foundation Safe and timelock contracts
- Enhanced build configuration with optimizer settings
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| MovementStakingStorage.sol | Removed unused forge-std console import |
| MCR.sol | Eliminated unnecessary intermediate variable in attester loop |
| deployments.json | Updated Foundation Safe and timelock contract addresses |
| config.json | Fixed minDelay type from string to number |
| Helper.sol | Refactored timelock deployment to use actual addresses instead of config arrays |
| foundry.toml | Added optimizer configuration for gas efficiency |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Could you add a description describing these changes and why we need them (paper trail) Also the foundry test cmd (it's been a while since we've run these locally). There are two conflicts here against main. |
Yeah, waiting on a couple of things to finalize this PR |
|
@0xmovses brought fixes for you |
|
As you mentioned in the PR description, some tests are failing If we expect these to fail, can you add expect failure for them? Also could you explain why each test should fail at this point? Thanks! |
commented out failing tests that are not applicable. |
|
Will be swinging back to review this. |
|
@apenzk pinging for re-review |
|
The PR provides an incomplete PR description. In particular it ommits that it already introduces the dev version of the MOVETokenV2 contract I suggest to improve the PR description : |
apenzk
left a comment
There was a problem hiding this comment.
forge test works for me.
Would prefer if there would be more documentation on the tests and i think the PR description could be improved, see #1285 (comment)
but this is non-blocking.
Summary
protocol-units.We had to deploy a new Timelock with new proposers and executors.
Changelog
Updates addresses on config.json to reflect new addresses.
After fixing foundry.toml we are able to bring back solidity
settlement/contractsso it compiles correctly.Testing
cd protocol-units/settlement/mcr/contracts
forge test
Outstanding issues
MCR is incomplete according to test. But it's not blocking.
Further verify deployments to make sure that no capabilities or configurations wrongly affected the protocol.