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: batch migrate script for recording current validators on staker #266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cbor_metadata = false
sparse_mode = false
build_info = true

via_ir = true
via_ir = false
fuzz_runs = 500
deny_warnings = false

Expand Down
15 changes: 15 additions & 0 deletions nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,21 @@
"unpauseStaking()"
'';
}
{
category = "admin";
name = "batch-migrate";
help = "Batch migrate validators records on staker module";
command = ''
forge script $PRJ_ROOT/script/BatchMigrate.s.sol:BatchMigrateScript \
--chain-id 1 \
--rpc-url $RPC_MAINNET \
--broadcast \
--private-key $PRIVATE_KEY \
--verify \
--etherscan-api-key $ETHERSCAN_API_KEY \
-vvvvv
'';
}
{
category = "operator";
name = "CreateValidator";
Expand Down
184 changes: 184 additions & 0 deletions script/BatchMigrate.s.sol

Large diffs are not rendered by default.

193 changes: 193 additions & 0 deletions test/BatchMigrate.t.sol

Large diffs are not rendered by default.

Loading