Skip to content

Commit aa88ee9

Browse files
author
Bo Wu
committed
reset migration parameters
1 parent c3b705d commit aa88ee9

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "post-migration"
3+
version = "0.0.0"
4+
5+
[addresses]
6+
admin = "0x1"
7+
8+
[dependencies.AptosFramework]
9+
git = "https://github.com/movementlabsxyz/aptos-core.git"
10+
rev = "l1-migration"
11+
subdir = "aptos-move/framework/aptos-framework"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
script {
2+
use aptos_framework::aptos_governance;
3+
use aptos_framework::block;
4+
use aptos_framework::staking_config;
5+
6+
fun main(core_resources: &signer) {
7+
let core_signer = aptos_governance::get_signer_testnet_only(core_resources, @0000000000000000000000000000000000000000000000000000000000000001);
8+
block::update_epoch_interval_microsecs(&core_signer, 7_200_000_000); // 200 secs
9+
staking_config::update_voting_power_increase_limit(&core_signer, 50*1_000_000_000);
10+
aptos_governance::force_end_epoch(&core_signer);
11+
}
12+
}

movement-migration/reset_limits.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
cargo run -p movement move run-script --script-path movement-migration/post-migration/scripts/reset.move --sender-account 0xa550c18 --private-key-file "$PRIVATE_KEY_FILE" --url "$URL" --assume-yes

movement-migration/update_reconfiguration/sources/change_epoch_duration.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ script {
44

55
fun main(core_resources: &signer) {
66
let core_signer = aptos_governance::get_signer_testnet_only(core_resources, @0000000000000000000000000000000000000000000000000000000000000001);
7-
block::update_epoch_interval_microsecs(&core_signer, 7_200_000_000); // 2hrs
7+
block::update_epoch_interval_microsecs(&core_signer, 200_000_000); // 200 secs
88
}
99
}

0 commit comments

Comments
 (0)