github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/js/proto/bcm_pb.d.ts (about) 1 // package: bcm 2 // file: bcm.proto 3 4 /* tslint:disable */ 5 /* eslint-disable */ 6 7 import * as jspb from "google-protobuf"; 8 import * as gogoproto_gogo_pb from "./gogoproto/gogo_pb"; 9 import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; 10 import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; 11 12 export class SyncInfo extends jspb.Message { 13 getLatestblockheight(): number; 14 setLatestblockheight(value: number): SyncInfo; 15 getLatestblockhash(): Uint8Array | string; 16 getLatestblockhash_asU8(): Uint8Array; 17 getLatestblockhash_asB64(): string; 18 setLatestblockhash(value: Uint8Array | string): SyncInfo; 19 getLatestapphash(): Uint8Array | string; 20 getLatestapphash_asU8(): Uint8Array; 21 getLatestapphash_asB64(): string; 22 setLatestapphash(value: Uint8Array | string): SyncInfo; 23 24 hasLatestblocktime(): boolean; 25 clearLatestblocktime(): void; 26 getLatestblocktime(): google_protobuf_timestamp_pb.Timestamp | undefined; 27 setLatestblocktime(value?: google_protobuf_timestamp_pb.Timestamp): SyncInfo; 28 29 hasLatestblockseentime(): boolean; 30 clearLatestblockseentime(): void; 31 getLatestblockseentime(): google_protobuf_timestamp_pb.Timestamp | undefined; 32 setLatestblockseentime(value?: google_protobuf_timestamp_pb.Timestamp): SyncInfo; 33 34 hasLatestblockduration(): boolean; 35 clearLatestblockduration(): void; 36 getLatestblockduration(): google_protobuf_duration_pb.Duration | undefined; 37 setLatestblockduration(value?: google_protobuf_duration_pb.Duration): SyncInfo; 38 39 serializeBinary(): Uint8Array; 40 toObject(includeInstance?: boolean): SyncInfo.AsObject; 41 static toObject(includeInstance: boolean, msg: SyncInfo): SyncInfo.AsObject; 42 static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; 43 static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; 44 static serializeBinaryToWriter(message: SyncInfo, writer: jspb.BinaryWriter): void; 45 static deserializeBinary(bytes: Uint8Array): SyncInfo; 46 static deserializeBinaryFromReader(message: SyncInfo, reader: jspb.BinaryReader): SyncInfo; 47 } 48 49 export namespace SyncInfo { 50 export type AsObject = { 51 latestblockheight: number, 52 latestblockhash: Uint8Array | string, 53 latestapphash: Uint8Array | string, 54 latestblocktime?: google_protobuf_timestamp_pb.Timestamp.AsObject, 55 latestblockseentime?: google_protobuf_timestamp_pb.Timestamp.AsObject, 56 latestblockduration?: google_protobuf_duration_pb.Duration.AsObject, 57 } 58 } 59 60 export class PersistedState extends jspb.Message { 61 getApphashafterlastblock(): Uint8Array | string; 62 getApphashafterlastblock_asU8(): Uint8Array; 63 getApphashafterlastblock_asB64(): string; 64 setApphashafterlastblock(value: Uint8Array | string): PersistedState; 65 66 hasLastblocktime(): boolean; 67 clearLastblocktime(): void; 68 getLastblocktime(): google_protobuf_timestamp_pb.Timestamp | undefined; 69 setLastblocktime(value?: google_protobuf_timestamp_pb.Timestamp): PersistedState; 70 getLastblockheight(): number; 71 setLastblockheight(value: number): PersistedState; 72 getGenesishash(): Uint8Array | string; 73 getGenesishash_asU8(): Uint8Array; 74 getGenesishash_asB64(): string; 75 setGenesishash(value: Uint8Array | string): PersistedState; 76 77 serializeBinary(): Uint8Array; 78 toObject(includeInstance?: boolean): PersistedState.AsObject; 79 static toObject(includeInstance: boolean, msg: PersistedState): PersistedState.AsObject; 80 static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; 81 static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; 82 static serializeBinaryToWriter(message: PersistedState, writer: jspb.BinaryWriter): void; 83 static deserializeBinary(bytes: Uint8Array): PersistedState; 84 static deserializeBinaryFromReader(message: PersistedState, reader: jspb.BinaryReader): PersistedState; 85 } 86 87 export namespace PersistedState { 88 export type AsObject = { 89 apphashafterlastblock: Uint8Array | string, 90 lastblocktime?: google_protobuf_timestamp_pb.Timestamp.AsObject, 91 lastblockheight: number, 92 genesishash: Uint8Array | string, 93 } 94 }