@injectivelabs/indexer-proto-ts-v2 1.18.20 → 1.18.22
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/generated/event_provider_api_pb.client.d.ts +17 -0
- package/generated/event_provider_api_pb.client.js +9 -0
- package/generated/event_provider_api_pb.d.ts +292 -1
- package/generated/event_provider_api_pb.js +258 -2
- package/generated/injective_accounts_rpc_pb.d.ts +15 -1
- package/generated/injective_accounts_rpc_pb.js +14 -0
- package/generated/injective_chart_rpc_pb.d.ts +47 -2
- package/generated/injective_chart_rpc_pb.js +42 -0
- package/generated/injective_derivative_exchange_rpc_pb.d.ts +30 -2
- package/generated/injective_derivative_exchange_rpc_pb.js +28 -0
- package/generated/injective_exchange_rpc_pb.client.d.ts +17 -0
- package/generated/injective_exchange_rpc_pb.client.js +9 -0
- package/generated/injective_exchange_rpc_pb.d.ts +187 -1
- package/generated/injective_exchange_rpc_pb.js +167 -1
- package/generated/injective_rfq_rpc_pb.d.ts +61 -6
- package/generated/injective_rfq_rpc_pb.js +58 -0
- package/generated/injective_tc_derivatives_rpc_pb.d.ts +149 -6
- package/generated/injective_tc_derivatives_rpc_pb.js +141 -0
- package/package.json +1 -1
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
13
13
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
14
14
|
import { EventProviderAPI } from "./event_provider_api_pb";
|
|
15
|
+
import type { StreamABCIEventsResponse } from "./event_provider_api_pb";
|
|
16
|
+
import type { StreamABCIEventsRequest } from "./event_provider_api_pb";
|
|
15
17
|
import type { GetABCIBlockEventsAtHeightResponse } from "./event_provider_api_pb";
|
|
16
18
|
import type { GetABCIBlockEventsAtHeightRequest } from "./event_provider_api_pb";
|
|
17
19
|
import type { GetABCIBlockEventsResponse } from "./event_provider_api_pb";
|
|
@@ -78,6 +80,12 @@ export interface IEventProviderAPIClient {
|
|
|
78
80
|
* @generated from protobuf rpc: GetABCIBlockEventsAtHeight
|
|
79
81
|
*/
|
|
80
82
|
getABCIBlockEventsAtHeight(input: GetABCIBlockEventsAtHeightRequest, options?: RpcOptions): UnaryCall<GetABCIBlockEventsAtHeightRequest, GetABCIBlockEventsAtHeightResponse>;
|
|
83
|
+
/**
|
|
84
|
+
* Stream raw block events for selected height
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf rpc: StreamABCIEvents
|
|
87
|
+
*/
|
|
88
|
+
streamABCIEvents(input: StreamABCIEventsRequest, options?: RpcOptions): ServerStreamingCall<StreamABCIEventsRequest, StreamABCIEventsResponse>;
|
|
81
89
|
}
|
|
82
90
|
/**
|
|
83
91
|
* EventProviderAPI provides processed block events for different backends.
|
|
@@ -153,4 +161,13 @@ export class EventProviderAPIClient implements IEventProviderAPIClient, ServiceI
|
|
|
153
161
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
154
162
|
return stackIntercept<GetABCIBlockEventsAtHeightRequest, GetABCIBlockEventsAtHeightResponse>("unary", this._transport, method, opt, input);
|
|
155
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Stream raw block events for selected height
|
|
166
|
+
*
|
|
167
|
+
* @generated from protobuf rpc: StreamABCIEvents
|
|
168
|
+
*/
|
|
169
|
+
streamABCIEvents(input: StreamABCIEventsRequest, options?: RpcOptions): ServerStreamingCall<StreamABCIEventsRequest, StreamABCIEventsResponse> {
|
|
170
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
171
|
+
return stackIntercept<StreamABCIEventsRequest, StreamABCIEventsResponse>("serverStreaming", this._transport, method, opt, input);
|
|
172
|
+
}
|
|
156
173
|
}
|
|
@@ -70,6 +70,15 @@ class EventProviderAPIClient {
|
|
|
70
70
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
71
71
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Stream raw block events for selected height
|
|
75
|
+
*
|
|
76
|
+
* @generated from protobuf rpc: StreamABCIEvents
|
|
77
|
+
*/
|
|
78
|
+
streamABCIEvents(input, options) {
|
|
79
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
80
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
81
|
+
}
|
|
73
82
|
}
|
|
74
83
|
export {
|
|
75
84
|
EventProviderAPIClient
|
|
@@ -500,6 +500,83 @@ export interface GetABCIBlockEventsAtHeightResponse {
|
|
|
500
500
|
*/
|
|
501
501
|
rawBlock?: RawBlock;
|
|
502
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
* @generated from protobuf message event_provider_api.StreamABCIEventsRequest
|
|
505
|
+
*/
|
|
506
|
+
export interface StreamABCIEventsRequest {
|
|
507
|
+
/**
|
|
508
|
+
* @generated from protobuf field: sint32 height = 1
|
|
509
|
+
*/
|
|
510
|
+
height: number;
|
|
511
|
+
/**
|
|
512
|
+
* Array of event types
|
|
513
|
+
*
|
|
514
|
+
* @generated from protobuf field: repeated string event_types = 2
|
|
515
|
+
*/
|
|
516
|
+
eventTypes: string[];
|
|
517
|
+
/**
|
|
518
|
+
* Number of blocks to include in each stream response. The service will have a
|
|
519
|
+
* cap on the batch size, and default to it if it's greater. Once the stream is
|
|
520
|
+
* in sync, the batch size
|
|
521
|
+
*
|
|
522
|
+
* @generated from protobuf field: uint32 batch_size = 3
|
|
523
|
+
*/
|
|
524
|
+
batchSize: number;
|
|
525
|
+
/**
|
|
526
|
+
* Number of parallel fetchers. The service will have a cap on the number of
|
|
527
|
+
* fetchers, and default to it. The service may chose to throttle the fetchers
|
|
528
|
+
* based on the current load.
|
|
529
|
+
*
|
|
530
|
+
* @generated from protobuf field: uint32 fetchers = 4
|
|
531
|
+
*/
|
|
532
|
+
fetchers: number;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* @generated from protobuf message event_provider_api.StreamABCIEventsResponse
|
|
536
|
+
*/
|
|
537
|
+
export interface StreamABCIEventsResponse {
|
|
538
|
+
/**
|
|
539
|
+
* @generated from protobuf field: repeated event_provider_api.StreamedRawBlock blocks = 1
|
|
540
|
+
*/
|
|
541
|
+
blocks: StreamedRawBlock[];
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* @generated from protobuf message event_provider_api.StreamedRawBlock
|
|
545
|
+
*/
|
|
546
|
+
export interface StreamedRawBlock {
|
|
547
|
+
/**
|
|
548
|
+
* Indicates whether the block is the latest one available in the event provider
|
|
549
|
+
*
|
|
550
|
+
* @generated from protobuf field: bool in_sync = 20
|
|
551
|
+
*/
|
|
552
|
+
inSync: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* @generated from protobuf field: sint64 height = 1
|
|
555
|
+
*/
|
|
556
|
+
height: bigint;
|
|
557
|
+
/**
|
|
558
|
+
* @generated from protobuf field: string block_time = 5
|
|
559
|
+
*/
|
|
560
|
+
blockTime: string;
|
|
561
|
+
/**
|
|
562
|
+
* Block timestamp in UNIX millis.
|
|
563
|
+
*
|
|
564
|
+
* @generated from protobuf field: sint64 block_timestamp = 6
|
|
565
|
+
*/
|
|
566
|
+
blockTimestamp: bigint;
|
|
567
|
+
/**
|
|
568
|
+
* @generated from protobuf field: repeated event_provider_api.ABCIResponseDeliverTx txs_results = 2
|
|
569
|
+
*/
|
|
570
|
+
txsResults: ABCIResponseDeliverTx[];
|
|
571
|
+
/**
|
|
572
|
+
* @generated from protobuf field: repeated event_provider_api.ABCIEvent begin_block_events = 3
|
|
573
|
+
*/
|
|
574
|
+
beginBlockEvents: ABCIEvent[];
|
|
575
|
+
/**
|
|
576
|
+
* @generated from protobuf field: repeated event_provider_api.ABCIEvent end_block_events = 4
|
|
577
|
+
*/
|
|
578
|
+
endBlockEvents: ABCIEvent[];
|
|
579
|
+
}
|
|
503
580
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
504
581
|
class GetLatestHeightRequest$Type extends MessageType<GetLatestHeightRequest> {
|
|
505
582
|
constructor() {
|
|
@@ -1980,6 +2057,219 @@ class GetABCIBlockEventsAtHeightResponse$Type extends MessageType<GetABCIBlockEv
|
|
|
1980
2057
|
* @generated MessageType for protobuf message event_provider_api.GetABCIBlockEventsAtHeightResponse
|
|
1981
2058
|
*/
|
|
1982
2059
|
export const GetABCIBlockEventsAtHeightResponse = new GetABCIBlockEventsAtHeightResponse$Type();
|
|
2060
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2061
|
+
class StreamABCIEventsRequest$Type extends MessageType<StreamABCIEventsRequest> {
|
|
2062
|
+
constructor() {
|
|
2063
|
+
super("event_provider_api.StreamABCIEventsRequest", [
|
|
2064
|
+
{ no: 1, name: "height", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
|
|
2065
|
+
{ no: 2, name: "event_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2066
|
+
{ no: 3, name: "batch_size", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
2067
|
+
{ no: 4, name: "fetchers", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
2068
|
+
]);
|
|
2069
|
+
}
|
|
2070
|
+
create(value?: PartialMessage<StreamABCIEventsRequest>): StreamABCIEventsRequest {
|
|
2071
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2072
|
+
message.height = 0;
|
|
2073
|
+
message.eventTypes = [];
|
|
2074
|
+
message.batchSize = 0;
|
|
2075
|
+
message.fetchers = 0;
|
|
2076
|
+
if (value !== undefined)
|
|
2077
|
+
reflectionMergePartial<StreamABCIEventsRequest>(this, message, value);
|
|
2078
|
+
return message;
|
|
2079
|
+
}
|
|
2080
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamABCIEventsRequest): StreamABCIEventsRequest {
|
|
2081
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2082
|
+
while (reader.pos < end) {
|
|
2083
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2084
|
+
switch (fieldNo) {
|
|
2085
|
+
case /* sint32 height */ 1:
|
|
2086
|
+
message.height = reader.sint32();
|
|
2087
|
+
break;
|
|
2088
|
+
case /* repeated string event_types */ 2:
|
|
2089
|
+
message.eventTypes.push(reader.string());
|
|
2090
|
+
break;
|
|
2091
|
+
case /* uint32 batch_size */ 3:
|
|
2092
|
+
message.batchSize = reader.uint32();
|
|
2093
|
+
break;
|
|
2094
|
+
case /* uint32 fetchers */ 4:
|
|
2095
|
+
message.fetchers = reader.uint32();
|
|
2096
|
+
break;
|
|
2097
|
+
default:
|
|
2098
|
+
let u = options.readUnknownField;
|
|
2099
|
+
if (u === "throw")
|
|
2100
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2101
|
+
let d = reader.skip(wireType);
|
|
2102
|
+
if (u !== false)
|
|
2103
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
return message;
|
|
2107
|
+
}
|
|
2108
|
+
internalBinaryWrite(message: StreamABCIEventsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2109
|
+
/* sint32 height = 1; */
|
|
2110
|
+
if (message.height !== 0)
|
|
2111
|
+
writer.tag(1, WireType.Varint).sint32(message.height);
|
|
2112
|
+
/* repeated string event_types = 2; */
|
|
2113
|
+
for (let i = 0; i < message.eventTypes.length; i++)
|
|
2114
|
+
writer.tag(2, WireType.LengthDelimited).string(message.eventTypes[i]);
|
|
2115
|
+
/* uint32 batch_size = 3; */
|
|
2116
|
+
if (message.batchSize !== 0)
|
|
2117
|
+
writer.tag(3, WireType.Varint).uint32(message.batchSize);
|
|
2118
|
+
/* uint32 fetchers = 4; */
|
|
2119
|
+
if (message.fetchers !== 0)
|
|
2120
|
+
writer.tag(4, WireType.Varint).uint32(message.fetchers);
|
|
2121
|
+
let u = options.writeUnknownFields;
|
|
2122
|
+
if (u !== false)
|
|
2123
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2124
|
+
return writer;
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* @generated MessageType for protobuf message event_provider_api.StreamABCIEventsRequest
|
|
2129
|
+
*/
|
|
2130
|
+
export const StreamABCIEventsRequest = new StreamABCIEventsRequest$Type();
|
|
2131
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2132
|
+
class StreamABCIEventsResponse$Type extends MessageType<StreamABCIEventsResponse> {
|
|
2133
|
+
constructor() {
|
|
2134
|
+
super("event_provider_api.StreamABCIEventsResponse", [
|
|
2135
|
+
{ no: 1, name: "blocks", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StreamedRawBlock }
|
|
2136
|
+
]);
|
|
2137
|
+
}
|
|
2138
|
+
create(value?: PartialMessage<StreamABCIEventsResponse>): StreamABCIEventsResponse {
|
|
2139
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2140
|
+
message.blocks = [];
|
|
2141
|
+
if (value !== undefined)
|
|
2142
|
+
reflectionMergePartial<StreamABCIEventsResponse>(this, message, value);
|
|
2143
|
+
return message;
|
|
2144
|
+
}
|
|
2145
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamABCIEventsResponse): StreamABCIEventsResponse {
|
|
2146
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2147
|
+
while (reader.pos < end) {
|
|
2148
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2149
|
+
switch (fieldNo) {
|
|
2150
|
+
case /* repeated event_provider_api.StreamedRawBlock blocks */ 1:
|
|
2151
|
+
message.blocks.push(StreamedRawBlock.internalBinaryRead(reader, reader.uint32(), options));
|
|
2152
|
+
break;
|
|
2153
|
+
default:
|
|
2154
|
+
let u = options.readUnknownField;
|
|
2155
|
+
if (u === "throw")
|
|
2156
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2157
|
+
let d = reader.skip(wireType);
|
|
2158
|
+
if (u !== false)
|
|
2159
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
return message;
|
|
2163
|
+
}
|
|
2164
|
+
internalBinaryWrite(message: StreamABCIEventsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2165
|
+
/* repeated event_provider_api.StreamedRawBlock blocks = 1; */
|
|
2166
|
+
for (let i = 0; i < message.blocks.length; i++)
|
|
2167
|
+
StreamedRawBlock.internalBinaryWrite(message.blocks[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2168
|
+
let u = options.writeUnknownFields;
|
|
2169
|
+
if (u !== false)
|
|
2170
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2171
|
+
return writer;
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
/**
|
|
2175
|
+
* @generated MessageType for protobuf message event_provider_api.StreamABCIEventsResponse
|
|
2176
|
+
*/
|
|
2177
|
+
export const StreamABCIEventsResponse = new StreamABCIEventsResponse$Type();
|
|
2178
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2179
|
+
class StreamedRawBlock$Type extends MessageType<StreamedRawBlock> {
|
|
2180
|
+
constructor() {
|
|
2181
|
+
super("event_provider_api.StreamedRawBlock", [
|
|
2182
|
+
{ no: 20, name: "in_sync", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2183
|
+
{ no: 1, name: "height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2184
|
+
{ no: 5, name: "block_time", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2185
|
+
{ no: 6, name: "block_timestamp", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2186
|
+
{ no: 2, name: "txs_results", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ABCIResponseDeliverTx },
|
|
2187
|
+
{ no: 3, name: "begin_block_events", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ABCIEvent },
|
|
2188
|
+
{ no: 4, name: "end_block_events", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ABCIEvent }
|
|
2189
|
+
]);
|
|
2190
|
+
}
|
|
2191
|
+
create(value?: PartialMessage<StreamedRawBlock>): StreamedRawBlock {
|
|
2192
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2193
|
+
message.inSync = false;
|
|
2194
|
+
message.height = 0n;
|
|
2195
|
+
message.blockTime = "";
|
|
2196
|
+
message.blockTimestamp = 0n;
|
|
2197
|
+
message.txsResults = [];
|
|
2198
|
+
message.beginBlockEvents = [];
|
|
2199
|
+
message.endBlockEvents = [];
|
|
2200
|
+
if (value !== undefined)
|
|
2201
|
+
reflectionMergePartial<StreamedRawBlock>(this, message, value);
|
|
2202
|
+
return message;
|
|
2203
|
+
}
|
|
2204
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamedRawBlock): StreamedRawBlock {
|
|
2205
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2206
|
+
while (reader.pos < end) {
|
|
2207
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2208
|
+
switch (fieldNo) {
|
|
2209
|
+
case /* bool in_sync */ 20:
|
|
2210
|
+
message.inSync = reader.bool();
|
|
2211
|
+
break;
|
|
2212
|
+
case /* sint64 height */ 1:
|
|
2213
|
+
message.height = reader.sint64().toBigInt();
|
|
2214
|
+
break;
|
|
2215
|
+
case /* string block_time */ 5:
|
|
2216
|
+
message.blockTime = reader.string();
|
|
2217
|
+
break;
|
|
2218
|
+
case /* sint64 block_timestamp */ 6:
|
|
2219
|
+
message.blockTimestamp = reader.sint64().toBigInt();
|
|
2220
|
+
break;
|
|
2221
|
+
case /* repeated event_provider_api.ABCIResponseDeliverTx txs_results */ 2:
|
|
2222
|
+
message.txsResults.push(ABCIResponseDeliverTx.internalBinaryRead(reader, reader.uint32(), options));
|
|
2223
|
+
break;
|
|
2224
|
+
case /* repeated event_provider_api.ABCIEvent begin_block_events */ 3:
|
|
2225
|
+
message.beginBlockEvents.push(ABCIEvent.internalBinaryRead(reader, reader.uint32(), options));
|
|
2226
|
+
break;
|
|
2227
|
+
case /* repeated event_provider_api.ABCIEvent end_block_events */ 4:
|
|
2228
|
+
message.endBlockEvents.push(ABCIEvent.internalBinaryRead(reader, reader.uint32(), options));
|
|
2229
|
+
break;
|
|
2230
|
+
default:
|
|
2231
|
+
let u = options.readUnknownField;
|
|
2232
|
+
if (u === "throw")
|
|
2233
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2234
|
+
let d = reader.skip(wireType);
|
|
2235
|
+
if (u !== false)
|
|
2236
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
return message;
|
|
2240
|
+
}
|
|
2241
|
+
internalBinaryWrite(message: StreamedRawBlock, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2242
|
+
/* sint64 height = 1; */
|
|
2243
|
+
if (message.height !== 0n)
|
|
2244
|
+
writer.tag(1, WireType.Varint).sint64(message.height);
|
|
2245
|
+
/* repeated event_provider_api.ABCIResponseDeliverTx txs_results = 2; */
|
|
2246
|
+
for (let i = 0; i < message.txsResults.length; i++)
|
|
2247
|
+
ABCIResponseDeliverTx.internalBinaryWrite(message.txsResults[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2248
|
+
/* repeated event_provider_api.ABCIEvent begin_block_events = 3; */
|
|
2249
|
+
for (let i = 0; i < message.beginBlockEvents.length; i++)
|
|
2250
|
+
ABCIEvent.internalBinaryWrite(message.beginBlockEvents[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2251
|
+
/* repeated event_provider_api.ABCIEvent end_block_events = 4; */
|
|
2252
|
+
for (let i = 0; i < message.endBlockEvents.length; i++)
|
|
2253
|
+
ABCIEvent.internalBinaryWrite(message.endBlockEvents[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
2254
|
+
/* string block_time = 5; */
|
|
2255
|
+
if (message.blockTime !== "")
|
|
2256
|
+
writer.tag(5, WireType.LengthDelimited).string(message.blockTime);
|
|
2257
|
+
/* sint64 block_timestamp = 6; */
|
|
2258
|
+
if (message.blockTimestamp !== 0n)
|
|
2259
|
+
writer.tag(6, WireType.Varint).sint64(message.blockTimestamp);
|
|
2260
|
+
/* bool in_sync = 20; */
|
|
2261
|
+
if (message.inSync !== false)
|
|
2262
|
+
writer.tag(20, WireType.Varint).bool(message.inSync);
|
|
2263
|
+
let u = options.writeUnknownFields;
|
|
2264
|
+
if (u !== false)
|
|
2265
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2266
|
+
return writer;
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
/**
|
|
2270
|
+
* @generated MessageType for protobuf message event_provider_api.StreamedRawBlock
|
|
2271
|
+
*/
|
|
2272
|
+
export const StreamedRawBlock = new StreamedRawBlock$Type();
|
|
1983
2273
|
/**
|
|
1984
2274
|
* @generated ServiceType for protobuf service event_provider_api.EventProviderAPI
|
|
1985
2275
|
*/
|
|
@@ -1990,5 +2280,6 @@ export const EventProviderAPI = new ServiceType("event_provider_api.EventProvide
|
|
|
1990
2280
|
{ name: "GetBlockEventsRPC", options: {}, I: GetBlockEventsRPCRequest, O: GetBlockEventsRPCResponse },
|
|
1991
2281
|
{ name: "GetCustomEventsRPC", options: {}, I: GetCustomEventsRPCRequest, O: GetCustomEventsRPCResponse },
|
|
1992
2282
|
{ name: "GetABCIBlockEvents", options: {}, I: GetABCIBlockEventsRequest, O: GetABCIBlockEventsResponse },
|
|
1993
|
-
{ name: "GetABCIBlockEventsAtHeight", options: {}, I: GetABCIBlockEventsAtHeightRequest, O: GetABCIBlockEventsAtHeightResponse }
|
|
2283
|
+
{ name: "GetABCIBlockEventsAtHeight", options: {}, I: GetABCIBlockEventsAtHeightRequest, O: GetABCIBlockEventsAtHeightResponse },
|
|
2284
|
+
{ name: "StreamABCIEvents", serverStreaming: true, options: {}, I: StreamABCIEventsRequest, O: StreamABCIEventsResponse }
|
|
1994
2285
|
]);
|
|
@@ -1753,6 +1753,258 @@ class GetABCIBlockEventsAtHeightResponse$Type extends MessageType {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
}
|
|
1755
1755
|
const GetABCIBlockEventsAtHeightResponse = new GetABCIBlockEventsAtHeightResponse$Type();
|
|
1756
|
+
class StreamABCIEventsRequest$Type extends MessageType {
|
|
1757
|
+
constructor() {
|
|
1758
|
+
super("event_provider_api.StreamABCIEventsRequest", [
|
|
1759
|
+
{
|
|
1760
|
+
no: 1,
|
|
1761
|
+
name: "height",
|
|
1762
|
+
kind: "scalar",
|
|
1763
|
+
T: 17
|
|
1764
|
+
/*ScalarType.SINT32*/
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
no: 2,
|
|
1768
|
+
name: "event_types",
|
|
1769
|
+
kind: "scalar",
|
|
1770
|
+
repeat: 2,
|
|
1771
|
+
T: 9
|
|
1772
|
+
/*ScalarType.STRING*/
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
no: 3,
|
|
1776
|
+
name: "batch_size",
|
|
1777
|
+
kind: "scalar",
|
|
1778
|
+
T: 13
|
|
1779
|
+
/*ScalarType.UINT32*/
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
no: 4,
|
|
1783
|
+
name: "fetchers",
|
|
1784
|
+
kind: "scalar",
|
|
1785
|
+
T: 13
|
|
1786
|
+
/*ScalarType.UINT32*/
|
|
1787
|
+
}
|
|
1788
|
+
]);
|
|
1789
|
+
}
|
|
1790
|
+
create(value) {
|
|
1791
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1792
|
+
message.height = 0;
|
|
1793
|
+
message.eventTypes = [];
|
|
1794
|
+
message.batchSize = 0;
|
|
1795
|
+
message.fetchers = 0;
|
|
1796
|
+
if (value !== void 0)
|
|
1797
|
+
reflectionMergePartial(this, message, value);
|
|
1798
|
+
return message;
|
|
1799
|
+
}
|
|
1800
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1801
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1802
|
+
while (reader.pos < end) {
|
|
1803
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1804
|
+
switch (fieldNo) {
|
|
1805
|
+
case /* sint32 height */
|
|
1806
|
+
1:
|
|
1807
|
+
message.height = reader.sint32();
|
|
1808
|
+
break;
|
|
1809
|
+
case /* repeated string event_types */
|
|
1810
|
+
2:
|
|
1811
|
+
message.eventTypes.push(reader.string());
|
|
1812
|
+
break;
|
|
1813
|
+
case /* uint32 batch_size */
|
|
1814
|
+
3:
|
|
1815
|
+
message.batchSize = reader.uint32();
|
|
1816
|
+
break;
|
|
1817
|
+
case /* uint32 fetchers */
|
|
1818
|
+
4:
|
|
1819
|
+
message.fetchers = reader.uint32();
|
|
1820
|
+
break;
|
|
1821
|
+
default:
|
|
1822
|
+
let u = options.readUnknownField;
|
|
1823
|
+
if (u === "throw")
|
|
1824
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1825
|
+
let d = reader.skip(wireType);
|
|
1826
|
+
if (u !== false)
|
|
1827
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
return message;
|
|
1831
|
+
}
|
|
1832
|
+
internalBinaryWrite(message, writer, options) {
|
|
1833
|
+
if (message.height !== 0)
|
|
1834
|
+
writer.tag(1, WireType.Varint).sint32(message.height);
|
|
1835
|
+
for (let i = 0; i < message.eventTypes.length; i++)
|
|
1836
|
+
writer.tag(2, WireType.LengthDelimited).string(message.eventTypes[i]);
|
|
1837
|
+
if (message.batchSize !== 0)
|
|
1838
|
+
writer.tag(3, WireType.Varint).uint32(message.batchSize);
|
|
1839
|
+
if (message.fetchers !== 0)
|
|
1840
|
+
writer.tag(4, WireType.Varint).uint32(message.fetchers);
|
|
1841
|
+
let u = options.writeUnknownFields;
|
|
1842
|
+
if (u !== false)
|
|
1843
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1844
|
+
return writer;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
const StreamABCIEventsRequest = new StreamABCIEventsRequest$Type();
|
|
1848
|
+
class StreamABCIEventsResponse$Type extends MessageType {
|
|
1849
|
+
constructor() {
|
|
1850
|
+
super("event_provider_api.StreamABCIEventsResponse", [
|
|
1851
|
+
{ no: 1, name: "blocks", kind: "message", repeat: 2, T: () => StreamedRawBlock }
|
|
1852
|
+
]);
|
|
1853
|
+
}
|
|
1854
|
+
create(value) {
|
|
1855
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1856
|
+
message.blocks = [];
|
|
1857
|
+
if (value !== void 0)
|
|
1858
|
+
reflectionMergePartial(this, message, value);
|
|
1859
|
+
return message;
|
|
1860
|
+
}
|
|
1861
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1862
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1863
|
+
while (reader.pos < end) {
|
|
1864
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1865
|
+
switch (fieldNo) {
|
|
1866
|
+
case /* repeated event_provider_api.StreamedRawBlock blocks */
|
|
1867
|
+
1:
|
|
1868
|
+
message.blocks.push(StreamedRawBlock.internalBinaryRead(reader, reader.uint32(), options));
|
|
1869
|
+
break;
|
|
1870
|
+
default:
|
|
1871
|
+
let u = options.readUnknownField;
|
|
1872
|
+
if (u === "throw")
|
|
1873
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1874
|
+
let d = reader.skip(wireType);
|
|
1875
|
+
if (u !== false)
|
|
1876
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
return message;
|
|
1880
|
+
}
|
|
1881
|
+
internalBinaryWrite(message, writer, options) {
|
|
1882
|
+
for (let i = 0; i < message.blocks.length; i++)
|
|
1883
|
+
StreamedRawBlock.internalBinaryWrite(message.blocks[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1884
|
+
let u = options.writeUnknownFields;
|
|
1885
|
+
if (u !== false)
|
|
1886
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1887
|
+
return writer;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
const StreamABCIEventsResponse = new StreamABCIEventsResponse$Type();
|
|
1891
|
+
class StreamedRawBlock$Type extends MessageType {
|
|
1892
|
+
constructor() {
|
|
1893
|
+
super("event_provider_api.StreamedRawBlock", [
|
|
1894
|
+
{
|
|
1895
|
+
no: 20,
|
|
1896
|
+
name: "in_sync",
|
|
1897
|
+
kind: "scalar",
|
|
1898
|
+
T: 8
|
|
1899
|
+
/*ScalarType.BOOL*/
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
no: 1,
|
|
1903
|
+
name: "height",
|
|
1904
|
+
kind: "scalar",
|
|
1905
|
+
T: 18,
|
|
1906
|
+
L: 0
|
|
1907
|
+
/*LongType.BIGINT*/
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
no: 5,
|
|
1911
|
+
name: "block_time",
|
|
1912
|
+
kind: "scalar",
|
|
1913
|
+
T: 9
|
|
1914
|
+
/*ScalarType.STRING*/
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
no: 6,
|
|
1918
|
+
name: "block_timestamp",
|
|
1919
|
+
kind: "scalar",
|
|
1920
|
+
T: 18,
|
|
1921
|
+
L: 0
|
|
1922
|
+
/*LongType.BIGINT*/
|
|
1923
|
+
},
|
|
1924
|
+
{ no: 2, name: "txs_results", kind: "message", repeat: 2, T: () => ABCIResponseDeliverTx },
|
|
1925
|
+
{ no: 3, name: "begin_block_events", kind: "message", repeat: 2, T: () => ABCIEvent },
|
|
1926
|
+
{ no: 4, name: "end_block_events", kind: "message", repeat: 2, T: () => ABCIEvent }
|
|
1927
|
+
]);
|
|
1928
|
+
}
|
|
1929
|
+
create(value) {
|
|
1930
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1931
|
+
message.inSync = false;
|
|
1932
|
+
message.height = 0n;
|
|
1933
|
+
message.blockTime = "";
|
|
1934
|
+
message.blockTimestamp = 0n;
|
|
1935
|
+
message.txsResults = [];
|
|
1936
|
+
message.beginBlockEvents = [];
|
|
1937
|
+
message.endBlockEvents = [];
|
|
1938
|
+
if (value !== void 0)
|
|
1939
|
+
reflectionMergePartial(this, message, value);
|
|
1940
|
+
return message;
|
|
1941
|
+
}
|
|
1942
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1943
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1944
|
+
while (reader.pos < end) {
|
|
1945
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1946
|
+
switch (fieldNo) {
|
|
1947
|
+
case /* bool in_sync */
|
|
1948
|
+
20:
|
|
1949
|
+
message.inSync = reader.bool();
|
|
1950
|
+
break;
|
|
1951
|
+
case /* sint64 height */
|
|
1952
|
+
1:
|
|
1953
|
+
message.height = reader.sint64().toBigInt();
|
|
1954
|
+
break;
|
|
1955
|
+
case /* string block_time */
|
|
1956
|
+
5:
|
|
1957
|
+
message.blockTime = reader.string();
|
|
1958
|
+
break;
|
|
1959
|
+
case /* sint64 block_timestamp */
|
|
1960
|
+
6:
|
|
1961
|
+
message.blockTimestamp = reader.sint64().toBigInt();
|
|
1962
|
+
break;
|
|
1963
|
+
case /* repeated event_provider_api.ABCIResponseDeliverTx txs_results */
|
|
1964
|
+
2:
|
|
1965
|
+
message.txsResults.push(ABCIResponseDeliverTx.internalBinaryRead(reader, reader.uint32(), options));
|
|
1966
|
+
break;
|
|
1967
|
+
case /* repeated event_provider_api.ABCIEvent begin_block_events */
|
|
1968
|
+
3:
|
|
1969
|
+
message.beginBlockEvents.push(ABCIEvent.internalBinaryRead(reader, reader.uint32(), options));
|
|
1970
|
+
break;
|
|
1971
|
+
case /* repeated event_provider_api.ABCIEvent end_block_events */
|
|
1972
|
+
4:
|
|
1973
|
+
message.endBlockEvents.push(ABCIEvent.internalBinaryRead(reader, reader.uint32(), options));
|
|
1974
|
+
break;
|
|
1975
|
+
default:
|
|
1976
|
+
let u = options.readUnknownField;
|
|
1977
|
+
if (u === "throw")
|
|
1978
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1979
|
+
let d = reader.skip(wireType);
|
|
1980
|
+
if (u !== false)
|
|
1981
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
return message;
|
|
1985
|
+
}
|
|
1986
|
+
internalBinaryWrite(message, writer, options) {
|
|
1987
|
+
if (message.height !== 0n)
|
|
1988
|
+
writer.tag(1, WireType.Varint).sint64(message.height);
|
|
1989
|
+
for (let i = 0; i < message.txsResults.length; i++)
|
|
1990
|
+
ABCIResponseDeliverTx.internalBinaryWrite(message.txsResults[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1991
|
+
for (let i = 0; i < message.beginBlockEvents.length; i++)
|
|
1992
|
+
ABCIEvent.internalBinaryWrite(message.beginBlockEvents[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1993
|
+
for (let i = 0; i < message.endBlockEvents.length; i++)
|
|
1994
|
+
ABCIEvent.internalBinaryWrite(message.endBlockEvents[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1995
|
+
if (message.blockTime !== "")
|
|
1996
|
+
writer.tag(5, WireType.LengthDelimited).string(message.blockTime);
|
|
1997
|
+
if (message.blockTimestamp !== 0n)
|
|
1998
|
+
writer.tag(6, WireType.Varint).sint64(message.blockTimestamp);
|
|
1999
|
+
if (message.inSync !== false)
|
|
2000
|
+
writer.tag(20, WireType.Varint).bool(message.inSync);
|
|
2001
|
+
let u = options.writeUnknownFields;
|
|
2002
|
+
if (u !== false)
|
|
2003
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2004
|
+
return writer;
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
const StreamedRawBlock = new StreamedRawBlock$Type();
|
|
1756
2008
|
const EventProviderAPI = new ServiceType("event_provider_api.EventProviderAPI", [
|
|
1757
2009
|
{ name: "GetLatestHeight", options: {}, I: GetLatestHeightRequest, O: GetLatestHeightResponse },
|
|
1758
2010
|
{ name: "StreamLatestHeight", serverStreaming: true, options: {}, I: StreamLatestHeightRequest, O: StreamLatestHeightResponse },
|
|
@@ -1760,7 +2012,8 @@ const EventProviderAPI = new ServiceType("event_provider_api.EventProviderAPI",
|
|
|
1760
2012
|
{ name: "GetBlockEventsRPC", options: {}, I: GetBlockEventsRPCRequest, O: GetBlockEventsRPCResponse },
|
|
1761
2013
|
{ name: "GetCustomEventsRPC", options: {}, I: GetCustomEventsRPCRequest, O: GetCustomEventsRPCResponse },
|
|
1762
2014
|
{ name: "GetABCIBlockEvents", options: {}, I: GetABCIBlockEventsRequest, O: GetABCIBlockEventsResponse },
|
|
1763
|
-
{ name: "GetABCIBlockEventsAtHeight", options: {}, I: GetABCIBlockEventsAtHeightRequest, O: GetABCIBlockEventsAtHeightResponse }
|
|
2015
|
+
{ name: "GetABCIBlockEventsAtHeight", options: {}, I: GetABCIBlockEventsAtHeightRequest, O: GetABCIBlockEventsAtHeightResponse },
|
|
2016
|
+
{ name: "StreamABCIEvents", serverStreaming: true, options: {}, I: StreamABCIEventsRequest, O: StreamABCIEventsResponse }
|
|
1764
2017
|
]);
|
|
1765
2018
|
export {
|
|
1766
2019
|
ABCIAttribute,
|
|
@@ -1783,8 +2036,11 @@ export {
|
|
|
1783
2036
|
GetLatestHeightResponse,
|
|
1784
2037
|
LatestBlockHeight,
|
|
1785
2038
|
RawBlock,
|
|
2039
|
+
StreamABCIEventsRequest,
|
|
2040
|
+
StreamABCIEventsResponse,
|
|
1786
2041
|
StreamBlockEventsRequest,
|
|
1787
2042
|
StreamBlockEventsResponse,
|
|
1788
2043
|
StreamLatestHeightRequest,
|
|
1789
|
-
StreamLatestHeightResponse
|
|
2044
|
+
StreamLatestHeightResponse,
|
|
2045
|
+
StreamedRawBlock
|
|
1790
2046
|
};
|