Module coin

Source

Constants§

FACTORY_MAX_SUBDENOM_SIZE
FACTORY_PREFIX

Functions§

add_coins
Add the coins in to_add to coins if they exist.
aggregate_coins
Aggregates coins from two vectors, summing up the amounts of coins that are the same.
burn_coin_msg
Creates a CosmosMsg::Bank::BankMsg::Burn message with the given coin.
get_factory_token_creator
Gets the creator of a factory token. To be called after is_factory_token has been successful.
get_factory_token_subdenom
Gets the subdenom of a factory token. To be called after is_factory_token has been successful.
is_factory_token
Verifies if the given denom is a factory token or not. A factory token has the following structure: factory/{creating contract address}/{subdenom} Subdenom can be of length at most 44 characters, in [0-9a-zA-Z./]. For more details about what’s expected from a factory token, please refer to https://docs.osmosis.zone/osmosis-core/modules/tokenfactory