-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add protos for
ibc.lightclients.localhost.v1
- Loading branch information
Showing
5 changed files
with
35 additions
and
0 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,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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// ClientState defines a loopback (localhost) client. It requires (read-only) | ||
/// access to keys outside the client prefix. | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct ClientState { | ||
/// self chain ID | ||
#[prost(string, tag = "1")] | ||
pub chain_id: ::prost::alloc::string::String, | ||
/// self latest block height | ||
#[prost(message, optional, tag = "2")] | ||
pub height: ::core::option::Option<super::super::super::core::client::v1::Height>, | ||
} |
Binary file not shown.
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