github.com/okex/exchain@v1.8.0/libs/ibc-go/proto/ibc/core/client/v1/genesis.proto (about) 1 syntax = "proto3"; 2 3 package ibc.core.client.v1; 4 5 option go_package = "github.com/cosmos/ibc-go/v2/modules/core/02-client/types"; 6 7 import "ibc/core/client/v1/client.proto"; 8 import "gogoproto/gogo.proto"; 9 10 // GenesisState defines the ibc client submodule's genesis state. 11 message GenesisState { 12 // client states with their corresponding identifiers 13 repeated IdentifiedClientState clients = 1 14 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "IdentifiedClientStates"]; 15 // consensus states from each client 16 repeated ClientConsensusStates clients_consensus = 2 [ 17 (gogoproto.nullable) = false, 18 (gogoproto.castrepeated) = "ClientsConsensusStates", 19 (gogoproto.moretags) = "yaml:\"clients_consensus\"" 20 ]; 21 // metadata from each client 22 repeated IdentifiedGenesisMetadata clients_metadata = 3 23 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"clients_metadata\""]; 24 Params params = 4 [(gogoproto.nullable) = false]; 25 // create localhost on initialization 26 bool create_localhost = 5 [(gogoproto.moretags) = "yaml:\"create_localhost\""]; 27 // the sequence for the next generated client identifier 28 uint64 next_client_sequence = 6 [(gogoproto.moretags) = "yaml:\"next_client_sequence\""]; 29 } 30 31 // GenesisMetadata defines the genesis type for metadata that clients may return 32 // with ExportMetadata 33 message GenesisMetadata { 34 option (gogoproto.goproto_getters) = false; 35 36 // store key of metadata without clientID-prefix 37 bytes key = 1; 38 // metadata value 39 bytes value = 2; 40 } 41 42 // IdentifiedGenesisMetadata has the client metadata with the corresponding 43 // client id. 44 message IdentifiedGenesisMetadata { 45 string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; 46 repeated GenesisMetadata client_metadata = 2 47 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"client_metadata\""]; 48 }