Skip to content
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

feat: csm el stealing penalty settling #71

Closed
wants to merge 19 commits into from

Conversation

vgorkavenko
Copy link

@vgorkavenko vgorkavenko commented May 24, 2024

EasyTrack factory for CSM EL stealing penalty workflow

@vgorkavenko vgorkavenko force-pushed the feat/csm-el-stealing-penalty-settling branch from 8bd164e to 5670cc9 Compare May 24, 2024 07:10
@vgorkavenko vgorkavenko force-pushed the feat/csm-el-stealing-penalty-settling branch from 5670cc9 to 21ef7fa Compare May 28, 2024 08:14
@vgorkavenko vgorkavenko changed the title WIP: csm el stealing penalty settling feat: csm el stealing penalty settling May 28, 2024
@vgorkavenko vgorkavenko marked this pull request as ready for review May 28, 2024 08:14
@vgorkavenko vgorkavenko force-pushed the feat/csm-el-stealing-penalty-settling branch from c462162 to 054c5cb Compare May 28, 2024 08:18
@vgorkavenko vgorkavenko requested review from madlabman and skhomuti May 28, 2024 08:36
utils/csm.py Outdated Show resolved Hide resolved
@vgorkavenko vgorkavenko requested review from dgusakov and madlabman May 30, 2024 13:13
vgorkavenko and others added 3 commits June 24, 2024 15:37
* feat: deploy script

* feat: acceptance deploy script
Co-authored-by: Eugene Mamin <TheDZhon@gmail.com>
@vgorkavenko vgorkavenko requested a review from TheDZhon August 14, 2024 14:11
return abi.decode(_evmScriptCallData, (uint256[]));
}

function _validateInputData(
Copy link
Contributor

@bulbozaur bulbozaur Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no check on duplicates, wont it cause any issues? Haven't found this case covered covered by tests in CSM repo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -4,8 +4,7 @@
from utils import lido


def test_grant_executor_permissions(accounts):
lido_contracts = lido.contracts(network=brownie.network.show_active())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused lido imports in files after switching to fixture

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

chain_id: 17000
evm_version: shanghai
fork: $HOLESKY_RPC_URL
gas_limit: 12000000000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the reason for extra holesky network with such a huge gas limit?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was needed for devnet purposes. will remove

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@@ -5,8 +5,7 @@
from utils import lido


def test_revoke_permissions(accounts):
lido_contracts = lido.contracts(network=network.show_active())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also import here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

log.nb("All factories have been deployed.")
log.nb("Saving atrifacts...")

with open(f"deployed-{network_name}.json", "w") as outfile:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this will rewrite the current deployed-{network_name}.json file, consider using different name for the file

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -13,7 +13,7 @@ development:
- cmd: ./ganache.sh
cmd_settings:
accounts: 10
evm_version: istanbul
evm_version: shanghai
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need a Shanghai version in tests? The compiler version will still be Istanbul, as contracts are written on the 0.8.6 Solidity version.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes we need. because contract calls csm contract in _validateInput when createEVMScript

return abi.decode(_evmScriptCallData, (uint256[]));
}

function _validateInputData(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@vgorkavenko vgorkavenko force-pushed the feat/csm-el-stealing-penalty-settling branch from 655d02b to 7ab457b Compare October 8, 2024 19:43
Copy link
Contributor

@bulbozaur bulbozaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but there are some addresses missing in the configurations that need to be filled in after the CSM deployment to pass the mainnet-fork tests before merge.

@vgorkavenko vgorkavenko force-pushed the feat/csm-el-stealing-penalty-settling branch from 23bb90d to 8ebf896 Compare October 11, 2024 07:45
@vgorkavenko vgorkavenko requested a review from bulbozaur October 11, 2024 08:25
Copy link
Contributor

@bulbozaur bulbozaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dgusakov
Copy link

All commits were moved to #78

@dgusakov dgusakov closed this Oct 14, 2024
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.

7 participants