astroport-fi / astroport-core

Astroport DEX core contracts
https://astroport.fi/
GNU General Public License v3.0
153 stars 105 forks source link

Types found within `astroport` and `astroport-pair` on crates.io are incompatible #376

Open ewoolsey opened 1 year ago

ewoolsey commented 1 year ago

For testing my smart contracts I'm using cw-multi-test which means that I need both the Message type definitions and the smart contract entry points (eg: execute, query) together. Bringing in both of these crates results in a type collision because they are not connected together properly on crates.io. This is likely due to the versions being incompatible.

epanchee commented 1 year ago

Hi Eric,

Could you clarify the issue? astroport-pair has astroport v2.8.0 dependency which can be found on crates.io.

ewoolsey commented 1 year ago

Could you clarify the issue?

Ah yeah sorry if I wasn't clean. I'll give a concrete example.

So none of the versions line up between astroport-pair and astro-port.


fn example(deps: DepsMut, env: Env, info: MessageInfo) {
    let msg = astroport::pair::ExecuteMsg::ClaimOwnership {},   // <--- The version of ExecuteMsg used here
    astroport_pair::contract::execute(deps, env, info, msg);    // <--- Is incompatible with the one expected here
}