@dashevo/dapi-grpc 0.25.6 → 0.25.9
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 +1 -0
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +114 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +16823 -7647
- package/clients/platform/v0/nodejs/platform_protoc.js +14405 -5883
- package/clients/platform/v0/rust/platform_example.rs +7 -2
- package/clients/platform/v0/web/PlatformPromiseClient.js +42 -0
- package/clients/platform/v0/web/platform_pb.d.ts +2103 -920
- package/clients/platform/v0/web/platform_pb.js +14405 -5883
- package/clients/platform/v0/web/platform_pb_service.d.ts +73 -16
- package/clients/platform/v0/web/platform_pb_service.js +128 -8
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +432 -186
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +1095 -406
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +31 -0
|
@@ -11,9 +11,8 @@ service Platform {
|
|
|
11
11
|
rpc getIdentity (GetIdentityRequest) returns (GetIdentityResponse);
|
|
12
12
|
rpc getIdentities (GetIdentitiesRequest) returns (GetIdentitiesResponse);
|
|
13
13
|
rpc getIdentityKeys (GetIdentityKeysRequest) returns (GetIdentityKeysResponse);
|
|
14
|
-
|
|
15
|
-
rpc
|
|
16
|
-
rpc getIdentityBalanceAndRevision(GetIdentityRequest)
|
|
14
|
+
rpc getIdentityBalance(GetIdentityBalanceRequest) returns (GetIdentityBalanceResponse);
|
|
15
|
+
rpc getIdentityBalanceAndRevision(GetIdentityBalanceAndRevisionRequest)
|
|
17
16
|
returns (GetIdentityBalanceAndRevisionResponse);
|
|
18
17
|
rpc getProofs (GetProofsRequest) returns (GetProofsResponse);
|
|
19
18
|
rpc getDataContract (GetDataContractRequest) returns (GetDataContractResponse);
|
|
@@ -21,9 +20,12 @@ service Platform {
|
|
|
21
20
|
rpc getDataContracts (GetDataContractsRequest) returns (GetDataContractsResponse);
|
|
22
21
|
rpc getDocuments (GetDocumentsRequest) returns (GetDocumentsResponse);
|
|
23
22
|
rpc getIdentitiesByPublicKeyHashes (GetIdentitiesByPublicKeyHashesRequest) returns (GetIdentitiesByPublicKeyHashesResponse);
|
|
24
|
-
rpc
|
|
23
|
+
rpc getIdentityByPublicKeyHash (GetIdentityByPublicKeyHashRequest) returns (GetIdentityByPublicKeyHashResponse);
|
|
25
24
|
rpc waitForStateTransitionResult (WaitForStateTransitionResultRequest) returns (WaitForStateTransitionResultResponse);
|
|
26
25
|
rpc getConsensusParams (GetConsensusParamsRequest) returns (GetConsensusParamsResponse);
|
|
26
|
+
rpc getVersionUpgradeState(GetVersionUpgradeStateRequest) returns (GetVersionUpgradeStateResponse);
|
|
27
|
+
rpc getVersionUpgradeVoteStatus(GetVersionUpgradeVoteStatusRequest) returns (GetVersionUpgradeVoteStatusResponse);
|
|
28
|
+
rpc getEpochsInfo(GetEpochsInfoRequest) returns (GetEpochsInfoResponse);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
message Proof {
|
|
@@ -32,15 +34,16 @@ message Proof {
|
|
|
32
34
|
bytes signature = 3;
|
|
33
35
|
uint32 round = 4;
|
|
34
36
|
bytes block_id_hash = 5;
|
|
35
|
-
uint32 quorum_type = 6;
|
|
37
|
+
uint32 quorum_type = 6;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
message ResponseMetadata {
|
|
39
41
|
uint64 height = 1;
|
|
40
42
|
uint32 core_chain_locked_height = 2;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
uint32 epoch = 3;
|
|
44
|
+
uint64 time_ms = 4;
|
|
45
|
+
uint32 protocol_version = 5;
|
|
46
|
+
string chain_id = 6;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
message StateTransitionBroadcastError {
|
|
@@ -58,24 +61,71 @@ message BroadcastStateTransitionResponse {
|
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
message GetIdentityRequest {
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
|
|
65
|
+
message GetIdentityRequestV0 {
|
|
66
|
+
bytes id = 1;
|
|
67
|
+
bool prove = 2;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
oneof version {
|
|
71
|
+
GetIdentityRequestV0 v0 = 1;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message GetIdentityBalanceRequest {
|
|
76
|
+
|
|
77
|
+
message GetIdentityBalanceRequestV0 {
|
|
78
|
+
bytes id = 1;
|
|
79
|
+
bool prove = 2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
oneof version {
|
|
83
|
+
GetIdentityBalanceRequestV0 v0 = 1;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
message GetIdentityBalanceAndRevisionRequest {
|
|
89
|
+
|
|
90
|
+
message GetIdentityBalanceAndRevisionRequestV0 {
|
|
91
|
+
bytes id = 1;
|
|
92
|
+
bool prove = 2;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
oneof version {
|
|
96
|
+
GetIdentityBalanceAndRevisionRequestV0 v0 = 1;
|
|
97
|
+
}
|
|
63
98
|
}
|
|
64
99
|
|
|
65
100
|
message GetIdentityResponse {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
101
|
+
|
|
102
|
+
message GetIdentityResponseV0 {
|
|
103
|
+
oneof result {
|
|
104
|
+
bytes identity = 1;
|
|
105
|
+
Proof proof = 2;
|
|
106
|
+
}
|
|
107
|
+
ResponseMetadata metadata = 3;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
oneof version {
|
|
111
|
+
GetIdentityResponseV0 v0 = 1;
|
|
69
112
|
}
|
|
70
|
-
ResponseMetadata metadata = 3;
|
|
71
113
|
}
|
|
72
114
|
|
|
73
115
|
message GetIdentitiesRequest {
|
|
74
|
-
|
|
75
|
-
|
|
116
|
+
|
|
117
|
+
message GetIdentitiesRequestV0 {
|
|
118
|
+
repeated bytes ids = 1;
|
|
119
|
+
bool prove = 2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
oneof version {
|
|
123
|
+
GetIdentitiesRequestV0 v0 = 1;
|
|
124
|
+
}
|
|
76
125
|
}
|
|
77
126
|
|
|
78
127
|
message GetIdentitiesResponse {
|
|
128
|
+
|
|
79
129
|
message IdentityValue {
|
|
80
130
|
bytes value = 1;
|
|
81
131
|
}
|
|
@@ -89,32 +139,52 @@ message GetIdentitiesResponse {
|
|
|
89
139
|
repeated IdentityEntry identity_entries = 1;
|
|
90
140
|
}
|
|
91
141
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
142
|
+
message GetIdentitiesResponseV0 {
|
|
143
|
+
oneof result {
|
|
144
|
+
Identities identities = 1;
|
|
145
|
+
Proof proof = 2;
|
|
146
|
+
}
|
|
147
|
+
ResponseMetadata metadata = 3;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
oneof version {
|
|
151
|
+
GetIdentitiesResponseV0 v0 = 1;
|
|
95
152
|
}
|
|
96
|
-
ResponseMetadata metadata = 3;
|
|
97
153
|
}
|
|
98
154
|
|
|
99
155
|
message GetIdentityBalanceResponse {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
156
|
+
|
|
157
|
+
message GetIdentityBalanceResponseV0 {
|
|
158
|
+
oneof result {
|
|
159
|
+
uint64 balance = 1;
|
|
160
|
+
Proof proof = 2;
|
|
161
|
+
}
|
|
162
|
+
ResponseMetadata metadata = 3;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
oneof version {
|
|
166
|
+
GetIdentityBalanceResponseV0 v0 = 1;
|
|
103
167
|
}
|
|
104
|
-
ResponseMetadata metadata = 3;
|
|
105
168
|
}
|
|
106
169
|
|
|
107
170
|
message GetIdentityBalanceAndRevisionResponse {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
171
|
+
|
|
172
|
+
message GetIdentityBalanceAndRevisionResponseV0 {
|
|
173
|
+
message BalanceAndRevision {
|
|
174
|
+
uint64 balance = 1;
|
|
175
|
+
uint64 revision = 2;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
oneof result {
|
|
179
|
+
BalanceAndRevision balance_and_revision = 1;
|
|
180
|
+
Proof proof = 2;
|
|
181
|
+
}
|
|
182
|
+
ResponseMetadata metadata = 3;
|
|
111
183
|
}
|
|
112
184
|
|
|
113
|
-
oneof
|
|
114
|
-
|
|
115
|
-
Proof proof = 2;
|
|
185
|
+
oneof version {
|
|
186
|
+
GetIdentityBalanceAndRevisionResponseV0 v0 = 1;
|
|
116
187
|
}
|
|
117
|
-
ResponseMetadata metadata = 3;
|
|
118
188
|
}
|
|
119
189
|
|
|
120
190
|
message KeyRequestType {
|
|
@@ -145,248 +215,424 @@ message SecurityLevelMap {
|
|
|
145
215
|
}
|
|
146
216
|
|
|
147
217
|
message GetIdentityKeysRequest {
|
|
148
|
-
bytes identity_id = 1;
|
|
149
|
-
KeyRequestType request_type = 2;
|
|
150
|
-
google.protobuf.UInt32Value limit = 3;
|
|
151
|
-
google.protobuf.UInt32Value offset = 4;
|
|
152
|
-
bool prove = 5;
|
|
153
|
-
}
|
|
154
218
|
|
|
155
|
-
message
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
Proof proof = 2;
|
|
219
|
+
message GetIdentityKeysRequestV0 {
|
|
220
|
+
bytes identity_id = 1;
|
|
221
|
+
KeyRequestType request_type = 2;
|
|
222
|
+
google.protobuf.UInt32Value limit = 3;
|
|
223
|
+
google.protobuf.UInt32Value offset = 4;
|
|
224
|
+
bool prove = 5;
|
|
162
225
|
}
|
|
163
|
-
ResponseMetadata metadata = 3;
|
|
164
|
-
}
|
|
165
226
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
repeated bytes identity_ids = 1;
|
|
169
|
-
KeyRequestType request_type = 2;
|
|
170
|
-
google.protobuf.UInt32Value limit = 3;
|
|
171
|
-
google.protobuf.UInt32Value offset = 4;
|
|
172
|
-
bool prove = 5;
|
|
173
|
-
|
|
174
|
-
message SecurityLevelMap {
|
|
175
|
-
enum KeyKindRequestType {
|
|
176
|
-
CURRENT_KEY_OF_KIND_REQUEST = 0;
|
|
177
|
-
}
|
|
178
|
-
map<uint32, KeyKindRequestType> security_level_map = 1;
|
|
227
|
+
oneof version {
|
|
228
|
+
GetIdentityKeysRequestV0 v0 = 1;
|
|
179
229
|
}
|
|
180
230
|
}
|
|
181
231
|
|
|
182
|
-
message
|
|
183
|
-
message PublicKey {
|
|
184
|
-
bytes value = 1;
|
|
185
|
-
}
|
|
232
|
+
message GetIdentityKeysResponse {
|
|
186
233
|
|
|
187
|
-
message
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
234
|
+
message GetIdentityKeysResponseV0 {
|
|
235
|
+
message Keys {
|
|
236
|
+
repeated bytes keys_bytes = 1;
|
|
237
|
+
}
|
|
191
238
|
|
|
192
|
-
|
|
193
|
-
|
|
239
|
+
oneof result {
|
|
240
|
+
Keys keys = 1;
|
|
241
|
+
Proof proof = 2;
|
|
242
|
+
}
|
|
243
|
+
ResponseMetadata metadata = 3;
|
|
194
244
|
}
|
|
195
245
|
|
|
196
|
-
oneof
|
|
197
|
-
|
|
198
|
-
Proof proof = 2;
|
|
246
|
+
oneof version {
|
|
247
|
+
GetIdentityKeysResponseV0 v0 = 1;
|
|
199
248
|
}
|
|
200
|
-
ResponseMetadata metadata = 3;
|
|
201
249
|
}
|
|
202
250
|
|
|
203
251
|
message GetProofsRequest {
|
|
204
|
-
message
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
252
|
+
message GetProofsRequestV0 {
|
|
253
|
+
message DocumentRequest {
|
|
254
|
+
bytes contract_id = 1;
|
|
255
|
+
string document_type = 2;
|
|
256
|
+
bool document_type_keeps_history = 3;
|
|
257
|
+
bytes document_id = 4;
|
|
258
|
+
}
|
|
210
259
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
260
|
+
message IdentityRequest {
|
|
261
|
+
enum Type {
|
|
262
|
+
FULL_IDENTITY = 0;
|
|
263
|
+
BALANCE = 1;
|
|
264
|
+
KEYS = 2;
|
|
265
|
+
}
|
|
266
|
+
bytes identity_id = 1;
|
|
267
|
+
Type request_type = 2;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
message ContractRequest {
|
|
271
|
+
bytes contract_id = 1;
|
|
216
272
|
}
|
|
217
|
-
bytes identity_id = 1;
|
|
218
|
-
Type request_type = 2;
|
|
219
|
-
}
|
|
220
273
|
|
|
221
|
-
|
|
222
|
-
|
|
274
|
+
repeated IdentityRequest identities = 1;
|
|
275
|
+
repeated ContractRequest contracts = 2;
|
|
276
|
+
repeated DocumentRequest documents = 3;
|
|
223
277
|
}
|
|
224
278
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
279
|
+
oneof version {
|
|
280
|
+
GetProofsRequestV0 v0 = 1;
|
|
281
|
+
}
|
|
228
282
|
}
|
|
229
283
|
|
|
230
284
|
message GetProofsResponse {
|
|
231
|
-
|
|
232
|
-
|
|
285
|
+
message GetProofsResponseV0 {
|
|
286
|
+
Proof proof = 1;
|
|
287
|
+
ResponseMetadata metadata = 2;
|
|
288
|
+
}
|
|
289
|
+
oneof version {
|
|
290
|
+
GetProofsResponseV0 v0 = 1;
|
|
291
|
+
}
|
|
233
292
|
}
|
|
234
293
|
|
|
235
294
|
message GetDataContractRequest {
|
|
236
|
-
|
|
237
|
-
|
|
295
|
+
message GetDataContractRequestV0 {
|
|
296
|
+
bytes id = 1;
|
|
297
|
+
bool prove = 2;
|
|
298
|
+
}
|
|
299
|
+
oneof version {
|
|
300
|
+
GetDataContractRequestV0 v0 = 1;
|
|
301
|
+
}
|
|
238
302
|
}
|
|
239
303
|
|
|
240
304
|
message GetDataContractResponse {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
305
|
+
message GetDataContractResponseV0 {
|
|
306
|
+
oneof result {
|
|
307
|
+
bytes data_contract = 1;
|
|
308
|
+
Proof proof = 2;
|
|
309
|
+
}
|
|
310
|
+
ResponseMetadata metadata = 3;
|
|
311
|
+
}
|
|
312
|
+
oneof version {
|
|
313
|
+
GetDataContractResponseV0 v0 = 1;
|
|
244
314
|
}
|
|
245
|
-
ResponseMetadata metadata = 3;
|
|
246
315
|
}
|
|
247
316
|
|
|
248
317
|
message GetDataContractsRequest {
|
|
249
|
-
|
|
250
|
-
|
|
318
|
+
message GetDataContractsRequestV0 {
|
|
319
|
+
repeated bytes ids = 1;
|
|
320
|
+
bool prove = 2;
|
|
321
|
+
}
|
|
322
|
+
oneof version {
|
|
323
|
+
GetDataContractsRequestV0 v0 = 1;
|
|
324
|
+
}
|
|
251
325
|
}
|
|
252
326
|
|
|
253
327
|
message GetDataContractsResponse {
|
|
254
|
-
message DataContractValue {
|
|
255
|
-
bytes value = 1;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
328
|
message DataContractEntry {
|
|
259
|
-
bytes
|
|
260
|
-
|
|
329
|
+
bytes identifier = 1;
|
|
330
|
+
google.protobuf.BytesValue data_contract = 2;
|
|
261
331
|
}
|
|
262
|
-
|
|
263
332
|
message DataContracts {
|
|
264
333
|
repeated DataContractEntry data_contract_entries = 1;
|
|
265
334
|
}
|
|
266
335
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
336
|
+
|
|
337
|
+
message GetDataContractsResponseV0 {
|
|
338
|
+
oneof result {
|
|
339
|
+
DataContracts data_contracts = 1;
|
|
340
|
+
Proof proof = 2;
|
|
341
|
+
}
|
|
342
|
+
ResponseMetadata metadata = 3;
|
|
343
|
+
}
|
|
344
|
+
oneof version {
|
|
345
|
+
GetDataContractsResponseV0 v0 = 1;
|
|
270
346
|
}
|
|
271
|
-
ResponseMetadata metadata = 3;
|
|
272
347
|
}
|
|
273
348
|
|
|
274
349
|
message GetDataContractHistoryRequest {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
350
|
+
message GetDataContractHistoryRequestV0 {
|
|
351
|
+
bytes id = 1;
|
|
352
|
+
google.protobuf.UInt32Value limit = 2;
|
|
353
|
+
google.protobuf.UInt32Value offset = 3;
|
|
354
|
+
uint64 start_at_ms = 4;
|
|
355
|
+
bool prove = 5;
|
|
356
|
+
}
|
|
357
|
+
oneof version {
|
|
358
|
+
GetDataContractHistoryRequestV0 v0 = 1;
|
|
359
|
+
}
|
|
280
360
|
}
|
|
281
361
|
|
|
282
362
|
message GetDataContractHistoryResponse {
|
|
283
|
-
message
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
363
|
+
message GetDataContractHistoryResponseV0 {
|
|
364
|
+
message DataContractHistoryEntry {
|
|
365
|
+
uint64 date = 1;
|
|
366
|
+
bytes value = 2;
|
|
367
|
+
}
|
|
287
368
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
369
|
+
message DataContractHistory {
|
|
370
|
+
repeated DataContractHistoryEntry data_contract_entries = 1;
|
|
371
|
+
}
|
|
291
372
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
373
|
+
oneof result {
|
|
374
|
+
DataContractHistory data_contract_history = 1;
|
|
375
|
+
Proof proof = 2;
|
|
376
|
+
}
|
|
296
377
|
|
|
297
|
-
|
|
378
|
+
ResponseMetadata metadata = 3;
|
|
379
|
+
}
|
|
380
|
+
oneof version {
|
|
381
|
+
GetDataContractHistoryResponseV0 v0 = 1;
|
|
382
|
+
}
|
|
298
383
|
}
|
|
299
384
|
|
|
300
385
|
message GetDocumentsRequest {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
386
|
+
message GetDocumentsRequestV0 {
|
|
387
|
+
bytes data_contract_id = 1;
|
|
388
|
+
string document_type = 2;
|
|
389
|
+
bytes where = 3;
|
|
390
|
+
bytes order_by = 4;
|
|
391
|
+
uint32 limit = 5;
|
|
392
|
+
oneof start {
|
|
393
|
+
bytes start_after = 6;
|
|
394
|
+
bytes start_at = 7;
|
|
395
|
+
}
|
|
396
|
+
bool prove = 8;
|
|
397
|
+
}
|
|
398
|
+
oneof version {
|
|
399
|
+
GetDocumentsRequestV0 v0 = 1;
|
|
312
400
|
}
|
|
313
|
-
|
|
314
|
-
bool prove = 8;
|
|
315
401
|
}
|
|
316
402
|
|
|
317
403
|
message GetDocumentsResponse {
|
|
318
|
-
message
|
|
319
|
-
|
|
320
|
-
|
|
404
|
+
message GetDocumentsResponseV0 {
|
|
405
|
+
message Documents {
|
|
406
|
+
repeated bytes documents = 1;
|
|
407
|
+
}
|
|
321
408
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
409
|
+
oneof result {
|
|
410
|
+
Documents documents = 1;
|
|
411
|
+
Proof proof = 2;
|
|
412
|
+
}
|
|
413
|
+
ResponseMetadata metadata = 3;
|
|
414
|
+
}
|
|
415
|
+
oneof version {
|
|
416
|
+
GetDocumentsResponseV0 v0 = 1;
|
|
325
417
|
}
|
|
326
|
-
ResponseMetadata metadata = 3;
|
|
327
418
|
}
|
|
328
419
|
|
|
329
420
|
message GetIdentitiesByPublicKeyHashesRequest {
|
|
330
|
-
|
|
331
|
-
|
|
421
|
+
message GetIdentitiesByPublicKeyHashesRequestV0 {
|
|
422
|
+
repeated bytes public_key_hashes = 1;
|
|
423
|
+
bool prove = 2;
|
|
424
|
+
}
|
|
425
|
+
oneof version {
|
|
426
|
+
GetIdentitiesByPublicKeyHashesRequestV0 v0 = 1;
|
|
427
|
+
}
|
|
332
428
|
}
|
|
333
429
|
|
|
334
430
|
message GetIdentitiesByPublicKeyHashesResponse {
|
|
335
|
-
message
|
|
336
|
-
|
|
431
|
+
message PublicKeyHashIdentityEntry {
|
|
432
|
+
bytes public_key_hash = 1;
|
|
433
|
+
google.protobuf.BytesValue value = 2;
|
|
337
434
|
}
|
|
338
435
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
436
|
+
message IdentitiesByPublicKeyHashes {
|
|
437
|
+
repeated PublicKeyHashIdentityEntry identity_entries = 1;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
message GetIdentitiesByPublicKeyHashesResponseV0 {
|
|
441
|
+
oneof result {
|
|
442
|
+
IdentitiesByPublicKeyHashes identities = 1;
|
|
443
|
+
Proof proof = 2;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
ResponseMetadata metadata = 3;
|
|
447
|
+
}
|
|
448
|
+
oneof version {
|
|
449
|
+
GetIdentitiesByPublicKeyHashesResponseV0 v0 = 1;
|
|
342
450
|
}
|
|
343
|
-
ResponseMetadata metadata = 3;
|
|
344
451
|
}
|
|
345
452
|
|
|
346
|
-
message
|
|
347
|
-
|
|
348
|
-
|
|
453
|
+
message GetIdentityByPublicKeyHashRequest {
|
|
454
|
+
message GetIdentityByPublicKeyHashRequestV0 {
|
|
455
|
+
bytes public_key_hash = 1;
|
|
456
|
+
bool prove = 2;
|
|
457
|
+
}
|
|
458
|
+
oneof version {
|
|
459
|
+
GetIdentityByPublicKeyHashRequestV0 v0 = 1;
|
|
460
|
+
}
|
|
349
461
|
}
|
|
350
462
|
|
|
351
|
-
message
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
463
|
+
message GetIdentityByPublicKeyHashResponse {
|
|
464
|
+
message GetIdentityByPublicKeyHashResponseV0 {
|
|
465
|
+
oneof result {
|
|
466
|
+
bytes identity = 1;
|
|
467
|
+
Proof proof = 2;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
ResponseMetadata metadata = 3;
|
|
471
|
+
}
|
|
472
|
+
oneof version {
|
|
473
|
+
GetIdentityByPublicKeyHashResponseV0 v0 = 1;
|
|
355
474
|
}
|
|
356
|
-
ResponseMetadata metadata = 3;
|
|
357
475
|
}
|
|
358
476
|
|
|
359
477
|
message WaitForStateTransitionResultRequest {
|
|
360
|
-
|
|
361
|
-
|
|
478
|
+
message WaitForStateTransitionResultRequestV0 {
|
|
479
|
+
bytes state_transition_hash = 1;
|
|
480
|
+
bool prove = 2;
|
|
481
|
+
}
|
|
482
|
+
oneof version {
|
|
483
|
+
WaitForStateTransitionResultRequestV0 v0 = 1;
|
|
484
|
+
}
|
|
362
485
|
}
|
|
363
486
|
|
|
364
487
|
message WaitForStateTransitionResultResponse {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
488
|
+
message WaitForStateTransitionResultResponseV0 {
|
|
489
|
+
oneof result {
|
|
490
|
+
StateTransitionBroadcastError error = 1;
|
|
491
|
+
Proof proof = 2;
|
|
492
|
+
}
|
|
493
|
+
ResponseMetadata metadata = 3;
|
|
494
|
+
}
|
|
495
|
+
oneof version {
|
|
496
|
+
WaitForStateTransitionResultResponseV0 v0 = 1;
|
|
368
497
|
}
|
|
369
|
-
ResponseMetadata metadata = 3;
|
|
370
498
|
}
|
|
371
499
|
|
|
372
|
-
message
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
500
|
+
message GetConsensusParamsRequest {
|
|
501
|
+
message GetConsensusParamsRequestV0 {
|
|
502
|
+
int32 height = 1;
|
|
503
|
+
bool prove = 2;
|
|
504
|
+
}
|
|
505
|
+
oneof version {
|
|
506
|
+
GetConsensusParamsRequestV0 v0 = 1;
|
|
507
|
+
}
|
|
376
508
|
}
|
|
377
509
|
|
|
378
|
-
message
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
510
|
+
message GetConsensusParamsResponse {
|
|
511
|
+
message ConsensusParamsBlock {
|
|
512
|
+
string max_bytes = 1;
|
|
513
|
+
string max_gas = 2;
|
|
514
|
+
string time_iota_ms = 3;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
message ConsensusParamsEvidence {
|
|
518
|
+
string max_age_num_blocks = 1;
|
|
519
|
+
string max_age_duration = 2;
|
|
520
|
+
string max_bytes = 3;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
message GetConsensusParamsResponseV0 {
|
|
524
|
+
ConsensusParamsBlock block = 1;
|
|
525
|
+
ConsensusParamsEvidence evidence = 2;
|
|
526
|
+
}
|
|
527
|
+
oneof version {
|
|
528
|
+
GetConsensusParamsResponseV0 v0 = 1;
|
|
529
|
+
}
|
|
382
530
|
}
|
|
383
531
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
532
|
+
|
|
533
|
+
message GetVersionUpgradeStateRequest {
|
|
534
|
+
message GetVersionUpgradeStateRequestV0 {
|
|
535
|
+
bool prove = 1;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
oneof version {
|
|
539
|
+
GetVersionUpgradeStateRequestV0 v0 = 1;
|
|
540
|
+
}
|
|
387
541
|
}
|
|
388
542
|
|
|
389
|
-
message
|
|
390
|
-
|
|
391
|
-
|
|
543
|
+
message GetVersionUpgradeStateResponse {
|
|
544
|
+
message GetVersionUpgradeStateResponseV0 {
|
|
545
|
+
message Versions {
|
|
546
|
+
repeated VersionEntry versions = 1;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
message VersionEntry {
|
|
550
|
+
uint32 version_number = 1;
|
|
551
|
+
uint32 vote_count = 2;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
oneof result {
|
|
555
|
+
Versions versions = 1;
|
|
556
|
+
Proof proof = 2;
|
|
557
|
+
}
|
|
558
|
+
ResponseMetadata metadata = 3;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
oneof version {
|
|
562
|
+
GetVersionUpgradeStateResponseV0 v0 = 1;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
message GetVersionUpgradeVoteStatusRequest {
|
|
567
|
+
message GetVersionUpgradeVoteStatusRequestV0 {
|
|
568
|
+
bytes start_pro_tx_hash = 1;
|
|
569
|
+
uint32 count = 2;
|
|
570
|
+
bool prove = 3;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
oneof version {
|
|
574
|
+
GetVersionUpgradeVoteStatusRequestV0 v0 = 1;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
message GetVersionUpgradeVoteStatusResponse {
|
|
579
|
+
message GetVersionUpgradeVoteStatusResponseV0 {
|
|
580
|
+
message VersionSignals {
|
|
581
|
+
repeated VersionSignal version_signals = 1;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
message VersionSignal {
|
|
585
|
+
bytes pro_tx_hash = 1;
|
|
586
|
+
uint32 version = 2;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
oneof result {
|
|
590
|
+
VersionSignals versions = 1;
|
|
591
|
+
Proof proof = 2;
|
|
592
|
+
}
|
|
593
|
+
ResponseMetadata metadata = 3;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
oneof version {
|
|
597
|
+
GetVersionUpgradeVoteStatusResponseV0 v0 = 1;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
message GetEpochsInfoRequest {
|
|
602
|
+
message GetEpochsInfoRequestV0 {
|
|
603
|
+
google.protobuf.UInt32Value start_epoch = 1;
|
|
604
|
+
uint32 count = 2;
|
|
605
|
+
bool ascending = 3;
|
|
606
|
+
bool prove = 4;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
oneof version {
|
|
610
|
+
GetEpochsInfoRequestV0 v0 = 1;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
message GetEpochsInfoResponse {
|
|
615
|
+
message GetEpochsInfoResponseV0 {
|
|
616
|
+
message EpochInfos {
|
|
617
|
+
repeated EpochInfo epoch_infos = 1;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
message EpochInfo {
|
|
621
|
+
uint32 number = 1;
|
|
622
|
+
uint64 first_block_height = 2;
|
|
623
|
+
uint32 first_core_block_height = 3;
|
|
624
|
+
uint64 start_time = 4;
|
|
625
|
+
double fee_multiplier = 5;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
oneof result {
|
|
629
|
+
EpochInfos epochs = 1;
|
|
630
|
+
Proof proof = 2;
|
|
631
|
+
}
|
|
632
|
+
ResponseMetadata metadata = 3;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
oneof version {
|
|
636
|
+
GetEpochsInfoResponseV0 v0 = 1;
|
|
637
|
+
}
|
|
392
638
|
}
|