Source Code and Versions
Repositories
- astroport-core (https://github.com/astroport-fi/astroport-core): factory, pools, router, Maker, ASTRO burner, yASTRO, Incentives, Vesting, xASTRO staking, xASTRO payout and the periphery contracts.
- astroport-governance (https://github.com/astroport-fi/astroport-governance): the Assembly, the satellite, builder unlock and the retired governance contracts (vxASTRO, emissions controller, tributes).
- astroport-changelog (https://github.com/astroport-fi/astroport-changelog): deployment history.
Live versions
Each contract's version on chain is listed on Contract Addresses. This table maps the live contracts to their source in astroport-core:
| Contract | Crate | Source | Live version |
|---|---|---|---|
| Factory | astroport-factory | contracts/factory | Terra 1.8.0, Neutron 1.9.0 |
| Router 2.0 | astroport-router | contracts/router | 2.0.0 |
| Maker | astroport-maker | contracts/tokenomics/maker | 2.0.0 |
| ASTRO burner | astroport-astro-burner | contracts/tokenomics/astro_burner | 1.0.0 (Neutron) |
| yASTRO | astroport-yastro | contracts/tokenomics/yastro | 1.0.0 (Terra) |
| Incentives | astroport-incentives | contracts/tokenomics/incentives | Terra 1.5.0, Neutron 1.4.0 |
| Vesting | astroport-vesting | contracts/tokenomics/vesting | 1.4.0 |
| Exit-only pools | astroport-pair-exit-only | contracts/pair_exit_only | 1.0.0 (Neutron) |
| ASTRO converter pools | astroport-pair-converter | contracts/pair_astro_converter | 1.1.0 |
| Native coin registry | astroport-native-coin-registry | contracts/periphery/native_coin_registry | 1.1.0 |
| Neutron Treasury | astroport-whitelist | contracts/whitelist | 2.0.0 |
| xASTRO staking (retired) | astroport-staking | contracts/tokenomics/staking | 2.3.3 (Neutron) |
| xASTRO payout (finished) | astroport-xastro-payout | contracts/tokenomics/xastro_payout | 1.0.0 |
Router 1.3.1 and older pool versions come from earlier releases of astroport-core.
Checking a deployed contract
- Version: every Astroport contract stores its name and version under the
cw2keycontract_info. Query it as raw contract state, for exampleneutrond query wasm contract-state raw <address> 636F6E74726163745F696E666F(the hex ofcontract_info), or through any explorer's contract page. - Code:
neutrond query wasm contract <address>(orterrad) returns the code ID and the wasm admin.query wasm code-info <code_id>returns the code's checksum, which you can compare with the SHA-256 of a wasm built with the optimizer from the tagged source.