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 Supply Querier
It provides token supply querier for CW20 token contract.
Pair Info Querier
It also provides the query interface to query avaliable terraswap pair contract info. Any contract can query pair info to terraswap factory contract.
Liquidity Token Querier
It returns liquidity token contract address of terraswap pair contract.