Skip to content

Commit

Permalink
Add emergency proposal templates for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
movekevin committed Oct 11, 2022
1 parent dcc0a04 commit a0f97ea
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 1,328 deletions.
Empty file added mainnet/README.md
Empty file.
File renamed without changes.
16 changes: 16 additions & 0 deletions mainnet/emergency-proposals/sources/remove-validators.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/// This proposal removes specific validators from the validator set.
script {
use aptos_framework::aptos_governance;
use aptos_framework::stake;

fun main(proposal_id: u64) {
let framework_signer = &aptos_governance::resolve(proposal_id, @aptos_framework);
stake::remove_validators(framework_signer, &vector[
// TODO: Update list of validators to remove.
@0xda557f6d45952778e0c4c7296dc8f8303d846d5453800efd7b03cfbd5f8def04
]);

// End the epoch so the validator set change takes effect.
aptos_governance::reconfigure(framework_signer);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/// This proposal configures the validator set to only allow specific validators to create a stake pool and join.
script {
use aptos_framework::aptos_governance;
use aptos_framework::stake;

fun main(proposal_id: u64) {
let framework_signer = &aptos_governance::resolve(proposal_id, @aptos_framework);
stake::configure_allowed_validators(framework_signer, &vector[
// TODO: Update list of validators to add to the initial allowed list.
@0xda557f6d45952778e0c4c7296dc8f8303d846d5453800efd7b03cfbd5f8def04
]);

// End the epoch so the validator set change takes effect.
aptos_governance::reconfigure(framework_signer);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/// This proposal updates the list of validators allowed to join the validator set.
/// This can be combined with remove_validators to prevent validators from rejoining the set.
script {
use aptos_framework::aptos_governance;
use aptos_framework::stake;

fun main(proposal_id: u64) {
let framework_signer = &aptos_governance::resolve(proposal_id, @aptos_framework);
stake::add_allowed_validators(framework_signer, &vector[
// TODO: Update list of validators to add to the allowed list.
@0xda557f6d45952778e0c4c7296dc8f8303d846d5453800efd7b03cfbd5f8def04
]);

stake::remove_allowed_validators(framework_signer, &vector[
// TODO: Update list of validators to remove from the allowed list.
@0xda557f6d45952778e0c4c7296dc8f8303d846d5453800efd7b03cfbd5f8def04
]);

// End the epoch so the validator set change takes effect.
aptos_governance::reconfigure(framework_signer);
}
}
7 changes: 0 additions & 7 deletions premainnet/README.md

This file was deleted.

Binary file modified premainnet/genesis.blob
Binary file not shown.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions premainnet/proposals/metadata/2-set-default-gas-schedule.json

This file was deleted.

This file was deleted.

Loading

0 comments on commit a0f97ea

Please sign in to comment.