Co-authored-by: marbar3778 <marbar3778@yahoo.com> Co-authored-by: Marko <marko@baricevic.me> Co-authored-by: Alex | Interchain Labs <alex@skip.money>
35 lines
960 B
Protocol Buffer
35 lines
960 B
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.store.v2;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "cosmossdk.io/store/v2/proof";
|
|
|
|
// CommitInfo defines commit information used by the multi-store when committing
|
|
// a version/height.
|
|
message CommitInfo {
|
|
int64 version = 1;
|
|
repeated StoreInfo store_infos = 2;
|
|
google.protobuf.Timestamp timestamp = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
|
bytes commit_hash = 4;
|
|
}
|
|
|
|
// StoreInfo defines store-specific commit information. It contains a reference
|
|
// between a store name and the commit ID.
|
|
//
|
|
message StoreInfo {
|
|
string name = 1;
|
|
CommitID commit_id = 2;
|
|
string structure = 3;
|
|
}
|
|
|
|
// CommitID defines the commitment information when a specific store is
|
|
// committed.
|
|
message CommitID {
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
int64 version = 1;
|
|
bytes hash = 2;
|
|
}
|