-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add emergency proposal templates for mainnet
- Loading branch information
Showing
13 changed files
with
54 additions
and
1,328 deletions.
There are no files selected for viewing
Empty file.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
mainnet/emergency-proposals/sources/remove-validators.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
mainnet/emergency-proposals/sources/switch-to-allowed-validators-only.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
mainnet/emergency-proposals/sources/update-allowed-validators-list.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
6 changes: 0 additions & 6 deletions
6
premainnet/proposals/metadata/0-update-duration-and-increase-limit.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
premainnet/proposals/metadata/1-update-min_price_per_gas_unit.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
premainnet/proposals/metadata/2-set-default-gas-schedule.json
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
premainnet/proposals/sources/0-update-duration-and-increase-limit.move
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.