rchain-client-api
Version:
RChain client for node.js, browsers
623 lines (554 loc) • 132 kB
TypeScript
import * as $protobuf from "protobufjs";
export namespace coop {
namespace rchain {
namespace casper {
namespace protocol {
class DeployService extends $protobuf.rpc.Service {
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DeployService;
public doDeploy(request: coop.rchain.casper.protocol.IDeployData, callback: coop.rchain.casper.protocol.DeployService.DoDeployCallback): void;
public doDeploy(request: coop.rchain.casper.protocol.IDeployData): Promise<Either>;
public createBlock(request: google.protobuf.IEmpty, callback: coop.rchain.casper.protocol.DeployService.createBlockCallback): void;
public createBlock(request: google.protobuf.IEmpty): Promise<Either>;
public showBlock(request: coop.rchain.casper.protocol.IBlockQuery, callback: coop.rchain.casper.protocol.DeployService.showBlockCallback): void;
public showBlock(request: coop.rchain.casper.protocol.IBlockQuery): Promise<Either>;
public visualizeDag(request: coop.rchain.casper.protocol.IVisualizeDagQuery, callback: coop.rchain.casper.protocol.DeployService.visualizeDagCallback): void;
public visualizeDag(request: coop.rchain.casper.protocol.IVisualizeDagQuery): Promise<Either>;
public showMainChain(request: coop.rchain.casper.protocol.IBlocksQuery, callback: coop.rchain.casper.protocol.DeployService.showMainChainCallback): void;
public showMainChain(request: coop.rchain.casper.protocol.IBlocksQuery): Promise<Either>;
public showBlocks(request: coop.rchain.casper.protocol.IBlocksQuery, callback: coop.rchain.casper.protocol.DeployService.showBlocksCallback): void;
public showBlocks(request: coop.rchain.casper.protocol.IBlocksQuery): Promise<Either>;
public listenForDataAtName(request: coop.rchain.casper.protocol.IDataAtNameQuery, callback: coop.rchain.casper.protocol.DeployService.listenForDataAtNameCallback): void;
public listenForDataAtName(request: coop.rchain.casper.protocol.IDataAtNameQuery): Promise<Either>;
public listenForContinuationAtName(request: coop.rchain.casper.protocol.IContinuationAtNameQuery, callback: coop.rchain.casper.protocol.DeployService.listenForContinuationAtNameCallback): void;
public listenForContinuationAtName(request: coop.rchain.casper.protocol.IContinuationAtNameQuery): Promise<Either>;
public findBlockWithDeploy(request: coop.rchain.casper.protocol.IFindDeployInBlockQuery, callback: coop.rchain.casper.protocol.DeployService.findBlockWithDeployCallback): void;
public findBlockWithDeploy(request: coop.rchain.casper.protocol.IFindDeployInBlockQuery): Promise<Either>;
public previewPrivateNames(request: coop.rchain.casper.protocol.IPrivateNamePreviewQuery, callback: coop.rchain.casper.protocol.DeployService.previewPrivateNamesCallback): void;
public previewPrivateNames(request: coop.rchain.casper.protocol.IPrivateNamePreviewQuery): Promise<Either>;
}
namespace DeployService {
type DoDeployCallback = (error: (Error|null), response?: Either) => void;
type createBlockCallback = (error: (Error|null), response?: Either) => void;
type showBlockCallback = (error: (Error|null), response?: Either) => void;
type visualizeDagCallback = (error: (Error|null), response?: Either) => void;
type showMainChainCallback = (error: (Error|null), response?: Either) => void;
type showBlocksCallback = (error: (Error|null), response?: Either) => void;
type listenForDataAtNameCallback = (error: (Error|null), response?: Either) => void;
type listenForContinuationAtNameCallback = (error: (Error|null), response?: Either) => void;
type findBlockWithDeployCallback = (error: (Error|null), response?: Either) => void;
type previewPrivateNamesCallback = (error: (Error|null), response?: Either) => void;
}
interface 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);
}
class DeployData implements IDeployData {
constructor(properties?: coop.rchain.casper.protocol.IDeployData);
public deployer: Uint8Array;
public term: string;
public timestamp: (number|Long);
public sig: Uint8Array;
public sigAlgorithm: string;
public phloPrice: (number|Long);
public phloLimit: (number|Long);
public validAfterBlockNumber: (number|Long);
public static create(properties?: coop.rchain.casper.protocol.IDeployData): coop.rchain.casper.protocol.DeployData;
public static encode(message: coop.rchain.casper.protocol.IDeployData, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IDeployData, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.DeployData;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.DeployData;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.DeployData;
public static toObject(message: coop.rchain.casper.protocol.DeployData, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IBlockRequest {
base16Hash?: (string|null);
hash?: (Uint8Array|null);
}
class BlockRequest implements IBlockRequest {
constructor(properties?: coop.rchain.casper.protocol.IBlockRequest);
public base16Hash: string;
public hash: Uint8Array;
public static create(properties?: coop.rchain.casper.protocol.IBlockRequest): coop.rchain.casper.protocol.BlockRequest;
public static encode(message: coop.rchain.casper.protocol.IBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.BlockRequest;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.BlockRequest;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.BlockRequest;
public static toObject(message: coop.rchain.casper.protocol.BlockRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IForkChoiceTipRequest {
}
class ForkChoiceTipRequest implements IForkChoiceTipRequest {
constructor(properties?: coop.rchain.casper.protocol.IForkChoiceTipRequest);
public static create(properties?: coop.rchain.casper.protocol.IForkChoiceTipRequest): coop.rchain.casper.protocol.ForkChoiceTipRequest;
public static encode(message: coop.rchain.casper.protocol.IForkChoiceTipRequest, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IForkChoiceTipRequest, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.ForkChoiceTipRequest;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.ForkChoiceTipRequest;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.ForkChoiceTipRequest;
public static toObject(message: coop.rchain.casper.protocol.ForkChoiceTipRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IFindDeployInBlockQuery {
user?: (Uint8Array|null);
timestamp?: (number|Long|null);
}
class FindDeployInBlockQuery implements IFindDeployInBlockQuery {
constructor(properties?: coop.rchain.casper.protocol.IFindDeployInBlockQuery);
public user: Uint8Array;
public timestamp: (number|Long);
public static create(properties?: coop.rchain.casper.protocol.IFindDeployInBlockQuery): coop.rchain.casper.protocol.FindDeployInBlockQuery;
public static encode(message: coop.rchain.casper.protocol.IFindDeployInBlockQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IFindDeployInBlockQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.FindDeployInBlockQuery;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.FindDeployInBlockQuery;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.FindDeployInBlockQuery;
public static toObject(message: coop.rchain.casper.protocol.FindDeployInBlockQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IBlockQuery {
hash?: (string|null);
}
class BlockQuery implements IBlockQuery {
constructor(properties?: coop.rchain.casper.protocol.IBlockQuery);
public hash: string;
public static create(properties?: coop.rchain.casper.protocol.IBlockQuery): coop.rchain.casper.protocol.BlockQuery;
public static encode(message: coop.rchain.casper.protocol.IBlockQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IBlockQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.BlockQuery;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.BlockQuery;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.BlockQuery;
public static toObject(message: coop.rchain.casper.protocol.BlockQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IBlocksQuery {
depth?: (number|null);
}
class BlocksQuery implements IBlocksQuery {
constructor(properties?: coop.rchain.casper.protocol.IBlocksQuery);
public depth: number;
public static create(properties?: coop.rchain.casper.protocol.IBlocksQuery): coop.rchain.casper.protocol.BlocksQuery;
public static encode(message: coop.rchain.casper.protocol.IBlocksQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IBlocksQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.BlocksQuery;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.BlocksQuery;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.BlocksQuery;
public static toObject(message: coop.rchain.casper.protocol.BlocksQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IDataAtNameQuery {
depth?: (number|null);
name?: (IPar|null);
}
class DataAtNameQuery implements IDataAtNameQuery {
constructor(properties?: coop.rchain.casper.protocol.IDataAtNameQuery);
public depth: number;
public name?: (IPar|null);
public static create(properties?: coop.rchain.casper.protocol.IDataAtNameQuery): coop.rchain.casper.protocol.DataAtNameQuery;
public static encode(message: coop.rchain.casper.protocol.IDataAtNameQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IDataAtNameQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.DataAtNameQuery;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.DataAtNameQuery;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.DataAtNameQuery;
public static toObject(message: coop.rchain.casper.protocol.DataAtNameQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IContinuationAtNameQuery {
depth?: (number|null);
names?: (IPar[]|null);
}
class ContinuationAtNameQuery implements IContinuationAtNameQuery {
constructor(properties?: coop.rchain.casper.protocol.IContinuationAtNameQuery);
public depth: number;
public names: IPar[];
public static create(properties?: coop.rchain.casper.protocol.IContinuationAtNameQuery): coop.rchain.casper.protocol.ContinuationAtNameQuery;
public static encode(message: coop.rchain.casper.protocol.IContinuationAtNameQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IContinuationAtNameQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.ContinuationAtNameQuery;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.ContinuationAtNameQuery;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.ContinuationAtNameQuery;
public static toObject(message: coop.rchain.casper.protocol.ContinuationAtNameQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IDeployServiceResponse {
message?: (string|null);
}
class DeployServiceResponse implements IDeployServiceResponse {
constructor(properties?: coop.rchain.casper.protocol.IDeployServiceResponse);
public message: string;
public static create(properties?: coop.rchain.casper.protocol.IDeployServiceResponse): coop.rchain.casper.protocol.DeployServiceResponse;
public static encode(message: coop.rchain.casper.protocol.IDeployServiceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IDeployServiceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.DeployServiceResponse;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.DeployServiceResponse;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.DeployServiceResponse;
public static toObject(message: coop.rchain.casper.protocol.DeployServiceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IMaybeBlockMessage {
block?: (coop.rchain.casper.protocol.IBlockMessage|null);
}
class MaybeBlockMessage implements IMaybeBlockMessage {
constructor(properties?: coop.rchain.casper.protocol.IMaybeBlockMessage);
public block?: (coop.rchain.casper.protocol.IBlockMessage|null);
public static create(properties?: coop.rchain.casper.protocol.IMaybeBlockMessage): coop.rchain.casper.protocol.MaybeBlockMessage;
public static encode(message: coop.rchain.casper.protocol.IMaybeBlockMessage, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IMaybeBlockMessage, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.MaybeBlockMessage;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.MaybeBlockMessage;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.MaybeBlockMessage;
public static toObject(message: coop.rchain.casper.protocol.MaybeBlockMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IBlockQueryResponse {
blockInfo?: (coop.rchain.casper.protocol.IBlockInfo|null);
}
class BlockQueryResponse implements IBlockQueryResponse {
constructor(properties?: coop.rchain.casper.protocol.IBlockQueryResponse);
public blockInfo?: (coop.rchain.casper.protocol.IBlockInfo|null);
public static create(properties?: coop.rchain.casper.protocol.IBlockQueryResponse): coop.rchain.casper.protocol.BlockQueryResponse;
public static encode(message: coop.rchain.casper.protocol.IBlockQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IBlockQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.BlockQueryResponse;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.BlockQueryResponse;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.BlockQueryResponse;
public static toObject(message: coop.rchain.casper.protocol.BlockQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IVisualizeDagQuery {
depth?: (number|null);
showJustificationLines?: (boolean|null);
}
class VisualizeDagQuery implements IVisualizeDagQuery {
constructor(properties?: coop.rchain.casper.protocol.IVisualizeDagQuery);
public depth: number;
public showJustificationLines: boolean;
public static create(properties?: coop.rchain.casper.protocol.IVisualizeDagQuery): coop.rchain.casper.protocol.VisualizeDagQuery;
public static encode(message: coop.rchain.casper.protocol.IVisualizeDagQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IVisualizeDagQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.VisualizeDagQuery;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.VisualizeDagQuery;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.VisualizeDagQuery;
public static toObject(message: coop.rchain.casper.protocol.VisualizeDagQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IVisualizeBlocksResponse {
content?: (string|null);
}
class VisualizeBlocksResponse implements IVisualizeBlocksResponse {
constructor(properties?: coop.rchain.casper.protocol.IVisualizeBlocksResponse);
public content: string;
public static create(properties?: coop.rchain.casper.protocol.IVisualizeBlocksResponse): coop.rchain.casper.protocol.VisualizeBlocksResponse;
public static encode(message: coop.rchain.casper.protocol.IVisualizeBlocksResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IVisualizeBlocksResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.VisualizeBlocksResponse;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.VisualizeBlocksResponse;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.VisualizeBlocksResponse;
public static toObject(message: coop.rchain.casper.protocol.VisualizeBlocksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IListeningNameDataResponse {
blockResults?: (coop.rchain.casper.protocol.IDataWithBlockInfo[]|null);
length?: (number|null);
}
class ListeningNameDataResponse implements IListeningNameDataResponse {
constructor(properties?: coop.rchain.casper.protocol.IListeningNameDataResponse);
public blockResults: coop.rchain.casper.protocol.IDataWithBlockInfo[];
public length: number;
public static create(properties?: coop.rchain.casper.protocol.IListeningNameDataResponse): coop.rchain.casper.protocol.ListeningNameDataResponse;
public static encode(message: coop.rchain.casper.protocol.IListeningNameDataResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IListeningNameDataResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.ListeningNameDataResponse;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.ListeningNameDataResponse;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.ListeningNameDataResponse;
public static toObject(message: coop.rchain.casper.protocol.ListeningNameDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IListeningNameContinuationResponse {
blockResults?: (coop.rchain.casper.protocol.IContinuationsWithBlockInfo[]|null);
length?: (number|null);
}
class ListeningNameContinuationResponse implements IListeningNameContinuationResponse {
constructor(properties?: coop.rchain.casper.protocol.IListeningNameContinuationResponse);
public blockResults: coop.rchain.casper.protocol.IContinuationsWithBlockInfo[];
public length: number;
public static create(properties?: coop.rchain.casper.protocol.IListeningNameContinuationResponse): coop.rchain.casper.protocol.ListeningNameContinuationResponse;
public static encode(message: coop.rchain.casper.protocol.IListeningNameContinuationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IListeningNameContinuationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.ListeningNameContinuationResponse;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.ListeningNameContinuationResponse;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.ListeningNameContinuationResponse;
public static toObject(message: coop.rchain.casper.protocol.ListeningNameContinuationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IDataWithBlockInfo {
postBlockData?: (IPar[]|null);
block?: (coop.rchain.casper.protocol.IBlockInfoWithoutTuplespace|null);
}
class DataWithBlockInfo implements IDataWithBlockInfo {
constructor(properties?: coop.rchain.casper.protocol.IDataWithBlockInfo);
public postBlockData: IPar[];
public block?: (coop.rchain.casper.protocol.IBlockInfoWithoutTuplespace|null);
public static create(properties?: coop.rchain.casper.protocol.IDataWithBlockInfo): coop.rchain.casper.protocol.DataWithBlockInfo;
public static encode(message: coop.rchain.casper.protocol.IDataWithBlockInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IDataWithBlockInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.DataWithBlockInfo;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.DataWithBlockInfo;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.DataWithBlockInfo;
public static toObject(message: coop.rchain.casper.protocol.DataWithBlockInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IContinuationsWithBlockInfo {
postBlockContinuations?: (coop.rchain.casper.protocol.IWaitingContinuationInfo[]|null);
block?: (coop.rchain.casper.protocol.IBlockInfoWithoutTuplespace|null);
}
class ContinuationsWithBlockInfo implements IContinuationsWithBlockInfo {
constructor(properties?: coop.rchain.casper.protocol.IContinuationsWithBlockInfo);
public postBlockContinuations: coop.rchain.casper.protocol.IWaitingContinuationInfo[];
public block?: (coop.rchain.casper.protocol.IBlockInfoWithoutTuplespace|null);
public static create(properties?: coop.rchain.casper.protocol.IContinuationsWithBlockInfo): coop.rchain.casper.protocol.ContinuationsWithBlockInfo;
public static encode(message: coop.rchain.casper.protocol.IContinuationsWithBlockInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IContinuationsWithBlockInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.ContinuationsWithBlockInfo;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.ContinuationsWithBlockInfo;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.ContinuationsWithBlockInfo;
public static toObject(message: coop.rchain.casper.protocol.ContinuationsWithBlockInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IWaitingContinuationInfo {
postBlockPatterns?: (IBindPattern[]|null);
postBlockContinuation?: (IPar|null);
}
class WaitingContinuationInfo implements IWaitingContinuationInfo {
constructor(properties?: coop.rchain.casper.protocol.IWaitingContinuationInfo);
public postBlockPatterns: IBindPattern[];
public postBlockContinuation?: (IPar|null);
public static create(properties?: coop.rchain.casper.protocol.IWaitingContinuationInfo): coop.rchain.casper.protocol.WaitingContinuationInfo;
public static encode(message: coop.rchain.casper.protocol.IWaitingContinuationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IWaitingContinuationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.WaitingContinuationInfo;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.WaitingContinuationInfo;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.WaitingContinuationInfo;
public static toObject(message: coop.rchain.casper.protocol.WaitingContinuationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface 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);
}
class BlockInfoWithoutTuplespace implements IBlockInfoWithoutTuplespace {
constructor(properties?: coop.rchain.casper.protocol.IBlockInfoWithoutTuplespace);
public blockHash: string;
public blockSize: string;
public blockNumber: (number|Long);
public version: (number|Long);
public deployCount: number;
public tupleSpaceHash: string;
public timestamp: (number|Long);
public faultTolerance: number;
public mainParentHash: string;
public parentsHashList: string[];
public sender: string;
public static create(properties?: coop.rchain.casper.protocol.IBlockInfoWithoutTuplespace): coop.rchain.casper.protocol.BlockInfoWithoutTuplespace;
public static encode(message: coop.rchain.casper.protocol.IBlockInfoWithoutTuplespace, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IBlockInfoWithoutTuplespace, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.BlockInfoWithoutTuplespace;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.BlockInfoWithoutTuplespace;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.BlockInfoWithoutTuplespace;
public static toObject(message: coop.rchain.casper.protocol.BlockInfoWithoutTuplespace, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface 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);
}
class BlockInfo implements IBlockInfo {
constructor(properties?: coop.rchain.casper.protocol.IBlockInfo);
public blockHash: string;
public blockSize: string;
public blockNumber: (number|Long);
public version: (number|Long);
public deployCount: number;
public tupleSpaceHash: string;
public tupleSpaceDump: string;
public timestamp: (number|Long);
public faultTolerance: number;
public mainParentHash: string;
public parentsHashList: string[];
public sender: string;
public shardId: string;
public bondsValidatorList: string[];
public deployCost: string[];
public static create(properties?: coop.rchain.casper.protocol.IBlockInfo): coop.rchain.casper.protocol.BlockInfo;
public static encode(message: coop.rchain.casper.protocol.IBlockInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IBlockInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.BlockInfo;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.BlockInfo;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.BlockInfo;
public static toObject(message: coop.rchain.casper.protocol.BlockInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IPrivateNamePreviewQuery {
user?: (Uint8Array|null);
timestamp?: (number|Long|null);
nameQty?: (number|null);
}
class PrivateNamePreviewQuery implements IPrivateNamePreviewQuery {
constructor(properties?: coop.rchain.casper.protocol.IPrivateNamePreviewQuery);
public user: Uint8Array;
public timestamp: (number|Long);
public nameQty: number;
public static create(properties?: coop.rchain.casper.protocol.IPrivateNamePreviewQuery): coop.rchain.casper.protocol.PrivateNamePreviewQuery;
public static encode(message: coop.rchain.casper.protocol.IPrivateNamePreviewQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IPrivateNamePreviewQuery, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.PrivateNamePreviewQuery;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.PrivateNamePreviewQuery;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.PrivateNamePreviewQuery;
public static toObject(message: coop.rchain.casper.protocol.PrivateNamePreviewQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IPrivateNamePreviewResponse {
ids?: (Uint8Array[]|null);
}
class PrivateNamePreviewResponse implements IPrivateNamePreviewResponse {
constructor(properties?: coop.rchain.casper.protocol.IPrivateNamePreviewResponse);
public ids: Uint8Array[];
public static create(properties?: coop.rchain.casper.protocol.IPrivateNamePreviewResponse): coop.rchain.casper.protocol.PrivateNamePreviewResponse;
public static encode(message: coop.rchain.casper.protocol.IPrivateNamePreviewResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IPrivateNamePreviewResponse, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.PrivateNamePreviewResponse;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.PrivateNamePreviewResponse;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.PrivateNamePreviewResponse;
public static toObject(message: coop.rchain.casper.protocol.PrivateNamePreviewResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IApprovedBlockCandidate {
block?: (coop.rchain.casper.protocol.IBlockMessage|null);
requiredSigs?: (number|null);
}
class ApprovedBlockCandidate implements IApprovedBlockCandidate {
constructor(properties?: coop.rchain.casper.protocol.IApprovedBlockCandidate);
public block?: (coop.rchain.casper.protocol.IBlockMessage|null);
public requiredSigs: number;
public static create(properties?: coop.rchain.casper.protocol.IApprovedBlockCandidate): coop.rchain.casper.protocol.ApprovedBlockCandidate;
public static encode(message: coop.rchain.casper.protocol.IApprovedBlockCandidate, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IApprovedBlockCandidate, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.ApprovedBlockCandidate;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.ApprovedBlockCandidate;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.ApprovedBlockCandidate;
public static toObject(message: coop.rchain.casper.protocol.ApprovedBlockCandidate, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IUnapprovedBlock {
candidate?: (coop.rchain.casper.protocol.IApprovedBlockCandidate|null);
timestamp?: (number|Long|null);
duration?: (number|Long|null);
}
class UnapprovedBlock implements IUnapprovedBlock {
constructor(properties?: coop.rchain.casper.protocol.IUnapprovedBlock);
public candidate?: (coop.rchain.casper.protocol.IApprovedBlockCandidate|null);
public timestamp: (number|Long);
public duration: (number|Long);
public static create(properties?: coop.rchain.casper.protocol.IUnapprovedBlock): coop.rchain.casper.protocol.UnapprovedBlock;
public static encode(message: coop.rchain.casper.protocol.IUnapprovedBlock, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IUnapprovedBlock, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.UnapprovedBlock;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.UnapprovedBlock;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.UnapprovedBlock;
public static toObject(message: coop.rchain.casper.protocol.UnapprovedBlock, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface ISignature {
publicKey?: (Uint8Array|null);
algorithm?: (string|null);
sig?: (Uint8Array|null);
}
class Signature implements ISignature {
constructor(properties?: coop.rchain.casper.protocol.ISignature);
public publicKey: Uint8Array;
public algorithm: string;
public sig: Uint8Array;
public static create(properties?: coop.rchain.casper.protocol.ISignature): coop.rchain.casper.protocol.Signature;
public static encode(message: coop.rchain.casper.protocol.ISignature, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.ISignature, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.Signature;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.Signature;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.Signature;
public static toObject(message: coop.rchain.casper.protocol.Signature, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IBlockApproval {
candidate?: (coop.rchain.casper.protocol.IApprovedBlockCandidate|null);
sig?: (coop.rchain.casper.protocol.ISignature|null);
}
class BlockApproval implements IBlockApproval {
constructor(properties?: coop.rchain.casper.protocol.IBlockApproval);
public candidate?: (coop.rchain.casper.protocol.IApprovedBlockCandidate|null);
public sig?: (coop.rchain.casper.protocol.ISignature|null);
public static create(properties?: coop.rchain.casper.protocol.IBlockApproval): coop.rchain.casper.protocol.BlockApproval;
public static encode(message: coop.rchain.casper.protocol.IBlockApproval, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: coop.rchain.casper.protocol.IBlockApproval, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coop.rchain.casper.protocol.BlockApproval;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coop.rchain.casper.protocol.BlockApproval;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): coop.rchain.casper.protocol.BlockApproval;
public static toObject(message: coop.rchain.casper.protocol.BlockApproval, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IApprovedBlock {