Module asset

Module asset 

Source

Enums§

Asset
Represents either a native asset or a cw20. Meant to be used as part of a msg in a contract call and not to be used internally
AssetType

Functions§

build_send_asset_with_tax_deduction_msg
Prepares a message to send the asset from the contract executing the messages to the recipient. If the AssetType is Native, a “tax” is charged (see build_send_native_asset_with_tax_deduction_msg for details). Also sender will always be the contract calling this method as it’s the only Bank Transfer No tax is charged on Cw20 asset transfers.
build_send_cw20_token_msg
build_send_native_asset_with_tax_deduction_msg
Prepare BankMsg::Send message. When doing native transfers a “tax” is charged. The actual amount taken from the contract is: amount + tax. Instead of sending amount, send: amount - compute_tax(amount).
get_asset_balance
Gets asset balance for the given address