Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"title": "enable priority fee",
"description": "Calculate and distribute transaction fee to validators.",
"source_code_url": "https://github.com/aptos-foundation/mainnet-proposals/blob/main/sources/2025-12-23-enable-priority-fee",
"discussion_url": "https://github.com/aptos-foundation/AIPs/issues/646"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Script hash: 415960a0
script {
use aptos_framework::aptos_governance;
use aptos_framework::stake;

fun main(proposal_id: u64) {
let framework_signer = aptos_governance::resolve_multi_step_proposal(
proposal_id,
@0x1,
vector[70u8,127u8,54u8,84u8,224u8,128u8,219u8,244u8,223u8,248u8,220u8,188u8,24u8,25u8,100u8,98u8,185u8,65u8,253u8,90u8,138u8,38u8,136u8,131u8,125u8,97u8,245u8,91u8,235u8,197u8,7u8,106u8,],
);
stake::initialize_pending_transaction_fee(
&framework_signer
);
stake::set_transaction_fee_limit_per_epoch_per_pool(&framework_signer, 2000000000); // 20 APT
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Script hash: 467f3654
// Execution config upgrade proposal

// config: V6(
// ExecutionConfigV6 {
// transaction_shuffler_type: UseCaseAware {
// sender_spread_factor: 32,
// platform_use_case_spread_factor: 0,
// user_use_case_spread_factor: 4,
// },
// block_gas_limit_type: ComplexLimitV1 {
// effective_block_gas_limit: 30000,
// execution_gas_effective_multiplier: 1,
// io_gas_effective_multiplier: 1,
// conflict_penalty_window: 9,
// use_granular_resource_group_conflicts: false,
// use_module_publishing_block_conflict: true,
// block_output_limit: Some(
// 5242880,
// ),
// include_user_txn_size_in_block_output: true,
// add_block_limit_outcome_onchain: true,
// },
// enable_per_block_gas_limit: false,
// transaction_deduper_type: TxnHashAndAuthenticatorV1,
// gas_price_to_burn: 90,
// },
// )

script {
use aptos_framework::aptos_governance;
use aptos_framework::execution_config;

fun main(proposal_id: u64) {
let framework_signer = aptos_governance::resolve_multi_step_proposal(
proposal_id,
@0x1,
x"737b02e2b2ce9ee9a7cdd8b606fc5a108d55bd597181225707ca8bf0b153f338",);
let execution_blob: vector<u8> = x"060420000000000000000000000000000000040000000000000002307500000000000001000000000000000100000000000000090000000001010000500000000000010100015a00000000000000";

execution_config::set_for_next_epoch(&framework_signer, execution_blob);
aptos_governance::reconfigure(&framework_signer);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Script hash: 737b02e2
// Modifying on-chain feature flags:
// Enabled Features: [CalculateTransactionFeeForDistribution, DistributeTransactionFee]
// Disabled Features: []
//
script {
use aptos_framework::aptos_governance;
use std::features;

fun main(proposal_id: u64) {
let framework_signer = aptos_governance::resolve_multi_step_proposal(proposal_id, @0x1, x"");

let enabled_blob: vector<u64> = vector[
96, 97,
];

let disabled_blob: vector<u64> = vector[

];

features::change_feature_flags_for_next_epoch(&framework_signer, enabled_blob, disabled_blob);
aptos_governance::reconfigure(&framework_signer);
}
}