@uniswap/client-data-api 0.0.220 → 0.0.222
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/api_pb.d.ts +11 -10
- package/dist/data/v1/api_pb.js +16 -2
- package/dist/data/v2/api_pb.d.ts +18 -0
- package/dist/data/v2/api_pb.js +3 -0
- package/dist/data/v2/search-SearchService_connectquery.d.ts +15 -0
- package/dist/data/v2/search-SearchService_connectquery.js +19 -0
- package/dist/data/v2/search_connect.d.ts +21 -0
- package/dist/data/v2/search_connect.js +25 -0
- package/dist/data/v2/search_pb.d.ts +150 -0
- package/dist/data/v2/search_pb.js +208 -0
- package/package.json +1 -1
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -1545,19 +1545,20 @@ export declare class PoolCampaign extends Message<PoolCampaign> {
|
|
|
1545
1545
|
*/
|
|
1546
1546
|
totalRewardAllocation: string;
|
|
1547
1547
|
/**
|
|
1548
|
-
*
|
|
1549
|
-
*
|
|
1550
|
-
* refresh — daily_rewards below is price-independent.
|
|
1548
|
+
* Share of total_reward_allocation emitted so far, same units — for a
|
|
1549
|
+
* distributed-vs-total progress figure.
|
|
1551
1550
|
*
|
|
1552
|
-
*
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
*
|
|
1551
|
+
* ESTIMATE, not an upstream fact: the upstream campaigns payload reports no
|
|
1552
|
+
* distributed or claimed amount, so this is total_reward_allocation scaled by
|
|
1553
|
+
* the fraction of the campaign window elapsed. It assumes uniform emission, so
|
|
1554
|
+
* a campaign that pauses, fails, or distributes on a curve (Dutch auction)
|
|
1555
|
+
* still reads as exactly on schedule. Don't reconcile it against on-chain
|
|
1556
|
+
* claims. Computed per request, so it stays current even while the underlying
|
|
1557
|
+
* campaign data is stale.
|
|
1557
1558
|
*
|
|
1558
|
-
* @generated from field:
|
|
1559
|
+
* @generated from field: string distributed_rewards = 8;
|
|
1559
1560
|
*/
|
|
1560
|
-
|
|
1561
|
+
distributedRewards: string;
|
|
1561
1562
|
constructor(data?: PartialMessage<PoolCampaign>);
|
|
1562
1563
|
static readonly runtime: typeof proto3;
|
|
1563
1564
|
static readonly typeName = "data.v1.PoolCampaign";
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -2049,6 +2049,21 @@ export class PoolCampaign extends Message {
|
|
|
2049
2049
|
* @generated from field: string total_reward_allocation = 5;
|
|
2050
2050
|
*/
|
|
2051
2051
|
this.totalRewardAllocation = "";
|
|
2052
|
+
/**
|
|
2053
|
+
* Share of total_reward_allocation emitted so far, same units — for a
|
|
2054
|
+
* distributed-vs-total progress figure.
|
|
2055
|
+
*
|
|
2056
|
+
* ESTIMATE, not an upstream fact: the upstream campaigns payload reports no
|
|
2057
|
+
* distributed or claimed amount, so this is total_reward_allocation scaled by
|
|
2058
|
+
* the fraction of the campaign window elapsed. It assumes uniform emission, so
|
|
2059
|
+
* a campaign that pauses, fails, or distributes on a curve (Dutch auction)
|
|
2060
|
+
* still reads as exactly on schedule. Don't reconcile it against on-chain
|
|
2061
|
+
* claims. Computed per request, so it stays current even while the underlying
|
|
2062
|
+
* campaign data is stale.
|
|
2063
|
+
*
|
|
2064
|
+
* @generated from field: string distributed_rewards = 8;
|
|
2065
|
+
*/
|
|
2066
|
+
this.distributedRewards = "";
|
|
2052
2067
|
proto3.util.initPartial(data, this);
|
|
2053
2068
|
}
|
|
2054
2069
|
static fromBinary(bytes, options) {
|
|
@@ -2072,8 +2087,7 @@ PoolCampaign.fields = proto3.util.newFieldList(() => [
|
|
|
2072
2087
|
{ no: 3, name: "start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2073
2088
|
{ no: 4, name: "end_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2074
2089
|
{ no: 5, name: "total_reward_allocation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2075
|
-
{ no:
|
|
2076
|
-
{ no: 7, name: "daily_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2090
|
+
{ no: 8, name: "distributed_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2077
2091
|
]);
|
|
2078
2092
|
/**
|
|
2079
2093
|
* A pool's rewards in one reward token.
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -326,6 +326,24 @@ export declare class GetTokenHistoryVolumeRequest extends Message<GetTokenHistor
|
|
|
326
326
|
* @generated from field: repeated uint32 chain_ids = 4;
|
|
327
327
|
*/
|
|
328
328
|
chainIds: number[];
|
|
329
|
+
/**
|
|
330
|
+
* Ranged (TradingView) mode: when resolution is set (non-UNSPECIFIED) the
|
|
331
|
+
* series covers [start_time, end_time || now] at the given bucket width and
|
|
332
|
+
* duration is ignored. start_time is required in this mode; end_time defaults
|
|
333
|
+
* to now. single_chain (EVM) only. Mirrors GetTokenHistoryOHLC's ranged mode
|
|
334
|
+
* so volume buckets align with that endpoint's candles for any window.
|
|
335
|
+
*
|
|
336
|
+
* @generated from field: optional google.protobuf.Timestamp start_time = 5;
|
|
337
|
+
*/
|
|
338
|
+
startTime?: Timestamp;
|
|
339
|
+
/**
|
|
340
|
+
* @generated from field: optional google.protobuf.Timestamp end_time = 6;
|
|
341
|
+
*/
|
|
342
|
+
endTime?: Timestamp;
|
|
343
|
+
/**
|
|
344
|
+
* @generated from field: optional data.v2.OhlcResolution resolution = 7;
|
|
345
|
+
*/
|
|
346
|
+
resolution?: OhlcResolution;
|
|
329
347
|
constructor(data?: PartialMessage<GetTokenHistoryVolumeRequest>);
|
|
330
348
|
static readonly runtime: typeof proto3;
|
|
331
349
|
static readonly typeName = "data.v2.GetTokenHistoryVolumeRequest";
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -402,6 +402,9 @@ GetTokenHistoryVolumeRequest.fields = proto3.util.newFieldList(() => [
|
|
|
402
402
|
{ no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
|
|
403
403
|
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
404
404
|
{ no: 4, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
405
|
+
{ no: 5, name: "start_time", kind: "message", T: Timestamp, opt: true },
|
|
406
|
+
{ no: 6, name: "end_time", kind: "message", T: Timestamp, opt: true },
|
|
407
|
+
{ no: 7, name: "resolution", kind: "enum", T: proto3.getEnumType(OhlcResolution), opt: true },
|
|
405
408
|
]);
|
|
406
409
|
/**
|
|
407
410
|
* @generated from message data.v2.GetTokenHistoryVolumeResponse
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { SearchRequest, SearchResponse } from "./search_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from rpc data.v2.SearchService.Search
|
|
5
|
+
*/
|
|
6
|
+
export declare const search: {
|
|
7
|
+
readonly localName: "search";
|
|
8
|
+
readonly name: "Search";
|
|
9
|
+
readonly kind: MethodKind.Unary;
|
|
10
|
+
readonly I: typeof SearchRequest;
|
|
11
|
+
readonly O: typeof SearchResponse;
|
|
12
|
+
readonly service: {
|
|
13
|
+
readonly typeName: "data.v2.SearchService";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v2/search.proto (package data.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { SearchRequest, SearchResponse } from "./search_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from rpc data.v2.SearchService.Search
|
|
9
|
+
*/
|
|
10
|
+
export const search = {
|
|
11
|
+
localName: "search",
|
|
12
|
+
name: "Search",
|
|
13
|
+
kind: MethodKind.Unary,
|
|
14
|
+
I: SearchRequest,
|
|
15
|
+
O: SearchResponse,
|
|
16
|
+
service: {
|
|
17
|
+
typeName: "data.v2.SearchService"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SearchRequest, SearchResponse } from "./search_pb.js";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Search V2 (see PRD). Standalone service, mirroring data.v1's SearchService.
|
|
5
|
+
*
|
|
6
|
+
* @generated from service data.v2.SearchService
|
|
7
|
+
*/
|
|
8
|
+
export declare const SearchService: {
|
|
9
|
+
readonly typeName: "data.v2.SearchService";
|
|
10
|
+
readonly methods: {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from rpc data.v2.SearchService.Search
|
|
13
|
+
*/
|
|
14
|
+
readonly search: {
|
|
15
|
+
readonly name: "Search";
|
|
16
|
+
readonly I: typeof SearchRequest;
|
|
17
|
+
readonly O: typeof SearchResponse;
|
|
18
|
+
readonly kind: MethodKind.Unary;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v2/search.proto (package data.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { SearchRequest, SearchResponse } from "./search_pb.js";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* Search V2 (see PRD). Standalone service, mirroring data.v1's SearchService.
|
|
9
|
+
*
|
|
10
|
+
* @generated from service data.v2.SearchService
|
|
11
|
+
*/
|
|
12
|
+
export const SearchService = {
|
|
13
|
+
typeName: "data.v2.SearchService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc data.v2.SearchService.Search
|
|
17
|
+
*/
|
|
18
|
+
search: {
|
|
19
|
+
name: "Search",
|
|
20
|
+
I: SearchRequest,
|
|
21
|
+
O: SearchResponse,
|
|
22
|
+
kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { RankedMultichainToken, RankedPool } from "./types_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* @generated from enum data.v2.SearchType
|
|
6
|
+
*/
|
|
7
|
+
export declare enum SearchType {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum value: SEARCH_TYPE_UNSPECIFIED = 0;
|
|
10
|
+
*/
|
|
11
|
+
UNSPECIFIED = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: SEARCH_TYPE_TOKEN = 1;
|
|
14
|
+
*/
|
|
15
|
+
TOKEN = 1,
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: SEARCH_TYPE_POOL = 2;
|
|
18
|
+
*/
|
|
19
|
+
POOL = 2,
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: SEARCH_TYPE_AUCTION = 3;
|
|
22
|
+
*/
|
|
23
|
+
AUCTION = 3,
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: SEARCH_TYPE_CATEGORY = 4;
|
|
26
|
+
*/
|
|
27
|
+
CATEGORY = 4
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @generated from message data.v2.SearchRequest
|
|
31
|
+
*/
|
|
32
|
+
export declare class SearchRequest extends Message<SearchRequest> {
|
|
33
|
+
/**
|
|
34
|
+
* free text, or a token/pool/auction address
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string search_query = 1;
|
|
37
|
+
*/
|
|
38
|
+
searchQuery: string;
|
|
39
|
+
/**
|
|
40
|
+
* required
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
43
|
+
*/
|
|
44
|
+
chainIds: number[];
|
|
45
|
+
/**
|
|
46
|
+
* Required; only the listed result types are returned (empty returns nothing).
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: repeated data.v2.SearchType types = 3;
|
|
49
|
+
*/
|
|
50
|
+
types: SearchType[];
|
|
51
|
+
/**
|
|
52
|
+
* per-type result cap; server default and max apply
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: optional uint32 max_results = 4;
|
|
55
|
+
*/
|
|
56
|
+
maxResults?: number;
|
|
57
|
+
constructor(data?: PartialMessage<SearchRequest>);
|
|
58
|
+
static readonly runtime: typeof proto3;
|
|
59
|
+
static readonly typeName = "data.v2.SearchRequest";
|
|
60
|
+
static readonly fields: FieldList;
|
|
61
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchRequest;
|
|
62
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
63
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
64
|
+
static equals(a: SearchRequest | PlainMessage<SearchRequest> | undefined, b: SearchRequest | PlainMessage<SearchRequest> | undefined): boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message data.v2.SearchResponse
|
|
68
|
+
*/
|
|
69
|
+
export declare class SearchResponse extends Message<SearchResponse> {
|
|
70
|
+
/**
|
|
71
|
+
* Ranker-ordered, same row shape as ListTokens; hidden results (malicious,
|
|
72
|
+
* blocklisted, URL in name) are dropped server-side and never returned.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: repeated data.v2.RankedMultichainToken tokens = 1;
|
|
75
|
+
*/
|
|
76
|
+
tokens: RankedMultichainToken[];
|
|
77
|
+
/**
|
|
78
|
+
* Lower-quality matches, rendered behind the "see more" expando.
|
|
79
|
+
*
|
|
80
|
+
* @generated from field: repeated data.v2.RankedMultichainToken suppressed_tokens = 2;
|
|
81
|
+
*/
|
|
82
|
+
suppressedTokens: RankedMultichainToken[];
|
|
83
|
+
/**
|
|
84
|
+
* ordered by 24h volume
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: repeated data.v2.RankedPool pools = 3;
|
|
87
|
+
*/
|
|
88
|
+
pools: RankedPool[];
|
|
89
|
+
/**
|
|
90
|
+
* ordered by total bid volume
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: repeated data.v2.SearchAuction auctions = 4;
|
|
93
|
+
*/
|
|
94
|
+
auctions: SearchAuction[];
|
|
95
|
+
/**
|
|
96
|
+
* Matching category ids; hydrate display data from ListCategories.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: repeated string category_ids = 5;
|
|
99
|
+
*/
|
|
100
|
+
categoryIds: string[];
|
|
101
|
+
constructor(data?: PartialMessage<SearchResponse>);
|
|
102
|
+
static readonly runtime: typeof proto3;
|
|
103
|
+
static readonly typeName = "data.v2.SearchResponse";
|
|
104
|
+
static readonly fields: FieldList;
|
|
105
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchResponse;
|
|
106
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
107
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
108
|
+
static equals(a: SearchResponse | PlainMessage<SearchResponse> | undefined, b: SearchResponse | PlainMessage<SearchResponse> | undefined): boolean;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @generated from message data.v2.SearchAuction
|
|
112
|
+
*/
|
|
113
|
+
export declare class SearchAuction extends Message<SearchAuction> {
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: string auction_id = 1;
|
|
116
|
+
*/
|
|
117
|
+
auctionId: string;
|
|
118
|
+
/**
|
|
119
|
+
* @generated from field: uint32 chain_id = 2;
|
|
120
|
+
*/
|
|
121
|
+
chainId: number;
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: string auction_address = 3;
|
|
124
|
+
*/
|
|
125
|
+
auctionAddress: string;
|
|
126
|
+
/**
|
|
127
|
+
* @generated from field: string token_address = 4;
|
|
128
|
+
*/
|
|
129
|
+
tokenAddress: string;
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: string token_name = 5;
|
|
132
|
+
*/
|
|
133
|
+
tokenName: string;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: string token_symbol = 6;
|
|
136
|
+
*/
|
|
137
|
+
tokenSymbol: string;
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: string total_bid_volume_usd = 7;
|
|
140
|
+
*/
|
|
141
|
+
totalBidVolumeUsd: string;
|
|
142
|
+
constructor(data?: PartialMessage<SearchAuction>);
|
|
143
|
+
static readonly runtime: typeof proto3;
|
|
144
|
+
static readonly typeName = "data.v2.SearchAuction";
|
|
145
|
+
static readonly fields: FieldList;
|
|
146
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchAuction;
|
|
147
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchAuction;
|
|
148
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchAuction;
|
|
149
|
+
static equals(a: SearchAuction | PlainMessage<SearchAuction> | undefined, b: SearchAuction | PlainMessage<SearchAuction> | undefined): boolean;
|
|
150
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v2/search.proto (package data.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { RankedMultichainToken, RankedPool } from "./types_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum data.v2.SearchType
|
|
9
|
+
*/
|
|
10
|
+
export var SearchType;
|
|
11
|
+
(function (SearchType) {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: SEARCH_TYPE_UNSPECIFIED = 0;
|
|
14
|
+
*/
|
|
15
|
+
SearchType[SearchType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: SEARCH_TYPE_TOKEN = 1;
|
|
18
|
+
*/
|
|
19
|
+
SearchType[SearchType["TOKEN"] = 1] = "TOKEN";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: SEARCH_TYPE_POOL = 2;
|
|
22
|
+
*/
|
|
23
|
+
SearchType[SearchType["POOL"] = 2] = "POOL";
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: SEARCH_TYPE_AUCTION = 3;
|
|
26
|
+
*/
|
|
27
|
+
SearchType[SearchType["AUCTION"] = 3] = "AUCTION";
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: SEARCH_TYPE_CATEGORY = 4;
|
|
30
|
+
*/
|
|
31
|
+
SearchType[SearchType["CATEGORY"] = 4] = "CATEGORY";
|
|
32
|
+
})(SearchType || (SearchType = {}));
|
|
33
|
+
// Retrieve enum metadata with: proto3.getEnumType(SearchType)
|
|
34
|
+
proto3.util.setEnumType(SearchType, "data.v2.SearchType", [
|
|
35
|
+
{ no: 0, name: "SEARCH_TYPE_UNSPECIFIED" },
|
|
36
|
+
{ no: 1, name: "SEARCH_TYPE_TOKEN" },
|
|
37
|
+
{ no: 2, name: "SEARCH_TYPE_POOL" },
|
|
38
|
+
{ no: 3, name: "SEARCH_TYPE_AUCTION" },
|
|
39
|
+
{ no: 4, name: "SEARCH_TYPE_CATEGORY" },
|
|
40
|
+
]);
|
|
41
|
+
/**
|
|
42
|
+
* @generated from message data.v2.SearchRequest
|
|
43
|
+
*/
|
|
44
|
+
export class SearchRequest extends Message {
|
|
45
|
+
constructor(data) {
|
|
46
|
+
super();
|
|
47
|
+
/**
|
|
48
|
+
* free text, or a token/pool/auction address
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: string search_query = 1;
|
|
51
|
+
*/
|
|
52
|
+
this.searchQuery = "";
|
|
53
|
+
/**
|
|
54
|
+
* required
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
57
|
+
*/
|
|
58
|
+
this.chainIds = [];
|
|
59
|
+
/**
|
|
60
|
+
* Required; only the listed result types are returned (empty returns nothing).
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: repeated data.v2.SearchType types = 3;
|
|
63
|
+
*/
|
|
64
|
+
this.types = [];
|
|
65
|
+
proto3.util.initPartial(data, this);
|
|
66
|
+
}
|
|
67
|
+
static fromBinary(bytes, options) {
|
|
68
|
+
return new SearchRequest().fromBinary(bytes, options);
|
|
69
|
+
}
|
|
70
|
+
static fromJson(jsonValue, options) {
|
|
71
|
+
return new SearchRequest().fromJson(jsonValue, options);
|
|
72
|
+
}
|
|
73
|
+
static fromJsonString(jsonString, options) {
|
|
74
|
+
return new SearchRequest().fromJsonString(jsonString, options);
|
|
75
|
+
}
|
|
76
|
+
static equals(a, b) {
|
|
77
|
+
return proto3.util.equals(SearchRequest, a, b);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
SearchRequest.runtime = proto3;
|
|
81
|
+
SearchRequest.typeName = "data.v2.SearchRequest";
|
|
82
|
+
SearchRequest.fields = proto3.util.newFieldList(() => [
|
|
83
|
+
{ no: 1, name: "search_query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
84
|
+
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
85
|
+
{ no: 3, name: "types", kind: "enum", T: proto3.getEnumType(SearchType), repeated: true },
|
|
86
|
+
{ no: 4, name: "max_results", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
87
|
+
]);
|
|
88
|
+
/**
|
|
89
|
+
* @generated from message data.v2.SearchResponse
|
|
90
|
+
*/
|
|
91
|
+
export class SearchResponse extends Message {
|
|
92
|
+
constructor(data) {
|
|
93
|
+
super();
|
|
94
|
+
/**
|
|
95
|
+
* Ranker-ordered, same row shape as ListTokens; hidden results (malicious,
|
|
96
|
+
* blocklisted, URL in name) are dropped server-side and never returned.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: repeated data.v2.RankedMultichainToken tokens = 1;
|
|
99
|
+
*/
|
|
100
|
+
this.tokens = [];
|
|
101
|
+
/**
|
|
102
|
+
* Lower-quality matches, rendered behind the "see more" expando.
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: repeated data.v2.RankedMultichainToken suppressed_tokens = 2;
|
|
105
|
+
*/
|
|
106
|
+
this.suppressedTokens = [];
|
|
107
|
+
/**
|
|
108
|
+
* ordered by 24h volume
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: repeated data.v2.RankedPool pools = 3;
|
|
111
|
+
*/
|
|
112
|
+
this.pools = [];
|
|
113
|
+
/**
|
|
114
|
+
* ordered by total bid volume
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: repeated data.v2.SearchAuction auctions = 4;
|
|
117
|
+
*/
|
|
118
|
+
this.auctions = [];
|
|
119
|
+
/**
|
|
120
|
+
* Matching category ids; hydrate display data from ListCategories.
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: repeated string category_ids = 5;
|
|
123
|
+
*/
|
|
124
|
+
this.categoryIds = [];
|
|
125
|
+
proto3.util.initPartial(data, this);
|
|
126
|
+
}
|
|
127
|
+
static fromBinary(bytes, options) {
|
|
128
|
+
return new SearchResponse().fromBinary(bytes, options);
|
|
129
|
+
}
|
|
130
|
+
static fromJson(jsonValue, options) {
|
|
131
|
+
return new SearchResponse().fromJson(jsonValue, options);
|
|
132
|
+
}
|
|
133
|
+
static fromJsonString(jsonString, options) {
|
|
134
|
+
return new SearchResponse().fromJsonString(jsonString, options);
|
|
135
|
+
}
|
|
136
|
+
static equals(a, b) {
|
|
137
|
+
return proto3.util.equals(SearchResponse, a, b);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
SearchResponse.runtime = proto3;
|
|
141
|
+
SearchResponse.typeName = "data.v2.SearchResponse";
|
|
142
|
+
SearchResponse.fields = proto3.util.newFieldList(() => [
|
|
143
|
+
{ no: 1, name: "tokens", kind: "message", T: RankedMultichainToken, repeated: true },
|
|
144
|
+
{ no: 2, name: "suppressed_tokens", kind: "message", T: RankedMultichainToken, repeated: true },
|
|
145
|
+
{ no: 3, name: "pools", kind: "message", T: RankedPool, repeated: true },
|
|
146
|
+
{ no: 4, name: "auctions", kind: "message", T: SearchAuction, repeated: true },
|
|
147
|
+
{ no: 5, name: "category_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
148
|
+
]);
|
|
149
|
+
/**
|
|
150
|
+
* @generated from message data.v2.SearchAuction
|
|
151
|
+
*/
|
|
152
|
+
export class SearchAuction extends Message {
|
|
153
|
+
constructor(data) {
|
|
154
|
+
super();
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: string auction_id = 1;
|
|
157
|
+
*/
|
|
158
|
+
this.auctionId = "";
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: uint32 chain_id = 2;
|
|
161
|
+
*/
|
|
162
|
+
this.chainId = 0;
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: string auction_address = 3;
|
|
165
|
+
*/
|
|
166
|
+
this.auctionAddress = "";
|
|
167
|
+
/**
|
|
168
|
+
* @generated from field: string token_address = 4;
|
|
169
|
+
*/
|
|
170
|
+
this.tokenAddress = "";
|
|
171
|
+
/**
|
|
172
|
+
* @generated from field: string token_name = 5;
|
|
173
|
+
*/
|
|
174
|
+
this.tokenName = "";
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: string token_symbol = 6;
|
|
177
|
+
*/
|
|
178
|
+
this.tokenSymbol = "";
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: string total_bid_volume_usd = 7;
|
|
181
|
+
*/
|
|
182
|
+
this.totalBidVolumeUsd = "";
|
|
183
|
+
proto3.util.initPartial(data, this);
|
|
184
|
+
}
|
|
185
|
+
static fromBinary(bytes, options) {
|
|
186
|
+
return new SearchAuction().fromBinary(bytes, options);
|
|
187
|
+
}
|
|
188
|
+
static fromJson(jsonValue, options) {
|
|
189
|
+
return new SearchAuction().fromJson(jsonValue, options);
|
|
190
|
+
}
|
|
191
|
+
static fromJsonString(jsonString, options) {
|
|
192
|
+
return new SearchAuction().fromJsonString(jsonString, options);
|
|
193
|
+
}
|
|
194
|
+
static equals(a, b) {
|
|
195
|
+
return proto3.util.equals(SearchAuction, a, b);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
SearchAuction.runtime = proto3;
|
|
199
|
+
SearchAuction.typeName = "data.v2.SearchAuction";
|
|
200
|
+
SearchAuction.fields = proto3.util.newFieldList(() => [
|
|
201
|
+
{ no: 1, name: "auction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
202
|
+
{ no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
203
|
+
{ no: 3, name: "auction_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
204
|
+
{ no: 4, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
205
|
+
{ no: 5, name: "token_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
206
|
+
{ no: 6, name: "token_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
207
|
+
{ no: 7, name: "total_bid_volume_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
208
|
+
]);
|