@uniswap/client-data-api 0.0.136 → 0.0.138
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/v2/api-DataApiService_connectquery.d.ts +27 -1
- package/dist/data/v2/api-DataApiService_connectquery.js +27 -1
- package/dist/data/v2/api_connect.d.ts +19 -1
- package/dist/data/v2/api_connect.js +19 -1
- package/dist/data/v2/api_pb.d.ts +181 -1
- package/dist/data/v2/api_pb.js +191 -1
- package/dist/data/v2/types_pb.d.ts +445 -0
- package/dist/data/v2/types_pb.js +506 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
2
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse, ListTransactionsRequest, ListTransactionsResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
5
5
|
*/
|
|
@@ -65,6 +65,32 @@ export declare const listTokens: {
|
|
|
65
65
|
readonly typeName: "data.v2.DataApiService";
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* @generated from rpc data.v2.DataApiService.ListPools
|
|
70
|
+
*/
|
|
71
|
+
export declare const listPools: {
|
|
72
|
+
readonly localName: "listPools";
|
|
73
|
+
readonly name: "ListPools";
|
|
74
|
+
readonly kind: MethodKind.Unary;
|
|
75
|
+
readonly I: typeof ListPoolsRequest;
|
|
76
|
+
readonly O: typeof ListPoolsResponse;
|
|
77
|
+
readonly service: {
|
|
78
|
+
readonly typeName: "data.v2.DataApiService";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* @generated from rpc data.v2.DataApiService.ListTransactions
|
|
83
|
+
*/
|
|
84
|
+
export declare const listTransactions: {
|
|
85
|
+
readonly localName: "listTransactions";
|
|
86
|
+
readonly name: "ListTransactions";
|
|
87
|
+
readonly kind: MethodKind.Unary;
|
|
88
|
+
readonly I: typeof ListTransactionsRequest;
|
|
89
|
+
readonly O: typeof ListTransactionsResponse;
|
|
90
|
+
readonly service: {
|
|
91
|
+
readonly typeName: "data.v2.DataApiService";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
68
94
|
/**
|
|
69
95
|
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
70
96
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
6
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse, ListTransactionsRequest, ListTransactionsResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
9
9
|
*/
|
|
@@ -69,6 +69,32 @@ export const listTokens = {
|
|
|
69
69
|
typeName: "data.v2.DataApiService"
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* @generated from rpc data.v2.DataApiService.ListPools
|
|
74
|
+
*/
|
|
75
|
+
export const listPools = {
|
|
76
|
+
localName: "listPools",
|
|
77
|
+
name: "ListPools",
|
|
78
|
+
kind: MethodKind.Unary,
|
|
79
|
+
I: ListPoolsRequest,
|
|
80
|
+
O: ListPoolsResponse,
|
|
81
|
+
service: {
|
|
82
|
+
typeName: "data.v2.DataApiService"
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* @generated from rpc data.v2.DataApiService.ListTransactions
|
|
87
|
+
*/
|
|
88
|
+
export const listTransactions = {
|
|
89
|
+
localName: "listTransactions",
|
|
90
|
+
name: "ListTransactions",
|
|
91
|
+
kind: MethodKind.Unary,
|
|
92
|
+
I: ListTransactionsRequest,
|
|
93
|
+
O: ListTransactionsResponse,
|
|
94
|
+
service: {
|
|
95
|
+
typeName: "data.v2.DataApiService"
|
|
96
|
+
}
|
|
97
|
+
};
|
|
72
98
|
/**
|
|
73
99
|
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
74
100
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
1
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse, ListTransactionsRequest, ListTransactionsResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v2.DataApiService
|
|
@@ -51,6 +51,24 @@ export declare const DataApiService: {
|
|
|
51
51
|
readonly O: typeof ListTokensResponse;
|
|
52
52
|
readonly kind: MethodKind.Unary;
|
|
53
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* @generated from rpc data.v2.DataApiService.ListPools
|
|
56
|
+
*/
|
|
57
|
+
readonly listPools: {
|
|
58
|
+
readonly name: "ListPools";
|
|
59
|
+
readonly I: typeof ListPoolsRequest;
|
|
60
|
+
readonly O: typeof ListPoolsResponse;
|
|
61
|
+
readonly kind: MethodKind.Unary;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @generated from rpc data.v2.DataApiService.ListTransactions
|
|
65
|
+
*/
|
|
66
|
+
readonly listTransactions: {
|
|
67
|
+
readonly name: "ListTransactions";
|
|
68
|
+
readonly I: typeof ListTransactionsRequest;
|
|
69
|
+
readonly O: typeof ListTransactionsResponse;
|
|
70
|
+
readonly kind: MethodKind.Unary;
|
|
71
|
+
};
|
|
54
72
|
/**
|
|
55
73
|
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
56
74
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file data/v2/api.proto (package data.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
5
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse, ListTransactionsRequest, ListTransactionsResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v2.DataApiService
|
|
@@ -55,6 +55,24 @@ export const DataApiService = {
|
|
|
55
55
|
O: ListTokensResponse,
|
|
56
56
|
kind: MethodKind.Unary,
|
|
57
57
|
},
|
|
58
|
+
/**
|
|
59
|
+
* @generated from rpc data.v2.DataApiService.ListPools
|
|
60
|
+
*/
|
|
61
|
+
listPools: {
|
|
62
|
+
name: "ListPools",
|
|
63
|
+
I: ListPoolsRequest,
|
|
64
|
+
O: ListPoolsResponse,
|
|
65
|
+
kind: MethodKind.Unary,
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* @generated from rpc data.v2.DataApiService.ListTransactions
|
|
69
|
+
*/
|
|
70
|
+
listTransactions: {
|
|
71
|
+
name: "ListTransactions",
|
|
72
|
+
I: ListTransactionsRequest,
|
|
73
|
+
O: ListTransactionsResponse,
|
|
74
|
+
kind: MethodKind.Unary,
|
|
75
|
+
},
|
|
58
76
|
/**
|
|
59
77
|
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
60
78
|
*/
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
|
|
3
|
+
import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TransactionEventType, UniswapTransaction } from "./types_pb.js";
|
|
4
4
|
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
5
5
|
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
6
|
+
import { ProtocolVersion } from "../v1/poolTypes_pb.js";
|
|
6
7
|
/**
|
|
7
8
|
* @generated from message data.v2.GetTokenMarketsRequest
|
|
8
9
|
*/
|
|
@@ -1095,6 +1096,66 @@ export declare class ListTokensResponse extends Message<ListTokensResponse> {
|
|
|
1095
1096
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTokensResponse;
|
|
1096
1097
|
static equals(a: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined, b: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined): boolean;
|
|
1097
1098
|
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Ranked pool discovery: one RankedPool per pool, ordered by the requested
|
|
1101
|
+
* stat. Sorted by (sort.order_by, pool_id ASC) — pool_id is the tiebreaker so
|
|
1102
|
+
* keyset pagination stays stable when two pools share a sort value.
|
|
1103
|
+
*
|
|
1104
|
+
* @generated from message data.v2.ListPoolsRequest
|
|
1105
|
+
*/
|
|
1106
|
+
export declare class ListPoolsRequest extends Message<ListPoolsRequest> {
|
|
1107
|
+
/**
|
|
1108
|
+
* required
|
|
1109
|
+
*
|
|
1110
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
1111
|
+
*/
|
|
1112
|
+
chainIds: number[];
|
|
1113
|
+
/**
|
|
1114
|
+
* @generated from field: optional data.v2.PoolsSort sort = 2;
|
|
1115
|
+
*/
|
|
1116
|
+
sort?: PoolsSort;
|
|
1117
|
+
/**
|
|
1118
|
+
* @generated from field: optional data.v2.PoolListFilter filter = 3;
|
|
1119
|
+
*/
|
|
1120
|
+
filter?: PoolListFilter;
|
|
1121
|
+
/**
|
|
1122
|
+
* page_size (default 100, max 100) + page_token
|
|
1123
|
+
*
|
|
1124
|
+
* @generated from field: optional data.v2.PageRequest page = 4;
|
|
1125
|
+
*/
|
|
1126
|
+
page?: PageRequest;
|
|
1127
|
+
constructor(data?: PartialMessage<ListPoolsRequest>);
|
|
1128
|
+
static readonly runtime: typeof proto3;
|
|
1129
|
+
static readonly typeName = "data.v2.ListPoolsRequest";
|
|
1130
|
+
static readonly fields: FieldList;
|
|
1131
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPoolsRequest;
|
|
1132
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPoolsRequest;
|
|
1133
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsRequest;
|
|
1134
|
+
static equals(a: ListPoolsRequest | PlainMessage<ListPoolsRequest> | undefined, b: ListPoolsRequest | PlainMessage<ListPoolsRequest> | undefined): boolean;
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* @generated from message data.v2.ListPoolsResponse
|
|
1138
|
+
*/
|
|
1139
|
+
export declare class ListPoolsResponse extends Message<ListPoolsResponse> {
|
|
1140
|
+
/**
|
|
1141
|
+
* @generated from field: repeated data.v2.RankedPool pools = 1;
|
|
1142
|
+
*/
|
|
1143
|
+
pools: RankedPool[];
|
|
1144
|
+
/**
|
|
1145
|
+
* next_page_token absent on last page
|
|
1146
|
+
*
|
|
1147
|
+
* @generated from field: data.v2.PageResponse page = 2;
|
|
1148
|
+
*/
|
|
1149
|
+
page?: PageResponse;
|
|
1150
|
+
constructor(data?: PartialMessage<ListPoolsResponse>);
|
|
1151
|
+
static readonly runtime: typeof proto3;
|
|
1152
|
+
static readonly typeName = "data.v2.ListPoolsResponse";
|
|
1153
|
+
static readonly fields: FieldList;
|
|
1154
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPoolsResponse;
|
|
1155
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPoolsResponse;
|
|
1156
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsResponse;
|
|
1157
|
+
static equals(a: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined, b: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined): boolean;
|
|
1158
|
+
}
|
|
1098
1159
|
/**
|
|
1099
1160
|
* Wallet NFT balances. EVM-only: a single owner_address covers all supported
|
|
1100
1161
|
* EVM chains. Spam is returned and flagged by default; malicious is always dropped.
|
|
@@ -1158,3 +1219,122 @@ export declare class GetWalletNftsResponse extends Message<GetWalletNftsResponse
|
|
|
1158
1219
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletNftsResponse;
|
|
1159
1220
|
static equals(a: GetWalletNftsResponse | PlainMessage<GetWalletNftsResponse> | undefined, b: GetWalletNftsResponse | PlainMessage<GetWalletNftsResponse> | undefined): boolean;
|
|
1160
1221
|
}
|
|
1222
|
+
/**
|
|
1223
|
+
* Server-side filters applied before pagination.
|
|
1224
|
+
* Omitting token_scope returns the global feed (Explore page feed).
|
|
1225
|
+
*
|
|
1226
|
+
* @generated from message data.v2.TransactionListFilter
|
|
1227
|
+
*/
|
|
1228
|
+
export declare class TransactionListFilter extends Message<TransactionListFilter> {
|
|
1229
|
+
/**
|
|
1230
|
+
* empty = all (V2 + V3 + V4)
|
|
1231
|
+
*
|
|
1232
|
+
* @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 1;
|
|
1233
|
+
*/
|
|
1234
|
+
protocolVersions: ProtocolVersion[];
|
|
1235
|
+
/**
|
|
1236
|
+
* empty = all (swap + add + remove)
|
|
1237
|
+
*
|
|
1238
|
+
* @generated from field: repeated data.v2.TransactionEventType event_types = 2;
|
|
1239
|
+
*/
|
|
1240
|
+
eventTypes: TransactionEventType[];
|
|
1241
|
+
/**
|
|
1242
|
+
* default false (spam excluded)
|
|
1243
|
+
*
|
|
1244
|
+
* @generated from field: optional bool include_spam = 3;
|
|
1245
|
+
*/
|
|
1246
|
+
includeSpam?: boolean;
|
|
1247
|
+
/**
|
|
1248
|
+
* @generated from oneof data.v2.TransactionListFilter.token_scope
|
|
1249
|
+
*/
|
|
1250
|
+
tokenScope: {
|
|
1251
|
+
/**
|
|
1252
|
+
* pool address (V2/V3) or poolId bytes32 (V4); absent = global feed
|
|
1253
|
+
*
|
|
1254
|
+
* @generated from field: string pool_id = 4;
|
|
1255
|
+
*/
|
|
1256
|
+
value: string;
|
|
1257
|
+
case: "poolId";
|
|
1258
|
+
} | {
|
|
1259
|
+
/**
|
|
1260
|
+
* @generated from field: string multichain_id = 5;
|
|
1261
|
+
*/
|
|
1262
|
+
value: string;
|
|
1263
|
+
case: "multichainId";
|
|
1264
|
+
} | {
|
|
1265
|
+
/**
|
|
1266
|
+
* 1..100 tokens; feed includes txs touching ANY of them
|
|
1267
|
+
*
|
|
1268
|
+
* @generated from field: data.v2.TokenIdentifierList tokens_on_chain = 6;
|
|
1269
|
+
*/
|
|
1270
|
+
value: TokenIdentifierList;
|
|
1271
|
+
case: "tokensOnChain";
|
|
1272
|
+
} | {
|
|
1273
|
+
case: undefined;
|
|
1274
|
+
value?: undefined;
|
|
1275
|
+
};
|
|
1276
|
+
constructor(data?: PartialMessage<TransactionListFilter>);
|
|
1277
|
+
static readonly runtime: typeof proto3;
|
|
1278
|
+
static readonly typeName = "data.v2.TransactionListFilter";
|
|
1279
|
+
static readonly fields: FieldList;
|
|
1280
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransactionListFilter;
|
|
1281
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransactionListFilter;
|
|
1282
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransactionListFilter;
|
|
1283
|
+
static equals(a: TransactionListFilter | PlainMessage<TransactionListFilter> | undefined, b: TransactionListFilter | PlainMessage<TransactionListFilter> | undefined): boolean;
|
|
1284
|
+
}
|
|
1285
|
+
/**
|
|
1286
|
+
* Global protocol transaction feed, newest first. Sorted by
|
|
1287
|
+
* (timestamp_ms DESC, chain_id ASC, global_sequence_number DESC); the opaque
|
|
1288
|
+
* page_token encodes all three so a next page resumes exactly.
|
|
1289
|
+
*
|
|
1290
|
+
* @generated from message data.v2.ListTransactionsRequest
|
|
1291
|
+
*/
|
|
1292
|
+
export declare class ListTransactionsRequest extends Message<ListTransactionsRequest> {
|
|
1293
|
+
/**
|
|
1294
|
+
* required
|
|
1295
|
+
*
|
|
1296
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
1297
|
+
*/
|
|
1298
|
+
chainIds: number[];
|
|
1299
|
+
/**
|
|
1300
|
+
* @generated from field: optional data.v2.TransactionListFilter filter = 2;
|
|
1301
|
+
*/
|
|
1302
|
+
filter?: TransactionListFilter;
|
|
1303
|
+
/**
|
|
1304
|
+
* page_size (default 100, max 100) + page_token
|
|
1305
|
+
*
|
|
1306
|
+
* @generated from field: optional data.v2.PageRequest page = 3;
|
|
1307
|
+
*/
|
|
1308
|
+
page?: PageRequest;
|
|
1309
|
+
constructor(data?: PartialMessage<ListTransactionsRequest>);
|
|
1310
|
+
static readonly runtime: typeof proto3;
|
|
1311
|
+
static readonly typeName = "data.v2.ListTransactionsRequest";
|
|
1312
|
+
static readonly fields: FieldList;
|
|
1313
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTransactionsRequest;
|
|
1314
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTransactionsRequest;
|
|
1315
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTransactionsRequest;
|
|
1316
|
+
static equals(a: ListTransactionsRequest | PlainMessage<ListTransactionsRequest> | undefined, b: ListTransactionsRequest | PlainMessage<ListTransactionsRequest> | undefined): boolean;
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* @generated from message data.v2.ListTransactionsResponse
|
|
1320
|
+
*/
|
|
1321
|
+
export declare class ListTransactionsResponse extends Message<ListTransactionsResponse> {
|
|
1322
|
+
/**
|
|
1323
|
+
* @generated from field: repeated data.v2.UniswapTransaction transactions = 1;
|
|
1324
|
+
*/
|
|
1325
|
+
transactions: UniswapTransaction[];
|
|
1326
|
+
/**
|
|
1327
|
+
* next_page_token absent on last page
|
|
1328
|
+
*
|
|
1329
|
+
* @generated from field: data.v2.PageResponse page = 2;
|
|
1330
|
+
*/
|
|
1331
|
+
page?: PageResponse;
|
|
1332
|
+
constructor(data?: PartialMessage<ListTransactionsResponse>);
|
|
1333
|
+
static readonly runtime: typeof proto3;
|
|
1334
|
+
static readonly typeName = "data.v2.ListTransactionsResponse";
|
|
1335
|
+
static readonly fields: FieldList;
|
|
1336
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTransactionsResponse;
|
|
1337
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTransactionsResponse;
|
|
1338
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTransactionsResponse;
|
|
1339
|
+
static equals(a: ListTransactionsResponse | PlainMessage<ListTransactionsResponse> | undefined, b: ListTransactionsResponse | PlainMessage<ListTransactionsResponse> | undefined): boolean;
|
|
1340
|
+
}
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
|
-
import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
|
|
6
|
+
import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TransactionEventType, UniswapTransaction } from "./types_pb.js";
|
|
7
7
|
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
8
8
|
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
9
|
+
import { ProtocolVersion } from "../v1/poolTypes_pb.js";
|
|
9
10
|
/**
|
|
10
11
|
* @generated from message data.v2.GetTokenMarketsRequest
|
|
11
12
|
*/
|
|
@@ -1461,6 +1462,76 @@ ListTokensResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1461
1462
|
{ no: 1, name: "multichain_tokens", kind: "message", T: RankedMultichainToken, repeated: true },
|
|
1462
1463
|
{ no: 2, name: "page", kind: "message", T: PageResponse },
|
|
1463
1464
|
]);
|
|
1465
|
+
/**
|
|
1466
|
+
* Ranked pool discovery: one RankedPool per pool, ordered by the requested
|
|
1467
|
+
* stat. Sorted by (sort.order_by, pool_id ASC) — pool_id is the tiebreaker so
|
|
1468
|
+
* keyset pagination stays stable when two pools share a sort value.
|
|
1469
|
+
*
|
|
1470
|
+
* @generated from message data.v2.ListPoolsRequest
|
|
1471
|
+
*/
|
|
1472
|
+
export class ListPoolsRequest extends Message {
|
|
1473
|
+
constructor(data) {
|
|
1474
|
+
super();
|
|
1475
|
+
/**
|
|
1476
|
+
* required
|
|
1477
|
+
*
|
|
1478
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
1479
|
+
*/
|
|
1480
|
+
this.chainIds = [];
|
|
1481
|
+
proto3.util.initPartial(data, this);
|
|
1482
|
+
}
|
|
1483
|
+
static fromBinary(bytes, options) {
|
|
1484
|
+
return new ListPoolsRequest().fromBinary(bytes, options);
|
|
1485
|
+
}
|
|
1486
|
+
static fromJson(jsonValue, options) {
|
|
1487
|
+
return new ListPoolsRequest().fromJson(jsonValue, options);
|
|
1488
|
+
}
|
|
1489
|
+
static fromJsonString(jsonString, options) {
|
|
1490
|
+
return new ListPoolsRequest().fromJsonString(jsonString, options);
|
|
1491
|
+
}
|
|
1492
|
+
static equals(a, b) {
|
|
1493
|
+
return proto3.util.equals(ListPoolsRequest, a, b);
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
ListPoolsRequest.runtime = proto3;
|
|
1497
|
+
ListPoolsRequest.typeName = "data.v2.ListPoolsRequest";
|
|
1498
|
+
ListPoolsRequest.fields = proto3.util.newFieldList(() => [
|
|
1499
|
+
{ no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1500
|
+
{ no: 2, name: "sort", kind: "message", T: PoolsSort, opt: true },
|
|
1501
|
+
{ no: 3, name: "filter", kind: "message", T: PoolListFilter, opt: true },
|
|
1502
|
+
{ no: 4, name: "page", kind: "message", T: PageRequest, opt: true },
|
|
1503
|
+
]);
|
|
1504
|
+
/**
|
|
1505
|
+
* @generated from message data.v2.ListPoolsResponse
|
|
1506
|
+
*/
|
|
1507
|
+
export class ListPoolsResponse extends Message {
|
|
1508
|
+
constructor(data) {
|
|
1509
|
+
super();
|
|
1510
|
+
/**
|
|
1511
|
+
* @generated from field: repeated data.v2.RankedPool pools = 1;
|
|
1512
|
+
*/
|
|
1513
|
+
this.pools = [];
|
|
1514
|
+
proto3.util.initPartial(data, this);
|
|
1515
|
+
}
|
|
1516
|
+
static fromBinary(bytes, options) {
|
|
1517
|
+
return new ListPoolsResponse().fromBinary(bytes, options);
|
|
1518
|
+
}
|
|
1519
|
+
static fromJson(jsonValue, options) {
|
|
1520
|
+
return new ListPoolsResponse().fromJson(jsonValue, options);
|
|
1521
|
+
}
|
|
1522
|
+
static fromJsonString(jsonString, options) {
|
|
1523
|
+
return new ListPoolsResponse().fromJsonString(jsonString, options);
|
|
1524
|
+
}
|
|
1525
|
+
static equals(a, b) {
|
|
1526
|
+
return proto3.util.equals(ListPoolsResponse, a, b);
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
ListPoolsResponse.runtime = proto3;
|
|
1530
|
+
ListPoolsResponse.typeName = "data.v2.ListPoolsResponse";
|
|
1531
|
+
ListPoolsResponse.fields = proto3.util.newFieldList(() => [
|
|
1532
|
+
{ no: 1, name: "pools", kind: "message", T: RankedPool, repeated: true },
|
|
1533
|
+
{ no: 2, name: "page", kind: "message", T: PageResponse },
|
|
1534
|
+
]);
|
|
1464
1535
|
/**
|
|
1465
1536
|
* Wallet NFT balances. EVM-only: a single owner_address covers all supported
|
|
1466
1537
|
* EVM chains. Spam is returned and flagged by default; malicious is always dropped.
|
|
@@ -1536,3 +1607,122 @@ GetWalletNftsResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1536
1607
|
{ no: 1, name: "nfts", kind: "message", T: Nft, repeated: true },
|
|
1537
1608
|
{ no: 2, name: "page", kind: "message", T: PageResponse },
|
|
1538
1609
|
]);
|
|
1610
|
+
/**
|
|
1611
|
+
* Server-side filters applied before pagination.
|
|
1612
|
+
* Omitting token_scope returns the global feed (Explore page feed).
|
|
1613
|
+
*
|
|
1614
|
+
* @generated from message data.v2.TransactionListFilter
|
|
1615
|
+
*/
|
|
1616
|
+
export class TransactionListFilter extends Message {
|
|
1617
|
+
constructor(data) {
|
|
1618
|
+
super();
|
|
1619
|
+
/**
|
|
1620
|
+
* empty = all (V2 + V3 + V4)
|
|
1621
|
+
*
|
|
1622
|
+
* @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 1;
|
|
1623
|
+
*/
|
|
1624
|
+
this.protocolVersions = [];
|
|
1625
|
+
/**
|
|
1626
|
+
* empty = all (swap + add + remove)
|
|
1627
|
+
*
|
|
1628
|
+
* @generated from field: repeated data.v2.TransactionEventType event_types = 2;
|
|
1629
|
+
*/
|
|
1630
|
+
this.eventTypes = [];
|
|
1631
|
+
/**
|
|
1632
|
+
* @generated from oneof data.v2.TransactionListFilter.token_scope
|
|
1633
|
+
*/
|
|
1634
|
+
this.tokenScope = { case: undefined };
|
|
1635
|
+
proto3.util.initPartial(data, this);
|
|
1636
|
+
}
|
|
1637
|
+
static fromBinary(bytes, options) {
|
|
1638
|
+
return new TransactionListFilter().fromBinary(bytes, options);
|
|
1639
|
+
}
|
|
1640
|
+
static fromJson(jsonValue, options) {
|
|
1641
|
+
return new TransactionListFilter().fromJson(jsonValue, options);
|
|
1642
|
+
}
|
|
1643
|
+
static fromJsonString(jsonString, options) {
|
|
1644
|
+
return new TransactionListFilter().fromJsonString(jsonString, options);
|
|
1645
|
+
}
|
|
1646
|
+
static equals(a, b) {
|
|
1647
|
+
return proto3.util.equals(TransactionListFilter, a, b);
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
TransactionListFilter.runtime = proto3;
|
|
1651
|
+
TransactionListFilter.typeName = "data.v2.TransactionListFilter";
|
|
1652
|
+
TransactionListFilter.fields = proto3.util.newFieldList(() => [
|
|
1653
|
+
{ no: 1, name: "protocol_versions", kind: "enum", T: proto3.getEnumType(ProtocolVersion), repeated: true },
|
|
1654
|
+
{ no: 2, name: "event_types", kind: "enum", T: proto3.getEnumType(TransactionEventType), repeated: true },
|
|
1655
|
+
{ no: 3, name: "include_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1656
|
+
{ no: 4, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "token_scope" },
|
|
1657
|
+
{ no: 5, name: "multichain_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "token_scope" },
|
|
1658
|
+
{ no: 6, name: "tokens_on_chain", kind: "message", T: TokenIdentifierList, oneof: "token_scope" },
|
|
1659
|
+
]);
|
|
1660
|
+
/**
|
|
1661
|
+
* Global protocol transaction feed, newest first. Sorted by
|
|
1662
|
+
* (timestamp_ms DESC, chain_id ASC, global_sequence_number DESC); the opaque
|
|
1663
|
+
* page_token encodes all three so a next page resumes exactly.
|
|
1664
|
+
*
|
|
1665
|
+
* @generated from message data.v2.ListTransactionsRequest
|
|
1666
|
+
*/
|
|
1667
|
+
export class ListTransactionsRequest extends Message {
|
|
1668
|
+
constructor(data) {
|
|
1669
|
+
super();
|
|
1670
|
+
/**
|
|
1671
|
+
* required
|
|
1672
|
+
*
|
|
1673
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
1674
|
+
*/
|
|
1675
|
+
this.chainIds = [];
|
|
1676
|
+
proto3.util.initPartial(data, this);
|
|
1677
|
+
}
|
|
1678
|
+
static fromBinary(bytes, options) {
|
|
1679
|
+
return new ListTransactionsRequest().fromBinary(bytes, options);
|
|
1680
|
+
}
|
|
1681
|
+
static fromJson(jsonValue, options) {
|
|
1682
|
+
return new ListTransactionsRequest().fromJson(jsonValue, options);
|
|
1683
|
+
}
|
|
1684
|
+
static fromJsonString(jsonString, options) {
|
|
1685
|
+
return new ListTransactionsRequest().fromJsonString(jsonString, options);
|
|
1686
|
+
}
|
|
1687
|
+
static equals(a, b) {
|
|
1688
|
+
return proto3.util.equals(ListTransactionsRequest, a, b);
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
ListTransactionsRequest.runtime = proto3;
|
|
1692
|
+
ListTransactionsRequest.typeName = "data.v2.ListTransactionsRequest";
|
|
1693
|
+
ListTransactionsRequest.fields = proto3.util.newFieldList(() => [
|
|
1694
|
+
{ no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1695
|
+
{ no: 2, name: "filter", kind: "message", T: TransactionListFilter, opt: true },
|
|
1696
|
+
{ no: 3, name: "page", kind: "message", T: PageRequest, opt: true },
|
|
1697
|
+
]);
|
|
1698
|
+
/**
|
|
1699
|
+
* @generated from message data.v2.ListTransactionsResponse
|
|
1700
|
+
*/
|
|
1701
|
+
export class ListTransactionsResponse extends Message {
|
|
1702
|
+
constructor(data) {
|
|
1703
|
+
super();
|
|
1704
|
+
/**
|
|
1705
|
+
* @generated from field: repeated data.v2.UniswapTransaction transactions = 1;
|
|
1706
|
+
*/
|
|
1707
|
+
this.transactions = [];
|
|
1708
|
+
proto3.util.initPartial(data, this);
|
|
1709
|
+
}
|
|
1710
|
+
static fromBinary(bytes, options) {
|
|
1711
|
+
return new ListTransactionsResponse().fromBinary(bytes, options);
|
|
1712
|
+
}
|
|
1713
|
+
static fromJson(jsonValue, options) {
|
|
1714
|
+
return new ListTransactionsResponse().fromJson(jsonValue, options);
|
|
1715
|
+
}
|
|
1716
|
+
static fromJsonString(jsonString, options) {
|
|
1717
|
+
return new ListTransactionsResponse().fromJsonString(jsonString, options);
|
|
1718
|
+
}
|
|
1719
|
+
static equals(a, b) {
|
|
1720
|
+
return proto3.util.equals(ListTransactionsResponse, a, b);
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
ListTransactionsResponse.runtime = proto3;
|
|
1724
|
+
ListTransactionsResponse.typeName = "data.v2.ListTransactionsResponse";
|
|
1725
|
+
ListTransactionsResponse.fields = proto3.util.newFieldList(() => [
|
|
1726
|
+
{ no: 1, name: "transactions", kind: "message", T: UniswapTransaction, repeated: true },
|
|
1727
|
+
{ no: 2, name: "page", kind: "message", T: PageResponse },
|
|
1728
|
+
]);
|