Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FA migration proposal to release v1.14 #13849

Merged
merged 1 commit into from
Jun 28, 2024
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
16 changes: 16 additions & 0 deletions aptos-move/aptos-release-builder/data/coin_to_fa_migration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
remote_endpoint: ~
name: coin_to_fa_migration
proposals:
- name: enable_coin_to_fa_migration
metadata:
title: "Enable the mapping from coin to fungible asset, including APT"
description: "Enables the changes in AIP-63 https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-63.md"
discussion_url: "https://github.com/aptos-foundation/AIPs/issues/326"
execution_mode: MultiStep
update_sequence:
- FeatureFlag:
enabled:
- concurrent_fungible_assets
- coin_to_fungible_asset_migration
- RawScript: aptos-move/aptos-release-builder/data/proposals/create_apt_mapping.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Initialize AIP-63 coin to fungible asset mapping.
// Create the mapping between coin <> FA and also add APT pairing in the map.

script {
use aptos_framework::aptos_governance;
use aptos_framework::coin;

fun main(proposal_id: u64) {
let framework_signer = aptos_governance::resolve_multi_step_proposal(
proposal_id,
@0x1,
{{ script_hash }},
);
coin::create_coin_conversion_map(&framework_signer);
coin::create_pairing<aptos_framework::aptos_coin::AptosCoin>(&framework_signer);
}
}
Loading