laconicd/third_party/proto/cosmos/base/store/v1beta1/snapshot.proto

28 lines
688 B
Protocol Buffer
Raw Normal View History

2021-04-17 10:00:07 +00:00
syntax = "proto3";
package cosmos.base.store.v1beta1;
import "gogoproto/gogo.proto";
option go_package = "github.com/cosmos/cosmos-sdk/store/types";
// SnapshotItem is an item contained in a rootmulti.Store snapshot.
message SnapshotItem {
// item is the specific type of snapshot item.
oneof item {
SnapshotStoreItem store = 1;
2021-04-18 15:54:18 +00:00
SnapshotIAVLItem iavl = 2 [(gogoproto.customname) = "IAVL"];
2021-04-17 10:00:07 +00:00
}
}
// SnapshotStoreItem contains metadata about a snapshotted store.
2021-04-18 15:54:18 +00:00
message SnapshotStoreItem {
string name = 1;
}
2021-04-17 10:00:07 +00:00
// SnapshotIAVLItem is an exported IAVL node.
message SnapshotIAVLItem {
2021-04-18 15:54:18 +00:00
bytes key = 1;
bytes value = 2;
2021-04-17 10:00:07 +00:00
int64 version = 3;
2021-04-18 15:54:18 +00:00
int32 height = 4;
2021-04-17 10:00:07 +00:00
}