@uniswap/client-data-api 0.0.30 → 0.0.31
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-AuctionService_connectquery.d.ts +14 -1
- package/dist/data/v1/auction-AuctionService_connectquery.js +14 -1
- package/dist/data/v1/auction_connect.d.ts +10 -1
- package/dist/data/v1/auction_connect.js +10 -1
- package/dist/data/v1/auction_pb.d.ts +71 -0
- package/dist/data/v1/auction_pb.js +113 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
2
|
+
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v1.AuctionService.GetBidsByWallet
|
|
5
5
|
*/
|
|
@@ -52,3 +52,16 @@ export declare const getLatestCheckpoint: {
|
|
|
52
52
|
readonly typeName: "data.v1.AuctionService";
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* @generated from rpc data.v1.AuctionService.GetClearingPriceHistory
|
|
57
|
+
*/
|
|
58
|
+
export declare const getClearingPriceHistory: {
|
|
59
|
+
readonly localName: "getClearingPriceHistory";
|
|
60
|
+
readonly name: "GetClearingPriceHistory";
|
|
61
|
+
readonly kind: MethodKind.Unary;
|
|
62
|
+
readonly I: typeof GetClearingPriceHistoryRequest;
|
|
63
|
+
readonly O: typeof GetClearingPriceHistoryResponse;
|
|
64
|
+
readonly service: {
|
|
65
|
+
readonly typeName: "data.v1.AuctionService";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
6
|
+
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v1.AuctionService.GetBidsByWallet
|
|
9
9
|
*/
|
|
@@ -56,3 +56,16 @@ export const getLatestCheckpoint = {
|
|
|
56
56
|
typeName: "data.v1.AuctionService"
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* @generated from rpc data.v1.AuctionService.GetClearingPriceHistory
|
|
61
|
+
*/
|
|
62
|
+
export const getClearingPriceHistory = {
|
|
63
|
+
localName: "getClearingPriceHistory",
|
|
64
|
+
name: "GetClearingPriceHistory",
|
|
65
|
+
kind: MethodKind.Unary,
|
|
66
|
+
I: GetClearingPriceHistoryRequest,
|
|
67
|
+
O: GetClearingPriceHistoryResponse,
|
|
68
|
+
service: {
|
|
69
|
+
typeName: "data.v1.AuctionService"
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
1
|
+
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v1.AuctionService
|
|
@@ -42,5 +42,14 @@ export declare const AuctionService: {
|
|
|
42
42
|
readonly O: typeof GetLatestCheckpointResponse;
|
|
43
43
|
readonly kind: MethodKind.Unary;
|
|
44
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* @generated from rpc data.v1.AuctionService.GetClearingPriceHistory
|
|
47
|
+
*/
|
|
48
|
+
readonly getClearingPriceHistory: {
|
|
49
|
+
readonly name: "GetClearingPriceHistory";
|
|
50
|
+
readonly I: typeof GetClearingPriceHistoryRequest;
|
|
51
|
+
readonly O: typeof GetClearingPriceHistoryResponse;
|
|
52
|
+
readonly kind: MethodKind.Unary;
|
|
53
|
+
};
|
|
45
54
|
};
|
|
46
55
|
};
|
|
@@ -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 { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
5
|
+
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v1.AuctionService
|
|
@@ -46,5 +46,14 @@ export const AuctionService = {
|
|
|
46
46
|
O: GetLatestCheckpointResponse,
|
|
47
47
|
kind: MethodKind.Unary,
|
|
48
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* @generated from rpc data.v1.AuctionService.GetClearingPriceHistory
|
|
51
|
+
*/
|
|
52
|
+
getClearingPriceHistory: {
|
|
53
|
+
name: "GetClearingPriceHistory",
|
|
54
|
+
I: GetClearingPriceHistoryRequest,
|
|
55
|
+
O: GetClearingPriceHistoryResponse,
|
|
56
|
+
kind: MethodKind.Unary,
|
|
57
|
+
},
|
|
49
58
|
}
|
|
50
59
|
};
|
|
@@ -424,3 +424,74 @@ export declare class GetLatestCheckpointResponse extends Message<GetLatestCheckp
|
|
|
424
424
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLatestCheckpointResponse;
|
|
425
425
|
static equals(a: GetLatestCheckpointResponse | PlainMessage<GetLatestCheckpointResponse> | undefined, b: GetLatestCheckpointResponse | PlainMessage<GetLatestCheckpointResponse> | undefined): boolean;
|
|
426
426
|
}
|
|
427
|
+
/**
|
|
428
|
+
* Request to fetch clearing price history for an auction.
|
|
429
|
+
*
|
|
430
|
+
* @generated from message data.v1.GetClearingPriceHistoryRequest
|
|
431
|
+
*/
|
|
432
|
+
export declare class GetClearingPriceHistoryRequest extends Message<GetClearingPriceHistoryRequest> {
|
|
433
|
+
/**
|
|
434
|
+
* @generated from field: int32 chain_id = 1;
|
|
435
|
+
*/
|
|
436
|
+
chainId: number;
|
|
437
|
+
/**
|
|
438
|
+
* @generated from field: string address = 2;
|
|
439
|
+
*/
|
|
440
|
+
address: string;
|
|
441
|
+
constructor(data?: PartialMessage<GetClearingPriceHistoryRequest>);
|
|
442
|
+
static readonly runtime: typeof proto3;
|
|
443
|
+
static readonly typeName = "data.v1.GetClearingPriceHistoryRequest";
|
|
444
|
+
static readonly fields: FieldList;
|
|
445
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetClearingPriceHistoryRequest;
|
|
446
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetClearingPriceHistoryRequest;
|
|
447
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetClearingPriceHistoryRequest;
|
|
448
|
+
static equals(a: GetClearingPriceHistoryRequest | PlainMessage<GetClearingPriceHistoryRequest> | undefined, b: GetClearingPriceHistoryRequest | PlainMessage<GetClearingPriceHistoryRequest> | undefined): boolean;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* A single clearing price change point.
|
|
452
|
+
*
|
|
453
|
+
* @generated from message data.v1.ClearingPriceChange
|
|
454
|
+
*/
|
|
455
|
+
export declare class ClearingPriceChange extends Message<ClearingPriceChange> {
|
|
456
|
+
/**
|
|
457
|
+
* @generated from field: string clearing_price = 1;
|
|
458
|
+
*/
|
|
459
|
+
clearingPrice: string;
|
|
460
|
+
/**
|
|
461
|
+
* ISO 8601 timestamp
|
|
462
|
+
*
|
|
463
|
+
* @generated from field: string created_at = 2;
|
|
464
|
+
*/
|
|
465
|
+
createdAt: string;
|
|
466
|
+
/**
|
|
467
|
+
* @generated from field: string start_block = 3;
|
|
468
|
+
*/
|
|
469
|
+
startBlock: string;
|
|
470
|
+
constructor(data?: PartialMessage<ClearingPriceChange>);
|
|
471
|
+
static readonly runtime: typeof proto3;
|
|
472
|
+
static readonly typeName = "data.v1.ClearingPriceChange";
|
|
473
|
+
static readonly fields: FieldList;
|
|
474
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClearingPriceChange;
|
|
475
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClearingPriceChange;
|
|
476
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClearingPriceChange;
|
|
477
|
+
static equals(a: ClearingPriceChange | PlainMessage<ClearingPriceChange> | undefined, b: ClearingPriceChange | PlainMessage<ClearingPriceChange> | undefined): boolean;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Response containing clearing price history.
|
|
481
|
+
*
|
|
482
|
+
* @generated from message data.v1.GetClearingPriceHistoryResponse
|
|
483
|
+
*/
|
|
484
|
+
export declare class GetClearingPriceHistoryResponse extends Message<GetClearingPriceHistoryResponse> {
|
|
485
|
+
/**
|
|
486
|
+
* @generated from field: repeated data.v1.ClearingPriceChange changes = 1;
|
|
487
|
+
*/
|
|
488
|
+
changes: ClearingPriceChange[];
|
|
489
|
+
constructor(data?: PartialMessage<GetClearingPriceHistoryResponse>);
|
|
490
|
+
static readonly runtime: typeof proto3;
|
|
491
|
+
static readonly typeName = "data.v1.GetClearingPriceHistoryResponse";
|
|
492
|
+
static readonly fields: FieldList;
|
|
493
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetClearingPriceHistoryResponse;
|
|
494
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetClearingPriceHistoryResponse;
|
|
495
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetClearingPriceHistoryResponse;
|
|
496
|
+
static equals(a: GetClearingPriceHistoryResponse | PlainMessage<GetClearingPriceHistoryResponse> | undefined, b: GetClearingPriceHistoryResponse | PlainMessage<GetClearingPriceHistoryResponse> | undefined): boolean;
|
|
497
|
+
}
|
|
@@ -614,3 +614,116 @@ GetLatestCheckpointResponse.typeName = "data.v1.GetLatestCheckpointResponse";
|
|
|
614
614
|
GetLatestCheckpointResponse.fields = proto3.util.newFieldList(() => [
|
|
615
615
|
{ no: 1, name: "checkpoint", kind: "message", T: Checkpoint },
|
|
616
616
|
]);
|
|
617
|
+
/**
|
|
618
|
+
* Request to fetch clearing price history for an auction.
|
|
619
|
+
*
|
|
620
|
+
* @generated from message data.v1.GetClearingPriceHistoryRequest
|
|
621
|
+
*/
|
|
622
|
+
export class GetClearingPriceHistoryRequest extends Message {
|
|
623
|
+
constructor(data) {
|
|
624
|
+
super();
|
|
625
|
+
/**
|
|
626
|
+
* @generated from field: int32 chain_id = 1;
|
|
627
|
+
*/
|
|
628
|
+
this.chainId = 0;
|
|
629
|
+
/**
|
|
630
|
+
* @generated from field: string address = 2;
|
|
631
|
+
*/
|
|
632
|
+
this.address = "";
|
|
633
|
+
proto3.util.initPartial(data, this);
|
|
634
|
+
}
|
|
635
|
+
static fromBinary(bytes, options) {
|
|
636
|
+
return new GetClearingPriceHistoryRequest().fromBinary(bytes, options);
|
|
637
|
+
}
|
|
638
|
+
static fromJson(jsonValue, options) {
|
|
639
|
+
return new GetClearingPriceHistoryRequest().fromJson(jsonValue, options);
|
|
640
|
+
}
|
|
641
|
+
static fromJsonString(jsonString, options) {
|
|
642
|
+
return new GetClearingPriceHistoryRequest().fromJsonString(jsonString, options);
|
|
643
|
+
}
|
|
644
|
+
static equals(a, b) {
|
|
645
|
+
return proto3.util.equals(GetClearingPriceHistoryRequest, a, b);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
GetClearingPriceHistoryRequest.runtime = proto3;
|
|
649
|
+
GetClearingPriceHistoryRequest.typeName = "data.v1.GetClearingPriceHistoryRequest";
|
|
650
|
+
GetClearingPriceHistoryRequest.fields = proto3.util.newFieldList(() => [
|
|
651
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
652
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
653
|
+
]);
|
|
654
|
+
/**
|
|
655
|
+
* A single clearing price change point.
|
|
656
|
+
*
|
|
657
|
+
* @generated from message data.v1.ClearingPriceChange
|
|
658
|
+
*/
|
|
659
|
+
export class ClearingPriceChange extends Message {
|
|
660
|
+
constructor(data) {
|
|
661
|
+
super();
|
|
662
|
+
/**
|
|
663
|
+
* @generated from field: string clearing_price = 1;
|
|
664
|
+
*/
|
|
665
|
+
this.clearingPrice = "";
|
|
666
|
+
/**
|
|
667
|
+
* ISO 8601 timestamp
|
|
668
|
+
*
|
|
669
|
+
* @generated from field: string created_at = 2;
|
|
670
|
+
*/
|
|
671
|
+
this.createdAt = "";
|
|
672
|
+
/**
|
|
673
|
+
* @generated from field: string start_block = 3;
|
|
674
|
+
*/
|
|
675
|
+
this.startBlock = "";
|
|
676
|
+
proto3.util.initPartial(data, this);
|
|
677
|
+
}
|
|
678
|
+
static fromBinary(bytes, options) {
|
|
679
|
+
return new ClearingPriceChange().fromBinary(bytes, options);
|
|
680
|
+
}
|
|
681
|
+
static fromJson(jsonValue, options) {
|
|
682
|
+
return new ClearingPriceChange().fromJson(jsonValue, options);
|
|
683
|
+
}
|
|
684
|
+
static fromJsonString(jsonString, options) {
|
|
685
|
+
return new ClearingPriceChange().fromJsonString(jsonString, options);
|
|
686
|
+
}
|
|
687
|
+
static equals(a, b) {
|
|
688
|
+
return proto3.util.equals(ClearingPriceChange, a, b);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
ClearingPriceChange.runtime = proto3;
|
|
692
|
+
ClearingPriceChange.typeName = "data.v1.ClearingPriceChange";
|
|
693
|
+
ClearingPriceChange.fields = proto3.util.newFieldList(() => [
|
|
694
|
+
{ no: 1, name: "clearing_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
695
|
+
{ no: 2, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
696
|
+
{ no: 3, name: "start_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
697
|
+
]);
|
|
698
|
+
/**
|
|
699
|
+
* Response containing clearing price history.
|
|
700
|
+
*
|
|
701
|
+
* @generated from message data.v1.GetClearingPriceHistoryResponse
|
|
702
|
+
*/
|
|
703
|
+
export class GetClearingPriceHistoryResponse extends Message {
|
|
704
|
+
constructor(data) {
|
|
705
|
+
super();
|
|
706
|
+
/**
|
|
707
|
+
* @generated from field: repeated data.v1.ClearingPriceChange changes = 1;
|
|
708
|
+
*/
|
|
709
|
+
this.changes = [];
|
|
710
|
+
proto3.util.initPartial(data, this);
|
|
711
|
+
}
|
|
712
|
+
static fromBinary(bytes, options) {
|
|
713
|
+
return new GetClearingPriceHistoryResponse().fromBinary(bytes, options);
|
|
714
|
+
}
|
|
715
|
+
static fromJson(jsonValue, options) {
|
|
716
|
+
return new GetClearingPriceHistoryResponse().fromJson(jsonValue, options);
|
|
717
|
+
}
|
|
718
|
+
static fromJsonString(jsonString, options) {
|
|
719
|
+
return new GetClearingPriceHistoryResponse().fromJsonString(jsonString, options);
|
|
720
|
+
}
|
|
721
|
+
static equals(a, b) {
|
|
722
|
+
return proto3.util.equals(GetClearingPriceHistoryResponse, a, b);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
GetClearingPriceHistoryResponse.runtime = proto3;
|
|
726
|
+
GetClearingPriceHistoryResponse.typeName = "data.v1.GetClearingPriceHistoryResponse";
|
|
727
|
+
GetClearingPriceHistoryResponse.fields = proto3.util.newFieldList(() => [
|
|
728
|
+
{ no: 1, name: "changes", kind: "message", T: ClearingPriceChange, repeated: true },
|
|
729
|
+
]);
|