diff --git a/metadata/2024-08-30-enable-concurrent-fungible-balance/enable_concurrent_fungible_balance.json b/metadata/2024-08-30-enable-concurrent-fungible-balance/enable_concurrent_fungible_balance.json new file mode 100644 index 0000000..71fa7ce --- /dev/null +++ b/metadata/2024-08-30-enable-concurrent-fungible-balance/enable_concurrent_fungible_balance.json @@ -0,0 +1,6 @@ +{ + "title": "Enable for accounts to opt-in into concurrent fungible balance", + "description": "Enables the changes in AIP-70 https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-70.md", + "source_code_url": "https://github.com/aptos-foundation/mainnet-proposals/blob/main/sources/2024-08-30-enable-concurrent-fungible-balance/0-features.move", + "discussion_url": "https://github.com/aptos-foundation/AIPs/issues/359" +} diff --git a/sources/2024-08-30-enable-concurrent-fungible-balance/0-features.move b/sources/2024-08-30-enable-concurrent-fungible-balance/0-features.move new file mode 100644 index 0000000..b236aeb --- /dev/null +++ b/sources/2024-08-30-enable-concurrent-fungible-balance/0-features.move @@ -0,0 +1,25 @@ +// Script hash: 82bcf277 +// Modifying on-chain feature flags: +// Enabled Features: [ConcurrentFungibleBalance] +// Disabled Features: [] +// +script { + use aptos_framework::aptos_governance; + use std::features; + use std::vector; + + fun main(proposal_id: u64) { + let framework_signer = aptos_governance::resolve_multi_step_proposal(proposal_id, @0x1, vector::empty()); + + let enabled_blob: vector = vector[ + 67, + ]; + + let disabled_blob: vector = vector[ + + ]; + + features::change_feature_flags_for_next_epoch(&framework_signer, enabled_blob, disabled_blob); + aptos_governance::reconfigure(&framework_signer); + } +}