Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: release Astroport v4 with native xASTRO on Neutron #414

Merged
merged 98 commits into from
Apr 5, 2024

Conversation

epanchee
Copy link
Collaborator

@epanchee epanchee commented Apr 2, 2024

This PR aims to bring new contracts and adjustments across the whole codebase to comply with new native xASTRO token. All these changes are required for proper Hub move to Neutron.

Related PRs:

Notable changes

  • staking contract now supports only native xASTRO minted on Neutron. Balances tracking implemented via astroport-tokenfactory-tracker contract (see periphery/tokenfactory_tracker) which is set as bank hook upon tokenfactory token creation;
  • Old cw20.ASTRO can be converted to new TF (token-factory) ASTRO version on any outpost inplace. You don't want to bridge old astro to Terra to do conversion there. astro_converter chain-agnostic contract serves this purpose. Note that this contract doesn't allow conversion in opposite direction i.e. TF ASTRO -> cw20.ASTRO.
  • To ease integrations and to smoothen UX we've developed virtual pair which aims to hide conversion logic behind the scenes (see contracts/pair_astro_converter). You will be able to use Astroport UI to swap cw20.ASTRO -> TF ASTRO at 1:1 ratio via usual swap tool or using astroport router contract.
  • Special migration endpoint in vesting contract (which serves as a "ASTRO bank" on each outpost) to convert old cw20.astro to tf astro on each outpost. After this migration ASTRO emissions will be turned into token factory form. Hence further reward claiming will be given in new token factory ASTRO;
  • Removed unused and obsolete contracts such as cw20_ics20, pair_astro_xastro, native-coin-wrapper, shared_multisig, token (which was basically copy-pasted from official cosmwasm cw20), generator, xastro_outpost_token. Removed outdated TS deploy scripts.

donovansolms and others added 30 commits October 6, 2023 12:45
epanchee added 27 commits March 26, 2024 14:39
feat(staking): support native ASTRO; mint native xASTRO with balance tracking
feat(astro converter): cw20 ASTRO -> native ASTRO
* feat(whitelist): customize whitelist (treasury) for Neutron

* allow neutron capability in CI

* update Cargo.lock
# Conflicts:
#	Cargo.lock
#	contracts/pair_xyk_sale_tax/Cargo.toml
#	contracts/pair_xyk_sale_tax/src/contract.rs
#	contracts/tokenomics/generator/Cargo.toml
#	contracts/tokenomics/generator/tests/integration.rs
#	contracts/tokenomics/incentives/Cargo.toml
#	contracts/tokenomics/maker/Cargo.toml
#	contracts/tokenomics/staking/Cargo.toml
#	contracts/tokenomics/staking/tests/integration.rs
#	contracts/tokenomics/vesting/Cargo.toml
#	packages/astroport/Cargo.toml
#	packages/astroport_mocks/src/staking.rs
* chore: remove unused contracts; bump deps

* remove obsolete and unused dev scripts

* add tarpaulin coverage dev script

* update SC diagram

* Update README.md

* remove unused deps

* bump Rust version in CI

* remove deps replacements

* update to temporal astroport-governance branch
@epanchee epanchee merged commit 5bff86a into main Apr 5, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants