@uniswap/client-data-api 0.0.39 → 0.0.41
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/dist/data/v1/auction_pb.d.ts +37 -0
- package/dist/data/v1/auction_pb.js +53 -0
- package/dist/data/v1/workerService-WorkerService_connectquery.d.ts +14 -1
- package/dist/data/v1/workerService-WorkerService_connectquery.js +14 -1
- package/dist/data/v1/workerService_connect.d.ts +10 -1
- package/dist/data/v1/workerService_connect.js +10 -1
- package/dist/data/v1/workerService_pb.d.ts +26 -0
- package/dist/data/v1/workerService_pb.js +48 -0
- package/package.json +1 -1
|
@@ -319,6 +319,12 @@ export declare class Auction extends Message<Auction> {
|
|
|
319
319
|
* @generated from field: optional string token_total_supply = 24;
|
|
320
320
|
*/
|
|
321
321
|
tokenTotalSupply?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Parsed auction steps
|
|
324
|
+
*
|
|
325
|
+
* @generated from field: repeated data.v1.AuctionStep parsed_auction_steps = 25;
|
|
326
|
+
*/
|
|
327
|
+
parsedAuctionSteps: AuctionStep[];
|
|
322
328
|
constructor(data?: PartialMessage<Auction>);
|
|
323
329
|
static readonly runtime: typeof proto3;
|
|
324
330
|
static readonly typeName = "data.v1.Auction";
|
|
@@ -370,6 +376,37 @@ export declare class GetLatestCheckpointRequest extends Message<GetLatestCheckpo
|
|
|
370
376
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLatestCheckpointRequest;
|
|
371
377
|
static equals(a: GetLatestCheckpointRequest | PlainMessage<GetLatestCheckpointRequest> | undefined, b: GetLatestCheckpointRequest | PlainMessage<GetLatestCheckpointRequest> | undefined): boolean;
|
|
372
378
|
}
|
|
379
|
+
/**
|
|
380
|
+
* A single step in the auction's time-weighted pricing curve.
|
|
381
|
+
*
|
|
382
|
+
* @generated from message data.v1.AuctionStep
|
|
383
|
+
*/
|
|
384
|
+
export declare class AuctionStep extends Message<AuctionStep> {
|
|
385
|
+
/**
|
|
386
|
+
* @generated from field: uint32 mps = 1;
|
|
387
|
+
*/
|
|
388
|
+
mps: number;
|
|
389
|
+
/**
|
|
390
|
+
* Block number when this step begins (inclusive)
|
|
391
|
+
*
|
|
392
|
+
* @generated from field: string start_block = 2;
|
|
393
|
+
*/
|
|
394
|
+
startBlock: string;
|
|
395
|
+
/**
|
|
396
|
+
* Block number when this step ends (exclusive)
|
|
397
|
+
*
|
|
398
|
+
* @generated from field: string end_block = 3;
|
|
399
|
+
*/
|
|
400
|
+
endBlock: string;
|
|
401
|
+
constructor(data?: PartialMessage<AuctionStep>);
|
|
402
|
+
static readonly runtime: typeof proto3;
|
|
403
|
+
static readonly typeName = "data.v1.AuctionStep";
|
|
404
|
+
static readonly fields: FieldList;
|
|
405
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuctionStep;
|
|
406
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuctionStep;
|
|
407
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuctionStep;
|
|
408
|
+
static equals(a: AuctionStep | PlainMessage<AuctionStep> | undefined, b: AuctionStep | PlainMessage<AuctionStep> | undefined): boolean;
|
|
409
|
+
}
|
|
373
410
|
/**
|
|
374
411
|
* A checkpoint for an auction.
|
|
375
412
|
*
|
|
@@ -422,6 +422,12 @@ export class Auction extends Message {
|
|
|
422
422
|
* @generated from field: string auction_steps_data = 23;
|
|
423
423
|
*/
|
|
424
424
|
this.auctionStepsData = "";
|
|
425
|
+
/**
|
|
426
|
+
* Parsed auction steps
|
|
427
|
+
*
|
|
428
|
+
* @generated from field: repeated data.v1.AuctionStep parsed_auction_steps = 25;
|
|
429
|
+
*/
|
|
430
|
+
this.parsedAuctionSteps = [];
|
|
425
431
|
proto3.util.initPartial(data, this);
|
|
426
432
|
}
|
|
427
433
|
static fromBinary(bytes, options) {
|
|
@@ -464,6 +470,7 @@ Auction.fields = proto3.util.newFieldList(() => [
|
|
|
464
470
|
{ no: 22, name: "required_currency_raised", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
465
471
|
{ no: 23, name: "auction_steps_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
466
472
|
{ no: 24, name: "token_total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
473
|
+
{ no: 25, name: "parsed_auction_steps", kind: "message", T: AuctionStep, repeated: true },
|
|
467
474
|
]);
|
|
468
475
|
/**
|
|
469
476
|
* Response containing auctions.
|
|
@@ -534,6 +541,52 @@ GetLatestCheckpointRequest.fields = proto3.util.newFieldList(() => [
|
|
|
534
541
|
{ no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
535
542
|
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
536
543
|
]);
|
|
544
|
+
/**
|
|
545
|
+
* A single step in the auction's time-weighted pricing curve.
|
|
546
|
+
*
|
|
547
|
+
* @generated from message data.v1.AuctionStep
|
|
548
|
+
*/
|
|
549
|
+
export class AuctionStep extends Message {
|
|
550
|
+
constructor(data) {
|
|
551
|
+
super();
|
|
552
|
+
/**
|
|
553
|
+
* @generated from field: uint32 mps = 1;
|
|
554
|
+
*/
|
|
555
|
+
this.mps = 0;
|
|
556
|
+
/**
|
|
557
|
+
* Block number when this step begins (inclusive)
|
|
558
|
+
*
|
|
559
|
+
* @generated from field: string start_block = 2;
|
|
560
|
+
*/
|
|
561
|
+
this.startBlock = "";
|
|
562
|
+
/**
|
|
563
|
+
* Block number when this step ends (exclusive)
|
|
564
|
+
*
|
|
565
|
+
* @generated from field: string end_block = 3;
|
|
566
|
+
*/
|
|
567
|
+
this.endBlock = "";
|
|
568
|
+
proto3.util.initPartial(data, this);
|
|
569
|
+
}
|
|
570
|
+
static fromBinary(bytes, options) {
|
|
571
|
+
return new AuctionStep().fromBinary(bytes, options);
|
|
572
|
+
}
|
|
573
|
+
static fromJson(jsonValue, options) {
|
|
574
|
+
return new AuctionStep().fromJson(jsonValue, options);
|
|
575
|
+
}
|
|
576
|
+
static fromJsonString(jsonString, options) {
|
|
577
|
+
return new AuctionStep().fromJsonString(jsonString, options);
|
|
578
|
+
}
|
|
579
|
+
static equals(a, b) {
|
|
580
|
+
return proto3.util.equals(AuctionStep, a, b);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
AuctionStep.runtime = proto3;
|
|
584
|
+
AuctionStep.typeName = "data.v1.AuctionStep";
|
|
585
|
+
AuctionStep.fields = proto3.util.newFieldList(() => [
|
|
586
|
+
{ no: 1, name: "mps", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
587
|
+
{ no: 2, name: "start_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
588
|
+
{ no: 3, name: "end_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
589
|
+
]);
|
|
537
590
|
/**
|
|
538
591
|
* A checkpoint for an auction.
|
|
539
592
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
2
|
+
import { CheckSubgraphHealthRequest, CheckSubgraphHealthResponse, RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v1.WorkerService.RefreshProtocolStats
|
|
5
5
|
*/
|
|
@@ -13,3 +13,16 @@ export declare const refreshProtocolStats: {
|
|
|
13
13
|
readonly typeName: "data.v1.WorkerService";
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* @generated from rpc data.v1.WorkerService.CheckSubgraphHealth
|
|
18
|
+
*/
|
|
19
|
+
export declare const checkSubgraphHealth: {
|
|
20
|
+
readonly localName: "checkSubgraphHealth";
|
|
21
|
+
readonly name: "CheckSubgraphHealth";
|
|
22
|
+
readonly kind: MethodKind.Unary;
|
|
23
|
+
readonly I: typeof CheckSubgraphHealthRequest;
|
|
24
|
+
readonly O: typeof CheckSubgraphHealthResponse;
|
|
25
|
+
readonly service: {
|
|
26
|
+
readonly typeName: "data.v1.WorkerService";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
6
|
+
import { CheckSubgraphHealthRequest, CheckSubgraphHealthResponse, RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v1.WorkerService.RefreshProtocolStats
|
|
9
9
|
*/
|
|
@@ -17,3 +17,16 @@ export const refreshProtocolStats = {
|
|
|
17
17
|
typeName: "data.v1.WorkerService"
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @generated from rpc data.v1.WorkerService.CheckSubgraphHealth
|
|
22
|
+
*/
|
|
23
|
+
export const checkSubgraphHealth = {
|
|
24
|
+
localName: "checkSubgraphHealth",
|
|
25
|
+
name: "CheckSubgraphHealth",
|
|
26
|
+
kind: MethodKind.Unary,
|
|
27
|
+
I: CheckSubgraphHealthRequest,
|
|
28
|
+
O: CheckSubgraphHealthResponse,
|
|
29
|
+
service: {
|
|
30
|
+
typeName: "data.v1.WorkerService"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
1
|
+
import { CheckSubgraphHealthRequest, CheckSubgraphHealthResponse, RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v1.WorkerService
|
|
@@ -15,5 +15,14 @@ export declare const WorkerService: {
|
|
|
15
15
|
readonly O: typeof RefreshProtocolStatsResponse;
|
|
16
16
|
readonly kind: MethodKind.Unary;
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc data.v1.WorkerService.CheckSubgraphHealth
|
|
20
|
+
*/
|
|
21
|
+
readonly checkSubgraphHealth: {
|
|
22
|
+
readonly name: "CheckSubgraphHealth";
|
|
23
|
+
readonly I: typeof CheckSubgraphHealthRequest;
|
|
24
|
+
readonly O: typeof CheckSubgraphHealthResponse;
|
|
25
|
+
readonly kind: MethodKind.Unary;
|
|
26
|
+
};
|
|
18
27
|
};
|
|
19
28
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file data/v1/workerService.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
5
|
+
import { CheckSubgraphHealthRequest, CheckSubgraphHealthResponse, RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v1.WorkerService
|
|
@@ -19,5 +19,14 @@ export const WorkerService = {
|
|
|
19
19
|
O: RefreshProtocolStatsResponse,
|
|
20
20
|
kind: MethodKind.Unary,
|
|
21
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* @generated from rpc data.v1.WorkerService.CheckSubgraphHealth
|
|
24
|
+
*/
|
|
25
|
+
checkSubgraphHealth: {
|
|
26
|
+
name: "CheckSubgraphHealth",
|
|
27
|
+
I: CheckSubgraphHealthRequest,
|
|
28
|
+
O: CheckSubgraphHealthResponse,
|
|
29
|
+
kind: MethodKind.Unary,
|
|
30
|
+
},
|
|
22
31
|
}
|
|
23
32
|
};
|
|
@@ -26,3 +26,29 @@ export declare class RefreshProtocolStatsResponse extends Message<RefreshProtoco
|
|
|
26
26
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RefreshProtocolStatsResponse;
|
|
27
27
|
static equals(a: RefreshProtocolStatsResponse | PlainMessage<RefreshProtocolStatsResponse> | undefined, b: RefreshProtocolStatsResponse | PlainMessage<RefreshProtocolStatsResponse> | undefined): boolean;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @generated from message data.v1.CheckSubgraphHealthRequest
|
|
31
|
+
*/
|
|
32
|
+
export declare class CheckSubgraphHealthRequest extends Message<CheckSubgraphHealthRequest> {
|
|
33
|
+
constructor(data?: PartialMessage<CheckSubgraphHealthRequest>);
|
|
34
|
+
static readonly runtime: typeof proto3;
|
|
35
|
+
static readonly typeName = "data.v1.CheckSubgraphHealthRequest";
|
|
36
|
+
static readonly fields: FieldList;
|
|
37
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckSubgraphHealthRequest;
|
|
38
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckSubgraphHealthRequest;
|
|
39
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckSubgraphHealthRequest;
|
|
40
|
+
static equals(a: CheckSubgraphHealthRequest | PlainMessage<CheckSubgraphHealthRequest> | undefined, b: CheckSubgraphHealthRequest | PlainMessage<CheckSubgraphHealthRequest> | undefined): boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @generated from message data.v1.CheckSubgraphHealthResponse
|
|
44
|
+
*/
|
|
45
|
+
export declare class CheckSubgraphHealthResponse extends Message<CheckSubgraphHealthResponse> {
|
|
46
|
+
constructor(data?: PartialMessage<CheckSubgraphHealthResponse>);
|
|
47
|
+
static readonly runtime: typeof proto3;
|
|
48
|
+
static readonly typeName = "data.v1.CheckSubgraphHealthResponse";
|
|
49
|
+
static readonly fields: FieldList;
|
|
50
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckSubgraphHealthResponse;
|
|
51
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckSubgraphHealthResponse;
|
|
52
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckSubgraphHealthResponse;
|
|
53
|
+
static equals(a: CheckSubgraphHealthResponse | PlainMessage<CheckSubgraphHealthResponse> | undefined, b: CheckSubgraphHealthResponse | PlainMessage<CheckSubgraphHealthResponse> | undefined): boolean;
|
|
54
|
+
}
|
|
@@ -51,3 +51,51 @@ export class RefreshProtocolStatsResponse extends Message {
|
|
|
51
51
|
RefreshProtocolStatsResponse.runtime = proto3;
|
|
52
52
|
RefreshProtocolStatsResponse.typeName = "data.v1.RefreshProtocolStatsResponse";
|
|
53
53
|
RefreshProtocolStatsResponse.fields = proto3.util.newFieldList(() => []);
|
|
54
|
+
/**
|
|
55
|
+
* @generated from message data.v1.CheckSubgraphHealthRequest
|
|
56
|
+
*/
|
|
57
|
+
export class CheckSubgraphHealthRequest extends Message {
|
|
58
|
+
constructor(data) {
|
|
59
|
+
super();
|
|
60
|
+
proto3.util.initPartial(data, this);
|
|
61
|
+
}
|
|
62
|
+
static fromBinary(bytes, options) {
|
|
63
|
+
return new CheckSubgraphHealthRequest().fromBinary(bytes, options);
|
|
64
|
+
}
|
|
65
|
+
static fromJson(jsonValue, options) {
|
|
66
|
+
return new CheckSubgraphHealthRequest().fromJson(jsonValue, options);
|
|
67
|
+
}
|
|
68
|
+
static fromJsonString(jsonString, options) {
|
|
69
|
+
return new CheckSubgraphHealthRequest().fromJsonString(jsonString, options);
|
|
70
|
+
}
|
|
71
|
+
static equals(a, b) {
|
|
72
|
+
return proto3.util.equals(CheckSubgraphHealthRequest, a, b);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
CheckSubgraphHealthRequest.runtime = proto3;
|
|
76
|
+
CheckSubgraphHealthRequest.typeName = "data.v1.CheckSubgraphHealthRequest";
|
|
77
|
+
CheckSubgraphHealthRequest.fields = proto3.util.newFieldList(() => []);
|
|
78
|
+
/**
|
|
79
|
+
* @generated from message data.v1.CheckSubgraphHealthResponse
|
|
80
|
+
*/
|
|
81
|
+
export class CheckSubgraphHealthResponse extends Message {
|
|
82
|
+
constructor(data) {
|
|
83
|
+
super();
|
|
84
|
+
proto3.util.initPartial(data, this);
|
|
85
|
+
}
|
|
86
|
+
static fromBinary(bytes, options) {
|
|
87
|
+
return new CheckSubgraphHealthResponse().fromBinary(bytes, options);
|
|
88
|
+
}
|
|
89
|
+
static fromJson(jsonValue, options) {
|
|
90
|
+
return new CheckSubgraphHealthResponse().fromJson(jsonValue, options);
|
|
91
|
+
}
|
|
92
|
+
static fromJsonString(jsonString, options) {
|
|
93
|
+
return new CheckSubgraphHealthResponse().fromJsonString(jsonString, options);
|
|
94
|
+
}
|
|
95
|
+
static equals(a, b) {
|
|
96
|
+
return proto3.util.equals(CheckSubgraphHealthResponse, a, b);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
CheckSubgraphHealthResponse.runtime = proto3;
|
|
100
|
+
CheckSubgraphHealthResponse.typeName = "data.v1.CheckSubgraphHealthResponse";
|
|
101
|
+
CheckSubgraphHealthResponse.fields = proto3.util.newFieldList(() => []);
|