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
- Asset
Type
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
AssetTypeisNative, a “tax” is charged (seebuild_send_native_asset_with_tax_deduction_msgfor details). Also sender will always be the contract calling this method as it’s the only Bank Transfer No tax is charged onCw20asset 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