Skip to content

Commit ee6cdfc

Browse files
committed
prog: add pocket consensus state type
1 parent ea00aa4 commit ee6cdfc

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ protogen_local: go_protoc-go-inject-tag ## Generate go structures for all of the
311311
# IBC
312312
$(PROTOC_SHARED) -I=./ibc/types/proto --go_out=./ibc/types ./ibc/types/proto/*.proto
313313
$(PROTOC_SHARED) -I=./ibc/client/types/proto --go_out=./ibc/client/types ./ibc/client/types/proto/*.proto
314+
$(PROTOC_SHARED) -I=./ibc/client/types/proto -I=./ibc/client/light_clients/types/proto --go_out=./ibc/client/light_clients/types ./ibc/client/light_clients/types/proto/*.proto
314315

315316
# echo "View generated proto files by running: make protogen_show"
316317

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
syntax = "proto3";
2+
3+
package core;
4+
5+
option go_package = "github.com/pokt-network/pocket/ibc/client/light_client/types";
6+
7+
import "google/protobuf/timestamp.proto";
8+
import "wasm.proto";
9+
10+
// PocketConsensusState defines the ibc client consensus state for Pocket
11+
message PocketConsensusState {
12+
google.protobuf.Timestamp timestamp = 1; // unixnano timestamp of the block
13+
string state_hash = 2; // hex encoded root state tree hash
14+
map<string, string> state_tree_hashes = 3; // map of state tree hashes; map[TreeName]hex(TreeRootHash)
15+
string next_val_set_hash = 4; // hex encoded sha3_256 hash of the next validator set
16+
}
17+
18+
// PocketClientState defines the ibc client state for Pocket
19+
message PocketClientState {
20+
string network_id = 1;
21+
uint64 trusting_period = 3;
22+
uint64 unbonding_period = 4;
23+
Height latest_height = 5;
24+
uint64 frozen_height = 6;
25+
}

0 commit comments

Comments
 (0)