Update osmosis-std requirement from 0.25.0 to 0.27.0 #175
build-and-push-docker-image.yml
on: push
build-and-push
8m 5s
Annotations
73 errors and 1 warning
mismatched types:
contracts/carrot-app/src/state.rs#L103
error[E0308]: mismatched types
--> contracts/carrot-app/src/state.rs:103:39
|
103 | ConcentratedliquidityQuerier::new(querier)
| --------------------------------- ^^^^^^^ expected `&QuerierWrapper<'_, _>`, found `&QuerierWrapper<'_>`
| |
| arguments to this function are incorrect
|
= note: `cosmwasm_std::QuerierWrapper<'_>` and `QuerierWrapper<'_, _>` have similar names, but are actually distinct types
note: `cosmwasm_std::QuerierWrapper<'_>` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/traits.rs:199:1
|
199 | pub struct QuerierWrapper<'a, C: CustomQuery = Empty> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `QuerierWrapper<'_, _>` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/traits.rs:334:1
|
334 | pub struct QuerierWrapper<'a, C: CustomQuery = Empty> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/osmosis-std-0.27.0/src/types/osmosis/concentratedliquidity/v1beta1.rs:1758:12
|
1758 | pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
| ^^^
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/replies/withdraw_to_asset.rs#L23
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/replies/withdraw_to_asset.rs:23:91
|
12 | pub fn withdraw_to_asset_reply(deps: DepsMut, env: Env, app: App, reply: Reply) -> AppResult {
| --------- expected `error::AppError` because of this
...
23 | let response: MsgWithdrawPositionResponse = parsed.data.unwrap_or_default().try_into()?;
| ----------^ the trait `std::convert::From<std::convert::Infallible>` is not implemented for `error::AppError`, which is required by `std::result::Result<cosmwasm_std::Response, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, _>>`
| |
| this can't be annotated with `?` because it has type `Result<_, std::convert::Infallible>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::convert::Infallible>>`
|
the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied:
contracts/carrot-app/src/replies/withdraw_to_asset.rs#L23
error[E0277]: the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied
--> contracts/carrot-app/src/replies/withdraw_to_asset.rs:23:81
|
23 | let response: MsgWithdrawPositionResponse = parsed.data.unwrap_or_default().try_into()?;
| ^^^^^^^^ the trait `std::convert::From<cosmwasm_std::Binary>` is not implemented for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse`, which is required by `cosmwasm_std::Binary: std::convert::TryInto<_>`
|
= note: required for `cosmwasm_std::Binary` to implement `std::convert::Into<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse>`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse` to implement `std::convert::TryFrom<cosmwasm_std::Binary>`
= note: required for `cosmwasm_std::Binary` to implement `std::convert::TryInto<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/replies/create_position.rs#L21
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/replies/create_position.rs:21:97
|
11 | pub fn create_position_reply(deps: DepsMut, env: Env, app: App, reply: Reply) -> AppResult {
| --------- expected `error::AppError` because of this
...
21 | let response: MsgCreatePositionResponse = parsed.data.clone().unwrap_or_default().try_into()?;
| ----------^ the trait `std::convert::From<std::convert::Infallible>` is not implemented for `error::AppError`, which is required by `std::result::Result<cosmwasm_std::Response, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, _>>`
| |
| this can't be annotated with `?` because it has type `Result<_, std::convert::Infallible>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::convert::Infallible>>`
|
the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied:
contracts/carrot-app/src/replies/create_position.rs#L21
error[E0277]: the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied
--> contracts/carrot-app/src/replies/create_position.rs:21:87
|
21 | let response: MsgCreatePositionResponse = parsed.data.clone().unwrap_or_default().try_into()?;
| ^^^^^^^^ the trait `std::convert::From<cosmwasm_std::Binary>` is not implemented for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse`, which is required by `cosmwasm_std::Binary: std::convert::TryInto<_>`
|
= note: required for `cosmwasm_std::Binary` to implement `std::convert::Into<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse>`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse` to implement `std::convert::TryFrom<cosmwasm_std::Binary>`
= note: required for `cosmwasm_std::Binary` to implement `std::convert::TryInto<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/replies/add_to_position.rs#L22
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/replies/add_to_position.rs:22:88
|
11 | pub fn add_to_position_reply(deps: DepsMut, env: Env, app: App, reply: Reply) -> AppResult {
| --------- expected `error::AppError` because of this
...
22 | let response: MsgAddToPositionResponse = parsed.data.unwrap_or_default().try_into()?;
| ----------^ the trait `std::convert::From<std::convert::Infallible>` is not implemented for `error::AppError`, which is required by `std::result::Result<cosmwasm_std::Response, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, _>>`
| |
| this can't be annotated with `?` because it has type `Result<_, std::convert::Infallible>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::convert::Infallible>>`
|
the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied:
contracts/carrot-app/src/replies/add_to_position.rs#L22
error[E0277]: the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied
--> contracts/carrot-app/src/replies/add_to_position.rs:22:78
|
22 | let response: MsgAddToPositionResponse = parsed.data.unwrap_or_default().try_into()?;
| ^^^^^^^^ the trait `std::convert::From<cosmwasm_std::Binary>` is not implemented for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse`, which is required by `cosmwasm_std::Binary: std::convert::TryInto<_>`
|
= note: required for `cosmwasm_std::Binary` to implement `std::convert::Into<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse>`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse` to implement `std::convert::TryFrom<cosmwasm_std::Binary>`
= note: required for `cosmwasm_std::Binary` to implement `std::convert::TryInto<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse>`
|
type mismatch resolving `<[Coin; 2] as IntoIterator>::Item == Coin`:
contracts/carrot-app/src/handlers/swap_helpers.rs#L30
error[E0271]: type mismatch resolving `<[Coin; 2] as IntoIterator>::Item == Coin`
--> contracts/carrot-app/src/handlers/swap_helpers.rs:30:33
|
30 | cosmwasm_to_proto_coins(coins)
| ----------------------- ^^^^^ expected `cosmwasm_std::coin::Coin`, found `cosmwasm_std::Coin`
| |
| required by a bound introduced by this call
|
= note: `cosmwasm_std::Coin` and `cosmwasm_std::coin::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: required by a bound in `osmosis_std::cosmwasm_to_proto_coins`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/osmosis-std-0.27.0/src/shim.rs:367:30
|
366 | pub fn cosmwasm_to_proto_coins(
| ----------------------- required by a bound in this function
367 | coins: impl IntoIterator<Item = cosmwasm_std::Coin>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `cosmwasm_to_proto_coins`
|
mismatched types:
contracts/carrot-app/src/handlers/query.rs#L116
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/query.rs:116:9
|
116 | balances,
| ^^^^^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/query.rs#L107
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/query.rs:107:7
|
96 | fn query_balance(deps: Deps, _app: &App) -> AppResult<AssetsBalanceResponse> {
| -------------------------------- expected `error::AppError` because of this
...
104 | let balances = try_proto_to_cosmwasm_coins(vec![
| ____________________-
105 | | carrot_position.position.asset0.unwrap(),
106 | | carrot_position.position.asset1.unwrap(),
107 | | ])?;
| | -^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`, which is required by `std::result::Result<msg::AssetsBalanceResponse, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
| |______|
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<msg::AssetsBalanceResponse, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
mismatched types:
contracts/carrot-app/src/handlers/query.rs#L83
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/query.rs:83:9
|
83 | incentives,
| ^^^^^^^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
|
mismatched types:
contracts/carrot-app/src/handlers/query.rs#L82
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/query.rs:82:9
|
82 | spread_rewards,
| ^^^^^^^^^^^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/query.rs#L40
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/query.rs:40:87
|
31 | fn query_compound_status(deps: Deps, env: Env, app: &App) -> AppResult<CompoundStatusResponse> {
| --------------------------------- expected `error::AppError` because of this
...
40 | try_proto_to_cosmwasm_coins(carrot_position.position.claimable_incentives)?,
| --------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`, which is required by `std::result::Result<msg::CompoundStatusResponse, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<msg::CompoundStatusResponse, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/query.rs#L39
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/query.rs:39:91
|
31 | fn query_compound_status(deps: Deps, env: Env, app: &App) -> AppResult<CompoundStatusResponse> {
| --------------------------------- expected `error::AppError` because of this
...
39 | try_proto_to_cosmwasm_coins(carrot_position.position.claimable_spread_rewards)?,
| ------------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`, which is required by `std::result::Result<msg::CompoundStatusResponse, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<msg::CompoundStatusResponse, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/instantiate.rs#L32
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/instantiate.rs:32:20
|
25 | ) -> AppResult {
| --------- expected `error::AppError` because of this
...
32 | .try_into()?;
| ----------^ the trait `std::convert::From<prost::error::DecodeError>` is not implemented for `error::AppError`, which is required by `std::result::Result<cosmwasm_std::Response, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, _>>`
| |
| this can't be annotated with `?` because it has type `Result<_, prost::error::DecodeError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, prost::error::DecodeError>>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/instantiate.rs#L29
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/instantiate.rs:29:27
|
25 | ) -> AppResult {
| --------- expected `error::AppError` because of this
...
29 | .pool(msg.pool_id)?
| -----------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`, which is required by `std::result::Result<cosmwasm_std::Response, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
mismatched types:
contracts/carrot-app/src/handlers/instantiate.rs#L28
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/instantiate.rs:28:46
|
28 | let pool: Pool = PoolmanagerQuerier::new(&deps.querier)
| ----------------------- ^^^^^^^^^^^^^ expected `&QuerierWrapper<'_, _>`, found `&QuerierWrapper<'_>`
| |
| arguments to this function are incorrect
|
= note: `cosmwasm_std::QuerierWrapper<'_>` and `QuerierWrapper<'_, _>` have similar names, but are actually distinct types
note: `cosmwasm_std::QuerierWrapper<'_>` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/traits.rs:199:1
|
199 | pub struct QuerierWrapper<'a, C: CustomQuery = Empty> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `QuerierWrapper<'_, _>` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/traits.rs:334:1
|
334 | pub struct QuerierWrapper<'a, C: CustomQuery = Empty> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/osmosis-std-0.27.0/src/types/osmosis/poolmanager/v1beta1.rs:1749:12
|
1749 | pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
| ^^^
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L494
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:494:9
|
492 | let create_msg = app.auth_z(deps, Some(sender.clone()))?.execute(
| ------- required by a bound introduced by this call
493 | &env.contract.address,
494 | / MsgCreatePosition {
495 | | pool_id: config.pool_config.pool_id,
496 | | sender: sender.to_string(),
497 | | lower_tick,
... |
501 | | token_min_amount1: "0".to_string(),
502 | | },
| |_________^ the trait `std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition>` is not implemented for `cosmwasm_std::CosmosMsg`, which is required by `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition: std::convert::Into<cosmwasm_std::CosmosMsg>`
|
= help: the trait `std::convert::From<abstract_app::traits::ExecutorMsg>` is implemented for `cosmwasm_std::CosmosMsg`
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L408
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:408:9
|
406 | let msg = authz.execute(
| ------- required by a bound introduced by this call
407 | &env.contract.address,
408 | / MsgWithdrawPosition {
409 | | position_id: carrot_position.id,
410 | | sender: user.to_string(),
411 | | liquidity_amount: liquidity_amount.to_string(),
412 | | },
| |_________^ the trait `std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition>` is not implemented for `cosmwasm_std::CosmosMsg`, which is required by `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition: std::convert::Into<cosmwasm_std::CosmosMsg>`
|
= help: the trait `std::convert::From<abstract_app::traits::ExecutorMsg>` is implemented for `cosmwasm_std::CosmosMsg`
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L379
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:379:13
|
377 | collect_rewards_msgs.push(authz.execute(
| ------- required by a bound introduced by this call
378 | &env.contract.address,
379 | / MsgCollectSpreadRewards {
380 | | position_ids: vec![carrot_position.id],
381 | | sender: user.to_string(),
382 | | },
| |_____________^ the trait `std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not implemented for `cosmwasm_std::CosmosMsg`, which is required by `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards: std::convert::Into<cosmwasm_std::CosmosMsg>`
|
= help: the trait `std::convert::From<abstract_app::traits::ExecutorMsg>` is implemented for `cosmwasm_std::CosmosMsg`
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
mismatched types:
contracts/carrot-app/src/handlers/execute.rs#L375
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/execute.rs:375:25
|
375 | rewards.add(coin)?;
| --- ^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
| |
| arguments to this method are incorrect
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coins.rs:173:12
|
173 | pub fn add(&mut self, coin: Coin) -> StdResult<()> {
| ^^^
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L373
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:373:99
|
348 | ) -> AppResult<(Vec<CosmosMsg>, cosmwasm_std::Coins)> {
| ------------------------------------------------ expected `error::AppError` because of this
...
373 | for coin in try_proto_to_cosmwasm_coins(carrot_position.position.claimable_spread_rewards)?
| ------------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`, which is required by `std::result::Result<(std::vec::Vec<cosmwasm_std::CosmosMsg>, cosmwasm_std::Coins), error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<(std::vec::Vec<cosmwasm_std::CosmosMsg>, cosmwasm_std::Coins), error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L364
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:364:13
|
362 | collect_rewards_msgs.push(authz.execute(
| ------- required by a bound introduced by this call
363 | &env.contract.address,
364 | / MsgCollectIncentives {
365 | | position_ids: vec![carrot_position.id],
366 | | sender: user.to_string(),
367 | | },
| |_____________^ the trait `std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not implemented for `cosmwasm_std::CosmosMsg`, which is required by `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives: std::convert::Into<cosmwasm_std::CosmosMsg>`
|
= help: the trait `std::convert::From<abstract_app::traits::ExecutorMsg>` is implemented for `cosmwasm_std::CosmosMsg`
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
mismatched types:
contracts/carrot-app/src/handlers/execute.rs#L359
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/execute.rs:359:29
|
359 | rewards.add(coin)?;
| --- ^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
| |
| arguments to this method are incorrect
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coins.rs:173:12
|
173 | pub fn add(&mut self, coin: Coin) -> StdResult<()> {
| ^^^
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L357
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:357:95
|
348 | ) -> AppResult<(Vec<CosmosMsg>, cosmwasm_std::Coins)> {
| ------------------------------------------------ expected `error::AppError` because of this
...
357 | for coin in try_proto_to_cosmwasm_coins(carrot_position.position.claimable_incentives)? {
| --------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`, which is required by `std::result::Result<(std::vec::Vec<cosmwasm_std::CosmosMsg>, cosmwasm_std::Coins), error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<(std::vec::Vec<cosmwasm_std::CosmosMsg>, cosmwasm_std::Coins), error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L297
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:297:13
|
295 | collect_rewards_msgs.push(authz.execute(
| ------- required by a bound introduced by this call
296 | &env.contract.address,
297 | / MsgCollectSpreadRewards {
298 | | position_ids: vec![carrot_position.id],
299 | | sender: user.to_string(),
300 | | },
| |_____________^ the trait `std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not implemented for `cosmwasm_std::CosmosMsg`, which is required by `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards: std::convert::Into<cosmwasm_std::CosmosMsg>`
|
= help: the trait `std::convert::From<abstract_app::traits::ExecutorMsg>` is implemented for `cosmwasm_std::CosmosMsg`
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
mismatched types:
contracts/carrot-app/src/handlers/execute.rs#L293
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/execute.rs:293:25
|
293 | rewards.add(coin)?;
| --- ^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
| |
| arguments to this method are incorrect
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coins.rs:173:12
|
173 | pub fn add(&mut self, coin: Coin) -> StdResult<()> {
| ^^^
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L291
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:291:99
|
250 | fn autocompound(deps: DepsMut, env: Env, info: MessageInfo, app: App) -> AppResult {
| --------- expected `error::AppError` because of this
...
291 | for coin in try_proto_to_cosmwasm_coins(carrot_position.position.claimable_spread_rewards)?
| ------------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`, which is required by `std::result::Result<cosmwasm_std::Response, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L282
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:282:13
|
280 | collect_rewards_msgs.push(authz.execute(
| ------- required by a bound introduced by this call
281 | &env.contract.address,
282 | / MsgCollectIncentives {
283 | | position_ids: vec![carrot_position.id],
284 | | sender: user.to_string(),
285 | | },
| |_____________^ the trait `std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not implemented for `cosmwasm_std::CosmosMsg`, which is required by `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives: std::convert::Into<cosmwasm_std::CosmosMsg>`
|
= help: the trait `std::convert::From<abstract_app::traits::ExecutorMsg>` is implemented for `cosmwasm_std::CosmosMsg`
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
mismatched types:
contracts/carrot-app/src/handlers/execute.rs#L277
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/execute.rs:277:29
|
277 | rewards.add(coin)?;
| --- ^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
| |
| arguments to this method are incorrect
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coins.rs:173:12
|
173 | pub fn add(&mut self, coin: Coin) -> StdResult<()> {
| ^^^
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L275
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:275:95
|
250 | fn autocompound(deps: DepsMut, env: Env, info: MessageInfo, app: App) -> AppResult {
| --------- expected `error::AppError` because of this
...
275 | for coin in try_proto_to_cosmwasm_coins(carrot_position.position.claimable_incentives)? {
| --------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`, which is required by `std::result::Result<cosmwasm_std::Response, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L186
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:186:9
|
184 | let deposit_msg = app.auth_z(deps.as_ref(), Some(user.clone()))?.execute(
| ------- required by a bound introduced by this call
185 | &env.contract.address,
186 | / MsgAddToPosition {
187 | | position_id: carrot_position.id,
188 | | sender: user.to_string(),
189 | | amount0: assets_for_position.asset0.amount.to_string(),
... |
192 | | token_min_amount1: "0".to_string(),
193 | | },
| |_________^ the trait `std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition>` is not implemented for `cosmwasm_std::CosmosMsg`, which is required by `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition: std::convert::Into<cosmwasm_std::CosmosMsg>`
|
= help: the trait `std::convert::From<abstract_app::traits::ExecutorMsg>` is implemented for `cosmwasm_std::CosmosMsg`
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L165
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:165:75
|
156 | ) -> AppResult {
| --------- expected `error::AppError` because of this
...
165 | let asset1: Coin = carrot_position.position.asset1.unwrap().try_into()?;
| ----------^ the trait `std::convert::From<std::convert::Infallible>` is not implemented for `error::AppError`, which is required by `std::result::Result<cosmwasm_std::Response, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, _>>`
| |
| this can't be annotated with `?` because it has type `Result<_, std::convert::Infallible>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::convert::Infallible>>`
|
the trait bound `cosmwasm_std::Coin: std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L165
error[E0277]: the trait bound `cosmwasm_std::Coin: std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:165:65
|
165 | let asset1: Coin = carrot_position.position.asset1.unwrap().try_into()?;
| ^^^^^^^^ the trait `std::convert::From<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not implemented for `cosmwasm_std::Coin`, which is required by `osmosis_std::types::cosmos::base::v1beta1::Coin: std::convert::TryInto<_>`
|
= note: required for `osmosis_std::types::cosmos::base::v1beta1::Coin` to implement `std::convert::Into<cosmwasm_std::Coin>`
= note: required for `cosmwasm_std::Coin` to implement `std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>`
= note: required for `osmosis_std::types::cosmos::base::v1beta1::Coin` to implement `std::convert::TryInto<cosmwasm_std::Coin>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L164
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:164:75
|
156 | ) -> AppResult {
| --------- expected `error::AppError` because of this
...
164 | let asset0: Coin = carrot_position.position.asset0.unwrap().try_into()?;
| ----------^ the trait `std::convert::From<std::convert::Infallible>` is not implemented for `error::AppError`, which is required by `std::result::Result<cosmwasm_std::Response, error::AppError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, _>>`
| |
| this can't be annotated with `?` because it has type `Result<_, std::convert::Infallible>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::convert::Infallible>>`
|
the trait bound `cosmwasm_std::Coin: std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L164
error[E0277]: the trait bound `cosmwasm_std::Coin: std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:164:65
|
164 | let asset0: Coin = carrot_position.position.asset0.unwrap().try_into()?;
| ^^^^^^^^ the trait `std::convert::From<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not implemented for `cosmwasm_std::Coin`, which is required by `osmosis_std::types::cosmos::base::v1beta1::Coin: std::convert::TryInto<_>`
|
= note: required for `osmosis_std::types::cosmos::base::v1beta1::Coin` to implement `std::convert::Into<cosmwasm_std::Coin>`
= note: required for `cosmwasm_std::Coin` to implement `std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>`
= note: required for `osmosis_std::types::cosmos::base::v1beta1::Coin` to implement `std::convert::TryInto<cosmwasm_std::Coin>`
|
mismatched types:
contracts/carrot-app/src/state.rs#L103
error[E0308]: mismatched types
--> contracts/carrot-app/src/state.rs:103:39
|
103 | ConcentratedliquidityQuerier::new(querier)
| --------------------------------- ^^^^^^^ expected `&QuerierWrapper<'_, _>`, found `&QuerierWrapper<'_>`
| |
| arguments to this function are incorrect
|
= note: `cosmwasm_std::QuerierWrapper<'_>` and `QuerierWrapper<'_, _>` have similar names, but are actually distinct types
note: `cosmwasm_std::QuerierWrapper<'_>` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/traits.rs:199:1
|
199 | pub struct QuerierWrapper<'a, C: CustomQuery = Empty> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `QuerierWrapper<'_, _>` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/traits.rs:334:1
|
334 | pub struct QuerierWrapper<'a, C: CustomQuery = Empty> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/osmosis-std-0.27.0/src/types/osmosis/concentratedliquidity/v1beta1.rs:1758:12
|
1758 | pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
| ^^^
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/replies/withdraw_to_asset.rs#L23
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/replies/withdraw_to_asset.rs:23:91
|
12 | pub fn withdraw_to_asset_reply(deps: DepsMut, env: Env, app: App, reply: Reply) -> AppResult {
| --------- expected `error::AppError` because of this
...
23 | let response: MsgWithdrawPositionResponse = parsed.data.unwrap_or_default().try_into()?;
| ----------^ the trait `std::convert::From<std::convert::Infallible>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, std::convert::Infallible>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::convert::Infallible>>`
|
the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied:
contracts/carrot-app/src/replies/withdraw_to_asset.rs#L23
error[E0277]: the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied
--> contracts/carrot-app/src/replies/withdraw_to_asset.rs:23:81
|
23 | let response: MsgWithdrawPositionResponse = parsed.data.unwrap_or_default().try_into()?;
| ^^^^^^^^ unsatisfied trait bound
|
= help: the trait `std::convert::From<cosmwasm_std::Binary>` is not implemented for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse`
= note: required for `cosmwasm_std::Binary` to implement `std::convert::Into<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse>`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse` to implement `std::convert::TryFrom<cosmwasm_std::Binary>`
= note: required for `cosmwasm_std::Binary` to implement `std::convert::TryInto<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/replies/create_position.rs#L21
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/replies/create_position.rs:21:97
|
11 | pub fn create_position_reply(deps: DepsMut, env: Env, app: App, reply: Reply) -> AppResult {
| --------- expected `error::AppError` because of this
...
21 | let response: MsgCreatePositionResponse = parsed.data.clone().unwrap_or_default().try_into()?;
| ----------^ the trait `std::convert::From<std::convert::Infallible>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, std::convert::Infallible>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::convert::Infallible>>`
|
the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied:
contracts/carrot-app/src/replies/create_position.rs#L21
error[E0277]: the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied
--> contracts/carrot-app/src/replies/create_position.rs:21:87
|
21 | let response: MsgCreatePositionResponse = parsed.data.clone().unwrap_or_default().try_into()?;
| ^^^^^^^^ unsatisfied trait bound
|
= help: the trait `std::convert::From<cosmwasm_std::Binary>` is not implemented for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse`
= note: required for `cosmwasm_std::Binary` to implement `std::convert::Into<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse>`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse` to implement `std::convert::TryFrom<cosmwasm_std::Binary>`
= note: required for `cosmwasm_std::Binary` to implement `std::convert::TryInto<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/replies/add_to_position.rs#L22
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/replies/add_to_position.rs:22:88
|
11 | pub fn add_to_position_reply(deps: DepsMut, env: Env, app: App, reply: Reply) -> AppResult {
| --------- expected `error::AppError` because of this
...
22 | let response: MsgAddToPositionResponse = parsed.data.unwrap_or_default().try_into()?;
| ----------^ the trait `std::convert::From<std::convert::Infallible>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, std::convert::Infallible>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::convert::Infallible>>`
|
the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied:
contracts/carrot-app/src/replies/add_to_position.rs#L22
error[E0277]: the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied
--> contracts/carrot-app/src/replies/add_to_position.rs:22:78
|
22 | let response: MsgAddToPositionResponse = parsed.data.unwrap_or_default().try_into()?;
| ^^^^^^^^ unsatisfied trait bound
|
= help: the trait `std::convert::From<cosmwasm_std::Binary>` is not implemented for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse`
= note: required for `cosmwasm_std::Binary` to implement `std::convert::Into<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse>`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse` to implement `std::convert::TryFrom<cosmwasm_std::Binary>`
= note: required for `cosmwasm_std::Binary` to implement `std::convert::TryInto<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse>`
|
type mismatch resolving `<[Coin; 2] as IntoIterator>::Item == Coin`:
contracts/carrot-app/src/handlers/swap_helpers.rs#L30
error[E0271]: type mismatch resolving `<[Coin; 2] as IntoIterator>::Item == Coin`
--> contracts/carrot-app/src/handlers/swap_helpers.rs:30:33
|
30 | cosmwasm_to_proto_coins(coins)
| ----------------------- ^^^^^ expected `cosmwasm_std::coin::Coin`, found `cosmwasm_std::Coin`
| |
| required by a bound introduced by this call
|
= note: `cosmwasm_std::Coin` and `cosmwasm_std::coin::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: required by a bound in `osmosis_std::cosmwasm_to_proto_coins`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/osmosis-std-0.27.0/src/shim.rs:367:30
|
366 | pub fn cosmwasm_to_proto_coins(
| ----------------------- required by a bound in this function
367 | coins: impl IntoIterator<Item = cosmwasm_std::Coin>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `cosmwasm_to_proto_coins`
|
mismatched types:
contracts/carrot-app/src/handlers/query.rs#L116
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/query.rs:116:9
|
116 | balances,
| ^^^^^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/query.rs#L107
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/query.rs:107:7
|
96 | fn query_balance(deps: Deps, _app: &App) -> AppResult<AssetsBalanceResponse> {
| -------------------------------- expected `error::AppError` because of this
...
104 | let balances = try_proto_to_cosmwasm_coins(vec![
| ____________________-
105 | | carrot_position.position.asset0.unwrap(),
106 | | carrot_position.position.asset1.unwrap(),
107 | | ])?;
| | -^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`
| |______|
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<msg::AssetsBalanceResponse, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
mismatched types:
contracts/carrot-app/src/handlers/query.rs#L83
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/query.rs:83:9
|
83 | incentives,
| ^^^^^^^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
|
mismatched types:
contracts/carrot-app/src/handlers/query.rs#L82
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/query.rs:82:9
|
82 | spread_rewards,
| ^^^^^^^^^^^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/query.rs#L40
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/query.rs:40:87
|
31 | fn query_compound_status(deps: Deps, env: Env, app: &App) -> AppResult<CompoundStatusResponse> {
| --------------------------------- expected `error::AppError` because of this
...
40 | try_proto_to_cosmwasm_coins(carrot_position.position.claimable_incentives)?,
| --------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<msg::CompoundStatusResponse, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/query.rs#L39
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/query.rs:39:91
|
31 | fn query_compound_status(deps: Deps, env: Env, app: &App) -> AppResult<CompoundStatusResponse> {
| --------------------------------- expected `error::AppError` because of this
...
39 | try_proto_to_cosmwasm_coins(carrot_position.position.claimable_spread_rewards)?,
| ------------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<msg::CompoundStatusResponse, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/instantiate.rs#L32
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/instantiate.rs:32:20
|
25 | ) -> AppResult {
| --------- expected `error::AppError` because of this
...
32 | .try_into()?;
| ----------^ the trait `std::convert::From<prost::error::DecodeError>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, prost::error::DecodeError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, prost::error::DecodeError>>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/instantiate.rs#L29
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/instantiate.rs:29:27
|
25 | ) -> AppResult {
| --------- expected `error::AppError` because of this
...
29 | .pool(msg.pool_id)?
| -----------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
mismatched types:
contracts/carrot-app/src/handlers/instantiate.rs#L28
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/instantiate.rs:28:46
|
28 | let pool: Pool = PoolmanagerQuerier::new(&deps.querier)
| ----------------------- ^^^^^^^^^^^^^ expected `&QuerierWrapper<'_, _>`, found `&QuerierWrapper<'_>`
| |
| arguments to this function are incorrect
|
= note: `cosmwasm_std::QuerierWrapper<'_>` and `QuerierWrapper<'_, _>` have similar names, but are actually distinct types
note: `cosmwasm_std::QuerierWrapper<'_>` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/traits.rs:199:1
|
199 | pub struct QuerierWrapper<'a, C: CustomQuery = Empty> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `QuerierWrapper<'_, _>` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/traits.rs:334:1
|
334 | pub struct QuerierWrapper<'a, C: CustomQuery = Empty> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/osmosis-std-0.27.0/src/types/osmosis/poolmanager/v1beta1.rs:1749:12
|
1749 | pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
| ^^^
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L494
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:494:9
|
492 | let create_msg = app.auth_z(deps, Some(sender.clone()))?.execute(
| ------- required by a bound introduced by this call
493 | &env.contract.address,
494 | / MsgCreatePosition {
495 | | pool_id: config.pool_config.pool_id,
496 | | sender: sender.to_string(),
497 | | lower_tick,
... |
501 | | token_min_amount1: "0".to_string(),
502 | | },
| |_________^ unsatisfied trait bound
|
= help: the trait `From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition>` is not implemented for `cosmwasm_std::CosmosMsg`
but trait `From<abstract_app::traits::ExecutorMsg>` is implemented for it
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L408
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:408:9
|
406 | let msg = authz.execute(
| ------- required by a bound introduced by this call
407 | &env.contract.address,
408 | / MsgWithdrawPosition {
409 | | position_id: carrot_position.id,
410 | | sender: user.to_string(),
411 | | liquidity_amount: liquidity_amount.to_string(),
412 | | },
| |_________^ unsatisfied trait bound
|
= help: the trait `From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition>` is not implemented for `cosmwasm_std::CosmosMsg`
but trait `From<abstract_app::traits::ExecutorMsg>` is implemented for it
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L379
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:379:13
|
377 | collect_rewards_msgs.push(authz.execute(
| ------- required by a bound introduced by this call
378 | &env.contract.address,
379 | / MsgCollectSpreadRewards {
380 | | position_ids: vec![carrot_position.id],
381 | | sender: user.to_string(),
382 | | },
| |_____________^ unsatisfied trait bound
|
= help: the trait `From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not implemented for `cosmwasm_std::CosmosMsg`
but trait `From<abstract_app::traits::ExecutorMsg>` is implemented for it
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
mismatched types:
contracts/carrot-app/src/handlers/execute.rs#L375
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/execute.rs:375:25
|
375 | rewards.add(coin)?;
| --- ^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
| |
| arguments to this method are incorrect
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coins.rs:173:12
|
173 | pub fn add(&mut self, coin: Coin) -> StdResult<()> {
| ^^^
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L373
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:373:99
|
348 | ) -> AppResult<(Vec<CosmosMsg>, cosmwasm_std::Coins)> {
| ------------------------------------------------ expected `error::AppError` because of this
...
373 | for coin in try_proto_to_cosmwasm_coins(carrot_position.position.claimable_spread_rewards)?
| ------------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `Result<(Vec<CosmosMsg>, Coins), AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
= note: the full name for the type has been written to '/home/runner/work/carrot-app/carrot-app/target/debug/deps/carrot_app-8af9e7674e7948d4.long-type-12551118218926085108.txt'
= note: consider using `--verbose` to print the full type name to the console
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L364
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:364:13
|
362 | collect_rewards_msgs.push(authz.execute(
| ------- required by a bound introduced by this call
363 | &env.contract.address,
364 | / MsgCollectIncentives {
365 | | position_ids: vec![carrot_position.id],
366 | | sender: user.to_string(),
367 | | },
| |_____________^ unsatisfied trait bound
|
= help: the trait `From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not implemented for `cosmwasm_std::CosmosMsg`
but trait `From<abstract_app::traits::ExecutorMsg>` is implemented for it
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
mismatched types:
contracts/carrot-app/src/handlers/execute.rs#L359
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/execute.rs:359:29
|
359 | rewards.add(coin)?;
| --- ^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
| |
| arguments to this method are incorrect
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coins.rs:173:12
|
173 | pub fn add(&mut self, coin: Coin) -> StdResult<()> {
| ^^^
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L357
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:357:95
|
348 | ) -> AppResult<(Vec<CosmosMsg>, cosmwasm_std::Coins)> {
| ------------------------------------------------ expected `error::AppError` because of this
...
357 | for coin in try_proto_to_cosmwasm_coins(carrot_position.position.claimable_incentives)? {
| --------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `Result<(Vec<CosmosMsg>, Coins), AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
= note: the full name for the type has been written to '/home/runner/work/carrot-app/carrot-app/target/debug/deps/carrot_app-8af9e7674e7948d4.long-type-12551118218926085108.txt'
= note: consider using `--verbose` to print the full type name to the console
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L297
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:297:13
|
295 | collect_rewards_msgs.push(authz.execute(
| ------- required by a bound introduced by this call
296 | &env.contract.address,
297 | / MsgCollectSpreadRewards {
298 | | position_ids: vec![carrot_position.id],
299 | | sender: user.to_string(),
300 | | },
| |_____________^ unsatisfied trait bound
|
= help: the trait `From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not implemented for `cosmwasm_std::CosmosMsg`
but trait `From<abstract_app::traits::ExecutorMsg>` is implemented for it
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
mismatched types:
contracts/carrot-app/src/handlers/execute.rs#L293
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/execute.rs:293:25
|
293 | rewards.add(coin)?;
| --- ^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
| |
| arguments to this method are incorrect
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coins.rs:173:12
|
173 | pub fn add(&mut self, coin: Coin) -> StdResult<()> {
| ^^^
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L291
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:291:99
|
250 | fn autocompound(deps: DepsMut, env: Env, info: MessageInfo, app: App) -> AppResult {
| --------- expected `error::AppError` because of this
...
291 | for coin in try_proto_to_cosmwasm_coins(carrot_position.position.claimable_spread_rewards)?
| ------------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L282
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:282:13
|
280 | collect_rewards_msgs.push(authz.execute(
| ------- required by a bound introduced by this call
281 | &env.contract.address,
282 | / MsgCollectIncentives {
283 | | position_ids: vec![carrot_position.id],
284 | | sender: user.to_string(),
285 | | },
| |_____________^ unsatisfied trait bound
|
= help: the trait `From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not implemented for `cosmwasm_std::CosmosMsg`
but trait `From<abstract_app::traits::ExecutorMsg>` is implemented for it
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
mismatched types:
contracts/carrot-app/src/handlers/execute.rs#L277
error[E0308]: mismatched types
--> contracts/carrot-app/src/handlers/execute.rs:277:29
|
277 | rewards.add(coin)?;
| --- ^^^^ expected `cosmwasm_std::Coin`, found `cosmwasm_std::coin::Coin`
| |
| arguments to this method are incorrect
|
= note: `cosmwasm_std::coin::Coin` and `cosmwasm_std::Coin` have similar names, but are actually distinct types
note: `cosmwasm_std::coin::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-2.1.5/src/coin.rs:10:1
|
10 | pub struct Coin {
| ^^^^^^^^^^^^^^^
note: `cosmwasm_std::Coin` is defined in crate `cosmwasm_std`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coin.rs:8:1
|
8 | pub struct Coin {
| ^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `cosmwasm_std` are being used?
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.5.9/src/coins.rs:173:12
|
173 | pub fn add(&mut self, coin: Coin) -> StdResult<()> {
| ^^^
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L275
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:275:95
|
250 | fn autocompound(deps: DepsMut, env: Env, info: MessageInfo, app: App) -> AppResult {
| --------- expected `error::AppError` because of this
...
275 | for coin in try_proto_to_cosmwasm_coins(carrot_position.position.claimable_incentives)? {
| --------------------------------------------------------------------------^ the trait `std::convert::From<cosmwasm_std::errors::std_error::StdError>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, cosmwasm_std::errors::std_error::StdError>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, cosmwasm_std::errors::std_error::StdError>>`
|
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L186
error[E0277]: the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:186:9
|
184 | let deposit_msg = app.auth_z(deps.as_ref(), Some(user.clone()))?.execute(
| ------- required by a bound introduced by this call
185 | &env.contract.address,
186 | / MsgAddToPosition {
187 | | position_id: carrot_position.id,
188 | | sender: user.to_string(),
189 | | amount0: assets_for_position.asset0.amount.to_string(),
... |
192 | | token_min_amount1: "0".to_string(),
193 | | },
| |_________^ unsatisfied trait bound
|
= help: the trait `From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition>` is not implemented for `cosmwasm_std::CosmosMsg`
but trait `From<abstract_app::traits::ExecutorMsg>` is implemented for it
= help: for that trait implementation, expected `abstract_app::traits::ExecutorMsg`, found `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition`
= note: required for `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPosition` to implement `std::convert::Into<cosmwasm_std::CosmosMsg>`
note: required by a bound in `abstract_app::abstract_sdk::AuthZ::execute`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/abstract-sdk-0.23.0/src/apis/authz.rs:191:53
|
191 | pub fn execute(&self, grantee: &Addr, msg: impl Into<CosmosMsg>) -> CosmosMsg {
| ^^^^^^^^^^^^^^^ required by this bound in `AuthZ::execute`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L165
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:165:75
|
156 | ) -> AppResult {
| --------- expected `error::AppError` because of this
...
165 | let asset1: Coin = carrot_position.position.asset1.unwrap().try_into()?;
| ----------^ the trait `std::convert::From<std::convert::Infallible>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, std::convert::Infallible>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::convert::Infallible>>`
|
the trait bound `cosmwasm_std::Coin: std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L165
error[E0277]: the trait bound `cosmwasm_std::Coin: std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:165:65
|
165 | let asset1: Coin = carrot_position.position.asset1.unwrap().try_into()?;
| ^^^^^^^^ the trait `std::convert::From<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not implemented for `cosmwasm_std::Coin`
|
= note: required for `osmosis_std::types::cosmos::base::v1beta1::Coin` to implement `std::convert::Into<cosmwasm_std::Coin>`
= note: required for `cosmwasm_std::Coin` to implement `std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>`
= note: required for `osmosis_std::types::cosmos::base::v1beta1::Coin` to implement `std::convert::TryInto<cosmwasm_std::Coin>`
|
`?` couldn't convert the error to `error::AppError`:
contracts/carrot-app/src/handlers/execute.rs#L164
error[E0277]: `?` couldn't convert the error to `error::AppError`
--> contracts/carrot-app/src/handlers/execute.rs:164:75
|
156 | ) -> AppResult {
| --------- expected `error::AppError` because of this
...
164 | let asset0: Coin = carrot_position.position.asset0.unwrap().try_into()?;
| ----------^ the trait `std::convert::From<std::convert::Infallible>` is not implemented for `error::AppError`
| |
| this can't be annotated with `?` because it has type `Result<_, std::convert::Infallible>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
`error::AppError` implements `std::convert::From<abstract_app::AppError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_sdk::AbstractSdkError>`
`error::AppError` implements `std::convert::From<abstract_app::abstract_std::AbstractError>`
`error::AppError` implements `std::convert::From<abstract_app::objects::ans_host::AnsHostError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::CoinsError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::ConversionOverflowError>`
`error::AppError` implements `std::convert::From<cosmwasm_std::StdError>`
`error::AppError` implements `std::convert::From<cw_asset::AssetError>`
and 3 others
= note: required for `std::result::Result<cosmwasm_std::Response, error::AppError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::convert::Infallible>>`
|
the trait bound `cosmwasm_std::Coin: std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not satisfied:
contracts/carrot-app/src/handlers/execute.rs#L164
error[E0277]: the trait bound `cosmwasm_std::Coin: std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not satisfied
--> contracts/carrot-app/src/handlers/execute.rs:164:65
|
164 | let asset0: Coin = carrot_position.position.asset0.unwrap().try_into()?;
| ^^^^^^^^ the trait `std::convert::From<osmosis_std::types::cosmos::base::v1beta1::Coin>` is not implemented for `cosmwasm_std::Coin`
|
= note: required for `osmosis_std::types::cosmos::base::v1beta1::Coin` to implement `std::convert::Into<cosmwasm_std::Coin>`
= note: required for `cosmwasm_std::Coin` to implement `std::convert::TryFrom<osmosis_std::types::cosmos::base::v1beta1::Coin>`
= note: required for `osmosis_std::types::cosmos::base::v1beta1::Coin` to implement `std::convert::TryInto<cosmwasm_std::Coin>`
|
build-and-push
Process completed with exit code 1.
|
build-and-push
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|