-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'v0.37.0' into romac/channel-upgrade-only
ibc-proto-rs v0.37.0 *October 4th, 2023* This release updates `prost` to v0.12 and `tonic` to v0.10, and makes `serde` an optional dependency, now only enabled with the `serde` feature. FEATURES: - Update `prost` to v0.12 and `tonic` to v0.10 (#145) IMPROVEMENTS: - Make `serde` an optional dependency, now only enabled with the `serde` feature (#152)
- Loading branch information
Showing
79 changed files
with
4,476 additions
and
2,951 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Restore `no_std` support for JSON serialization | ||
([\#98](https://github.com/cosmos/ibc-proto-rs/issues/98)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Update Cosmos SDK protos to v0.47.3 and IBC-Go protos to v7.2.0 | ||
([\#129](https://github.com/cosmos/ibc-proto-rs/issues/129)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This release updates the Cosmos SDK protos to v0.47.3 and IBC-Go protos to v7.2.0. | ||
|
||
Additionally, it restore `no_std` support for JSON serialization via `serde`. | ||
Previously, `Serialize` and `Deserialize` instances were only derived when | ||
the `std` feature was enabled, but that is no longer required. | ||
|
||
As such, they now require the `serde` feature to be enabled, independently of | ||
whether or not the `std` feature is enabled. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This release updates the `borsh` dependency to v0.10. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Bump ibc-go to v7.3.0, Cosmos SDK to 0.47.5 and Interchain Security to v3.1.0 | ||
([\#140](https://github.com/cosmos/ibc-proto-rs/pull/140)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Add proto definition for `ibc.lightclients.localhost.v1` | ||
([\#143](https://github.com/cosmos/ibc-proto-rs/pull/143)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This release updates the IBC-Go protos to v7.3.0, the Cosmos SDK protos to v0.47.5, | ||
and the Interchain Security protos to v3.1.0. | ||
|
||
It also adds back the `ibc.lightclients.localhost.v1` proto definition that was | ||
removed in IBC-Go v7.0.0, for users which may need to interact with v1 localhost clients. |
8 changes: 8 additions & 0 deletions
8
.changelog/v0.36.0/breaking-changes/147-fix-script-and-protos.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- Since ibc-proto v0.34.0, the script in charge of generating the Rust proto definitions | ||
has been mistakenly checking out their latest version instead of the one | ||
specified in the corresponding `src/*_COMMIT` file. This has now been fixed | ||
and the protos have therefore been downgraded to their proper versions: | ||
* IBC-Go: v7.3.0, | ||
* Cosmos SDK: v0.47.5 | ||
* Interchain Security: v3.1.0 | ||
([\#147](https://github.com/cosmos/ibc-proto-rs/pull/147)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*September 28th, 2023* | ||
|
||
Warning: This release downgrades the Protobuf definitions for IBC-Go, Cosmos SDK, and Interchain Security. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Add Protobuf definitions from `cosmos.crypto.*` | ||
([\#149](https://github.com/cosmos/ibc-proto-rs/pull/149)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*September 28th, 2023* | ||
|
||
This release adds Protobuf definitions from the `cosmos.crypto.*` package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Update `prost` to v0.12 and `tonic` to v0.10 | ||
([\#145](https://github.com/cosmos/ibc-proto-rs/issues/145)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Make `serde` an optional dependency, now only enabled with the `serde` feature | ||
([\#152](https://github.com/cosmos/ibc-proto-rs/pull/152)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*October 4th, 2023* | ||
|
||
This release updates `prost` to v0.12 and `tonic` to v0.10, | ||
and makes `serde` an optional dependency, now only enabled with the `serde` feature. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[package] | ||
name = "ibc-proto" | ||
version = "0.33.0" | ||
version = "0.37.0" | ||
authors = ["Informal Systems <[email protected]>"] | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/cosmos/ibc-proto-rs" | ||
readme = "README.md" | ||
categories = ["cryptography::cryptocurrencies", "encoding", "no-std"] | ||
keywords = ["blockchain", "cosmos", "tendermint", "ibc", "proto"] | ||
exclude = ["definitions", "tools"] | ||
exclude = ["definitions", "tools", ".changelog", ".github"] | ||
description = """ | ||
ibc-proto provides Cosmos SDK & IBC Protocol Buffers definitions | ||
""" | ||
|
@@ -28,37 +28,35 @@ doctest = false | |
all-features = true | ||
|
||
[dependencies] | ||
prost = { version = "0.11", default-features = false } | ||
prost = { version = "0.12", default-features = false, features = ["prost-derive"] } | ||
bytes = { version = "1.2", default-features = false } | ||
tonic = { version = "0.9", default-features = false, optional = true } | ||
serde = { version = "1.0", default-features = false } | ||
tonic = { version = "0.10", default-features = false, optional = true } | ||
serde = { version = "1.0", default-features = false, optional = true } | ||
schemars = { version = "0.8", optional = true } | ||
subtle-encoding = { version = "0.5", default-features = false } | ||
base64 = { version = "0.21", default-features = false, features = ["alloc"] } | ||
flex-error = { version = "0.4", default-features = false } | ||
ics23 = { version = "0.11.0", default-features = false } | ||
|
||
## for codec encode or decode | ||
## Optional: enabled by the `parity-scale-codec` feature | ||
parity-scale-codec = { version = "3.0.0", default-features = false, features = ["full"], optional = true } | ||
scale-info = { version = "2.1.2", default-features = false, features = ["derive"], optional = true } | ||
|
||
## for borsh encode or decode | ||
## need tracking anchor-lang and near-sdk-rs borsh version | ||
borsh = { version = "0.9", default-features = false, optional = true } | ||
|
||
[dependencies.ics23] | ||
version = "0.10.1" | ||
default-features = false | ||
## Optional: enabled by the `borsh` feature | ||
## For borsh encode or decode, needs to track `anchor-lang` and `near-sdk-rs` borsh version | ||
borsh = { version = "0.10", default-features = false, optional = true } | ||
|
||
[dependencies.tendermint-proto] | ||
version = "0.33" | ||
version = "0.34" | ||
default-features = false | ||
|
||
[features] | ||
default = ["std", "client"] | ||
std = ["prost/std", "bytes/std", "subtle-encoding/std", "base64/std", "flex-error/std", "ics23/std", "ics23/serde"] | ||
client = ["std", "tonic", "tonic/codegen", "tonic/transport", "tonic/prost"] | ||
json-schema = ["std", "schemars"] | ||
server = ["std", "tonic", "tonic/codegen", "tonic/transport", "tonic/prost"] | ||
std = ["prost/std", "bytes/std", "subtle-encoding/std", "base64/std", "flex-error/std", "ics23/std"] | ||
serde = ["dep:serde", "ics23/serde"] | ||
client = ["std", "dep:tonic", "tonic/codegen", "tonic/transport", "tonic/prost"] | ||
json-schema = ["std", "serde", "dep:schemars"] | ||
server = ["std", "dep:tonic", "tonic/codegen", "tonic/transport", "tonic/prost"] | ||
parity-scale-codec = ["dep:parity-scale-codec", "dep:scale-info"] | ||
borsh = ["dep:borsh"] | ||
proto-descriptor = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
syntax = "proto3"; | ||
|
||
package ibc.lightclients.localhost.v1; | ||
|
||
option go_package = "github.com/cosmos/ibc-go/v6/modules/light-clients/09-localhost/types"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "ibc/core/client/v1/client.proto"; | ||
|
||
// ClientState defines a loopback (localhost) client. It requires (read-only) | ||
// access to keys outside the client prefix. | ||
message ClientState { | ||
option (gogoproto.goproto_getters) = false; | ||
// self chain ID | ||
string chain_id = 1 [(gogoproto.moretags) = "yaml:\"chain_id\""]; | ||
// self latest block height | ||
ibc.core.client.v1.Height height = 2 [(gogoproto.nullable) = false]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1afe31f573c8dcde08a572572565d43a35eab642 | ||
512753529b7fea6f825c1bfdb1242dd4207b2366 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
eb1e3ebf6fcfd56e1f1d8f4c0a6192740bd8a6c1 | ||
2e9e5d6eea24d6c11eddc9c002c66e89ae036187 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.