Aptos Coin
Structures
struct Coin<phantom CoinType> has store {
/// Amount of coin this address has.
value: u64,
}struct CoinStore<phantom CoinType> has key {
coin: Coin<CoinType>,
frozen: bool,
deposit_events: EventHandle<DepositEvent>,
withdraw_events: EventHandle<WithdrawEvent>,
}Creating a new CoinType
Minting Coins
Burning Coinsβ
Freezing Accountsβ
Merging Coinsβ
Extracting Coinsβ
Withdrawing Coins from CoinStoreβ
Depositing Coins into CoinStoreβ
Transferring Coinsβ
Eventsβ
Last updated