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

Implement Valence and Astroport Utils #1

Merged
merged 74 commits into from
Jul 4, 2024

Conversation

dowlandaiello
Copy link
Contributor

@dowlandaiello dowlandaiello commented Jun 26, 2024

This PR implements a TestContext builder mirroring the existing TestContext in the covenants repo. Astroport and valence helper functions are implemented as member functions of the TestContext, namely:

Astroport

  • tx_create_token_registry
  • tx_create_factory
  • tx_create_pool
  • tx_fund_pool
  • get_astroport_factory
  • get_astroport_pool

Valence

  • tx_create_auctions_manager
  • tx_create_auction
  • tx_fund_auction
  • tx_start_auction

Note: Additional helper functions have been added since this PR was created, including ones for Osmosis.

@dowlandaiello dowlandaiello self-assigned this Jun 26, 2024
src/utils/setup/astroport.rs Outdated Show resolved Hide resolved
src/utils/setup/astroport.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@bekauz bekauz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome work, this looks great!! left a few comments for now and will revisit the rest later

examples/neutron.rs Outdated Show resolved Hide resolved
examples/neutron.rs Outdated Show resolved Hide resolved
examples/neutron.rs Outdated Show resolved Hide resolved
examples/neutron.rs Outdated Show resolved Hide resolved
examples/neutron.rs Show resolved Hide resolved
Copy link
Contributor

@bekauz bekauz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing work!

a lot of my feedback is high level and often opinionated so please feel free to push back if you disagree with anything!

other than that, one general point is that with PRs like this that migrate existing codebase and/or adds stuff on top of it, lets try to make the migration path for those existing codebases as seamless as possible. so for instance addresses that are hardcoded in the existing codebase should only change if they really need to.

again, great job!

examples/chains/neutron_gaia.json Outdated Show resolved Hide resolved
examples/chains/neutron_gaia.json Outdated Show resolved Hide resolved
examples/configs/logs.json Show resolved Hide resolved
examples/neutron.rs Outdated Show resolved Hide resolved
examples/neutron_osmosis.rs Show resolved Hide resolved
src/utils/fixtures.rs Show resolved Hide resolved
src/utils/fixtures.rs Outdated Show resolved Hide resolved
src/utils/setup/astroport.rs Show resolved Hide resolved
src/utils/setup/osmosis.rs Outdated Show resolved Hide resolved
src/utils/test_context.rs Outdated Show resolved Hide resolved
Copy link

@stiiifff stiiifff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@dowlandaiello dowlandaiello merged commit c669f68 into main Jul 4, 2024
3 checks passed
@dowlandaiello dowlandaiello deleted the dowlandaiello/feature-sharedrepo branch July 4, 2024 15:13
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.

4 participants