@uniswap/client-data-api 0.0.20 → 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";
@@ -186,3 +190,108 @@ export declare class GetBidsResponse extends Message<GetBidsResponse> {
186
190
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsResponse;
187
191
  static equals(a: GetBidsResponse | PlainMessage<GetBidsResponse> | undefined, b: GetBidsResponse | PlainMessage<GetBidsResponse> | undefined): boolean;
188
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,8 @@ 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 */ },
204
209
  ]);
205
210
  /**
206
211
  * A single bid concentration point.
@@ -277,3 +282,159 @@ GetBidsResponse.typeName = "data.v1.GetBidsResponse";
277
282
  GetBidsResponse.fields = proto3.util.newFieldList(() => [
278
283
  { no: 1, name: "concentration", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: BidConcentrationPoint } },
279
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 },
440
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },