Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cosmos-sdk-proto requirement from 0.20.0 to 0.26.1 #104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Update cosmos-sdk-proto requirement from 0.20.0 to 0.26.1

b4e2112
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Update cosmos-sdk-proto requirement from 0.20.0 to 0.26.1 #104

Update cosmos-sdk-proto requirement from 0.20.0 to 0.26.1
b4e2112
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy failed Nov 20, 2024 in 0s

clippy

5 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 5
Warning 0
Note 0
Help 0

Versions

  • rustc 1.83.0-beta.6 (4ff8ff0ec 2024-11-16)
  • cargo 1.83.0-beta.6 (5ffbef321 2024-10-29)
  • clippy 0.1.83 (4ff8ff0 2024-11-16)

Annotations

Check failure on line 14 in bot/src/bot.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `traits::Message`

error: unused import: `traits::Message`
  --> bot/src/bot.rs:14:5
   |
14 |     traits::Message as _,
   |     ^^^^^^^^^^^^^^^
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`

Check failure on line 441 in bot/src/bot.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `decode` found for struct `osmosis_std::types::cosmos::bank::v1beta1::SendAuthorization` in the current scope

error[E0599]: no function or associated item named `decode` found for struct `osmosis_std::types::cosmos::bank::v1beta1::SendAuthorization` in the current scope
   --> bot/src/bot.rs:441:40
    |
441 |                     SendAuthorization::decode(&*grant.authorization.clone().unwrap().value).ok()
    |                                        ^^^^^^ function or associated item not found in `SendAuthorization`
    |
note: there are multiple different versions of crate `prost` in the dependency graph
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-0.12.6/src/message.rs:17:1
    |
17  |   pub trait Message: Debug + Send + Sync {
    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the trait that is needed
...
111 | /     fn decode<B>(mut buf: B) -> Result<Self, DecodeError>
112 | |     where
113 | |         B: Buf,
114 | |         Self: Default,
    | |______________________- the associated function is available for `osmosis_std::types::cosmos::bank::v1beta1::SendAuthorization` here
    |
   ::: bot/src/bot.rs:340:9
    |
340 |       use super::*;
    |           ----- `Message` imported here doesn't correspond to the right version of crate `prost`
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-0.13.3/src/message.rs:17:1
    |
17  |   pub trait Message: Debug + Send + Sync {
    |   -------------------------------------- this is the trait that was imported
help: there is a method `encode` with a similar name
    |
441 |                     SendAuthorization::encode(&*grant.authorization.clone().unwrap().value).ok()
    |                                        ~~~~~~

Check failure on line 422 in bot/src/bot.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `decode` found for struct `osmosis_std::types::cosmos::authz::v1beta1::GenericAuthorization` in the current scope

error[E0599]: no function or associated item named `decode` found for struct `osmosis_std::types::cosmos::authz::v1beta1::GenericAuthorization` in the current scope
   --> bot/src/bot.rs:422:39
    |
422 |                 GenericAuthorization::decode(&*grant.authorization.clone().unwrap().value).ok()
    |                                       ^^^^^^ function or associated item not found in `GenericAuthorization`
    |
note: there are multiple different versions of crate `prost` in the dependency graph
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-0.12.6/src/message.rs:17:1
    |
17  |   pub trait Message: Debug + Send + Sync {
    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the trait that is needed
...
111 | /     fn decode<B>(mut buf: B) -> Result<Self, DecodeError>
112 | |     where
113 | |         B: Buf,
114 | |         Self: Default,
    | |______________________- the associated function is available for `osmosis_std::types::cosmos::authz::v1beta1::GenericAuthorization` here
    |
   ::: bot/src/bot.rs:340:9
    |
340 |       use super::*;
    |           ----- `Message` imported here doesn't correspond to the right version of crate `prost`
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-0.13.3/src/message.rs:17:1
    |
17  |   pub trait Message: Debug + Send + Sync {
    |   -------------------------------------- this is the trait that was imported
help: there is a method `encode` with a similar name
    |
422 |                 GenericAuthorization::encode(&*grant.authorization.clone().unwrap().value).ok()
    |                                       ~~~~~~

Check failure on line 336 in bot/src/bot.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: could not find `cosmwasm` in `cosmos_sdk_proto`

error[E0433]: failed to resolve: could not find `cosmwasm` in `cosmos_sdk_proto`
   --> bot/src/bot.rs:336:9
    |
336 |         cosmwasm::wasm::v1::QueryContractsByCodeResponse,
    |         ^^^^^^^^ could not find `cosmwasm` in `cosmos_sdk_proto`
    |
note: found an item that was configured out
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmos-sdk-proto-0.26.1/src/lib.rs:222:9
    |
222 | pub mod cosmwasm {
    |         ^^^^^^^^
note: the item is gated behind the `cosmwasm` feature
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmos-sdk-proto-0.26.1/src/lib.rs:221:7
    |
221 | #[cfg(feature = "cosmwasm")]
    |       ^^^^^^^^^^^^^^^^^^^^

Check failure on line 13 in bot/src/bot.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: could not find `cosmwasm` in `cosmos_sdk_proto`

error[E0433]: failed to resolve: could not find `cosmwasm` in `cosmos_sdk_proto`
   --> bot/src/bot.rs:13:5
    |
13  |     cosmwasm::wasm::v1::{query_client::QueryClient, QueryContractsByCodeRequest},
    |     ^^^^^^^^ could not find `cosmwasm` in `cosmos_sdk_proto`
    |
note: found an item that was configured out
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmos-sdk-proto-0.26.1/src/lib.rs:222:9
    |
222 | pub mod cosmwasm {
    |         ^^^^^^^^
note: the item is gated behind the `cosmwasm` feature
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cosmos-sdk-proto-0.26.1/src/lib.rs:221:7
    |
221 | #[cfg(feature = "cosmwasm")]
    |       ^^^^^^^^^^^^^^^^^^^^