Module 0x2::coin
Defines the Coin type - platform wide representation of fungible tokens and coins. Coin can be described as a secure wrapper around Balance type.
- Resource
Coin
- Resource
CoinMetadata
- Resource
RegulatedCoinMetadata
- Resource
TreasuryCap
- Resource
DenyCap
- Struct
CurrencyCreated
- Constants
- Function
total_supply
- Function
treasury_into_supply
- Function
supply_immut
- Function
supply_mut
- Function
value
- Function
balance
- Function
balance_mut
- Function
from_balance
- Function
into_balance
- Function
take
- Function
put
- Function
join
- Function
split
- Function
divide_into_n
- Function
zero
- Function
destroy_zero
- Function
create_currency
- Function
create_regulated_currency
- Function
mint
- Function
mint_balance
- Function
burn
- Function
deny_list_add
- Function
deny_list_remove
- Function
deny_list_contains
- Function
mint_and_transfer
- Function
update_name
- Function
update_symbol
- Function
update_description
- Function
update_icon_url
- Function
get_decimals
- Function
get_name
- Function
get_symbol
- Function
get_description
- Function
get_icon_url
- Function
supply
use 0x1::ascii;
use 0x1::option;
use 0x1::string;
use 0x1::type_name;
use 0x2::balance;
use 0x2::deny_list;
use 0x2::object;
use 0x2::transfer;
use 0x2::tx_context;
use 0x2::types;
use 0x2::url;