Astroport: Common Types
This is a collection of common types and the queriers which are commonly used in astroport contracts.
Data Types
AssetInfo
AssetInfo is a convenience 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 similar 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 available astroport pair contract info. Any contract can query pair info to astroport factory contract.
Liquidity Token Querier
It returns liquidity token contract address of astroport pair contract.
Swap Pairs Simulating
Simulate
Returns simulation swap return, spread, commission amounts.
Reverse Simulate
Returns simulation swap offer, spread, commission amounts.