// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/base/snapshots/v1beta1/snapshot.proto (package cosmos.base.snapshots.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; /** * Snapshot contains Tendermint state sync snapshot info. * * @generated from message cosmos.base.snapshots.v1beta1.Snapshot */ export class Snapshot extends Message { /** * @generated from field: uint64 height = 1; */ height = protoInt64.zero; /** * @generated from field: uint32 format = 2; */ format = 0; /** * @generated from field: uint32 chunks = 3; */ chunks = 0; /** * @generated from field: bytes hash = 4; */ hash = new Uint8Array(0); /** * @generated from field: cosmos.base.snapshots.v1beta1.Metadata metadata = 5; */ metadata?: Metadata; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.base.snapshots.v1beta1.Snapshot"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "format", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 3, name: "chunks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 4, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 5, name: "metadata", kind: "message", T: Metadata }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Snapshot { return new Snapshot().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Snapshot { return new Snapshot().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Snapshot { return new Snapshot().fromJsonString(jsonString, options); } static equals(a: Snapshot | PlainMessage | undefined, b: Snapshot | PlainMessage | undefined): boolean { return proto3.util.equals(Snapshot, a, b); } } /** * Metadata contains SDK-specific snapshot metadata. * * @generated from message cosmos.base.snapshots.v1beta1.Metadata */ export class Metadata extends Message { /** * SHA-256 chunk hashes * * @generated from field: repeated bytes chunk_hashes = 1; */ chunkHashes: Uint8Array[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.base.snapshots.v1beta1.Metadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "chunk_hashes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { return new Metadata().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { return new Metadata().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Metadata { return new Metadata().fromJsonString(jsonString, options); } static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { return proto3.util.equals(Metadata, a, b); } } /** * SnapshotItem is an item contained in a rootmulti.Store snapshot. * * Since: cosmos-sdk 0.46 * * @generated from message cosmos.base.snapshots.v1beta1.SnapshotItem */ export class SnapshotItem extends Message { /** * item is the specific type of snapshot item. * * @generated from oneof cosmos.base.snapshots.v1beta1.SnapshotItem.item */ item: { /** * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotStoreItem store = 1; */ value: SnapshotStoreItem; case: "store"; } | { /** * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotIAVLItem iavl = 2; */ value: SnapshotIAVLItem; case: "iavl"; } | { /** * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta extension = 3; */ value: SnapshotExtensionMeta; case: "extension"; } | { /** * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload extension_payload = 4; */ value: SnapshotExtensionPayload; case: "extensionPayload"; } | { /** * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotKVItem kv = 5 [deprecated = true]; * @deprecated */ value: SnapshotKVItem; case: "kv"; } | { /** * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotSchema schema = 6 [deprecated = true]; * @deprecated */ value: SnapshotSchema; case: "schema"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "store", kind: "message", T: SnapshotStoreItem, oneof: "item" }, { no: 2, name: "iavl", kind: "message", T: SnapshotIAVLItem, oneof: "item" }, { no: 3, name: "extension", kind: "message", T: SnapshotExtensionMeta, oneof: "item" }, { no: 4, name: "extension_payload", kind: "message", T: SnapshotExtensionPayload, oneof: "item" }, { no: 5, name: "kv", kind: "message", T: SnapshotKVItem, oneof: "item" }, { no: 6, name: "schema", kind: "message", T: SnapshotSchema, oneof: "item" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotItem { return new SnapshotItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotItem { return new SnapshotItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SnapshotItem { return new SnapshotItem().fromJsonString(jsonString, options); } static equals(a: SnapshotItem | PlainMessage | undefined, b: SnapshotItem | PlainMessage | undefined): boolean { return proto3.util.equals(SnapshotItem, a, b); } } /** * SnapshotStoreItem contains metadata about a snapshotted store. * * Since: cosmos-sdk 0.46 * * @generated from message cosmos.base.snapshots.v1beta1.SnapshotStoreItem */ export class SnapshotStoreItem extends Message { /** * @generated from field: string name = 1; */ name = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotStoreItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotStoreItem { return new SnapshotStoreItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotStoreItem { return new SnapshotStoreItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SnapshotStoreItem { return new SnapshotStoreItem().fromJsonString(jsonString, options); } static equals(a: SnapshotStoreItem | PlainMessage | undefined, b: SnapshotStoreItem | PlainMessage | undefined): boolean { return proto3.util.equals(SnapshotStoreItem, a, b); } } /** * SnapshotIAVLItem is an exported IAVL node. * * Since: cosmos-sdk 0.46 * * @generated from message cosmos.base.snapshots.v1beta1.SnapshotIAVLItem */ export class SnapshotIAVLItem extends Message { /** * @generated from field: bytes key = 1; */ key = new Uint8Array(0); /** * @generated from field: bytes value = 2; */ value = new Uint8Array(0); /** * version is block height * * @generated from field: int64 version = 3; */ version = protoInt64.zero; /** * height is depth of the tree. * * @generated from field: int32 height = 4; */ height = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotIAVLItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "version", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 4, name: "height", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotIAVLItem { return new SnapshotIAVLItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotIAVLItem { return new SnapshotIAVLItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SnapshotIAVLItem { return new SnapshotIAVLItem().fromJsonString(jsonString, options); } static equals(a: SnapshotIAVLItem | PlainMessage | undefined, b: SnapshotIAVLItem | PlainMessage | undefined): boolean { return proto3.util.equals(SnapshotIAVLItem, a, b); } } /** * SnapshotExtensionMeta contains metadata about an external snapshotter. * * Since: cosmos-sdk 0.46 * * @generated from message cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta */ export class SnapshotExtensionMeta extends Message { /** * @generated from field: string name = 1; */ name = ""; /** * @generated from field: uint32 format = 2; */ format = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "format", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotExtensionMeta { return new SnapshotExtensionMeta().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotExtensionMeta { return new SnapshotExtensionMeta().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SnapshotExtensionMeta { return new SnapshotExtensionMeta().fromJsonString(jsonString, options); } static equals(a: SnapshotExtensionMeta | PlainMessage | undefined, b: SnapshotExtensionMeta | PlainMessage | undefined): boolean { return proto3.util.equals(SnapshotExtensionMeta, a, b); } } /** * SnapshotExtensionPayload contains payloads of an external snapshotter. * * Since: cosmos-sdk 0.46 * * @generated from message cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload */ export class SnapshotExtensionPayload extends Message { /** * @generated from field: bytes payload = 1; */ payload = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotExtensionPayload { return new SnapshotExtensionPayload().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotExtensionPayload { return new SnapshotExtensionPayload().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SnapshotExtensionPayload { return new SnapshotExtensionPayload().fromJsonString(jsonString, options); } static equals(a: SnapshotExtensionPayload | PlainMessage | undefined, b: SnapshotExtensionPayload | PlainMessage | undefined): boolean { return proto3.util.equals(SnapshotExtensionPayload, a, b); } } /** * SnapshotKVItem is an exported Key/Value Pair * * Since: cosmos-sdk 0.46 * Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47. * * @generated from message cosmos.base.snapshots.v1beta1.SnapshotKVItem * @deprecated */ export class SnapshotKVItem extends Message { /** * @generated from field: bytes key = 1; */ key = new Uint8Array(0); /** * @generated from field: bytes value = 2; */ value = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotKVItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotKVItem { return new SnapshotKVItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotKVItem { return new SnapshotKVItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SnapshotKVItem { return new SnapshotKVItem().fromJsonString(jsonString, options); } static equals(a: SnapshotKVItem | PlainMessage | undefined, b: SnapshotKVItem | PlainMessage | undefined): boolean { return proto3.util.equals(SnapshotKVItem, a, b); } } /** * SnapshotSchema is an exported schema of smt store * * Since: cosmos-sdk 0.46 * Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47. * * @generated from message cosmos.base.snapshots.v1beta1.SnapshotSchema * @deprecated */ export class SnapshotSchema extends Message { /** * @generated from field: repeated bytes keys = 1; */ keys: Uint8Array[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotSchema"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "keys", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotSchema { return new SnapshotSchema().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotSchema { return new SnapshotSchema().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SnapshotSchema { return new SnapshotSchema().fromJsonString(jsonString, options); } static equals(a: SnapshotSchema | PlainMessage | undefined, b: SnapshotSchema | PlainMessage | undefined): boolean { return proto3.util.equals(SnapshotSchema, a, b); } }