@uniswap/client-data-api 0.0.19 → 0.0.21

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.
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
2
+ import { GetAuctionsRequest, GetAuctionsResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.AuctionService.GetBidsByWallet
5
5
  */
@@ -26,3 +26,16 @@ export declare const getBids: {
26
26
  readonly typeName: "data.v1.AuctionService";
27
27
  };
28
28
  };
29
+ /**
30
+ * @generated from rpc data.v1.AuctionService.GetAuctions
31
+ */
32
+ export declare const getAuctions: {
33
+ readonly localName: "getAuctions";
34
+ readonly name: "GetAuctions";
35
+ readonly kind: MethodKind.Unary;
36
+ readonly I: typeof GetAuctionsRequest;
37
+ readonly O: typeof GetAuctionsResponse;
38
+ readonly service: {
39
+ readonly typeName: "data.v1.AuctionService";
40
+ };
41
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
6
+ import { GetAuctionsRequest, GetAuctionsResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.AuctionService.GetBidsByWallet
9
9
  */
@@ -30,3 +30,16 @@ export const getBids = {
30
30
  typeName: "data.v1.AuctionService"
31
31
  }
32
32
  };
33
+ /**
34
+ * @generated from rpc data.v1.AuctionService.GetAuctions
35
+ */
36
+ export const getAuctions = {
37
+ localName: "getAuctions",
38
+ name: "GetAuctions",
39
+ kind: MethodKind.Unary,
40
+ I: GetAuctionsRequest,
41
+ O: GetAuctionsResponse,
42
+ service: {
43
+ typeName: "data.v1.AuctionService"
44
+ }
45
+ };
@@ -1,4 +1,4 @@
1
- import { GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
1
+ import { GetAuctionsRequest, GetAuctionsResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v1.AuctionService
@@ -24,5 +24,14 @@ export declare const AuctionService: {
24
24
  readonly O: typeof GetBidsResponse;
25
25
  readonly kind: MethodKind.Unary;
26
26
  };
27
+ /**
28
+ * @generated from rpc data.v1.AuctionService.GetAuctions
29
+ */
30
+ readonly getAuctions: {
31
+ readonly name: "GetAuctions";
32
+ readonly I: typeof GetAuctionsRequest;
33
+ readonly O: typeof GetAuctionsResponse;
34
+ readonly kind: MethodKind.Unary;
35
+ };
27
36
  };
28
37
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
5
+ import { GetAuctionsRequest, GetAuctionsResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v1.AuctionService
@@ -28,5 +28,14 @@ export const AuctionService = {
28
28
  O: GetBidsResponse,
29
29
  kind: MethodKind.Unary,
30
30
  },
31
+ /**
32
+ * @generated from rpc data.v1.AuctionService.GetAuctions
33
+ */
34
+ getAuctions: {
35
+ name: "GetAuctions",
36
+ I: GetAuctionsRequest,
37
+ O: GetAuctionsResponse,
38
+ kind: MethodKind.Unary,
39
+ },
31
40
  }
32
41
  };
@@ -124,9 +124,13 @@ export declare class GetBidsByWalletResponse extends Message<GetBidsByWalletResp
124
124
  */
125
125
  export declare class GetBidsRequest extends Message<GetBidsRequest> {
126
126
  /**
127
- * @generated from field: string auction_id = 1;
127
+ * @generated from field: int32 chain_id = 1;
128
128
  */
129
- auctionId: string;
129
+ chainId: number;
130
+ /**
131
+ * @generated from field: string address = 2;
132
+ */
133
+ address: string;
130
134
  constructor(data?: PartialMessage<GetBidsRequest>);
131
135
  static readonly runtime: typeof proto3;
132
136
  static readonly typeName = "data.v1.GetBidsRequest";
@@ -136,6 +140,33 @@ export declare class GetBidsRequest extends Message<GetBidsRequest> {
136
140
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsRequest;
137
141
  static equals(a: GetBidsRequest | PlainMessage<GetBidsRequest> | undefined, b: GetBidsRequest | PlainMessage<GetBidsRequest> | undefined): boolean;
138
142
  }
143
+ /**
144
+ * A single bid concentration point.
145
+ *
146
+ * @generated from message data.v1.BidConcentrationPoint
147
+ */
148
+ export declare class BidConcentrationPoint extends Message<BidConcentrationPoint> {
149
+ /**
150
+ * cumulative volume (numeric as string)
151
+ *
152
+ * @generated from field: string volume = 1;
153
+ */
154
+ volume: string;
155
+ /**
156
+ * ISO 8601 timestamp string
157
+ *
158
+ * @generated from field: string updated_at = 2;
159
+ */
160
+ updatedAt: string;
161
+ constructor(data?: PartialMessage<BidConcentrationPoint>);
162
+ static readonly runtime: typeof proto3;
163
+ static readonly typeName = "data.v1.BidConcentrationPoint";
164
+ static readonly fields: FieldList;
165
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BidConcentrationPoint;
166
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BidConcentrationPoint;
167
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BidConcentrationPoint;
168
+ static equals(a: BidConcentrationPoint | PlainMessage<BidConcentrationPoint> | undefined, b: BidConcentrationPoint | PlainMessage<BidConcentrationPoint> | undefined): boolean;
169
+ }
139
170
  /**
140
171
  * Response containing bids for an auction.
141
172
  *
@@ -143,11 +174,13 @@ export declare class GetBidsRequest extends Message<GetBidsRequest> {
143
174
  */
144
175
  export declare class GetBidsResponse extends Message<GetBidsResponse> {
145
176
  /**
146
- * Test message
177
+ * Map of max_price to bid concentration data
147
178
  *
148
- * @generated from field: string message = 1;
179
+ * @generated from field: map<string, data.v1.BidConcentrationPoint> concentration = 1;
149
180
  */
150
- message: string;
181
+ concentration: {
182
+ [key: string]: BidConcentrationPoint;
183
+ };
151
184
  constructor(data?: PartialMessage<GetBidsResponse>);
152
185
  static readonly runtime: typeof proto3;
153
186
  static readonly typeName = "data.v1.GetBidsResponse";
@@ -157,3 +190,108 @@ export declare class GetBidsResponse extends Message<GetBidsResponse> {
157
190
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsResponse;
158
191
  static equals(a: GetBidsResponse | PlainMessage<GetBidsResponse> | undefined, b: GetBidsResponse | PlainMessage<GetBidsResponse> | undefined): boolean;
159
192
  }
193
+ /**
194
+ * Request to fetch auctions.
195
+ *
196
+ * @generated from message data.v1.GetAuctionsRequest
197
+ */
198
+ export declare class GetAuctionsRequest extends Message<GetAuctionsRequest> {
199
+ /**
200
+ * @generated from field: int32 chain_id = 1;
201
+ */
202
+ chainId: number;
203
+ /**
204
+ * @generated from field: string address = 2;
205
+ */
206
+ address: string;
207
+ constructor(data?: PartialMessage<GetAuctionsRequest>);
208
+ static readonly runtime: typeof proto3;
209
+ static readonly typeName = "data.v1.GetAuctionsRequest";
210
+ static readonly fields: FieldList;
211
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuctionsRequest;
212
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuctionsRequest;
213
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuctionsRequest;
214
+ static equals(a: GetAuctionsRequest | PlainMessage<GetAuctionsRequest> | undefined, b: GetAuctionsRequest | PlainMessage<GetAuctionsRequest> | undefined): boolean;
215
+ }
216
+ /**
217
+ * A single auction resource.
218
+ *
219
+ * @generated from message data.v1.Auction
220
+ */
221
+ export declare class Auction extends Message<Auction> {
222
+ /**
223
+ * @generated from field: string auction_id = 1;
224
+ */
225
+ auctionId: string;
226
+ /**
227
+ * @generated from field: int32 chain_id = 2;
228
+ */
229
+ chainId: number;
230
+ /**
231
+ * @generated from field: string token_symbol = 3;
232
+ */
233
+ tokenSymbol: string;
234
+ /**
235
+ * @generated from field: string token_address = 4;
236
+ */
237
+ tokenAddress: string;
238
+ /**
239
+ * @generated from field: string creator_address = 5;
240
+ */
241
+ creatorAddress: string;
242
+ /**
243
+ * @generated from field: string start_block = 6;
244
+ */
245
+ startBlock: string;
246
+ /**
247
+ * @generated from field: string end_block = 7;
248
+ */
249
+ endBlock: string;
250
+ /**
251
+ * @generated from field: string total_supply = 8;
252
+ */
253
+ totalSupply: string;
254
+ /**
255
+ * @generated from field: string tick_size = 9;
256
+ */
257
+ tickSize: string;
258
+ /**
259
+ * @generated from field: string creation_block = 10;
260
+ */
261
+ creationBlock: string;
262
+ /**
263
+ * @generated from field: string created_at = 11;
264
+ */
265
+ createdAt: string;
266
+ /**
267
+ * @generated from field: string updated_at = 12;
268
+ */
269
+ updatedAt: string;
270
+ constructor(data?: PartialMessage<Auction>);
271
+ static readonly runtime: typeof proto3;
272
+ static readonly typeName = "data.v1.Auction";
273
+ static readonly fields: FieldList;
274
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Auction;
275
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Auction;
276
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Auction;
277
+ static equals(a: Auction | PlainMessage<Auction> | undefined, b: Auction | PlainMessage<Auction> | undefined): boolean;
278
+ }
279
+ /**
280
+ * Response containing auctions.
281
+ *
282
+ * @generated from message data.v1.GetAuctionsResponse
283
+ */
284
+ export declare class GetAuctionsResponse extends Message<GetAuctionsResponse> {
285
+ /**
286
+ * @generated from field: repeated data.v1.Auction auctions = 1;
287
+ */
288
+ auctions: Auction[];
289
+ constructor(data?: PartialMessage<GetAuctionsResponse>);
290
+ static readonly runtime: typeof proto3;
291
+ static readonly typeName = "data.v1.GetAuctionsResponse";
292
+ static readonly fields: FieldList;
293
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuctionsResponse;
294
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuctionsResponse;
295
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuctionsResponse;
296
+ static equals(a: GetAuctionsResponse | PlainMessage<GetAuctionsResponse> | undefined, b: GetAuctionsResponse | PlainMessage<GetAuctionsResponse> | undefined): boolean;
297
+ }
@@ -179,9 +179,13 @@ export class GetBidsRequest extends Message {
179
179
  constructor(data) {
180
180
  super();
181
181
  /**
182
- * @generated from field: string auction_id = 1;
182
+ * @generated from field: int32 chain_id = 1;
183
183
  */
184
- this.auctionId = "";
184
+ this.chainId = 0;
185
+ /**
186
+ * @generated from field: string address = 2;
187
+ */
188
+ this.address = "";
185
189
  proto3.util.initPartial(data, this);
186
190
  }
187
191
  static fromBinary(bytes, options) {
@@ -200,7 +204,49 @@ export class GetBidsRequest extends Message {
200
204
  GetBidsRequest.runtime = proto3;
201
205
  GetBidsRequest.typeName = "data.v1.GetBidsRequest";
202
206
  GetBidsRequest.fields = proto3.util.newFieldList(() => [
203
- { no: 1, name: "auction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
207
+ { no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
208
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
209
+ ]);
210
+ /**
211
+ * A single bid concentration point.
212
+ *
213
+ * @generated from message data.v1.BidConcentrationPoint
214
+ */
215
+ export class BidConcentrationPoint extends Message {
216
+ constructor(data) {
217
+ super();
218
+ /**
219
+ * cumulative volume (numeric as string)
220
+ *
221
+ * @generated from field: string volume = 1;
222
+ */
223
+ this.volume = "";
224
+ /**
225
+ * ISO 8601 timestamp string
226
+ *
227
+ * @generated from field: string updated_at = 2;
228
+ */
229
+ this.updatedAt = "";
230
+ proto3.util.initPartial(data, this);
231
+ }
232
+ static fromBinary(bytes, options) {
233
+ return new BidConcentrationPoint().fromBinary(bytes, options);
234
+ }
235
+ static fromJson(jsonValue, options) {
236
+ return new BidConcentrationPoint().fromJson(jsonValue, options);
237
+ }
238
+ static fromJsonString(jsonString, options) {
239
+ return new BidConcentrationPoint().fromJsonString(jsonString, options);
240
+ }
241
+ static equals(a, b) {
242
+ return proto3.util.equals(BidConcentrationPoint, a, b);
243
+ }
244
+ }
245
+ BidConcentrationPoint.runtime = proto3;
246
+ BidConcentrationPoint.typeName = "data.v1.BidConcentrationPoint";
247
+ BidConcentrationPoint.fields = proto3.util.newFieldList(() => [
248
+ { no: 1, name: "volume", kind: "scalar", T: 9 /* ScalarType.STRING */ },
249
+ { no: 2, name: "updated_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
204
250
  ]);
205
251
  /**
206
252
  * Response containing bids for an auction.
@@ -211,11 +257,11 @@ export class GetBidsResponse extends Message {
211
257
  constructor(data) {
212
258
  super();
213
259
  /**
214
- * Test message
260
+ * Map of max_price to bid concentration data
215
261
  *
216
- * @generated from field: string message = 1;
262
+ * @generated from field: map<string, data.v1.BidConcentrationPoint> concentration = 1;
217
263
  */
218
- this.message = "";
264
+ this.concentration = {};
219
265
  proto3.util.initPartial(data, this);
220
266
  }
221
267
  static fromBinary(bytes, options) {
@@ -234,5 +280,161 @@ export class GetBidsResponse extends Message {
234
280
  GetBidsResponse.runtime = proto3;
235
281
  GetBidsResponse.typeName = "data.v1.GetBidsResponse";
236
282
  GetBidsResponse.fields = proto3.util.newFieldList(() => [
237
- { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
283
+ { no: 1, name: "concentration", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: BidConcentrationPoint } },
284
+ ]);
285
+ /**
286
+ * Request to fetch auctions.
287
+ *
288
+ * @generated from message data.v1.GetAuctionsRequest
289
+ */
290
+ export class GetAuctionsRequest extends Message {
291
+ constructor(data) {
292
+ super();
293
+ /**
294
+ * @generated from field: int32 chain_id = 1;
295
+ */
296
+ this.chainId = 0;
297
+ /**
298
+ * @generated from field: string address = 2;
299
+ */
300
+ this.address = "";
301
+ proto3.util.initPartial(data, this);
302
+ }
303
+ static fromBinary(bytes, options) {
304
+ return new GetAuctionsRequest().fromBinary(bytes, options);
305
+ }
306
+ static fromJson(jsonValue, options) {
307
+ return new GetAuctionsRequest().fromJson(jsonValue, options);
308
+ }
309
+ static fromJsonString(jsonString, options) {
310
+ return new GetAuctionsRequest().fromJsonString(jsonString, options);
311
+ }
312
+ static equals(a, b) {
313
+ return proto3.util.equals(GetAuctionsRequest, a, b);
314
+ }
315
+ }
316
+ GetAuctionsRequest.runtime = proto3;
317
+ GetAuctionsRequest.typeName = "data.v1.GetAuctionsRequest";
318
+ GetAuctionsRequest.fields = proto3.util.newFieldList(() => [
319
+ { no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
320
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
321
+ ]);
322
+ /**
323
+ * A single auction resource.
324
+ *
325
+ * @generated from message data.v1.Auction
326
+ */
327
+ export class Auction extends Message {
328
+ constructor(data) {
329
+ super();
330
+ /**
331
+ * @generated from field: string auction_id = 1;
332
+ */
333
+ this.auctionId = "";
334
+ /**
335
+ * @generated from field: int32 chain_id = 2;
336
+ */
337
+ this.chainId = 0;
338
+ /**
339
+ * @generated from field: string token_symbol = 3;
340
+ */
341
+ this.tokenSymbol = "";
342
+ /**
343
+ * @generated from field: string token_address = 4;
344
+ */
345
+ this.tokenAddress = "";
346
+ /**
347
+ * @generated from field: string creator_address = 5;
348
+ */
349
+ this.creatorAddress = "";
350
+ /**
351
+ * @generated from field: string start_block = 6;
352
+ */
353
+ this.startBlock = "";
354
+ /**
355
+ * @generated from field: string end_block = 7;
356
+ */
357
+ this.endBlock = "";
358
+ /**
359
+ * @generated from field: string total_supply = 8;
360
+ */
361
+ this.totalSupply = "";
362
+ /**
363
+ * @generated from field: string tick_size = 9;
364
+ */
365
+ this.tickSize = "";
366
+ /**
367
+ * @generated from field: string creation_block = 10;
368
+ */
369
+ this.creationBlock = "";
370
+ /**
371
+ * @generated from field: string created_at = 11;
372
+ */
373
+ this.createdAt = "";
374
+ /**
375
+ * @generated from field: string updated_at = 12;
376
+ */
377
+ this.updatedAt = "";
378
+ proto3.util.initPartial(data, this);
379
+ }
380
+ static fromBinary(bytes, options) {
381
+ return new Auction().fromBinary(bytes, options);
382
+ }
383
+ static fromJson(jsonValue, options) {
384
+ return new Auction().fromJson(jsonValue, options);
385
+ }
386
+ static fromJsonString(jsonString, options) {
387
+ return new Auction().fromJsonString(jsonString, options);
388
+ }
389
+ static equals(a, b) {
390
+ return proto3.util.equals(Auction, a, b);
391
+ }
392
+ }
393
+ Auction.runtime = proto3;
394
+ Auction.typeName = "data.v1.Auction";
395
+ Auction.fields = proto3.util.newFieldList(() => [
396
+ { no: 1, name: "auction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
397
+ { no: 2, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
398
+ { no: 3, name: "token_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
399
+ { no: 4, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
400
+ { no: 5, name: "creator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
401
+ { no: 6, name: "start_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
402
+ { no: 7, name: "end_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
403
+ { no: 8, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
404
+ { no: 9, name: "tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ },
405
+ { no: 10, name: "creation_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
406
+ { no: 11, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
407
+ { no: 12, name: "updated_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
408
+ ]);
409
+ /**
410
+ * Response containing auctions.
411
+ *
412
+ * @generated from message data.v1.GetAuctionsResponse
413
+ */
414
+ export class GetAuctionsResponse extends Message {
415
+ constructor(data) {
416
+ super();
417
+ /**
418
+ * @generated from field: repeated data.v1.Auction auctions = 1;
419
+ */
420
+ this.auctions = [];
421
+ proto3.util.initPartial(data, this);
422
+ }
423
+ static fromBinary(bytes, options) {
424
+ return new GetAuctionsResponse().fromBinary(bytes, options);
425
+ }
426
+ static fromJson(jsonValue, options) {
427
+ return new GetAuctionsResponse().fromJson(jsonValue, options);
428
+ }
429
+ static fromJsonString(jsonString, options) {
430
+ return new GetAuctionsResponse().fromJsonString(jsonString, options);
431
+ }
432
+ static equals(a, b) {
433
+ return proto3.util.equals(GetAuctionsResponse, a, b);
434
+ }
435
+ }
436
+ GetAuctionsResponse.runtime = proto3;
437
+ GetAuctionsResponse.typeName = "data.v1.GetAuctionsResponse";
438
+ GetAuctionsResponse.fields = proto3.util.newFieldList(() => [
439
+ { no: 1, name: "auctions", kind: "message", T: Auction, repeated: true },
238
440
  ]);
@@ -0,0 +1,31 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from message data.v1.ReorgedBlock
5
+ */
6
+ export declare class ReorgedBlock extends Message<ReorgedBlock> {
7
+ /**
8
+ * @generated from field: uint64 chain_id = 1;
9
+ */
10
+ chainId: bigint;
11
+ /**
12
+ * @generated from field: uint64 block_num = 2;
13
+ */
14
+ blockNum: bigint;
15
+ /**
16
+ * @generated from field: string block_hash = 3;
17
+ */
18
+ blockHash: string;
19
+ /**
20
+ * @generated from field: uint64 created_at = 4;
21
+ */
22
+ createdAt: bigint;
23
+ constructor(data?: PartialMessage<ReorgedBlock>);
24
+ static readonly runtime: typeof proto3;
25
+ static readonly typeName = "data.v1.ReorgedBlock";
26
+ static readonly fields: FieldList;
27
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReorgedBlock;
28
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReorgedBlock;
29
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReorgedBlock;
30
+ static equals(a: ReorgedBlock | PlainMessage<ReorgedBlock> | undefined, b: ReorgedBlock | PlainMessage<ReorgedBlock> | undefined): boolean;
31
+ }
@@ -0,0 +1,50 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file data/v1/reorged_block.proto (package data.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
+ /**
7
+ * @generated from message data.v1.ReorgedBlock
8
+ */
9
+ export class ReorgedBlock extends Message {
10
+ constructor(data) {
11
+ super();
12
+ /**
13
+ * @generated from field: uint64 chain_id = 1;
14
+ */
15
+ this.chainId = protoInt64.zero;
16
+ /**
17
+ * @generated from field: uint64 block_num = 2;
18
+ */
19
+ this.blockNum = protoInt64.zero;
20
+ /**
21
+ * @generated from field: string block_hash = 3;
22
+ */
23
+ this.blockHash = "";
24
+ /**
25
+ * @generated from field: uint64 created_at = 4;
26
+ */
27
+ this.createdAt = protoInt64.zero;
28
+ proto3.util.initPartial(data, this);
29
+ }
30
+ static fromBinary(bytes, options) {
31
+ return new ReorgedBlock().fromBinary(bytes, options);
32
+ }
33
+ static fromJson(jsonValue, options) {
34
+ return new ReorgedBlock().fromJson(jsonValue, options);
35
+ }
36
+ static fromJsonString(jsonString, options) {
37
+ return new ReorgedBlock().fromJsonString(jsonString, options);
38
+ }
39
+ static equals(a, b) {
40
+ return proto3.util.equals(ReorgedBlock, a, b);
41
+ }
42
+ }
43
+ ReorgedBlock.runtime = proto3;
44
+ ReorgedBlock.typeName = "data.v1.ReorgedBlock";
45
+ ReorgedBlock.fields = proto3.util.newFieldList(() => [
46
+ { no: 1, name: "chain_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
47
+ { no: 2, name: "block_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
48
+ { no: 3, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
49
+ { no: 4, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
50
+ ]);
@@ -0,0 +1,15 @@
1
+ import { MethodKind } from "@bufbuild/protobuf";
2
+ import { SearchTokensRequest, SearchTokensResponse } from "./search_pb.js";
3
+ /**
4
+ * @generated from rpc data.v1.SearchService.SearchTokens
5
+ */
6
+ export declare const searchTokens: {
7
+ readonly localName: "searchTokens";
8
+ readonly name: "SearchTokens";
9
+ readonly kind: MethodKind.Unary;
10
+ readonly I: typeof SearchTokensRequest;
11
+ readonly O: typeof SearchTokensResponse;
12
+ readonly service: {
13
+ readonly typeName: "data.v1.SearchService";
14
+ };
15
+ };
@@ -0,0 +1,19 @@
1
+ // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
2
+ // @generated from file data/v1/search.proto (package data.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { MethodKind } from "@bufbuild/protobuf";
6
+ import { SearchTokensRequest, SearchTokensResponse } from "./search_pb.js";
7
+ /**
8
+ * @generated from rpc data.v1.SearchService.SearchTokens
9
+ */
10
+ export const searchTokens = {
11
+ localName: "searchTokens",
12
+ name: "SearchTokens",
13
+ kind: MethodKind.Unary,
14
+ I: SearchTokensRequest,
15
+ O: SearchTokensResponse,
16
+ service: {
17
+ typeName: "data.v1.SearchService"
18
+ }
19
+ };