@uniswap/client-data-api 0.0.33 → 0.0.34
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 +27 -1
- package/dist/data/v1/auction-AuctionService_connectquery.js +27 -1
- package/dist/data/v1/auction_connect.d.ts +19 -1
- package/dist/data/v1/auction_connect.js +19 -1
- package/dist/data/v1/auction_pb.d.ts +157 -0
- package/dist/data/v1/auction_pb.js +197 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
2
|
+
import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v1.AuctionService.GetBidsByWallet
|
|
5
5
|
*/
|
|
@@ -78,3 +78,29 @@ export declare const getAuctionActivity: {
|
|
|
78
78
|
readonly typeName: "data.v1.AuctionService";
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* @generated from rpc data.v1.AuctionService.GetCheckpoints
|
|
83
|
+
*/
|
|
84
|
+
export declare const getCheckpoints: {
|
|
85
|
+
readonly localName: "getCheckpoints";
|
|
86
|
+
readonly name: "GetCheckpoints";
|
|
87
|
+
readonly kind: MethodKind.Unary;
|
|
88
|
+
readonly I: typeof GetCheckpointsRequest;
|
|
89
|
+
readonly O: typeof GetCheckpointsResponse;
|
|
90
|
+
readonly service: {
|
|
91
|
+
readonly typeName: "data.v1.AuctionService";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* @generated from rpc data.v1.AuctionService.ListTopAuctions
|
|
96
|
+
*/
|
|
97
|
+
export declare const listTopAuctions: {
|
|
98
|
+
readonly localName: "listTopAuctions";
|
|
99
|
+
readonly name: "ListTopAuctions";
|
|
100
|
+
readonly kind: MethodKind.Unary;
|
|
101
|
+
readonly I: typeof ListTopAuctionsRequest;
|
|
102
|
+
readonly O: typeof ListTopAuctionsResponse;
|
|
103
|
+
readonly service: {
|
|
104
|
+
readonly typeName: "data.v1.AuctionService";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
6
|
+
import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v1.AuctionService.GetBidsByWallet
|
|
9
9
|
*/
|
|
@@ -82,3 +82,29 @@ export const getAuctionActivity = {
|
|
|
82
82
|
typeName: "data.v1.AuctionService"
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
+
/**
|
|
86
|
+
* @generated from rpc data.v1.AuctionService.GetCheckpoints
|
|
87
|
+
*/
|
|
88
|
+
export const getCheckpoints = {
|
|
89
|
+
localName: "getCheckpoints",
|
|
90
|
+
name: "GetCheckpoints",
|
|
91
|
+
kind: MethodKind.Unary,
|
|
92
|
+
I: GetCheckpointsRequest,
|
|
93
|
+
O: GetCheckpointsResponse,
|
|
94
|
+
service: {
|
|
95
|
+
typeName: "data.v1.AuctionService"
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* @generated from rpc data.v1.AuctionService.ListTopAuctions
|
|
100
|
+
*/
|
|
101
|
+
export const listTopAuctions = {
|
|
102
|
+
localName: "listTopAuctions",
|
|
103
|
+
name: "ListTopAuctions",
|
|
104
|
+
kind: MethodKind.Unary,
|
|
105
|
+
I: ListTopAuctionsRequest,
|
|
106
|
+
O: ListTopAuctionsResponse,
|
|
107
|
+
service: {
|
|
108
|
+
typeName: "data.v1.AuctionService"
|
|
109
|
+
}
|
|
110
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
1
|
+
import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v1.AuctionService
|
|
@@ -60,5 +60,23 @@ export declare const AuctionService: {
|
|
|
60
60
|
readonly O: typeof GetAuctionActivityResponse;
|
|
61
61
|
readonly kind: MethodKind.Unary;
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* @generated from rpc data.v1.AuctionService.GetCheckpoints
|
|
65
|
+
*/
|
|
66
|
+
readonly getCheckpoints: {
|
|
67
|
+
readonly name: "GetCheckpoints";
|
|
68
|
+
readonly I: typeof GetCheckpointsRequest;
|
|
69
|
+
readonly O: typeof GetCheckpointsResponse;
|
|
70
|
+
readonly kind: MethodKind.Unary;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @generated from rpc data.v1.AuctionService.ListTopAuctions
|
|
74
|
+
*/
|
|
75
|
+
readonly listTopAuctions: {
|
|
76
|
+
readonly name: "ListTopAuctions";
|
|
77
|
+
readonly I: typeof ListTopAuctionsRequest;
|
|
78
|
+
readonly O: typeof ListTopAuctionsResponse;
|
|
79
|
+
readonly kind: MethodKind.Unary;
|
|
80
|
+
};
|
|
63
81
|
};
|
|
64
82
|
};
|
|
@@ -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 { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
5
|
+
import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v1.AuctionService
|
|
@@ -64,5 +64,23 @@ export const AuctionService = {
|
|
|
64
64
|
O: GetAuctionActivityResponse,
|
|
65
65
|
kind: MethodKind.Unary,
|
|
66
66
|
},
|
|
67
|
+
/**
|
|
68
|
+
* @generated from rpc data.v1.AuctionService.GetCheckpoints
|
|
69
|
+
*/
|
|
70
|
+
getCheckpoints: {
|
|
71
|
+
name: "GetCheckpoints",
|
|
72
|
+
I: GetCheckpointsRequest,
|
|
73
|
+
O: GetCheckpointsResponse,
|
|
74
|
+
kind: MethodKind.Unary,
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* @generated from rpc data.v1.AuctionService.ListTopAuctions
|
|
78
|
+
*/
|
|
79
|
+
listTopAuctions: {
|
|
80
|
+
name: "ListTopAuctions",
|
|
81
|
+
I: ListTopAuctionsRequest,
|
|
82
|
+
O: ListTopAuctionsResponse,
|
|
83
|
+
kind: MethodKind.Unary,
|
|
84
|
+
},
|
|
67
85
|
}
|
|
68
86
|
};
|
|
@@ -400,6 +400,38 @@ export declare class Checkpoint extends Message<Checkpoint> {
|
|
|
400
400
|
* @generated from field: string currency_raised = 6;
|
|
401
401
|
*/
|
|
402
402
|
currencyRaised: string;
|
|
403
|
+
/**
|
|
404
|
+
* @generated from field: optional string auction_id = 7;
|
|
405
|
+
*/
|
|
406
|
+
auctionId?: string;
|
|
407
|
+
/**
|
|
408
|
+
* @generated from field: optional int32 chain_id = 8;
|
|
409
|
+
*/
|
|
410
|
+
chainId?: number;
|
|
411
|
+
/**
|
|
412
|
+
* bigint as string
|
|
413
|
+
*
|
|
414
|
+
* @generated from field: optional string seg_id = 9;
|
|
415
|
+
*/
|
|
416
|
+
segId?: string;
|
|
417
|
+
/**
|
|
418
|
+
* bigint as string
|
|
419
|
+
*
|
|
420
|
+
* @generated from field: optional string start_block = 10;
|
|
421
|
+
*/
|
|
422
|
+
startBlock?: string;
|
|
423
|
+
/**
|
|
424
|
+
* bigint as string (nullable)
|
|
425
|
+
*
|
|
426
|
+
* @generated from field: optional string end_block = 11;
|
|
427
|
+
*/
|
|
428
|
+
endBlock?: string;
|
|
429
|
+
/**
|
|
430
|
+
* ISO 8601 timestamp
|
|
431
|
+
*
|
|
432
|
+
* @generated from field: optional string created_at = 12;
|
|
433
|
+
*/
|
|
434
|
+
createdAt?: string;
|
|
403
435
|
constructor(data?: PartialMessage<Checkpoint>);
|
|
404
436
|
static readonly runtime: typeof proto3;
|
|
405
437
|
static readonly typeName = "data.v1.Checkpoint";
|
|
@@ -576,3 +608,128 @@ export declare class GetAuctionActivityResponse extends Message<GetAuctionActivi
|
|
|
576
608
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuctionActivityResponse;
|
|
577
609
|
static equals(a: GetAuctionActivityResponse | PlainMessage<GetAuctionActivityResponse> | undefined, b: GetAuctionActivityResponse | PlainMessage<GetAuctionActivityResponse> | undefined): boolean;
|
|
578
610
|
}
|
|
611
|
+
/**
|
|
612
|
+
* Request to fetch checkpoints for an auction
|
|
613
|
+
*
|
|
614
|
+
* @generated from message data.v1.GetCheckpointsRequest
|
|
615
|
+
*/
|
|
616
|
+
export declare class GetCheckpointsRequest extends Message<GetCheckpointsRequest> {
|
|
617
|
+
/**
|
|
618
|
+
* @generated from field: int32 chain_id = 1;
|
|
619
|
+
*/
|
|
620
|
+
chainId: number;
|
|
621
|
+
/**
|
|
622
|
+
* @generated from field: string address = 2;
|
|
623
|
+
*/
|
|
624
|
+
address: string;
|
|
625
|
+
/**
|
|
626
|
+
* Optional: cursor for pagination (clearing_price as string)
|
|
627
|
+
*
|
|
628
|
+
* @generated from field: string price_cursor = 3;
|
|
629
|
+
*/
|
|
630
|
+
priceCursor: string;
|
|
631
|
+
constructor(data?: PartialMessage<GetCheckpointsRequest>);
|
|
632
|
+
static readonly runtime: typeof proto3;
|
|
633
|
+
static readonly typeName = "data.v1.GetCheckpointsRequest";
|
|
634
|
+
static readonly fields: FieldList;
|
|
635
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCheckpointsRequest;
|
|
636
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetCheckpointsRequest;
|
|
637
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCheckpointsRequest;
|
|
638
|
+
static equals(a: GetCheckpointsRequest | PlainMessage<GetCheckpointsRequest> | undefined, b: GetCheckpointsRequest | PlainMessage<GetCheckpointsRequest> | undefined): boolean;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Response containing checkpoints for an auction
|
|
642
|
+
*
|
|
643
|
+
* @generated from message data.v1.GetCheckpointsResponse
|
|
644
|
+
*/
|
|
645
|
+
export declare class GetCheckpointsResponse extends Message<GetCheckpointsResponse> {
|
|
646
|
+
/**
|
|
647
|
+
* @generated from field: repeated data.v1.Checkpoint checkpoints = 1;
|
|
648
|
+
*/
|
|
649
|
+
checkpoints: Checkpoint[];
|
|
650
|
+
/**
|
|
651
|
+
* Next page token for pagination (next clearing_price)
|
|
652
|
+
*
|
|
653
|
+
* @generated from field: string next_page_token = 2;
|
|
654
|
+
*/
|
|
655
|
+
nextPageToken: string;
|
|
656
|
+
constructor(data?: PartialMessage<GetCheckpointsResponse>);
|
|
657
|
+
static readonly runtime: typeof proto3;
|
|
658
|
+
static readonly typeName = "data.v1.GetCheckpointsResponse";
|
|
659
|
+
static readonly fields: FieldList;
|
|
660
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCheckpointsResponse;
|
|
661
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetCheckpointsResponse;
|
|
662
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCheckpointsResponse;
|
|
663
|
+
static equals(a: GetCheckpointsResponse | PlainMessage<GetCheckpointsResponse> | undefined, b: GetCheckpointsResponse | PlainMessage<GetCheckpointsResponse> | undefined): boolean;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Request to list top auctions by total bid volume.
|
|
667
|
+
*
|
|
668
|
+
* @generated from message data.v1.ListTopAuctionsRequest
|
|
669
|
+
*/
|
|
670
|
+
export declare class ListTopAuctionsRequest extends Message<ListTopAuctionsRequest> {
|
|
671
|
+
/**
|
|
672
|
+
* Number of auctions to return (default/max TBD)
|
|
673
|
+
*
|
|
674
|
+
* @generated from field: int32 page_size = 1;
|
|
675
|
+
*/
|
|
676
|
+
pageSize: number;
|
|
677
|
+
/**
|
|
678
|
+
* Optional filter by chain IDs
|
|
679
|
+
*
|
|
680
|
+
* @generated from field: repeated int32 chain_ids = 2;
|
|
681
|
+
*/
|
|
682
|
+
chainIds: number[];
|
|
683
|
+
constructor(data?: PartialMessage<ListTopAuctionsRequest>);
|
|
684
|
+
static readonly runtime: typeof proto3;
|
|
685
|
+
static readonly typeName = "data.v1.ListTopAuctionsRequest";
|
|
686
|
+
static readonly fields: FieldList;
|
|
687
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTopAuctionsRequest;
|
|
688
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTopAuctionsRequest;
|
|
689
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopAuctionsRequest;
|
|
690
|
+
static equals(a: ListTopAuctionsRequest | PlainMessage<ListTopAuctionsRequest> | undefined, b: ListTopAuctionsRequest | PlainMessage<ListTopAuctionsRequest> | undefined): boolean;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* An auction with its total bid volume stats.
|
|
694
|
+
*
|
|
695
|
+
* @generated from message data.v1.AuctionWithStats
|
|
696
|
+
*/
|
|
697
|
+
export declare class AuctionWithStats extends Message<AuctionWithStats> {
|
|
698
|
+
/**
|
|
699
|
+
* @generated from field: data.v1.Auction auction = 1;
|
|
700
|
+
*/
|
|
701
|
+
auction?: Auction;
|
|
702
|
+
/**
|
|
703
|
+
* Sum of all bid volumes (numeric as string)
|
|
704
|
+
*
|
|
705
|
+
* @generated from field: string total_bid_volume = 2;
|
|
706
|
+
*/
|
|
707
|
+
totalBidVolume: string;
|
|
708
|
+
constructor(data?: PartialMessage<AuctionWithStats>);
|
|
709
|
+
static readonly runtime: typeof proto3;
|
|
710
|
+
static readonly typeName = "data.v1.AuctionWithStats";
|
|
711
|
+
static readonly fields: FieldList;
|
|
712
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuctionWithStats;
|
|
713
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuctionWithStats;
|
|
714
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuctionWithStats;
|
|
715
|
+
static equals(a: AuctionWithStats | PlainMessage<AuctionWithStats> | undefined, b: AuctionWithStats | PlainMessage<AuctionWithStats> | undefined): boolean;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Response containing top auctions ordered by total bid volume.
|
|
719
|
+
*
|
|
720
|
+
* @generated from message data.v1.ListTopAuctionsResponse
|
|
721
|
+
*/
|
|
722
|
+
export declare class ListTopAuctionsResponse extends Message<ListTopAuctionsResponse> {
|
|
723
|
+
/**
|
|
724
|
+
* @generated from field: repeated data.v1.AuctionWithStats auctions = 1;
|
|
725
|
+
*/
|
|
726
|
+
auctions: AuctionWithStats[];
|
|
727
|
+
constructor(data?: PartialMessage<ListTopAuctionsResponse>);
|
|
728
|
+
static readonly runtime: typeof proto3;
|
|
729
|
+
static readonly typeName = "data.v1.ListTopAuctionsResponse";
|
|
730
|
+
static readonly fields: FieldList;
|
|
731
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTopAuctionsResponse;
|
|
732
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTopAuctionsResponse;
|
|
733
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopAuctionsResponse;
|
|
734
|
+
static equals(a: ListTopAuctionsResponse | PlainMessage<ListTopAuctionsResponse> | undefined, b: ListTopAuctionsResponse | PlainMessage<ListTopAuctionsResponse> | undefined): boolean;
|
|
735
|
+
}
|
|
@@ -590,6 +590,12 @@ Checkpoint.fields = proto3.util.newFieldList(() => [
|
|
|
590
590
|
{ no: 4, name: "cumulative_mps", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
591
591
|
{ no: 5, name: "total_bid_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
592
592
|
{ no: 6, name: "currency_raised", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
593
|
+
{ no: 7, name: "auction_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
594
|
+
{ no: 8, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
595
|
+
{ no: 9, name: "seg_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
596
|
+
{ no: 10, name: "start_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
597
|
+
{ no: 11, name: "end_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
598
|
+
{ no: 12, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
593
599
|
]);
|
|
594
600
|
/**
|
|
595
601
|
* Response containing the latest checkpoint.
|
|
@@ -854,3 +860,194 @@ GetAuctionActivityResponse.typeName = "data.v1.GetAuctionActivityResponse";
|
|
|
854
860
|
GetAuctionActivityResponse.fields = proto3.util.newFieldList(() => [
|
|
855
861
|
{ no: 1, name: "activity", kind: "message", T: AuctionActivityEntry, repeated: true },
|
|
856
862
|
]);
|
|
863
|
+
/**
|
|
864
|
+
* Request to fetch checkpoints for an auction
|
|
865
|
+
*
|
|
866
|
+
* @generated from message data.v1.GetCheckpointsRequest
|
|
867
|
+
*/
|
|
868
|
+
export class GetCheckpointsRequest extends Message {
|
|
869
|
+
constructor(data) {
|
|
870
|
+
super();
|
|
871
|
+
/**
|
|
872
|
+
* @generated from field: int32 chain_id = 1;
|
|
873
|
+
*/
|
|
874
|
+
this.chainId = 0;
|
|
875
|
+
/**
|
|
876
|
+
* @generated from field: string address = 2;
|
|
877
|
+
*/
|
|
878
|
+
this.address = "";
|
|
879
|
+
/**
|
|
880
|
+
* Optional: cursor for pagination (clearing_price as string)
|
|
881
|
+
*
|
|
882
|
+
* @generated from field: string price_cursor = 3;
|
|
883
|
+
*/
|
|
884
|
+
this.priceCursor = "";
|
|
885
|
+
proto3.util.initPartial(data, this);
|
|
886
|
+
}
|
|
887
|
+
static fromBinary(bytes, options) {
|
|
888
|
+
return new GetCheckpointsRequest().fromBinary(bytes, options);
|
|
889
|
+
}
|
|
890
|
+
static fromJson(jsonValue, options) {
|
|
891
|
+
return new GetCheckpointsRequest().fromJson(jsonValue, options);
|
|
892
|
+
}
|
|
893
|
+
static fromJsonString(jsonString, options) {
|
|
894
|
+
return new GetCheckpointsRequest().fromJsonString(jsonString, options);
|
|
895
|
+
}
|
|
896
|
+
static equals(a, b) {
|
|
897
|
+
return proto3.util.equals(GetCheckpointsRequest, a, b);
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
GetCheckpointsRequest.runtime = proto3;
|
|
901
|
+
GetCheckpointsRequest.typeName = "data.v1.GetCheckpointsRequest";
|
|
902
|
+
GetCheckpointsRequest.fields = proto3.util.newFieldList(() => [
|
|
903
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
904
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
905
|
+
{ no: 3, name: "price_cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
906
|
+
]);
|
|
907
|
+
/**
|
|
908
|
+
* Response containing checkpoints for an auction
|
|
909
|
+
*
|
|
910
|
+
* @generated from message data.v1.GetCheckpointsResponse
|
|
911
|
+
*/
|
|
912
|
+
export class GetCheckpointsResponse extends Message {
|
|
913
|
+
constructor(data) {
|
|
914
|
+
super();
|
|
915
|
+
/**
|
|
916
|
+
* @generated from field: repeated data.v1.Checkpoint checkpoints = 1;
|
|
917
|
+
*/
|
|
918
|
+
this.checkpoints = [];
|
|
919
|
+
/**
|
|
920
|
+
* Next page token for pagination (next clearing_price)
|
|
921
|
+
*
|
|
922
|
+
* @generated from field: string next_page_token = 2;
|
|
923
|
+
*/
|
|
924
|
+
this.nextPageToken = "";
|
|
925
|
+
proto3.util.initPartial(data, this);
|
|
926
|
+
}
|
|
927
|
+
static fromBinary(bytes, options) {
|
|
928
|
+
return new GetCheckpointsResponse().fromBinary(bytes, options);
|
|
929
|
+
}
|
|
930
|
+
static fromJson(jsonValue, options) {
|
|
931
|
+
return new GetCheckpointsResponse().fromJson(jsonValue, options);
|
|
932
|
+
}
|
|
933
|
+
static fromJsonString(jsonString, options) {
|
|
934
|
+
return new GetCheckpointsResponse().fromJsonString(jsonString, options);
|
|
935
|
+
}
|
|
936
|
+
static equals(a, b) {
|
|
937
|
+
return proto3.util.equals(GetCheckpointsResponse, a, b);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
GetCheckpointsResponse.runtime = proto3;
|
|
941
|
+
GetCheckpointsResponse.typeName = "data.v1.GetCheckpointsResponse";
|
|
942
|
+
GetCheckpointsResponse.fields = proto3.util.newFieldList(() => [
|
|
943
|
+
{ no: 1, name: "checkpoints", kind: "message", T: Checkpoint, repeated: true },
|
|
944
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
945
|
+
]);
|
|
946
|
+
/**
|
|
947
|
+
* Request to list top auctions by total bid volume.
|
|
948
|
+
*
|
|
949
|
+
* @generated from message data.v1.ListTopAuctionsRequest
|
|
950
|
+
*/
|
|
951
|
+
export class ListTopAuctionsRequest extends Message {
|
|
952
|
+
constructor(data) {
|
|
953
|
+
super();
|
|
954
|
+
/**
|
|
955
|
+
* Number of auctions to return (default/max TBD)
|
|
956
|
+
*
|
|
957
|
+
* @generated from field: int32 page_size = 1;
|
|
958
|
+
*/
|
|
959
|
+
this.pageSize = 0;
|
|
960
|
+
/**
|
|
961
|
+
* Optional filter by chain IDs
|
|
962
|
+
*
|
|
963
|
+
* @generated from field: repeated int32 chain_ids = 2;
|
|
964
|
+
*/
|
|
965
|
+
this.chainIds = [];
|
|
966
|
+
proto3.util.initPartial(data, this);
|
|
967
|
+
}
|
|
968
|
+
static fromBinary(bytes, options) {
|
|
969
|
+
return new ListTopAuctionsRequest().fromBinary(bytes, options);
|
|
970
|
+
}
|
|
971
|
+
static fromJson(jsonValue, options) {
|
|
972
|
+
return new ListTopAuctionsRequest().fromJson(jsonValue, options);
|
|
973
|
+
}
|
|
974
|
+
static fromJsonString(jsonString, options) {
|
|
975
|
+
return new ListTopAuctionsRequest().fromJsonString(jsonString, options);
|
|
976
|
+
}
|
|
977
|
+
static equals(a, b) {
|
|
978
|
+
return proto3.util.equals(ListTopAuctionsRequest, a, b);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
ListTopAuctionsRequest.runtime = proto3;
|
|
982
|
+
ListTopAuctionsRequest.typeName = "data.v1.ListTopAuctionsRequest";
|
|
983
|
+
ListTopAuctionsRequest.fields = proto3.util.newFieldList(() => [
|
|
984
|
+
{ no: 1, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
985
|
+
{ no: 2, name: "chain_ids", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
|
|
986
|
+
]);
|
|
987
|
+
/**
|
|
988
|
+
* An auction with its total bid volume stats.
|
|
989
|
+
*
|
|
990
|
+
* @generated from message data.v1.AuctionWithStats
|
|
991
|
+
*/
|
|
992
|
+
export class AuctionWithStats extends Message {
|
|
993
|
+
constructor(data) {
|
|
994
|
+
super();
|
|
995
|
+
/**
|
|
996
|
+
* Sum of all bid volumes (numeric as string)
|
|
997
|
+
*
|
|
998
|
+
* @generated from field: string total_bid_volume = 2;
|
|
999
|
+
*/
|
|
1000
|
+
this.totalBidVolume = "";
|
|
1001
|
+
proto3.util.initPartial(data, this);
|
|
1002
|
+
}
|
|
1003
|
+
static fromBinary(bytes, options) {
|
|
1004
|
+
return new AuctionWithStats().fromBinary(bytes, options);
|
|
1005
|
+
}
|
|
1006
|
+
static fromJson(jsonValue, options) {
|
|
1007
|
+
return new AuctionWithStats().fromJson(jsonValue, options);
|
|
1008
|
+
}
|
|
1009
|
+
static fromJsonString(jsonString, options) {
|
|
1010
|
+
return new AuctionWithStats().fromJsonString(jsonString, options);
|
|
1011
|
+
}
|
|
1012
|
+
static equals(a, b) {
|
|
1013
|
+
return proto3.util.equals(AuctionWithStats, a, b);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
AuctionWithStats.runtime = proto3;
|
|
1017
|
+
AuctionWithStats.typeName = "data.v1.AuctionWithStats";
|
|
1018
|
+
AuctionWithStats.fields = proto3.util.newFieldList(() => [
|
|
1019
|
+
{ no: 1, name: "auction", kind: "message", T: Auction },
|
|
1020
|
+
{ no: 2, name: "total_bid_volume", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1021
|
+
]);
|
|
1022
|
+
/**
|
|
1023
|
+
* Response containing top auctions ordered by total bid volume.
|
|
1024
|
+
*
|
|
1025
|
+
* @generated from message data.v1.ListTopAuctionsResponse
|
|
1026
|
+
*/
|
|
1027
|
+
export class ListTopAuctionsResponse extends Message {
|
|
1028
|
+
constructor(data) {
|
|
1029
|
+
super();
|
|
1030
|
+
/**
|
|
1031
|
+
* @generated from field: repeated data.v1.AuctionWithStats auctions = 1;
|
|
1032
|
+
*/
|
|
1033
|
+
this.auctions = [];
|
|
1034
|
+
proto3.util.initPartial(data, this);
|
|
1035
|
+
}
|
|
1036
|
+
static fromBinary(bytes, options) {
|
|
1037
|
+
return new ListTopAuctionsResponse().fromBinary(bytes, options);
|
|
1038
|
+
}
|
|
1039
|
+
static fromJson(jsonValue, options) {
|
|
1040
|
+
return new ListTopAuctionsResponse().fromJson(jsonValue, options);
|
|
1041
|
+
}
|
|
1042
|
+
static fromJsonString(jsonString, options) {
|
|
1043
|
+
return new ListTopAuctionsResponse().fromJsonString(jsonString, options);
|
|
1044
|
+
}
|
|
1045
|
+
static equals(a, b) {
|
|
1046
|
+
return proto3.util.equals(ListTopAuctionsResponse, a, b);
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
ListTopAuctionsResponse.runtime = proto3;
|
|
1050
|
+
ListTopAuctionsResponse.typeName = "data.v1.ListTopAuctionsResponse";
|
|
1051
|
+
ListTopAuctionsResponse.fields = proto3.util.newFieldList(() => [
|
|
1052
|
+
{ no: 1, name: "auctions", kind: "message", T: AuctionWithStats, repeated: true },
|
|
1053
|
+
]);
|