@dashevo/dapi-grpc 1.1.0 → 1.2.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +2 -2
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +36 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +3673 -0
- package/clients/platform/v0/nodejs/platform_protoc.js +3633 -0
- package/clients/platform/v0/web/PlatformPromiseClient.js +14 -0
- package/clients/platform/v0/web/platform_pb.d.ts +466 -0
- package/clients/platform/v0/web/platform_pb.js +3633 -0
- package/clients/platform/v0/web/platform_pb_service.d.ts +19 -0
- package/clients/platform/v0/web/platform_pb_service.js +40 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +98 -0
|
@@ -232,6 +232,20 @@ class PlatformPromiseClient {
|
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
+
/**
|
|
236
|
+
* @param {!GetStatusRequest} getStatusRequest
|
|
237
|
+
* @param {?Object<string, string>} metadata
|
|
238
|
+
* @return {Promise<!GetIdentityKeysResponse>}
|
|
239
|
+
*/
|
|
240
|
+
getStatus(getStatusRequest, metadata = {}) {
|
|
241
|
+
return promisify(
|
|
242
|
+
this.client.getStatus.bind(this.client),
|
|
243
|
+
)(
|
|
244
|
+
getStatusRequest,
|
|
245
|
+
metadata,
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
235
249
|
/**
|
|
236
250
|
* @param {string} protocolVersion
|
|
237
251
|
*/
|
|
@@ -4913,6 +4913,472 @@ export namespace GetPathElementsResponse {
|
|
|
4913
4913
|
}
|
|
4914
4914
|
}
|
|
4915
4915
|
|
|
4916
|
+
export class GetStatusRequest extends jspb.Message {
|
|
4917
|
+
hasV0(): boolean;
|
|
4918
|
+
clearV0(): void;
|
|
4919
|
+
getV0(): GetStatusRequest.GetStatusRequestV0 | undefined;
|
|
4920
|
+
setV0(value?: GetStatusRequest.GetStatusRequestV0): void;
|
|
4921
|
+
|
|
4922
|
+
getVersionCase(): GetStatusRequest.VersionCase;
|
|
4923
|
+
serializeBinary(): Uint8Array;
|
|
4924
|
+
toObject(includeInstance?: boolean): GetStatusRequest.AsObject;
|
|
4925
|
+
static toObject(includeInstance: boolean, msg: GetStatusRequest): GetStatusRequest.AsObject;
|
|
4926
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
4927
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
4928
|
+
static serializeBinaryToWriter(message: GetStatusRequest, writer: jspb.BinaryWriter): void;
|
|
4929
|
+
static deserializeBinary(bytes: Uint8Array): GetStatusRequest;
|
|
4930
|
+
static deserializeBinaryFromReader(message: GetStatusRequest, reader: jspb.BinaryReader): GetStatusRequest;
|
|
4931
|
+
}
|
|
4932
|
+
|
|
4933
|
+
export namespace GetStatusRequest {
|
|
4934
|
+
export type AsObject = {
|
|
4935
|
+
v0?: GetStatusRequest.GetStatusRequestV0.AsObject,
|
|
4936
|
+
}
|
|
4937
|
+
|
|
4938
|
+
export class GetStatusRequestV0 extends jspb.Message {
|
|
4939
|
+
serializeBinary(): Uint8Array;
|
|
4940
|
+
toObject(includeInstance?: boolean): GetStatusRequestV0.AsObject;
|
|
4941
|
+
static toObject(includeInstance: boolean, msg: GetStatusRequestV0): GetStatusRequestV0.AsObject;
|
|
4942
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
4943
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
4944
|
+
static serializeBinaryToWriter(message: GetStatusRequestV0, writer: jspb.BinaryWriter): void;
|
|
4945
|
+
static deserializeBinary(bytes: Uint8Array): GetStatusRequestV0;
|
|
4946
|
+
static deserializeBinaryFromReader(message: GetStatusRequestV0, reader: jspb.BinaryReader): GetStatusRequestV0;
|
|
4947
|
+
}
|
|
4948
|
+
|
|
4949
|
+
export namespace GetStatusRequestV0 {
|
|
4950
|
+
export type AsObject = {
|
|
4951
|
+
}
|
|
4952
|
+
}
|
|
4953
|
+
|
|
4954
|
+
export enum VersionCase {
|
|
4955
|
+
VERSION_NOT_SET = 0,
|
|
4956
|
+
V0 = 1,
|
|
4957
|
+
}
|
|
4958
|
+
}
|
|
4959
|
+
|
|
4960
|
+
export class GetStatusResponse extends jspb.Message {
|
|
4961
|
+
hasV0(): boolean;
|
|
4962
|
+
clearV0(): void;
|
|
4963
|
+
getV0(): GetStatusResponse.GetStatusResponseV0 | undefined;
|
|
4964
|
+
setV0(value?: GetStatusResponse.GetStatusResponseV0): void;
|
|
4965
|
+
|
|
4966
|
+
getVersionCase(): GetStatusResponse.VersionCase;
|
|
4967
|
+
serializeBinary(): Uint8Array;
|
|
4968
|
+
toObject(includeInstance?: boolean): GetStatusResponse.AsObject;
|
|
4969
|
+
static toObject(includeInstance: boolean, msg: GetStatusResponse): GetStatusResponse.AsObject;
|
|
4970
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
4971
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
4972
|
+
static serializeBinaryToWriter(message: GetStatusResponse, writer: jspb.BinaryWriter): void;
|
|
4973
|
+
static deserializeBinary(bytes: Uint8Array): GetStatusResponse;
|
|
4974
|
+
static deserializeBinaryFromReader(message: GetStatusResponse, reader: jspb.BinaryReader): GetStatusResponse;
|
|
4975
|
+
}
|
|
4976
|
+
|
|
4977
|
+
export namespace GetStatusResponse {
|
|
4978
|
+
export type AsObject = {
|
|
4979
|
+
v0?: GetStatusResponse.GetStatusResponseV0.AsObject,
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4982
|
+
export class GetStatusResponseV0 extends jspb.Message {
|
|
4983
|
+
hasVersion(): boolean;
|
|
4984
|
+
clearVersion(): void;
|
|
4985
|
+
getVersion(): GetStatusResponse.GetStatusResponseV0.Version | undefined;
|
|
4986
|
+
setVersion(value?: GetStatusResponse.GetStatusResponseV0.Version): void;
|
|
4987
|
+
|
|
4988
|
+
hasNode(): boolean;
|
|
4989
|
+
clearNode(): void;
|
|
4990
|
+
getNode(): GetStatusResponse.GetStatusResponseV0.Node | undefined;
|
|
4991
|
+
setNode(value?: GetStatusResponse.GetStatusResponseV0.Node): void;
|
|
4992
|
+
|
|
4993
|
+
hasChain(): boolean;
|
|
4994
|
+
clearChain(): void;
|
|
4995
|
+
getChain(): GetStatusResponse.GetStatusResponseV0.Chain | undefined;
|
|
4996
|
+
setChain(value?: GetStatusResponse.GetStatusResponseV0.Chain): void;
|
|
4997
|
+
|
|
4998
|
+
hasNetwork(): boolean;
|
|
4999
|
+
clearNetwork(): void;
|
|
5000
|
+
getNetwork(): GetStatusResponse.GetStatusResponseV0.Network | undefined;
|
|
5001
|
+
setNetwork(value?: GetStatusResponse.GetStatusResponseV0.Network): void;
|
|
5002
|
+
|
|
5003
|
+
hasStateSync(): boolean;
|
|
5004
|
+
clearStateSync(): void;
|
|
5005
|
+
getStateSync(): GetStatusResponse.GetStatusResponseV0.StateSync | undefined;
|
|
5006
|
+
setStateSync(value?: GetStatusResponse.GetStatusResponseV0.StateSync): void;
|
|
5007
|
+
|
|
5008
|
+
hasTime(): boolean;
|
|
5009
|
+
clearTime(): void;
|
|
5010
|
+
getTime(): GetStatusResponse.GetStatusResponseV0.Time | undefined;
|
|
5011
|
+
setTime(value?: GetStatusResponse.GetStatusResponseV0.Time): void;
|
|
5012
|
+
|
|
5013
|
+
serializeBinary(): Uint8Array;
|
|
5014
|
+
toObject(includeInstance?: boolean): GetStatusResponseV0.AsObject;
|
|
5015
|
+
static toObject(includeInstance: boolean, msg: GetStatusResponseV0): GetStatusResponseV0.AsObject;
|
|
5016
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5017
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5018
|
+
static serializeBinaryToWriter(message: GetStatusResponseV0, writer: jspb.BinaryWriter): void;
|
|
5019
|
+
static deserializeBinary(bytes: Uint8Array): GetStatusResponseV0;
|
|
5020
|
+
static deserializeBinaryFromReader(message: GetStatusResponseV0, reader: jspb.BinaryReader): GetStatusResponseV0;
|
|
5021
|
+
}
|
|
5022
|
+
|
|
5023
|
+
export namespace GetStatusResponseV0 {
|
|
5024
|
+
export type AsObject = {
|
|
5025
|
+
version?: GetStatusResponse.GetStatusResponseV0.Version.AsObject,
|
|
5026
|
+
node?: GetStatusResponse.GetStatusResponseV0.Node.AsObject,
|
|
5027
|
+
chain?: GetStatusResponse.GetStatusResponseV0.Chain.AsObject,
|
|
5028
|
+
network?: GetStatusResponse.GetStatusResponseV0.Network.AsObject,
|
|
5029
|
+
stateSync?: GetStatusResponse.GetStatusResponseV0.StateSync.AsObject,
|
|
5030
|
+
time?: GetStatusResponse.GetStatusResponseV0.Time.AsObject,
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
export class Version extends jspb.Message {
|
|
5034
|
+
hasSoftware(): boolean;
|
|
5035
|
+
clearSoftware(): void;
|
|
5036
|
+
getSoftware(): GetStatusResponse.GetStatusResponseV0.Version.Software | undefined;
|
|
5037
|
+
setSoftware(value?: GetStatusResponse.GetStatusResponseV0.Version.Software): void;
|
|
5038
|
+
|
|
5039
|
+
hasProtocol(): boolean;
|
|
5040
|
+
clearProtocol(): void;
|
|
5041
|
+
getProtocol(): GetStatusResponse.GetStatusResponseV0.Version.Protocol | undefined;
|
|
5042
|
+
setProtocol(value?: GetStatusResponse.GetStatusResponseV0.Version.Protocol): void;
|
|
5043
|
+
|
|
5044
|
+
serializeBinary(): Uint8Array;
|
|
5045
|
+
toObject(includeInstance?: boolean): Version.AsObject;
|
|
5046
|
+
static toObject(includeInstance: boolean, msg: Version): Version.AsObject;
|
|
5047
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5048
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5049
|
+
static serializeBinaryToWriter(message: Version, writer: jspb.BinaryWriter): void;
|
|
5050
|
+
static deserializeBinary(bytes: Uint8Array): Version;
|
|
5051
|
+
static deserializeBinaryFromReader(message: Version, reader: jspb.BinaryReader): Version;
|
|
5052
|
+
}
|
|
5053
|
+
|
|
5054
|
+
export namespace Version {
|
|
5055
|
+
export type AsObject = {
|
|
5056
|
+
software?: GetStatusResponse.GetStatusResponseV0.Version.Software.AsObject,
|
|
5057
|
+
protocol?: GetStatusResponse.GetStatusResponseV0.Version.Protocol.AsObject,
|
|
5058
|
+
}
|
|
5059
|
+
|
|
5060
|
+
export class Software extends jspb.Message {
|
|
5061
|
+
getDapi(): string;
|
|
5062
|
+
setDapi(value: string): void;
|
|
5063
|
+
|
|
5064
|
+
hasDrive(): boolean;
|
|
5065
|
+
clearDrive(): void;
|
|
5066
|
+
getDrive(): string;
|
|
5067
|
+
setDrive(value: string): void;
|
|
5068
|
+
|
|
5069
|
+
hasTenderdash(): boolean;
|
|
5070
|
+
clearTenderdash(): void;
|
|
5071
|
+
getTenderdash(): string;
|
|
5072
|
+
setTenderdash(value: string): void;
|
|
5073
|
+
|
|
5074
|
+
serializeBinary(): Uint8Array;
|
|
5075
|
+
toObject(includeInstance?: boolean): Software.AsObject;
|
|
5076
|
+
static toObject(includeInstance: boolean, msg: Software): Software.AsObject;
|
|
5077
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5078
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5079
|
+
static serializeBinaryToWriter(message: Software, writer: jspb.BinaryWriter): void;
|
|
5080
|
+
static deserializeBinary(bytes: Uint8Array): Software;
|
|
5081
|
+
static deserializeBinaryFromReader(message: Software, reader: jspb.BinaryReader): Software;
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5084
|
+
export namespace Software {
|
|
5085
|
+
export type AsObject = {
|
|
5086
|
+
dapi: string,
|
|
5087
|
+
drive: string,
|
|
5088
|
+
tenderdash: string,
|
|
5089
|
+
}
|
|
5090
|
+
}
|
|
5091
|
+
|
|
5092
|
+
export class Protocol extends jspb.Message {
|
|
5093
|
+
hasTenderdash(): boolean;
|
|
5094
|
+
clearTenderdash(): void;
|
|
5095
|
+
getTenderdash(): GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash | undefined;
|
|
5096
|
+
setTenderdash(value?: GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash): void;
|
|
5097
|
+
|
|
5098
|
+
hasDrive(): boolean;
|
|
5099
|
+
clearDrive(): void;
|
|
5100
|
+
getDrive(): GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive | undefined;
|
|
5101
|
+
setDrive(value?: GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive): void;
|
|
5102
|
+
|
|
5103
|
+
serializeBinary(): Uint8Array;
|
|
5104
|
+
toObject(includeInstance?: boolean): Protocol.AsObject;
|
|
5105
|
+
static toObject(includeInstance: boolean, msg: Protocol): Protocol.AsObject;
|
|
5106
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5107
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5108
|
+
static serializeBinaryToWriter(message: Protocol, writer: jspb.BinaryWriter): void;
|
|
5109
|
+
static deserializeBinary(bytes: Uint8Array): Protocol;
|
|
5110
|
+
static deserializeBinaryFromReader(message: Protocol, reader: jspb.BinaryReader): Protocol;
|
|
5111
|
+
}
|
|
5112
|
+
|
|
5113
|
+
export namespace Protocol {
|
|
5114
|
+
export type AsObject = {
|
|
5115
|
+
tenderdash?: GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash.AsObject,
|
|
5116
|
+
drive?: GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.AsObject,
|
|
5117
|
+
}
|
|
5118
|
+
|
|
5119
|
+
export class Tenderdash extends jspb.Message {
|
|
5120
|
+
getP2p(): number;
|
|
5121
|
+
setP2p(value: number): void;
|
|
5122
|
+
|
|
5123
|
+
getBlock(): number;
|
|
5124
|
+
setBlock(value: number): void;
|
|
5125
|
+
|
|
5126
|
+
serializeBinary(): Uint8Array;
|
|
5127
|
+
toObject(includeInstance?: boolean): Tenderdash.AsObject;
|
|
5128
|
+
static toObject(includeInstance: boolean, msg: Tenderdash): Tenderdash.AsObject;
|
|
5129
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5130
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5131
|
+
static serializeBinaryToWriter(message: Tenderdash, writer: jspb.BinaryWriter): void;
|
|
5132
|
+
static deserializeBinary(bytes: Uint8Array): Tenderdash;
|
|
5133
|
+
static deserializeBinaryFromReader(message: Tenderdash, reader: jspb.BinaryReader): Tenderdash;
|
|
5134
|
+
}
|
|
5135
|
+
|
|
5136
|
+
export namespace Tenderdash {
|
|
5137
|
+
export type AsObject = {
|
|
5138
|
+
p2p: number,
|
|
5139
|
+
block: number,
|
|
5140
|
+
}
|
|
5141
|
+
}
|
|
5142
|
+
|
|
5143
|
+
export class Drive extends jspb.Message {
|
|
5144
|
+
getLatest(): number;
|
|
5145
|
+
setLatest(value: number): void;
|
|
5146
|
+
|
|
5147
|
+
getCurrent(): number;
|
|
5148
|
+
setCurrent(value: number): void;
|
|
5149
|
+
|
|
5150
|
+
serializeBinary(): Uint8Array;
|
|
5151
|
+
toObject(includeInstance?: boolean): Drive.AsObject;
|
|
5152
|
+
static toObject(includeInstance: boolean, msg: Drive): Drive.AsObject;
|
|
5153
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5154
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5155
|
+
static serializeBinaryToWriter(message: Drive, writer: jspb.BinaryWriter): void;
|
|
5156
|
+
static deserializeBinary(bytes: Uint8Array): Drive;
|
|
5157
|
+
static deserializeBinaryFromReader(message: Drive, reader: jspb.BinaryReader): Drive;
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5160
|
+
export namespace Drive {
|
|
5161
|
+
export type AsObject = {
|
|
5162
|
+
latest: number,
|
|
5163
|
+
current: number,
|
|
5164
|
+
}
|
|
5165
|
+
}
|
|
5166
|
+
}
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
export class Time extends jspb.Message {
|
|
5170
|
+
getLocal(): number;
|
|
5171
|
+
setLocal(value: number): void;
|
|
5172
|
+
|
|
5173
|
+
hasBlock(): boolean;
|
|
5174
|
+
clearBlock(): void;
|
|
5175
|
+
getBlock(): number;
|
|
5176
|
+
setBlock(value: number): void;
|
|
5177
|
+
|
|
5178
|
+
hasGenesis(): boolean;
|
|
5179
|
+
clearGenesis(): void;
|
|
5180
|
+
getGenesis(): number;
|
|
5181
|
+
setGenesis(value: number): void;
|
|
5182
|
+
|
|
5183
|
+
hasEpoch(): boolean;
|
|
5184
|
+
clearEpoch(): void;
|
|
5185
|
+
getEpoch(): number;
|
|
5186
|
+
setEpoch(value: number): void;
|
|
5187
|
+
|
|
5188
|
+
serializeBinary(): Uint8Array;
|
|
5189
|
+
toObject(includeInstance?: boolean): Time.AsObject;
|
|
5190
|
+
static toObject(includeInstance: boolean, msg: Time): Time.AsObject;
|
|
5191
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5192
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5193
|
+
static serializeBinaryToWriter(message: Time, writer: jspb.BinaryWriter): void;
|
|
5194
|
+
static deserializeBinary(bytes: Uint8Array): Time;
|
|
5195
|
+
static deserializeBinaryFromReader(message: Time, reader: jspb.BinaryReader): Time;
|
|
5196
|
+
}
|
|
5197
|
+
|
|
5198
|
+
export namespace Time {
|
|
5199
|
+
export type AsObject = {
|
|
5200
|
+
local: number,
|
|
5201
|
+
block: number,
|
|
5202
|
+
genesis: number,
|
|
5203
|
+
epoch: number,
|
|
5204
|
+
}
|
|
5205
|
+
}
|
|
5206
|
+
|
|
5207
|
+
export class Node extends jspb.Message {
|
|
5208
|
+
getId(): Uint8Array | string;
|
|
5209
|
+
getId_asU8(): Uint8Array;
|
|
5210
|
+
getId_asB64(): string;
|
|
5211
|
+
setId(value: Uint8Array | string): void;
|
|
5212
|
+
|
|
5213
|
+
hasProTxHash(): boolean;
|
|
5214
|
+
clearProTxHash(): void;
|
|
5215
|
+
getProTxHash(): Uint8Array | string;
|
|
5216
|
+
getProTxHash_asU8(): Uint8Array;
|
|
5217
|
+
getProTxHash_asB64(): string;
|
|
5218
|
+
setProTxHash(value: Uint8Array | string): void;
|
|
5219
|
+
|
|
5220
|
+
serializeBinary(): Uint8Array;
|
|
5221
|
+
toObject(includeInstance?: boolean): Node.AsObject;
|
|
5222
|
+
static toObject(includeInstance: boolean, msg: Node): Node.AsObject;
|
|
5223
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5224
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5225
|
+
static serializeBinaryToWriter(message: Node, writer: jspb.BinaryWriter): void;
|
|
5226
|
+
static deserializeBinary(bytes: Uint8Array): Node;
|
|
5227
|
+
static deserializeBinaryFromReader(message: Node, reader: jspb.BinaryReader): Node;
|
|
5228
|
+
}
|
|
5229
|
+
|
|
5230
|
+
export namespace Node {
|
|
5231
|
+
export type AsObject = {
|
|
5232
|
+
id: Uint8Array | string,
|
|
5233
|
+
proTxHash: Uint8Array | string,
|
|
5234
|
+
}
|
|
5235
|
+
}
|
|
5236
|
+
|
|
5237
|
+
export class Chain extends jspb.Message {
|
|
5238
|
+
getCatchingUp(): boolean;
|
|
5239
|
+
setCatchingUp(value: boolean): void;
|
|
5240
|
+
|
|
5241
|
+
getLatestBlockHash(): Uint8Array | string;
|
|
5242
|
+
getLatestBlockHash_asU8(): Uint8Array;
|
|
5243
|
+
getLatestBlockHash_asB64(): string;
|
|
5244
|
+
setLatestBlockHash(value: Uint8Array | string): void;
|
|
5245
|
+
|
|
5246
|
+
getLatestAppHash(): Uint8Array | string;
|
|
5247
|
+
getLatestAppHash_asU8(): Uint8Array;
|
|
5248
|
+
getLatestAppHash_asB64(): string;
|
|
5249
|
+
setLatestAppHash(value: Uint8Array | string): void;
|
|
5250
|
+
|
|
5251
|
+
getLatestBlockHeight(): number;
|
|
5252
|
+
setLatestBlockHeight(value: number): void;
|
|
5253
|
+
|
|
5254
|
+
getEarliestBlockHash(): Uint8Array | string;
|
|
5255
|
+
getEarliestBlockHash_asU8(): Uint8Array;
|
|
5256
|
+
getEarliestBlockHash_asB64(): string;
|
|
5257
|
+
setEarliestBlockHash(value: Uint8Array | string): void;
|
|
5258
|
+
|
|
5259
|
+
getEarliestAppHash(): Uint8Array | string;
|
|
5260
|
+
getEarliestAppHash_asU8(): Uint8Array;
|
|
5261
|
+
getEarliestAppHash_asB64(): string;
|
|
5262
|
+
setEarliestAppHash(value: Uint8Array | string): void;
|
|
5263
|
+
|
|
5264
|
+
getEarliestBlockHeight(): number;
|
|
5265
|
+
setEarliestBlockHeight(value: number): void;
|
|
5266
|
+
|
|
5267
|
+
getMaxPeerBlockHeight(): number;
|
|
5268
|
+
setMaxPeerBlockHeight(value: number): void;
|
|
5269
|
+
|
|
5270
|
+
hasCoreChainLockedHeight(): boolean;
|
|
5271
|
+
clearCoreChainLockedHeight(): void;
|
|
5272
|
+
getCoreChainLockedHeight(): number;
|
|
5273
|
+
setCoreChainLockedHeight(value: number): void;
|
|
5274
|
+
|
|
5275
|
+
serializeBinary(): Uint8Array;
|
|
5276
|
+
toObject(includeInstance?: boolean): Chain.AsObject;
|
|
5277
|
+
static toObject(includeInstance: boolean, msg: Chain): Chain.AsObject;
|
|
5278
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5279
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5280
|
+
static serializeBinaryToWriter(message: Chain, writer: jspb.BinaryWriter): void;
|
|
5281
|
+
static deserializeBinary(bytes: Uint8Array): Chain;
|
|
5282
|
+
static deserializeBinaryFromReader(message: Chain, reader: jspb.BinaryReader): Chain;
|
|
5283
|
+
}
|
|
5284
|
+
|
|
5285
|
+
export namespace Chain {
|
|
5286
|
+
export type AsObject = {
|
|
5287
|
+
catchingUp: boolean,
|
|
5288
|
+
latestBlockHash: Uint8Array | string,
|
|
5289
|
+
latestAppHash: Uint8Array | string,
|
|
5290
|
+
latestBlockHeight: number,
|
|
5291
|
+
earliestBlockHash: Uint8Array | string,
|
|
5292
|
+
earliestAppHash: Uint8Array | string,
|
|
5293
|
+
earliestBlockHeight: number,
|
|
5294
|
+
maxPeerBlockHeight: number,
|
|
5295
|
+
coreChainLockedHeight: number,
|
|
5296
|
+
}
|
|
5297
|
+
}
|
|
5298
|
+
|
|
5299
|
+
export class Network extends jspb.Message {
|
|
5300
|
+
getChainId(): string;
|
|
5301
|
+
setChainId(value: string): void;
|
|
5302
|
+
|
|
5303
|
+
getPeersCount(): number;
|
|
5304
|
+
setPeersCount(value: number): void;
|
|
5305
|
+
|
|
5306
|
+
getListening(): boolean;
|
|
5307
|
+
setListening(value: boolean): void;
|
|
5308
|
+
|
|
5309
|
+
serializeBinary(): Uint8Array;
|
|
5310
|
+
toObject(includeInstance?: boolean): Network.AsObject;
|
|
5311
|
+
static toObject(includeInstance: boolean, msg: Network): Network.AsObject;
|
|
5312
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5313
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5314
|
+
static serializeBinaryToWriter(message: Network, writer: jspb.BinaryWriter): void;
|
|
5315
|
+
static deserializeBinary(bytes: Uint8Array): Network;
|
|
5316
|
+
static deserializeBinaryFromReader(message: Network, reader: jspb.BinaryReader): Network;
|
|
5317
|
+
}
|
|
5318
|
+
|
|
5319
|
+
export namespace Network {
|
|
5320
|
+
export type AsObject = {
|
|
5321
|
+
chainId: string,
|
|
5322
|
+
peersCount: number,
|
|
5323
|
+
listening: boolean,
|
|
5324
|
+
}
|
|
5325
|
+
}
|
|
5326
|
+
|
|
5327
|
+
export class StateSync extends jspb.Message {
|
|
5328
|
+
getTotalSyncedTime(): number;
|
|
5329
|
+
setTotalSyncedTime(value: number): void;
|
|
5330
|
+
|
|
5331
|
+
getRemainingTime(): number;
|
|
5332
|
+
setRemainingTime(value: number): void;
|
|
5333
|
+
|
|
5334
|
+
getTotalSnapshots(): number;
|
|
5335
|
+
setTotalSnapshots(value: number): void;
|
|
5336
|
+
|
|
5337
|
+
getChunkProcessAvgTime(): number;
|
|
5338
|
+
setChunkProcessAvgTime(value: number): void;
|
|
5339
|
+
|
|
5340
|
+
getSnapshotHeight(): number;
|
|
5341
|
+
setSnapshotHeight(value: number): void;
|
|
5342
|
+
|
|
5343
|
+
getSnapshotChunksCount(): number;
|
|
5344
|
+
setSnapshotChunksCount(value: number): void;
|
|
5345
|
+
|
|
5346
|
+
getBackfilledBlocks(): number;
|
|
5347
|
+
setBackfilledBlocks(value: number): void;
|
|
5348
|
+
|
|
5349
|
+
getBackfillBlocksTotal(): number;
|
|
5350
|
+
setBackfillBlocksTotal(value: number): void;
|
|
5351
|
+
|
|
5352
|
+
serializeBinary(): Uint8Array;
|
|
5353
|
+
toObject(includeInstance?: boolean): StateSync.AsObject;
|
|
5354
|
+
static toObject(includeInstance: boolean, msg: StateSync): StateSync.AsObject;
|
|
5355
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
5356
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
5357
|
+
static serializeBinaryToWriter(message: StateSync, writer: jspb.BinaryWriter): void;
|
|
5358
|
+
static deserializeBinary(bytes: Uint8Array): StateSync;
|
|
5359
|
+
static deserializeBinaryFromReader(message: StateSync, reader: jspb.BinaryReader): StateSync;
|
|
5360
|
+
}
|
|
5361
|
+
|
|
5362
|
+
export namespace StateSync {
|
|
5363
|
+
export type AsObject = {
|
|
5364
|
+
totalSyncedTime: number,
|
|
5365
|
+
remainingTime: number,
|
|
5366
|
+
totalSnapshots: number,
|
|
5367
|
+
chunkProcessAvgTime: number,
|
|
5368
|
+
snapshotHeight: number,
|
|
5369
|
+
snapshotChunksCount: number,
|
|
5370
|
+
backfilledBlocks: number,
|
|
5371
|
+
backfillBlocksTotal: number,
|
|
5372
|
+
}
|
|
5373
|
+
}
|
|
5374
|
+
}
|
|
5375
|
+
|
|
5376
|
+
export enum VersionCase {
|
|
5377
|
+
VERSION_NOT_SET = 0,
|
|
5378
|
+
V0 = 1,
|
|
5379
|
+
}
|
|
5380
|
+
}
|
|
5381
|
+
|
|
4916
5382
|
export interface KeyPurposeMap {
|
|
4917
5383
|
AUTHENTICATION: 0;
|
|
4918
5384
|
ENCRYPTION: 1;
|