abstract icon indicating copy to clipboard operation
abstract copied to clipboard

Possibility to expose contract API directly

Open Kayanski opened this issue 2 years ago • 1 comments

I want to create an abstract adapter that respects the CW721 interface (as described here : https://github.com/CosmWasm/cw-nfts/blob/main/packages/cw721/README.md°.

However, I notice that the messages need to be wrapped inside a Module variant. abstract_core::base::{ExecuteMsg, QueryMsg}

Is there a way to expose a cw721 interface within an abstract app or adapter ? And have the messages available as the top level message as well as in the module ?

Thanks !

Kayanski avatar Feb 09 '24 14:02 Kayanski

Nope, and this won't be until #[untagged] becomes available.

CyberHoward avatar Feb 09 '24 15:02 CyberHoward

I want to create an abstract adapter that respects the CW721 interface (as described here : https://github.com/CosmWasm/cw-nfts/blob/main/packages/cw721/README.md°.

However, I notice that the messages need to be wrapped inside a Module variant. abstract_core::base::{ExecuteMsg, QueryMsg}

Is there a way to expose a cw721 interface within an abstract app or adapter ? And have the messages available as the top level message as well as in the module ?

Thanks !

Should this contract be standalone instead of adapter?

Buckram123 avatar Jun 17 '24 11:06 Buckram123

Closing because Standalone contracts works for me there

Kayanski avatar Jun 17 '24 13:06 Kayanski