Skip to content

Commit

Permalink
releases preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Sep 2, 2024
1 parent 240ab2c commit aed19cf
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.0.0-rc0

### Added
* [Auto-generated](https://github.com/neutron-org/neutron-sdk/pull/156) `gRPC` and `Any` types and helpers;

### Removed
* [Stargate queries/messages helpers](https://github.com/neutron-org/neutron-sdk/pull/156);


## 0.11.0

### Improvements
Expand Down
27 changes: 27 additions & 0 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,33 @@ This guide explains what is needed to upgrade contracts when migrating over rele
also view the
[complete CHANGELOG](./CHANGELOG.md) to understand the differences.

## 0.11.0 -> 1.0.0

* Update`neutron-sdk`dependencies in Cargo.toml:

```
[dependencies]
neutron-sdk = "1.0.0-rc0"
# ...
```

* If you use Stargate queries and messages, now you need to move to a usage of gRPC queries and Any message correspondingly, using auto-generated types and helpers, e.g.:

```diff
-let msg = bank::v1beta1::QueryBalanceRequest { address, denom };
-let resp = make_stargate_query(
- deps,
- "/cosmos.bank.v1beta1.Query/Balance".to_string(),
- msg.encode_to_vec(),
-)?;

+use neutron_sdk::proto_types::{cosmos::{auth, bank}};
+let bank_querier = bank::v1beta1::BankQuerier::new(&deps.querier);
+let resp = &bank_querier.balance(address, denom)?;
```

You can find more usages example of different queries [here](https://github.com/neutron-org/neutron-dev-contracts/blob/c819eff7696c2feb0501f02ba48d2b4aa5250419/contracts/grpc_querier/src/contract.rs#L43).

## 0.10.0 -> 0.11.0

* Update`neutron-sdk`dependencies in Cargo.toml:
Expand Down
2 changes: 1 addition & 1 deletion packages/neutron-sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "neutron-sdk"
description = "Neutron CosmWasm SDK for interacting with Neutron blockchain"
version = "0.11.0"
version = "1.0.0-rc0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/neutron-org/neutron-sdk"
Expand Down
2 changes: 1 addition & 1 deletion packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.1.0
v4.2.2
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ pub struct MsgSubmitQueryResult {
pub sender: ::prost::alloc::string::String,
/// is the IBC client ID for an IBC connection between Neutron chain and target
/// chain (where the result was obtained from)
/// Deprecated: populating this field does not make any affect
#[deprecated]
#[prost(string, tag = "3")]
#[serde(alias = "clientID")]
pub client_id: ::prost::alloc::string::String,
Expand Down
6 changes: 3 additions & 3 deletions proto-build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ const SLINKY_REPO: &str = "https://github.com/skip-mev/slinky.git";
const COSMOS_SDK_REV: &str = "v0.50.8-neutron";

/// The Neutron commit or tag to be cloned and used to build the proto files
const NEUTRON_REV: &str = "v4.1.0";
const NEUTRON_REV: &str = "v4.2.2";

/// The wasmd commit or tag to be cloned and used to build the proto files
const WASMD_REV: &str = "v0.51.0";

/// The cometbft commit or tag to be cloned and used to build the proto files
const COMETBFT_REV: &str = "v0.38.10";
const COMETBFT_REV: &str = "v0.38.11";

/// The ibc-go commit or tag to be cloned and used to build the proto files
const IBC_GO_REV: &str = "v8.2.1";

/// The ics23 commit or tag to be cloned and used to build the proto files
const ICS23_REV: &str = "go/v0.10.0";

const FEEMARKET_REV: &str = "v1.0.3";
const FEEMARKET_REV: &str = "v1.1.1";

const SLINKY_REV: &str = "v1.0.3";

Expand Down

0 comments on commit aed19cf

Please sign in to comment.