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

Add tx query to wasmd QueryPlugins for smart contract #788

Closed
catShaark opened this issue Mar 18, 2022 · 4 comments
Closed

Add tx query to wasmd QueryPlugins for smart contract #788

catShaark opened this issue Mar 18, 2022 · 4 comments

Comments

@catShaark
Copy link
Contributor

I think this will be useful since in some cases, contracts need proof of on chain actions. Tx can't be query with StargateQuerrier.

@ethanfrey
Copy link
Member

Can you please provide a clear use case where this is essential?
One you are building, not some strawman you can imagine.

It may open up some possible non-determinism calling into tendermint, so adding it will require large amount of testing to ensure there is no issue, especially as many validators run patched tendermint versions.

@ethanfrey
Copy link
Member

wasmd theory is to limit functionality to what we know is correct. and even there, we keep finding odd corner cases where the cosmos sdk doesn't behave like we assumed it did

@catShaark
Copy link
Contributor Author

catShaark commented Mar 29, 2022

I want to make a contract on osmosis that manages fund sent from contracts on juno. For example contract A on juno sent 10 ibc juno to this contract, contract A can now send ibc packet to command this contract on what to do with that 10 ibc juno fund. Right now, this can be done by ibc-ing juno to some controlled osmosis account and then use that controlled osmosis account to send the ibc juno to this contract. This means that controlled osmosis account must be trusted or it can be some kind of reflect ibc contract in case the fund is anything related to gov (dao contract for example). I just think that it is really inconvenient.

@alpe
Copy link
Contributor

alpe commented Mar 30, 2022

This sounds a bit like interchain accounts or a custom protocol built on top of IBC. We provide some very nice integration with IBC, so that you get all their safety guarantees and do not need to replicate them.
Have you seen https://github.com/CosmWasm/cosmwasm/blob/main/IBC.md ?

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

No branches or pull requests

3 participants