Terraswap: Common Types
This is a collection of common types and the queriers which are commonly used in terraswap contracts.
Data Types
AssetInfo
AssetInfo is a convience wrapper to represent the native token and the contract token as a single type.
Asset
It contains asset info with the amount of token.
PairInfo
It is used to represent response data of Pair-Info-Querier
Queriers
Native Token Balance Querier
It uses CosmWasm standard interface to query the account balance to chain.
Token Balance Querier
It provides simliar query interface with Native-Token-Balance-Querier for CW20 token balance.
Token Info Querier
It provides token info querier for CW20 token contract.
Native Token Deimals Querier
It provides native token decimals querier for factory contract.
Pair Info Querier From Factory
It also provides the query interface to query avaliable terraswap pair contract info. Any contract can query pair info to terraswap factory contract.
Pair Info Querier From Pair
It also provides the query interface to query avaliable terraswap pair contract info. Any contract can query pair info to pair contract.