Skip to content

Conversation

@joemonem
Copy link
Contributor

@joemonem joemonem commented Sep 1, 2025

Motivation

Getting PoolId was difficult

Implementation

  • Preserve pool creation data
  • Rename the contract

Testing

Was there any on-chain, or other types, of testing run with this change?

Version Changes

  • bumped minor version, renamed contract

Checklist

  • Versions bumped correctly and documented
  • Changelog entry added or label applied

@joemonem joemonem requested a review from SlayerAnsh September 1, 2025 09:01
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 1, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch osmosis-socket-queries

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

from_denom,
to_denom,
} => encode_binary(&query_get_route(deps, from_denom, to_denom)?),
QueryMsg::PoolInfo { creator } => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to store pool info using factory denoms pair as 1 creator can create multiple pools

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One creator can also create multiple pools using the same denoms pair. I'm thinking a state of pool_id to pool info would be best.
And if the user forgot the pool's id, he can check using the PoolsCreated query

SPENDER.remove(deps.storage);
let spender_and_params = SPENDER_AND_PARAMS.load(deps.storage)?;
SPENDER_AND_PARAMS.remove(deps.storage);

Copy link
Contributor

Choose a reason for hiding this comment

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

All the pool types will add the states to Pools Created and PoolQuery

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you elaborate on this?

@joemonem joemonem added the ci: skip-changelog Skips the changelog check in CI label Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: skip-changelog Skips the changelog check in CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants