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

Deprecation warnings for cosmwasm_std:QueryRequest::Stargate #153

Open
Unique-Divine opened this issue Sep 25, 2024 · 0 comments
Open

Deprecation warnings for cosmwasm_std:QueryRequest::Stargate #153

Unique-Divine opened this issue Sep 25, 2024 · 0 comments
Labels
S-triage Status: This issue is waiting on initial triage.

Comments

@Unique-Divine
Copy link
Member

From output of just tidy using cosmwasm_std v2:

just fmt
cargo fmt --all
just clippy
cargo clippy --fix --allow-dirty --allow-staged
    Checking cw3-fixed-multisig v2.0.1 (/home/ud/ki/cw-nibiru/contracts/core-cw3-fixed-msig)
    Checking broker-bank v0.1.0 (/home/ud/ki/cw-nibiru/contracts/broker-bank)
    Checking bash-rs v0.1.0 (/home/ud/ki/cw-nibiru/packages/bash-rs)
    Checking nibi-dev v0.1.0 (/home/ud/ki/cw-nibiru/packages/nibi-dev)
    Checking nibi-stargate v0.2.0 (/home/ud/ki/cw-nibiru/contracts/nibi-stargate)
    Checking core-token-vesting-v2 v2.1.0 (/home/ud/ki/cw-nibiru/contracts/core-token-vesting-v2)
    Checking token-vesting v0.2.0 (/home/ud/ki/cw-nibiru/contracts/core-token-vesting)
    Checking incentives v0.2.0 (/home/ud/ki/cw-nibiru/contracts/incentives)
    Checking cw3-flex-multisig v2.0.1 (/home/ud/ki/cw-nibiru/contracts/core-cw3-flex-msig)
    Checking broker-staking v0.2.0 (/home/ud/ki/cw-nibiru/contracts/broker-staking)
    Checking scripts v0.1.0 (/home/ud/ki/cw-nibiru/scripts)
    Checking nibi-stargate-perp v0.2.0 (/home/ud/ki/cw-nibiru/contracts/nibi-stargate-perp)
    Checking nibiru-ownable-derive v0.1.0 (/home/ud/ki/cw-nibiru/packages/nibiru-ownable-derive)
    Checking easy-addr v0.1.0 (/home/ud/ki/cw-nibiru/packages/easy-addr)
    Checking shifter v0.2.0 (/home/ud/ki/cw-nibiru/contracts/core-shifter)
    Checking pricefeed v0.2.0 (/home/ud/ki/cw-nibiru/contracts/pricefeed)
    Checking nusd-valuator v0.1.0 (/home/ud/ki/cw-nibiru/contracts/nusd-valuator)
    Checking nibiru-ownable v0.1.0 (/home/ud/ki/cw-nibiru/packages/nibiru-ownable)
    Checking controller v0.2.0 (/home/ud/ki/cw-nibiru/packages/core-controller)
    Checking lockup v0.2.0 (/home/ud/ki/cw-nibiru/contracts/lockup)
    Checking nibiru-std v0.2.0 (/home/ud/ki/cw-nibiru/nibiru-std)
    Checking cw-address-like v2.0.0 (/home/ud/ki/cw-nibiru/packages/cw-address-like)
warning: use of deprecated variant `cosmwasm_std::QueryRequest::Stargate`: Please use the GrpcQuery instead
   --> nibiru-std/src/proto/type_url_cosmos.rs:199:34
    |
199 |             if let QueryRequest::Stargate { path, data: _data } = &pb_query {
    |                                  ^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: use of deprecated variant `cosmwasm_std::CosmosMsg::Stargate`: Use `CosmosMsg::Any` instead (if you only target CosmWasm 2+ chains)
   --> nibiru-std/src/proto/type_url_nibiru.rs:432:35
    |
432 |             if let cw::CosmosMsg::Stargate {
    |                                   ^^^^^^^^

warning: use of deprecated field `cosmwasm_std::QueryRequest::Stargate::path`: Please use the GrpcQuery instead
   --> nibiru-std/src/proto/type_url_cosmos.rs:199:45
    |
199 |             if let QueryRequest::Stargate { path, data: _data } = &pb_query {
    |                                             ^^^^

warning: use of deprecated field `cosmwasm_std::QueryRequest::Stargate::data`: Please use the GrpcQuery instead
   --> nibiru-std/src/proto/type_url_cosmos.rs:199:51
    |
199 |             if let QueryRequest::Stargate { path, data: _data } = &pb_query {
    |                                                   ^^^^^^^^^^^

warning: use of deprecated field `cosmwasm_std::CosmosMsg::Stargate::type_url`: Use `CosmosMsg::Any` instead (if you only target CosmWasm 2+ chains)
   --> nibiru-std/src/proto/type_url_nibiru.rs:433:17
    |
433 |                 type_url,
    |                 ^^^^^^^^

warning: use of deprecated field `cosmwasm_std::CosmosMsg::Stargate::value`: Use `CosmosMsg::Any` instead (if you only target CosmWasm 2+ chains)
   --> nibiru-std/src/proto/type_url_nibiru.rs:434:17
    |
434 |                 value: _value,
    |                 ^^^^^^^^^^^^^

warning: `nibiru-std` (lib test) generated 6 warnings
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.12s

@github-actions github-actions bot added the S-triage Status: This issue is waiting on initial triage. label Sep 25, 2024
@github-project-automation github-project-automation bot moved this to ⚡ Building 🧱 in ⚛️ Nibiru (Hougyoku) Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-triage Status: This issue is waiting on initial triage.
Projects
Status: ⚡ Building 🧱
Development

No branches or pull requests

1 participant