rchain-client-api
Version:
RChain client for node.js, browsers
1,513 lines (1,441 loc) • 124 kB
Flow
/**
* Flowtype definitions for CasperMessage
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.8.0
* Author: [Joar Wilk](http://twitter.com/joarwilk)
* Repo: http://github.com/joarwilk/flowgen
*/
import * as $protobuf from "protobufjs";
declare var coop: typeof npm$namespace$coop;
declare var npm$namespace$coop: {
rchain: typeof npm$namespace$coop$rchain
};
declare var npm$namespace$coop$rchain: {
casper: typeof npm$namespace$coop$rchain$casper
};
declare var npm$namespace$coop$rchain$casper: {
protocol: typeof npm$namespace$coop$rchain$casper$protocol
};
declare var npm$namespace$coop$rchain$casper$protocol: {
DeployService: typeof coop$rchain$casper$protocol$DeployService,
DeployData: typeof coop$rchain$casper$protocol$DeployData,
BlockRequest: typeof coop$rchain$casper$protocol$BlockRequest,
ForkChoiceTipRequest: typeof coop$rchain$casper$protocol$ForkChoiceTipRequest,
FindDeployInBlockQuery: typeof coop$rchain$casper$protocol$FindDeployInBlockQuery,
BlockQuery: typeof coop$rchain$casper$protocol$BlockQuery,
BlocksQuery: typeof coop$rchain$casper$protocol$BlocksQuery,
DataAtNameQuery: typeof coop$rchain$casper$protocol$DataAtNameQuery,
ContinuationAtNameQuery: typeof coop$rchain$casper$protocol$ContinuationAtNameQuery,
DeployServiceResponse: typeof coop$rchain$casper$protocol$DeployServiceResponse,
MaybeBlockMessage: typeof coop$rchain$casper$protocol$MaybeBlockMessage,
BlockQueryResponse: typeof coop$rchain$casper$protocol$BlockQueryResponse,
VisualizeDagQuery: typeof coop$rchain$casper$protocol$VisualizeDagQuery,
VisualizeBlocksResponse: typeof coop$rchain$casper$protocol$VisualizeBlocksResponse,
ListeningNameDataResponse: typeof coop$rchain$casper$protocol$ListeningNameDataResponse,
ListeningNameContinuationResponse: typeof coop$rchain$casper$protocol$ListeningNameContinuationResponse,
DataWithBlockInfo: typeof coop$rchain$casper$protocol$DataWithBlockInfo,
ContinuationsWithBlockInfo: typeof coop$rchain$casper$protocol$ContinuationsWithBlockInfo,
WaitingContinuationInfo: typeof coop$rchain$casper$protocol$WaitingContinuationInfo,
BlockInfoWithoutTuplespace: typeof coop$rchain$casper$protocol$BlockInfoWithoutTuplespace,
BlockInfo: typeof coop$rchain$casper$protocol$BlockInfo,
PrivateNamePreviewQuery: typeof coop$rchain$casper$protocol$PrivateNamePreviewQuery,
PrivateNamePreviewResponse: typeof coop$rchain$casper$protocol$PrivateNamePreviewResponse,
ApprovedBlockCandidate: typeof coop$rchain$casper$protocol$ApprovedBlockCandidate,
UnapprovedBlock: typeof coop$rchain$casper$protocol$UnapprovedBlock,
Signature: typeof coop$rchain$casper$protocol$Signature,
BlockApproval: typeof coop$rchain$casper$protocol$BlockApproval,
ApprovedBlock: typeof coop$rchain$casper$protocol$ApprovedBlock,
ApprovedBlockRequest: typeof coop$rchain$casper$protocol$ApprovedBlockRequest,
NoApprovedBlockAvailable: typeof coop$rchain$casper$protocol$NoApprovedBlockAvailable,
BlockMessage: typeof coop$rchain$casper$protocol$BlockMessage,
BlockMetadataInternal: typeof coop$rchain$casper$protocol$BlockMetadataInternal,
Header: typeof coop$rchain$casper$protocol$Header,
ProcessedDeploy: typeof coop$rchain$casper$protocol$ProcessedDeploy,
Body: typeof coop$rchain$casper$protocol$Body,
Justification: typeof coop$rchain$casper$protocol$Justification,
RChainState: typeof coop$rchain$casper$protocol$RChainState,
Event: typeof coop$rchain$casper$protocol$Event,
ProduceEvent: typeof coop$rchain$casper$protocol$ProduceEvent,
ConsumeEvent: typeof coop$rchain$casper$protocol$ConsumeEvent,
CommEvent: typeof coop$rchain$casper$protocol$CommEvent,
Bond: typeof coop$rchain$casper$protocol$Bond
};
declare class coop$rchain$casper$protocol$DeployService
implements $protobuf.rpc.Service {
constructor(
rpcImpl: $protobuf.RPCImpl,
requestDelimited?: boolean,
responseDelimited?: boolean
): this;
static create(
rpcImpl: $protobuf.RPCImpl,
requestDelimited?: boolean,
responseDelimited?: boolean
): coop$rchain$casper$protocol$DeployService;
doDeploy(
request: coop$rchain$casper$protocol$IDeployData,
callback: coop$rchain$casper$protocol$DeployService$DoDeployCallback
): void;
doDeploy(request: coop$rchain$casper$protocol$IDeployData): Promise<Either>;
createBlock(
request: google$protobuf$IEmpty,
callback: coop$rchain$casper$protocol$DeployService$createBlockCallback
): void;
createBlock(request: google$protobuf$IEmpty): Promise<Either>;
showBlock(
request: coop$rchain$casper$protocol$IBlockQuery,
callback: coop$rchain$casper$protocol$DeployService$showBlockCallback
): void;
showBlock(request: coop$rchain$casper$protocol$IBlockQuery): Promise<Either>;
visualizeDag(
request: coop$rchain$casper$protocol$IVisualizeDagQuery,
callback: coop$rchain$casper$protocol$DeployService$visualizeDagCallback
): void;
visualizeDag(
request: coop$rchain$casper$protocol$IVisualizeDagQuery
): Promise<Either>;
showMainChain(
request: coop$rchain$casper$protocol$IBlocksQuery,
callback: coop$rchain$casper$protocol$DeployService$showMainChainCallback
): void;
showMainChain(
request: coop$rchain$casper$protocol$IBlocksQuery
): Promise<Either>;
showBlocks(
request: coop$rchain$casper$protocol$IBlocksQuery,
callback: coop$rchain$casper$protocol$DeployService$showBlocksCallback
): void;
showBlocks(
request: coop$rchain$casper$protocol$IBlocksQuery
): Promise<Either>;
listenForDataAtName(
request: coop$rchain$casper$protocol$IDataAtNameQuery,
callback: coop$rchain$casper$protocol$DeployService$listenForDataAtNameCallback
): void;
listenForDataAtName(
request: coop$rchain$casper$protocol$IDataAtNameQuery
): Promise<Either>;
listenForContinuationAtName(
request: coop$rchain$casper$protocol$IContinuationAtNameQuery,
callback: coop$rchain$casper$protocol$DeployService$listenForContinuationAtNameCallback
): void;
listenForContinuationAtName(
request: coop$rchain$casper$protocol$IContinuationAtNameQuery
): Promise<Either>;
findBlockWithDeploy(
request: coop$rchain$casper$protocol$IFindDeployInBlockQuery,
callback: coop$rchain$casper$protocol$DeployService$findBlockWithDeployCallback
): void;
findBlockWithDeploy(
request: coop$rchain$casper$protocol$IFindDeployInBlockQuery
): Promise<Either>;
previewPrivateNames(
request: coop$rchain$casper$protocol$IPrivateNamePreviewQuery,
callback: coop$rchain$casper$protocol$DeployService$previewPrivateNamesCallback
): void;
previewPrivateNames(
request: coop$rchain$casper$protocol$IPrivateNamePreviewQuery
): Promise<Either>;
}
declare type coop$rchain$casper$protocol$DeployService$DoDeployCallback = (
error: Error | null,
response?: Either
) => void;
declare type coop$rchain$casper$protocol$DeployService$createBlockCallback = (
error: Error | null,
response?: Either
) => void;
declare type coop$rchain$casper$protocol$DeployService$showBlockCallback = (
error: Error | null,
response?: Either
) => void;
declare type coop$rchain$casper$protocol$DeployService$visualizeDagCallback = (
error: Error | null,
response?: Either
) => void;
declare type coop$rchain$casper$protocol$DeployService$showMainChainCallback = (
error: Error | null,
response?: Either
) => void;
declare type coop$rchain$casper$protocol$DeployService$showBlocksCallback = (
error: Error | null,
response?: Either
) => void;
declare type coop$rchain$casper$protocol$DeployService$listenForDataAtNameCallback = (
error: Error | null,
response?: Either
) => void;
declare type coop$rchain$casper$protocol$DeployService$listenForContinuationAtNameCallback = (
error: Error | null,
response?: Either
) => void;
declare type coop$rchain$casper$protocol$DeployService$findBlockWithDeployCallback = (
error: Error | null,
response?: Either
) => void;
declare type coop$rchain$casper$protocol$DeployService$previewPrivateNamesCallback = (
error: Error | null,
response?: Either
) => void;
declare interface coop$rchain$casper$protocol$IDeployData {
+deployer?: Uint8Array | null;
+term?: string | null;
+timestamp?: number | Long | null;
+sig?: Uint8Array | null;
+sigAlgorithm?: string | null;
+phloPrice?: number | Long | null;
+phloLimit?: number | Long | null;
+validAfterBlockNumber?: number | Long | null;
}
declare class coop$rchain$casper$protocol$DeployData
implements coop$rchain$casper$protocol$IDeployData {
constructor(properties?: coop$rchain$casper$protocol$IDeployData): this;
deployer: Uint8Array;
term: string;
timestamp: number | Long;
sig: Uint8Array;
sigAlgorithm: string;
phloPrice: number | Long;
phloLimit: number | Long;
validAfterBlockNumber: number | Long;
static create(
properties?: coop$rchain$casper$protocol$IDeployData
): coop$rchain$casper$protocol$DeployData;
static encode(
message: coop$rchain$casper$protocol$IDeployData,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IDeployData,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$DeployData;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$DeployData;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$DeployData;
static toObject(
message: coop$rchain$casper$protocol$DeployData,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IBlockRequest {
+base16Hash?: string | null;
+hash?: Uint8Array | null;
}
declare class coop$rchain$casper$protocol$BlockRequest
implements coop$rchain$casper$protocol$IBlockRequest {
constructor(properties?: coop$rchain$casper$protocol$IBlockRequest): this;
base16Hash: string;
hash: Uint8Array;
static create(
properties?: coop$rchain$casper$protocol$IBlockRequest
): coop$rchain$casper$protocol$BlockRequest;
static encode(
message: coop$rchain$casper$protocol$IBlockRequest,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IBlockRequest,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$BlockRequest;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$BlockRequest;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$BlockRequest;
static toObject(
message: coop$rchain$casper$protocol$BlockRequest,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IForkChoiceTipRequest {}
declare class coop$rchain$casper$protocol$ForkChoiceTipRequest
implements coop$rchain$casper$protocol$IForkChoiceTipRequest {
constructor(
properties?: coop$rchain$casper$protocol$IForkChoiceTipRequest
): this;
static create(
properties?: coop$rchain$casper$protocol$IForkChoiceTipRequest
): coop$rchain$casper$protocol$ForkChoiceTipRequest;
static encode(
message: coop$rchain$casper$protocol$IForkChoiceTipRequest,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IForkChoiceTipRequest,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$ForkChoiceTipRequest;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$ForkChoiceTipRequest;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$ForkChoiceTipRequest;
static toObject(
message: coop$rchain$casper$protocol$ForkChoiceTipRequest,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IFindDeployInBlockQuery {
+user?: Uint8Array | null;
+timestamp?: number | Long | null;
}
declare class coop$rchain$casper$protocol$FindDeployInBlockQuery
implements coop$rchain$casper$protocol$IFindDeployInBlockQuery {
constructor(
properties?: coop$rchain$casper$protocol$IFindDeployInBlockQuery
): this;
user: Uint8Array;
timestamp: number | Long;
static create(
properties?: coop$rchain$casper$protocol$IFindDeployInBlockQuery
): coop$rchain$casper$protocol$FindDeployInBlockQuery;
static encode(
message: coop$rchain$casper$protocol$IFindDeployInBlockQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IFindDeployInBlockQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$FindDeployInBlockQuery;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$FindDeployInBlockQuery;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$FindDeployInBlockQuery;
static toObject(
message: coop$rchain$casper$protocol$FindDeployInBlockQuery,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IBlockQuery {
+hash?: string | null;
}
declare class coop$rchain$casper$protocol$BlockQuery
implements coop$rchain$casper$protocol$IBlockQuery {
constructor(properties?: coop$rchain$casper$protocol$IBlockQuery): this;
hash: string;
static create(
properties?: coop$rchain$casper$protocol$IBlockQuery
): coop$rchain$casper$protocol$BlockQuery;
static encode(
message: coop$rchain$casper$protocol$IBlockQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IBlockQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$BlockQuery;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$BlockQuery;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$BlockQuery;
static toObject(
message: coop$rchain$casper$protocol$BlockQuery,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IBlocksQuery {
+depth?: number | null;
}
declare class coop$rchain$casper$protocol$BlocksQuery
implements coop$rchain$casper$protocol$IBlocksQuery {
constructor(properties?: coop$rchain$casper$protocol$IBlocksQuery): this;
depth: number;
static create(
properties?: coop$rchain$casper$protocol$IBlocksQuery
): coop$rchain$casper$protocol$BlocksQuery;
static encode(
message: coop$rchain$casper$protocol$IBlocksQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IBlocksQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$BlocksQuery;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$BlocksQuery;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$BlocksQuery;
static toObject(
message: coop$rchain$casper$protocol$BlocksQuery,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IDataAtNameQuery {
+depth?: number | null;
+name?: IPar | null;
}
declare class coop$rchain$casper$protocol$DataAtNameQuery
implements coop$rchain$casper$protocol$IDataAtNameQuery {
constructor(properties?: coop$rchain$casper$protocol$IDataAtNameQuery): this;
depth: number;
name: IPar | null;
static create(
properties?: coop$rchain$casper$protocol$IDataAtNameQuery
): coop$rchain$casper$protocol$DataAtNameQuery;
static encode(
message: coop$rchain$casper$protocol$IDataAtNameQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IDataAtNameQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$DataAtNameQuery;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$DataAtNameQuery;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$DataAtNameQuery;
static toObject(
message: coop$rchain$casper$protocol$DataAtNameQuery,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IContinuationAtNameQuery {
+depth?: number | null;
+names?: IPar[] | null;
}
declare class coop$rchain$casper$protocol$ContinuationAtNameQuery
implements coop$rchain$casper$protocol$IContinuationAtNameQuery {
constructor(
properties?: coop$rchain$casper$protocol$IContinuationAtNameQuery
): this;
depth: number;
names: IPar[];
static create(
properties?: coop$rchain$casper$protocol$IContinuationAtNameQuery
): coop$rchain$casper$protocol$ContinuationAtNameQuery;
static encode(
message: coop$rchain$casper$protocol$IContinuationAtNameQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IContinuationAtNameQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$ContinuationAtNameQuery;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$ContinuationAtNameQuery;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$ContinuationAtNameQuery;
static toObject(
message: coop$rchain$casper$protocol$ContinuationAtNameQuery,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IDeployServiceResponse {
+message?: string | null;
}
declare class coop$rchain$casper$protocol$DeployServiceResponse
implements coop$rchain$casper$protocol$IDeployServiceResponse {
constructor(
properties?: coop$rchain$casper$protocol$IDeployServiceResponse
): this;
message: string;
static create(
properties?: coop$rchain$casper$protocol$IDeployServiceResponse
): coop$rchain$casper$protocol$DeployServiceResponse;
static encode(
message: coop$rchain$casper$protocol$IDeployServiceResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IDeployServiceResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$DeployServiceResponse;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$DeployServiceResponse;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$DeployServiceResponse;
static toObject(
message: coop$rchain$casper$protocol$DeployServiceResponse,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IMaybeBlockMessage {
+block?: coop$rchain$casper$protocol$IBlockMessage | null;
}
declare class coop$rchain$casper$protocol$MaybeBlockMessage
implements coop$rchain$casper$protocol$IMaybeBlockMessage {
constructor(
properties?: coop$rchain$casper$protocol$IMaybeBlockMessage
): this;
block: coop$rchain$casper$protocol$IBlockMessage | null;
static create(
properties?: coop$rchain$casper$protocol$IMaybeBlockMessage
): coop$rchain$casper$protocol$MaybeBlockMessage;
static encode(
message: coop$rchain$casper$protocol$IMaybeBlockMessage,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IMaybeBlockMessage,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$MaybeBlockMessage;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$MaybeBlockMessage;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$MaybeBlockMessage;
static toObject(
message: coop$rchain$casper$protocol$MaybeBlockMessage,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IBlockQueryResponse {
+blockInfo?: coop$rchain$casper$protocol$IBlockInfo | null;
}
declare class coop$rchain$casper$protocol$BlockQueryResponse
implements coop$rchain$casper$protocol$IBlockQueryResponse {
constructor(
properties?: coop$rchain$casper$protocol$IBlockQueryResponse
): this;
blockInfo: coop$rchain$casper$protocol$IBlockInfo | null;
static create(
properties?: coop$rchain$casper$protocol$IBlockQueryResponse
): coop$rchain$casper$protocol$BlockQueryResponse;
static encode(
message: coop$rchain$casper$protocol$IBlockQueryResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IBlockQueryResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$BlockQueryResponse;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$BlockQueryResponse;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$BlockQueryResponse;
static toObject(
message: coop$rchain$casper$protocol$BlockQueryResponse,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IVisualizeDagQuery {
+depth?: number | null;
+showJustificationLines?: boolean | null;
}
declare class coop$rchain$casper$protocol$VisualizeDagQuery
implements coop$rchain$casper$protocol$IVisualizeDagQuery {
constructor(
properties?: coop$rchain$casper$protocol$IVisualizeDagQuery
): this;
depth: number;
showJustificationLines: boolean;
static create(
properties?: coop$rchain$casper$protocol$IVisualizeDagQuery
): coop$rchain$casper$protocol$VisualizeDagQuery;
static encode(
message: coop$rchain$casper$protocol$IVisualizeDagQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IVisualizeDagQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$VisualizeDagQuery;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$VisualizeDagQuery;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$VisualizeDagQuery;
static toObject(
message: coop$rchain$casper$protocol$VisualizeDagQuery,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IVisualizeBlocksResponse {
+content?: string | null;
}
declare class coop$rchain$casper$protocol$VisualizeBlocksResponse
implements coop$rchain$casper$protocol$IVisualizeBlocksResponse {
constructor(
properties?: coop$rchain$casper$protocol$IVisualizeBlocksResponse
): this;
content: string;
static create(
properties?: coop$rchain$casper$protocol$IVisualizeBlocksResponse
): coop$rchain$casper$protocol$VisualizeBlocksResponse;
static encode(
message: coop$rchain$casper$protocol$IVisualizeBlocksResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IVisualizeBlocksResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$VisualizeBlocksResponse;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$VisualizeBlocksResponse;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$VisualizeBlocksResponse;
static toObject(
message: coop$rchain$casper$protocol$VisualizeBlocksResponse,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IListeningNameDataResponse {
+blockResults?: coop$rchain$casper$protocol$IDataWithBlockInfo[] | null;
+length?: number | null;
}
declare class coop$rchain$casper$protocol$ListeningNameDataResponse
implements coop$rchain$casper$protocol$IListeningNameDataResponse {
constructor(
properties?: coop$rchain$casper$protocol$IListeningNameDataResponse
): this;
blockResults: coop$rchain$casper$protocol$IDataWithBlockInfo[];
length: number;
static create(
properties?: coop$rchain$casper$protocol$IListeningNameDataResponse
): coop$rchain$casper$protocol$ListeningNameDataResponse;
static encode(
message: coop$rchain$casper$protocol$IListeningNameDataResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IListeningNameDataResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$ListeningNameDataResponse;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$ListeningNameDataResponse;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$ListeningNameDataResponse;
static toObject(
message: coop$rchain$casper$protocol$ListeningNameDataResponse,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IListeningNameContinuationResponse {
+blockResults?:
| coop$rchain$casper$protocol$IContinuationsWithBlockInfo[]
| null;
+length?: number | null;
}
declare class coop$rchain$casper$protocol$ListeningNameContinuationResponse
implements coop$rchain$casper$protocol$IListeningNameContinuationResponse {
constructor(
properties?: coop$rchain$casper$protocol$IListeningNameContinuationResponse
): this;
blockResults: coop$rchain$casper$protocol$IContinuationsWithBlockInfo[];
length: number;
static create(
properties?: coop$rchain$casper$protocol$IListeningNameContinuationResponse
): coop$rchain$casper$protocol$ListeningNameContinuationResponse;
static encode(
message: coop$rchain$casper$protocol$IListeningNameContinuationResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IListeningNameContinuationResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$ListeningNameContinuationResponse;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$ListeningNameContinuationResponse;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$ListeningNameContinuationResponse;
static toObject(
message: coop$rchain$casper$protocol$ListeningNameContinuationResponse,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IDataWithBlockInfo {
+postBlockData?: IPar[] | null;
+block?: coop$rchain$casper$protocol$IBlockInfoWithoutTuplespace | null;
}
declare class coop$rchain$casper$protocol$DataWithBlockInfo
implements coop$rchain$casper$protocol$IDataWithBlockInfo {
constructor(
properties?: coop$rchain$casper$protocol$IDataWithBlockInfo
): this;
postBlockData: IPar[];
block: coop$rchain$casper$protocol$IBlockInfoWithoutTuplespace | null;
static create(
properties?: coop$rchain$casper$protocol$IDataWithBlockInfo
): coop$rchain$casper$protocol$DataWithBlockInfo;
static encode(
message: coop$rchain$casper$protocol$IDataWithBlockInfo,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IDataWithBlockInfo,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$DataWithBlockInfo;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$DataWithBlockInfo;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$DataWithBlockInfo;
static toObject(
message: coop$rchain$casper$protocol$DataWithBlockInfo,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IContinuationsWithBlockInfo {
+postBlockContinuations?:
| coop$rchain$casper$protocol$IWaitingContinuationInfo[]
| null;
+block?: coop$rchain$casper$protocol$IBlockInfoWithoutTuplespace | null;
}
declare class coop$rchain$casper$protocol$ContinuationsWithBlockInfo
implements coop$rchain$casper$protocol$IContinuationsWithBlockInfo {
constructor(
properties?: coop$rchain$casper$protocol$IContinuationsWithBlockInfo
): this;
postBlockContinuations: coop$rchain$casper$protocol$IWaitingContinuationInfo[];
block: coop$rchain$casper$protocol$IBlockInfoWithoutTuplespace | null;
static create(
properties?: coop$rchain$casper$protocol$IContinuationsWithBlockInfo
): coop$rchain$casper$protocol$ContinuationsWithBlockInfo;
static encode(
message: coop$rchain$casper$protocol$IContinuationsWithBlockInfo,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IContinuationsWithBlockInfo,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$ContinuationsWithBlockInfo;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$ContinuationsWithBlockInfo;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$ContinuationsWithBlockInfo;
static toObject(
message: coop$rchain$casper$protocol$ContinuationsWithBlockInfo,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IWaitingContinuationInfo {
+postBlockPatterns?: IBindPattern[] | null;
+postBlockContinuation?: IPar | null;
}
declare class coop$rchain$casper$protocol$WaitingContinuationInfo
implements coop$rchain$casper$protocol$IWaitingContinuationInfo {
constructor(
properties?: coop$rchain$casper$protocol$IWaitingContinuationInfo
): this;
postBlockPatterns: IBindPattern[];
postBlockContinuation: IPar | null;
static create(
properties?: coop$rchain$casper$protocol$IWaitingContinuationInfo
): coop$rchain$casper$protocol$WaitingContinuationInfo;
static encode(
message: coop$rchain$casper$protocol$IWaitingContinuationInfo,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IWaitingContinuationInfo,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$WaitingContinuationInfo;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$WaitingContinuationInfo;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$WaitingContinuationInfo;
static toObject(
message: coop$rchain$casper$protocol$WaitingContinuationInfo,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IBlockInfoWithoutTuplespace {
+blockHash?: string | null;
+blockSize?: string | null;
+blockNumber?: number | Long | null;
+version?: number | Long | null;
+deployCount?: number | null;
+tupleSpaceHash?: string | null;
+timestamp?: number | Long | null;
+faultTolerance?: number | null;
+mainParentHash?: string | null;
+parentsHashList?: string[] | null;
+sender?: string | null;
}
declare class coop$rchain$casper$protocol$BlockInfoWithoutTuplespace
implements coop$rchain$casper$protocol$IBlockInfoWithoutTuplespace {
constructor(
properties?: coop$rchain$casper$protocol$IBlockInfoWithoutTuplespace
): this;
blockHash: string;
blockSize: string;
blockNumber: number | Long;
version: number | Long;
deployCount: number;
tupleSpaceHash: string;
timestamp: number | Long;
faultTolerance: number;
mainParentHash: string;
parentsHashList: string[];
sender: string;
static create(
properties?: coop$rchain$casper$protocol$IBlockInfoWithoutTuplespace
): coop$rchain$casper$protocol$BlockInfoWithoutTuplespace;
static encode(
message: coop$rchain$casper$protocol$IBlockInfoWithoutTuplespace,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IBlockInfoWithoutTuplespace,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$BlockInfoWithoutTuplespace;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$BlockInfoWithoutTuplespace;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$BlockInfoWithoutTuplespace;
static toObject(
message: coop$rchain$casper$protocol$BlockInfoWithoutTuplespace,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IBlockInfo {
+blockHash?: string | null;
+blockSize?: string | null;
+blockNumber?: number | Long | null;
+version?: number | Long | null;
+deployCount?: number | null;
+tupleSpaceHash?: string | null;
+tupleSpaceDump?: string | null;
+timestamp?: number | Long | null;
+faultTolerance?: number | null;
+mainParentHash?: string | null;
+parentsHashList?: string[] | null;
+sender?: string | null;
+shardId?: string | null;
+bondsValidatorList?: string[] | null;
+deployCost?: string[] | null;
}
declare class coop$rchain$casper$protocol$BlockInfo
implements coop$rchain$casper$protocol$IBlockInfo {
constructor(properties?: coop$rchain$casper$protocol$IBlockInfo): this;
blockHash: string;
blockSize: string;
blockNumber: number | Long;
version: number | Long;
deployCount: number;
tupleSpaceHash: string;
tupleSpaceDump: string;
timestamp: number | Long;
faultTolerance: number;
mainParentHash: string;
parentsHashList: string[];
sender: string;
shardId: string;
bondsValidatorList: string[];
deployCost: string[];
static create(
properties?: coop$rchain$casper$protocol$IBlockInfo
): coop$rchain$casper$protocol$BlockInfo;
static encode(
message: coop$rchain$casper$protocol$IBlockInfo,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IBlockInfo,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$BlockInfo;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$BlockInfo;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$BlockInfo;
static toObject(
message: coop$rchain$casper$protocol$BlockInfo,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IPrivateNamePreviewQuery {
+user?: Uint8Array | null;
+timestamp?: number | Long | null;
+nameQty?: number | null;
}
declare class coop$rchain$casper$protocol$PrivateNamePreviewQuery
implements coop$rchain$casper$protocol$IPrivateNamePreviewQuery {
constructor(
properties?: coop$rchain$casper$protocol$IPrivateNamePreviewQuery
): this;
user: Uint8Array;
timestamp: number | Long;
nameQty: number;
static create(
properties?: coop$rchain$casper$protocol$IPrivateNamePreviewQuery
): coop$rchain$casper$protocol$PrivateNamePreviewQuery;
static encode(
message: coop$rchain$casper$protocol$IPrivateNamePreviewQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IPrivateNamePreviewQuery,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$PrivateNamePreviewQuery;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$PrivateNamePreviewQuery;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$PrivateNamePreviewQuery;
static toObject(
message: coop$rchain$casper$protocol$PrivateNamePreviewQuery,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IPrivateNamePreviewResponse {
+ids?: Uint8Array[] | null;
}
declare class coop$rchain$casper$protocol$PrivateNamePreviewResponse
implements coop$rchain$casper$protocol$IPrivateNamePreviewResponse {
constructor(
properties?: coop$rchain$casper$protocol$IPrivateNamePreviewResponse
): this;
ids: Uint8Array[];
static create(
properties?: coop$rchain$casper$protocol$IPrivateNamePreviewResponse
): coop$rchain$casper$protocol$PrivateNamePreviewResponse;
static encode(
message: coop$rchain$casper$protocol$IPrivateNamePreviewResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IPrivateNamePreviewResponse,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$PrivateNamePreviewResponse;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$PrivateNamePreviewResponse;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$PrivateNamePreviewResponse;
static toObject(
message: coop$rchain$casper$protocol$PrivateNamePreviewResponse,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IApprovedBlockCandidate {
+block?: coop$rchain$casper$protocol$IBlockMessage | null;
+requiredSigs?: number | null;
}
declare class coop$rchain$casper$protocol$ApprovedBlockCandidate
implements coop$rchain$casper$protocol$IApprovedBlockCandidate {
constructor(
properties?: coop$rchain$casper$protocol$IApprovedBlockCandidate
): this;
block: coop$rchain$casper$protocol$IBlockMessage | null;
requiredSigs: number;
static create(
properties?: coop$rchain$casper$protocol$IApprovedBlockCandidate
): coop$rchain$casper$protocol$ApprovedBlockCandidate;
static encode(
message: coop$rchain$casper$protocol$IApprovedBlockCandidate,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IApprovedBlockCandidate,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$ApprovedBlockCandidate;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$ApprovedBlockCandidate;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$ApprovedBlockCandidate;
static toObject(
message: coop$rchain$casper$protocol$ApprovedBlockCandidate,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IUnapprovedBlock {
+candidate?: coop$rchain$casper$protocol$IApprovedBlockCandidate | null;
+timestamp?: number | Long | null;
+duration?: number | Long | null;
}
declare class coop$rchain$casper$protocol$UnapprovedBlock
implements coop$rchain$casper$protocol$IUnapprovedBlock {
constructor(properties?: coop$rchain$casper$protocol$IUnapprovedBlock): this;
candidate: coop$rchain$casper$protocol$IApprovedBlockCandidate | null;
timestamp: number | Long;
duration: number | Long;
static create(
properties?: coop$rchain$casper$protocol$IUnapprovedBlock
): coop$rchain$casper$protocol$UnapprovedBlock;
static encode(
message: coop$rchain$casper$protocol$IUnapprovedBlock,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IUnapprovedBlock,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$UnapprovedBlock;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$UnapprovedBlock;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$UnapprovedBlock;
static toObject(
message: coop$rchain$casper$protocol$UnapprovedBlock,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$ISignature {
+publicKey?: Uint8Array | null;
+algorithm?: string | null;
+sig?: Uint8Array | null;
}
declare class coop$rchain$casper$protocol$Signature
implements coop$rchain$casper$protocol$ISignature {
constructor(properties?: coop$rchain$casper$protocol$ISignature): this;
publicKey: Uint8Array;
algorithm: string;
sig: Uint8Array;
static create(
properties?: coop$rchain$casper$protocol$ISignature
): coop$rchain$casper$protocol$Signature;
static encode(
message: coop$rchain$casper$protocol$ISignature,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$ISignature,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$Signature;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$Signature;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$Signature;
static toObject(
message: coop$rchain$casper$protocol$Signature,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IBlockApproval {
+candidate?: coop$rchain$casper$protocol$IApprovedBlockCandidate | null;
+sig?: coop$rchain$casper$protocol$ISignature | null;
}
declare class coop$rchain$casper$protocol$BlockApproval
implements coop$rchain$casper$protocol$IBlockApproval {
constructor(properties?: coop$rchain$casper$protocol$IBlockApproval): this;
candidate: coop$rchain$casper$protocol$IApprovedBlockCandidate | null;
sig: coop$rchain$casper$protocol$ISignature | null;
static create(
properties?: coop$rchain$casper$protocol$IBlockApproval
): coop$rchain$casper$protocol$BlockApproval;
static encode(
message: coop$rchain$casper$protocol$IBlockApproval,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IBlockApproval,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$BlockApproval;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$BlockApproval;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$BlockApproval;
static toObject(
message: coop$rchain$casper$protocol$BlockApproval,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IApprovedBlock {
+candidate?: coop$rchain$casper$protocol$IApprovedBlockCandidate | null;
+sigs?: coop$rchain$casper$protocol$ISignature[] | null;
}
declare class coop$rchain$casper$protocol$ApprovedBlock
implements coop$rchain$casper$protocol$IApprovedBlock {
constructor(properties?: coop$rchain$casper$protocol$IApprovedBlock): this;
candidate: coop$rchain$casper$protocol$IApprovedBlockCandidate | null;
sigs: coop$rchain$casper$protocol$ISignature[];
static create(
properties?: coop$rchain$casper$protocol$IApprovedBlock
): coop$rchain$casper$protocol$ApprovedBlock;
static encode(
message: coop$rchain$casper$protocol$IApprovedBlock,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IApprovedBlock,
writer?: $protobuf.Writer
): $protobuf.Writer;
static decode(
reader: $protobuf.Reader | Uint8Array,
length?: number
): coop$rchain$casper$protocol$ApprovedBlock;
static decodeDelimited(
reader: $protobuf.Reader | Uint8Array
): coop$rchain$casper$protocol$ApprovedBlock;
static verify(message: {
[k: string]: any
}): string | null;
static fromObject(object: {
[k: string]: any
}): coop$rchain$casper$protocol$ApprovedBlock;
static toObject(
message: coop$rchain$casper$protocol$ApprovedBlock,
options?: $protobuf.IConversionOptions
): {
[k: string]: any
};
toJSON(): {
[k: string]: any
};
}
declare interface coop$rchain$casper$protocol$IApprovedBlockRequest {
+identifier?: string | null;
}
declare class coop$rchain$casper$protocol$ApprovedBlockRequest
implements coop$rchain$casper$protocol$IApprovedBlockRequest {
constructor(
properties?: coop$rchain$casper$protocol$IApprovedBlockRequest
): this;
identifier: string;
static create(
properties?: coop$rchain$casper$protocol$IApprovedBlockRequest
): coop$rchain$casper$protocol$ApprovedBlockRequest;
static encode(
message: coop$rchain$casper$protocol$IApprovedBlockRequest,
writer?: $protobuf.Writer
): $protobuf.Writer;
static encodeDelimited(
message: coop$rchain$casper$protocol$IApprovedBlockRequest,
writer?: $protobuf.Writer
): $protobuf.Writer;