/** * Generated by the protoc-gen-ts. DO NOT EDIT! * compiler version: 3.21.12 * source: common/block.proto * git: https://github.com/thesayyn/protoc-gen-ts */ import * as dependency_1 from "./../accesscontrol/member"; import * as dependency_2 from "./rwset"; import * as dependency_3 from "./transaction"; import * as pb_1 from "google-protobuf"; export declare namespace common { enum BlockType { NORMAL_BLOCK = 0, CONFIG_BLOCK = 1, CONTRACT_MGR_BLOCK = 2, HAS_COINBASE = 4 } class Block extends pb_1.Message { #private; constructor(data?: any[] | { header?: BlockHeader; dag?: DAG; txs?: dependency_3.common.Transaction[]; additional_data?: AdditionalData; }); get header(): BlockHeader; set header(value: BlockHeader); get has_header(): boolean; get dag(): DAG; set dag(value: DAG); get has_dag(): boolean; get txs(): dependency_3.common.Transaction[]; set txs(value: dependency_3.common.Transaction[]); get additional_data(): AdditionalData; set additional_data(value: AdditionalData); get has_additional_data(): boolean; static fromObject(data: { header?: ReturnType; dag?: ReturnType; txs?: ReturnType[]; additional_data?: ReturnType; }): Block; toObject(): { header?: ReturnType; dag?: ReturnType; txs?: ReturnType[]; additional_data?: ReturnType; }; serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Block; serializeBinary(): Uint8Array; static deserializeBinary(bytes: Uint8Array): Block; } class BlockInfo extends pb_1.Message { #private; constructor(data?: any[] | { block?: Block; rwset_list?: dependency_2.common.TxRWSet[]; }); get block(): Block; set block(value: Block); get has_block(): boolean; get rwset_list(): dependency_2.common.TxRWSet[]; set rwset_list(value: dependency_2.common.TxRWSet[]); static fromObject(data: { block?: ReturnType; rwset_list?: ReturnType[]; }): BlockInfo; toObject(): { block?: ReturnType; rwset_list?: ReturnType[]; }; serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; static deserialize(bytes: Uint8Array | pb_1.BinaryReader): BlockInfo; serializeBinary(): Uint8Array; static deserializeBinary(bytes: Uint8Array): BlockInfo; } class AdditionalData extends pb_1.Message { #private; constructor(data?: any[] | { extra_data?: Map; }); get extra_data(): Map; set extra_data(value: Map); static fromObject(data: { extra_data?: { [key: string]: Uint8Array; }; }): AdditionalData; toObject(): { extra_data?: { [key: string]: Uint8Array; }; }; serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AdditionalData; serializeBinary(): Uint8Array; static deserializeBinary(bytes: Uint8Array): AdditionalData; } class TxBatchInfo extends pb_1.Message { #private; constructor(data?: any[] | { batch_ids?: string[]; index?: number[]; }); get batch_ids(): string[]; set batch_ids(value: string[]); get index(): number[]; set index(value: number[]); static fromObject(data: { batch_ids?: string[]; index?: number[]; }): TxBatchInfo; toObject(): { batch_ids?: string[]; index?: number[]; }; serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TxBatchInfo; serializeBinary(): Uint8Array; static deserializeBinary(bytes: Uint8Array): TxBatchInfo; } class BlockHeader extends pb_1.Message { #private; constructor(data?: any[] | { block_version?: number; block_type?: BlockType; chain_id?: string; block_height?: number; block_hash?: Uint8Array; pre_block_hash?: Uint8Array; pre_conf_height?: number; tx_count?: number; tx_root?: Uint8Array; dag_hash?: Uint8Array; rw_set_root?: Uint8Array; block_timestamp?: number; consensus_args?: Uint8Array; proposer?: dependency_1.accesscontrol.Member; signature?: Uint8Array; }); get block_version(): number; set block_version(value: number); get block_type(): BlockType; set block_type(value: BlockType); get chain_id(): string; set chain_id(value: string); get block_height(): number; set block_height(value: number); get block_hash(): Uint8Array; set block_hash(value: Uint8Array); get pre_block_hash(): Uint8Array; set pre_block_hash(value: Uint8Array); get pre_conf_height(): number; set pre_conf_height(value: number); get tx_count(): number; set tx_count(value: number); get tx_root(): Uint8Array; set tx_root(value: Uint8Array); get dag_hash(): Uint8Array; set dag_hash(value: Uint8Array); get rw_set_root(): Uint8Array; set rw_set_root(value: Uint8Array); get block_timestamp(): number; set block_timestamp(value: number); get consensus_args(): Uint8Array; set consensus_args(value: Uint8Array); get proposer(): dependency_1.accesscontrol.Member; set proposer(value: dependency_1.accesscontrol.Member); get has_proposer(): boolean; get signature(): Uint8Array; set signature(value: Uint8Array); static fromObject(data: { block_version?: number; block_type?: BlockType; chain_id?: string; block_height?: number; block_hash?: Uint8Array; pre_block_hash?: Uint8Array; pre_conf_height?: number; tx_count?: number; tx_root?: Uint8Array; dag_hash?: Uint8Array; rw_set_root?: Uint8Array; block_timestamp?: number; consensus_args?: Uint8Array; proposer?: ReturnType; signature?: Uint8Array; }): BlockHeader; toObject(): { block_version?: number; block_type?: BlockType; chain_id?: string; block_height?: number; block_hash?: Uint8Array; pre_block_hash?: Uint8Array; pre_conf_height?: number; tx_count?: number; tx_root?: Uint8Array; dag_hash?: Uint8Array; rw_set_root?: Uint8Array; block_timestamp?: number; consensus_args?: Uint8Array; proposer?: ReturnType; signature?: Uint8Array; }; serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; static deserialize(bytes: Uint8Array | pb_1.BinaryReader): BlockHeader; serializeBinary(): Uint8Array; static deserializeBinary(bytes: Uint8Array): BlockHeader; } class DAG extends pb_1.Message { #private; constructor(data?: any[] | { vertexes?: DAG.Neighbor[]; }); get vertexes(): DAG.Neighbor[]; set vertexes(value: DAG.Neighbor[]); static fromObject(data: { vertexes?: ReturnType[]; }): DAG; toObject(): { vertexes?: ReturnType[]; }; serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DAG; serializeBinary(): Uint8Array; static deserializeBinary(bytes: Uint8Array): DAG; } namespace DAG { class Neighbor extends pb_1.Message { #private; constructor(data?: any[] | { neighbors?: number[]; }); get neighbors(): number[]; set neighbors(value: number[]); static fromObject(data: { neighbors?: number[]; }): Neighbor; toObject(): { neighbors?: number[]; }; serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Neighbor; serializeBinary(): Uint8Array; static deserializeBinary(bytes: Uint8Array): Neighbor; } } }