Update osmosis-std requirement from 0.25.0 to 0.27.0 #175
clippy
36 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 36 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.84.0-beta.4 (202008a1b 2024-12-07)
- cargo 1.84.0-beta.4 (66221abde 2024-11-19)
- clippy 0.1.84 (202008a1b8 2024-12-07)
Annotations
Check failure on line 103 in contracts/carrot-app/src/state.rs
github-actions / clippy
mismatched types
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 {
| ^^^
Check failure on line 23 in contracts/carrot-app/src/replies/withdraw_to_asset.rs
github-actions / clippy
`?` couldn't convert the error to `error::AppError`
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>>`
Check failure on line 23 in contracts/carrot-app/src/replies/withdraw_to_asset.rs
github-actions / clippy
the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied
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>`
Check failure on line 21 in contracts/carrot-app/src/replies/create_position.rs
github-actions / clippy
`?` couldn't convert the error to `error::AppError`
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>>`
Check failure on line 21 in contracts/carrot-app/src/replies/create_position.rs
github-actions / clippy
the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied
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>`
Check failure on line 22 in contracts/carrot-app/src/replies/add_to_position.rs
github-actions / clippy
`?` couldn't convert the error to `error::AppError`
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>>`
Check failure on line 22 in contracts/carrot-app/src/replies/add_to_position.rs
github-actions / clippy
the trait bound `osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgAddToPositionResponse: std::convert::TryFrom<cosmwasm_std::Binary>` is not satisfied
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>`
Check failure on line 30 in contracts/carrot-app/src/handlers/swap_helpers.rs
github-actions / clippy
type mismatch resolving `<[Coin; 2] as IntoIterator>::Item == Coin`
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`
Check failure on line 116 in contracts/carrot-app/src/handlers/query.rs
github-actions / clippy
mismatched types
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?
Check failure on line 107 in contracts/carrot-app/src/handlers/query.rs
github-actions / clippy
`?` couldn't convert the error to `error::AppError`
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>>`
Check failure on line 83 in contracts/carrot-app/src/handlers/query.rs
github-actions / clippy
mismatched types
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?
Check failure on line 82 in contracts/carrot-app/src/handlers/query.rs
github-actions / clippy
mismatched types
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?
Check failure on line 40 in contracts/carrot-app/src/handlers/query.rs
github-actions / clippy
`?` couldn't convert the error to `error::AppError`
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>>`
Check failure on line 39 in contracts/carrot-app/src/handlers/query.rs
github-actions / clippy
`?` couldn't convert the error to `error::AppError`
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>>`
Check failure on line 32 in contracts/carrot-app/src/handlers/instantiate.rs
github-actions / clippy
`?` couldn't convert the error to `error::AppError`
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>>`
Check failure on line 29 in contracts/carrot-app/src/handlers/instantiate.rs
github-actions / clippy
`?` couldn't convert the error to `error::AppError`
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>>`
Check failure on line 28 in contracts/carrot-app/src/handlers/instantiate.rs
github-actions / clippy
mismatched types
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 {
| ^^^
Check failure on line 502 in contracts/carrot-app/src/handlers/execute.rs
github-actions / clippy
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCreatePosition>` is not satisfied
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`
Check failure on line 412 in contracts/carrot-app/src/handlers/execute.rs
github-actions / clippy
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgWithdrawPosition>` is not satisfied
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`
Check failure on line 382 in contracts/carrot-app/src/handlers/execute.rs
github-actions / clippy
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectSpreadRewards>` is not satisfied
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`
Check failure on line 375 in contracts/carrot-app/src/handlers/execute.rs
github-actions / clippy
mismatched types
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<()> {
| ^^^
Check failure on line 373 in contracts/carrot-app/src/handlers/execute.rs
github-actions / clippy
`?` couldn't convert the error to `error::AppError`
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
Check failure on line 367 in contracts/carrot-app/src/handlers/execute.rs
github-actions / clippy
the trait bound `cosmwasm_std::CosmosMsg: std::convert::From<osmosis_std::types::osmosis::concentratedliquidity::v1beta1::MsgCollectIncentives>` is not satisfied
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`
Check failure on line 359 in contracts/carrot-app/src/handlers/execute.rs
github-actions / clippy
mismatched types
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<()> {
| ^^^
Check failure on line 357 in contracts/carrot-app/src/handlers/execute.rs
github-actions / clippy
`?` couldn't convert the error to `error::AppError`
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