@uniswap/client-data-api 0.0.137 → 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 +14 -1
- package/dist/data/v2/api-DataApiService_connectquery.js +14 -1
- package/dist/data/v2/api_connect.d.ts +10 -1
- package/dist/data/v2/api_connect.js +10 -1
- package/dist/data/v2/api_pb.d.ts +121 -1
- package/dist/data/v2/api_pb.js +121 -1
- package/dist/data/v2/types_pb.d.ts +118 -0
- package/dist/data/v2/types_pb.js +145 -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, ListPoolsRequest, ListPoolsResponse, 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
|
*/
|
|
@@ -78,6 +78,19 @@ export declare const listPools: {
|
|
|
78
78
|
readonly typeName: "data.v2.DataApiService";
|
|
79
79
|
};
|
|
80
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
|
+
};
|
|
81
94
|
/**
|
|
82
95
|
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
83
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, ListPoolsRequest, ListPoolsResponse, 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
|
*/
|
|
@@ -82,6 +82,19 @@ export const listPools = {
|
|
|
82
82
|
typeName: "data.v2.DataApiService"
|
|
83
83
|
}
|
|
84
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
|
+
};
|
|
85
98
|
/**
|
|
86
99
|
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
87
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, ListPoolsRequest, ListPoolsResponse, 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
|
|
@@ -60,6 +60,15 @@ export declare const DataApiService: {
|
|
|
60
60
|
readonly O: typeof ListPoolsResponse;
|
|
61
61
|
readonly kind: MethodKind.Unary;
|
|
62
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
|
+
};
|
|
63
72
|
/**
|
|
64
73
|
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
65
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, ListPoolsRequest, ListPoolsResponse, 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
|
|
@@ -64,6 +64,15 @@ export const DataApiService = {
|
|
|
64
64
|
O: ListPoolsResponse,
|
|
65
65
|
kind: MethodKind.Unary,
|
|
66
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
|
+
},
|
|
67
76
|
/**
|
|
68
77
|
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
69
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, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, 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
|
*/
|
|
@@ -1218,3 +1219,122 @@ export declare class GetWalletNftsResponse extends Message<GetWalletNftsResponse
|
|
|
1218
1219
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletNftsResponse;
|
|
1219
1220
|
static equals(a: GetWalletNftsResponse | PlainMessage<GetWalletNftsResponse> | undefined, b: GetWalletNftsResponse | PlainMessage<GetWalletNftsResponse> | undefined): boolean;
|
|
1220
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, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, 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
|
*/
|
|
@@ -1606,3 +1607,122 @@ GetWalletNftsResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1606
1607
|
{ no: 1, name: "nfts", kind: "message", T: Nft, repeated: true },
|
|
1607
1608
|
{ no: 2, name: "page", kind: "message", T: PageResponse },
|
|
1608
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
|
+
]);
|
|
@@ -261,6 +261,31 @@ export declare enum PoolTokenLogicalOperator {
|
|
|
261
261
|
*/
|
|
262
262
|
AND = 2
|
|
263
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
* @generated from enum data.v2.TransactionEventType
|
|
266
|
+
*/
|
|
267
|
+
export declare enum TransactionEventType {
|
|
268
|
+
/**
|
|
269
|
+
* @generated from enum value: TRANSACTION_EVENT_TYPE_UNSPECIFIED = 0;
|
|
270
|
+
*/
|
|
271
|
+
UNSPECIFIED = 0,
|
|
272
|
+
/**
|
|
273
|
+
* @generated from enum value: TRANSACTION_EVENT_TYPE_SWAP = 1;
|
|
274
|
+
*/
|
|
275
|
+
SWAP = 1,
|
|
276
|
+
/**
|
|
277
|
+
* mint / positive modify_liquidity
|
|
278
|
+
*
|
|
279
|
+
* @generated from enum value: TRANSACTION_EVENT_TYPE_ADD = 2;
|
|
280
|
+
*/
|
|
281
|
+
ADD = 2,
|
|
282
|
+
/**
|
|
283
|
+
* burn / negative modify_liquidity
|
|
284
|
+
*
|
|
285
|
+
* @generated from enum value: TRANSACTION_EVENT_TYPE_REMOVE = 3;
|
|
286
|
+
*/
|
|
287
|
+
REMOVE = 3
|
|
288
|
+
}
|
|
264
289
|
/**
|
|
265
290
|
* Sort field for ListLaunches; UNSPECIFIED defaults to LAUNCHED_AT (newest first).
|
|
266
291
|
*
|
|
@@ -1046,6 +1071,99 @@ export declare class RankedPool extends Message<RankedPool> {
|
|
|
1046
1071
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RankedPool;
|
|
1047
1072
|
static equals(a: RankedPool | PlainMessage<RankedPool> | undefined, b: RankedPool | PlainMessage<RankedPool> | undefined): boolean;
|
|
1048
1073
|
}
|
|
1074
|
+
/**
|
|
1075
|
+
* One token side of a pool event. amount is absolute (always positive).
|
|
1076
|
+
* amount_usd = |amount| * price; 0 when price or decimals are unavailable.
|
|
1077
|
+
*
|
|
1078
|
+
* @generated from message data.v2.TransactionTokenSide
|
|
1079
|
+
*/
|
|
1080
|
+
export declare class TransactionTokenSide extends Message<TransactionTokenSide> {
|
|
1081
|
+
/**
|
|
1082
|
+
* @generated from field: data.v2.Token token = 1;
|
|
1083
|
+
*/
|
|
1084
|
+
token?: Token;
|
|
1085
|
+
/**
|
|
1086
|
+
* decimal-adjusted absolute amount, full precision; absent when decimals unavailable
|
|
1087
|
+
*
|
|
1088
|
+
* @generated from field: optional string amount = 2;
|
|
1089
|
+
*/
|
|
1090
|
+
amount?: string;
|
|
1091
|
+
/**
|
|
1092
|
+
* @generated from field: double amount_usd = 3;
|
|
1093
|
+
*/
|
|
1094
|
+
amountUsd: number;
|
|
1095
|
+
constructor(data?: PartialMessage<TransactionTokenSide>);
|
|
1096
|
+
static readonly runtime: typeof proto3;
|
|
1097
|
+
static readonly typeName = "data.v2.TransactionTokenSide";
|
|
1098
|
+
static readonly fields: FieldList;
|
|
1099
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransactionTokenSide;
|
|
1100
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransactionTokenSide;
|
|
1101
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransactionTokenSide;
|
|
1102
|
+
static equals(a: TransactionTokenSide | PlainMessage<TransactionTokenSide> | undefined, b: TransactionTokenSide | PlainMessage<TransactionTokenSide> | undefined): boolean;
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* A single on-chain event from the global protocol feed.
|
|
1106
|
+
*
|
|
1107
|
+
* @generated from message data.v2.UniswapTransaction
|
|
1108
|
+
*/
|
|
1109
|
+
export declare class UniswapTransaction extends Message<UniswapTransaction> {
|
|
1110
|
+
/**
|
|
1111
|
+
* @generated from field: uint32 chain_id = 1;
|
|
1112
|
+
*/
|
|
1113
|
+
chainId: number;
|
|
1114
|
+
/**
|
|
1115
|
+
* @generated from field: string tx_hash = 2;
|
|
1116
|
+
*/
|
|
1117
|
+
txHash: string;
|
|
1118
|
+
/**
|
|
1119
|
+
* Unix epoch milliseconds
|
|
1120
|
+
*
|
|
1121
|
+
* @generated from field: int64 timestamp_ms = 3;
|
|
1122
|
+
*/
|
|
1123
|
+
timestampMs: bigint;
|
|
1124
|
+
/**
|
|
1125
|
+
* @generated from field: data.v2.TransactionEventType event_type = 4;
|
|
1126
|
+
*/
|
|
1127
|
+
eventType: TransactionEventType;
|
|
1128
|
+
/**
|
|
1129
|
+
* @generated from field: pools.v1.ProtocolVersion protocol_version = 5;
|
|
1130
|
+
*/
|
|
1131
|
+
protocolVersion: ProtocolVersion;
|
|
1132
|
+
/**
|
|
1133
|
+
* pool address (V2/V3) or pool_id (V4)
|
|
1134
|
+
*
|
|
1135
|
+
* @generated from field: string pool_id = 6;
|
|
1136
|
+
*/
|
|
1137
|
+
poolId: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* @generated from field: data.v2.TransactionTokenSide token0 = 7;
|
|
1140
|
+
*/
|
|
1141
|
+
token0?: TransactionTokenSide;
|
|
1142
|
+
/**
|
|
1143
|
+
* @generated from field: data.v2.TransactionTokenSide token1 = 8;
|
|
1144
|
+
*/
|
|
1145
|
+
token1?: TransactionTokenSide;
|
|
1146
|
+
/**
|
|
1147
|
+
* swap = avg of both sides; add/remove = sum
|
|
1148
|
+
*
|
|
1149
|
+
* @generated from field: double amount_usd = 9;
|
|
1150
|
+
*/
|
|
1151
|
+
amountUsd: number;
|
|
1152
|
+
/**
|
|
1153
|
+
* checksummed EVM address (tx_from)
|
|
1154
|
+
*
|
|
1155
|
+
* @generated from field: string wallet_address = 10;
|
|
1156
|
+
*/
|
|
1157
|
+
walletAddress: string;
|
|
1158
|
+
constructor(data?: PartialMessage<UniswapTransaction>);
|
|
1159
|
+
static readonly runtime: typeof proto3;
|
|
1160
|
+
static readonly typeName = "data.v2.UniswapTransaction";
|
|
1161
|
+
static readonly fields: FieldList;
|
|
1162
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UniswapTransaction;
|
|
1163
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UniswapTransaction;
|
|
1164
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UniswapTransaction;
|
|
1165
|
+
static equals(a: UniswapTransaction | PlainMessage<UniswapTransaction> | undefined, b: UniswapTransaction | PlainMessage<UniswapTransaction> | undefined): boolean;
|
|
1166
|
+
}
|
|
1049
1167
|
/**
|
|
1050
1168
|
* @generated from message data.v2.Token
|
|
1051
1169
|
*/
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -338,6 +338,39 @@ proto3.util.setEnumType(PoolTokenLogicalOperator, "data.v2.PoolTokenLogicalOpera
|
|
|
338
338
|
{ no: 1, name: "POOL_TOKEN_LOGICAL_OPERATOR_OR" },
|
|
339
339
|
{ no: 2, name: "POOL_TOKEN_LOGICAL_OPERATOR_AND" },
|
|
340
340
|
]);
|
|
341
|
+
/**
|
|
342
|
+
* @generated from enum data.v2.TransactionEventType
|
|
343
|
+
*/
|
|
344
|
+
export var TransactionEventType;
|
|
345
|
+
(function (TransactionEventType) {
|
|
346
|
+
/**
|
|
347
|
+
* @generated from enum value: TRANSACTION_EVENT_TYPE_UNSPECIFIED = 0;
|
|
348
|
+
*/
|
|
349
|
+
TransactionEventType[TransactionEventType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
350
|
+
/**
|
|
351
|
+
* @generated from enum value: TRANSACTION_EVENT_TYPE_SWAP = 1;
|
|
352
|
+
*/
|
|
353
|
+
TransactionEventType[TransactionEventType["SWAP"] = 1] = "SWAP";
|
|
354
|
+
/**
|
|
355
|
+
* mint / positive modify_liquidity
|
|
356
|
+
*
|
|
357
|
+
* @generated from enum value: TRANSACTION_EVENT_TYPE_ADD = 2;
|
|
358
|
+
*/
|
|
359
|
+
TransactionEventType[TransactionEventType["ADD"] = 2] = "ADD";
|
|
360
|
+
/**
|
|
361
|
+
* burn / negative modify_liquidity
|
|
362
|
+
*
|
|
363
|
+
* @generated from enum value: TRANSACTION_EVENT_TYPE_REMOVE = 3;
|
|
364
|
+
*/
|
|
365
|
+
TransactionEventType[TransactionEventType["REMOVE"] = 3] = "REMOVE";
|
|
366
|
+
})(TransactionEventType || (TransactionEventType = {}));
|
|
367
|
+
// Retrieve enum metadata with: proto3.getEnumType(TransactionEventType)
|
|
368
|
+
proto3.util.setEnumType(TransactionEventType, "data.v2.TransactionEventType", [
|
|
369
|
+
{ no: 0, name: "TRANSACTION_EVENT_TYPE_UNSPECIFIED" },
|
|
370
|
+
{ no: 1, name: "TRANSACTION_EVENT_TYPE_SWAP" },
|
|
371
|
+
{ no: 2, name: "TRANSACTION_EVENT_TYPE_ADD" },
|
|
372
|
+
{ no: 3, name: "TRANSACTION_EVENT_TYPE_REMOVE" },
|
|
373
|
+
]);
|
|
341
374
|
/**
|
|
342
375
|
* Sort field for ListLaunches; UNSPECIFIED defaults to LAUNCHED_AT (newest first).
|
|
343
376
|
*
|
|
@@ -1207,6 +1240,118 @@ RankedPool.fields = proto3.util.newFieldList(() => [
|
|
|
1207
1240
|
{ no: 1, name: "pool", kind: "message", T: Pool },
|
|
1208
1241
|
{ no: 2, name: "stats", kind: "message", T: PoolRankStats },
|
|
1209
1242
|
]);
|
|
1243
|
+
/**
|
|
1244
|
+
* One token side of a pool event. amount is absolute (always positive).
|
|
1245
|
+
* amount_usd = |amount| * price; 0 when price or decimals are unavailable.
|
|
1246
|
+
*
|
|
1247
|
+
* @generated from message data.v2.TransactionTokenSide
|
|
1248
|
+
*/
|
|
1249
|
+
export class TransactionTokenSide extends Message {
|
|
1250
|
+
constructor(data) {
|
|
1251
|
+
super();
|
|
1252
|
+
/**
|
|
1253
|
+
* @generated from field: double amount_usd = 3;
|
|
1254
|
+
*/
|
|
1255
|
+
this.amountUsd = 0;
|
|
1256
|
+
proto3.util.initPartial(data, this);
|
|
1257
|
+
}
|
|
1258
|
+
static fromBinary(bytes, options) {
|
|
1259
|
+
return new TransactionTokenSide().fromBinary(bytes, options);
|
|
1260
|
+
}
|
|
1261
|
+
static fromJson(jsonValue, options) {
|
|
1262
|
+
return new TransactionTokenSide().fromJson(jsonValue, options);
|
|
1263
|
+
}
|
|
1264
|
+
static fromJsonString(jsonString, options) {
|
|
1265
|
+
return new TransactionTokenSide().fromJsonString(jsonString, options);
|
|
1266
|
+
}
|
|
1267
|
+
static equals(a, b) {
|
|
1268
|
+
return proto3.util.equals(TransactionTokenSide, a, b);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
TransactionTokenSide.runtime = proto3;
|
|
1272
|
+
TransactionTokenSide.typeName = "data.v2.TransactionTokenSide";
|
|
1273
|
+
TransactionTokenSide.fields = proto3.util.newFieldList(() => [
|
|
1274
|
+
{ no: 1, name: "token", kind: "message", T: Token },
|
|
1275
|
+
{ no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1276
|
+
{ no: 3, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1277
|
+
]);
|
|
1278
|
+
/**
|
|
1279
|
+
* A single on-chain event from the global protocol feed.
|
|
1280
|
+
*
|
|
1281
|
+
* @generated from message data.v2.UniswapTransaction
|
|
1282
|
+
*/
|
|
1283
|
+
export class UniswapTransaction extends Message {
|
|
1284
|
+
constructor(data) {
|
|
1285
|
+
super();
|
|
1286
|
+
/**
|
|
1287
|
+
* @generated from field: uint32 chain_id = 1;
|
|
1288
|
+
*/
|
|
1289
|
+
this.chainId = 0;
|
|
1290
|
+
/**
|
|
1291
|
+
* @generated from field: string tx_hash = 2;
|
|
1292
|
+
*/
|
|
1293
|
+
this.txHash = "";
|
|
1294
|
+
/**
|
|
1295
|
+
* Unix epoch milliseconds
|
|
1296
|
+
*
|
|
1297
|
+
* @generated from field: int64 timestamp_ms = 3;
|
|
1298
|
+
*/
|
|
1299
|
+
this.timestampMs = protoInt64.zero;
|
|
1300
|
+
/**
|
|
1301
|
+
* @generated from field: data.v2.TransactionEventType event_type = 4;
|
|
1302
|
+
*/
|
|
1303
|
+
this.eventType = TransactionEventType.UNSPECIFIED;
|
|
1304
|
+
/**
|
|
1305
|
+
* @generated from field: pools.v1.ProtocolVersion protocol_version = 5;
|
|
1306
|
+
*/
|
|
1307
|
+
this.protocolVersion = ProtocolVersion.UNSPECIFIED;
|
|
1308
|
+
/**
|
|
1309
|
+
* pool address (V2/V3) or pool_id (V4)
|
|
1310
|
+
*
|
|
1311
|
+
* @generated from field: string pool_id = 6;
|
|
1312
|
+
*/
|
|
1313
|
+
this.poolId = "";
|
|
1314
|
+
/**
|
|
1315
|
+
* swap = avg of both sides; add/remove = sum
|
|
1316
|
+
*
|
|
1317
|
+
* @generated from field: double amount_usd = 9;
|
|
1318
|
+
*/
|
|
1319
|
+
this.amountUsd = 0;
|
|
1320
|
+
/**
|
|
1321
|
+
* checksummed EVM address (tx_from)
|
|
1322
|
+
*
|
|
1323
|
+
* @generated from field: string wallet_address = 10;
|
|
1324
|
+
*/
|
|
1325
|
+
this.walletAddress = "";
|
|
1326
|
+
proto3.util.initPartial(data, this);
|
|
1327
|
+
}
|
|
1328
|
+
static fromBinary(bytes, options) {
|
|
1329
|
+
return new UniswapTransaction().fromBinary(bytes, options);
|
|
1330
|
+
}
|
|
1331
|
+
static fromJson(jsonValue, options) {
|
|
1332
|
+
return new UniswapTransaction().fromJson(jsonValue, options);
|
|
1333
|
+
}
|
|
1334
|
+
static fromJsonString(jsonString, options) {
|
|
1335
|
+
return new UniswapTransaction().fromJsonString(jsonString, options);
|
|
1336
|
+
}
|
|
1337
|
+
static equals(a, b) {
|
|
1338
|
+
return proto3.util.equals(UniswapTransaction, a, b);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
UniswapTransaction.runtime = proto3;
|
|
1342
|
+
UniswapTransaction.typeName = "data.v2.UniswapTransaction";
|
|
1343
|
+
UniswapTransaction.fields = proto3.util.newFieldList(() => [
|
|
1344
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1345
|
+
{ no: 2, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1346
|
+
{ no: 3, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1347
|
+
{ no: 4, name: "event_type", kind: "enum", T: proto3.getEnumType(TransactionEventType) },
|
|
1348
|
+
{ no: 5, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
|
|
1349
|
+
{ no: 6, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1350
|
+
{ no: 7, name: "token0", kind: "message", T: TransactionTokenSide },
|
|
1351
|
+
{ no: 8, name: "token1", kind: "message", T: TransactionTokenSide },
|
|
1352
|
+
{ no: 9, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1353
|
+
{ no: 10, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1354
|
+
]);
|
|
1210
1355
|
/**
|
|
1211
1356
|
* @generated from message data.v2.Token
|
|
1212
1357
|
*/
|