@uniswap/client-data-api 0.0.138 → 0.0.140
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 +62 -3
- package/dist/data/v2/api_pb.js +66 -3
- package/dist/data/v2/types_pb.d.ts +75 -1
- package/dist/data/v2/types_pb.js +85 -1
- 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, ListTransactionsRequest, ListTransactionsResponse } 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, GetTokenTradesRequest, GetTokenTradesResponse, 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
|
*/
|
|
@@ -169,6 +169,19 @@ export declare const getTokenHistoryTVL: {
|
|
|
169
169
|
readonly typeName: "data.v2.DataApiService";
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
+
/**
|
|
173
|
+
* @generated from rpc data.v2.DataApiService.GetTokenTrades
|
|
174
|
+
*/
|
|
175
|
+
export declare const getTokenTrades: {
|
|
176
|
+
readonly localName: "getTokenTrades";
|
|
177
|
+
readonly name: "GetTokenTrades";
|
|
178
|
+
readonly kind: MethodKind.Unary;
|
|
179
|
+
readonly I: typeof GetTokenTradesRequest;
|
|
180
|
+
readonly O: typeof GetTokenTradesResponse;
|
|
181
|
+
readonly service: {
|
|
182
|
+
readonly typeName: "data.v2.DataApiService";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
172
185
|
/**
|
|
173
186
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
174
187
|
*/
|
|
@@ -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, ListTransactionsRequest, ListTransactionsResponse } 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, GetTokenTradesRequest, GetTokenTradesResponse, 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
|
*/
|
|
@@ -173,6 +173,19 @@ export const getTokenHistoryTVL = {
|
|
|
173
173
|
typeName: "data.v2.DataApiService"
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
|
+
/**
|
|
177
|
+
* @generated from rpc data.v2.DataApiService.GetTokenTrades
|
|
178
|
+
*/
|
|
179
|
+
export const getTokenTrades = {
|
|
180
|
+
localName: "getTokenTrades",
|
|
181
|
+
name: "GetTokenTrades",
|
|
182
|
+
kind: MethodKind.Unary,
|
|
183
|
+
I: GetTokenTradesRequest,
|
|
184
|
+
O: GetTokenTradesResponse,
|
|
185
|
+
service: {
|
|
186
|
+
typeName: "data.v2.DataApiService"
|
|
187
|
+
}
|
|
188
|
+
};
|
|
176
189
|
/**
|
|
177
190
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
178
191
|
*/
|
|
@@ -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, ListTransactionsRequest, ListTransactionsResponse } 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, GetTokenTradesRequest, GetTokenTradesResponse, 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
|
|
@@ -123,6 +123,15 @@ export declare const DataApiService: {
|
|
|
123
123
|
readonly O: typeof GetTokenHistoryTVLResponse;
|
|
124
124
|
readonly kind: MethodKind.Unary;
|
|
125
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* @generated from rpc data.v2.DataApiService.GetTokenTrades
|
|
128
|
+
*/
|
|
129
|
+
readonly getTokenTrades: {
|
|
130
|
+
readonly name: "GetTokenTrades";
|
|
131
|
+
readonly I: typeof GetTokenTradesRequest;
|
|
132
|
+
readonly O: typeof GetTokenTradesResponse;
|
|
133
|
+
readonly kind: MethodKind.Unary;
|
|
134
|
+
};
|
|
126
135
|
/**
|
|
127
136
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
128
137
|
*/
|
|
@@ -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, ListTransactionsRequest, ListTransactionsResponse } 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, GetTokenTradesRequest, GetTokenTradesResponse, 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
|
|
@@ -127,6 +127,15 @@ export const DataApiService = {
|
|
|
127
127
|
O: GetTokenHistoryTVLResponse,
|
|
128
128
|
kind: MethodKind.Unary,
|
|
129
129
|
},
|
|
130
|
+
/**
|
|
131
|
+
* @generated from rpc data.v2.DataApiService.GetTokenTrades
|
|
132
|
+
*/
|
|
133
|
+
getTokenTrades: {
|
|
134
|
+
name: "GetTokenTrades",
|
|
135
|
+
I: GetTokenTradesRequest,
|
|
136
|
+
O: GetTokenTradesResponse,
|
|
137
|
+
kind: MethodKind.Unary,
|
|
138
|
+
},
|
|
130
139
|
/**
|
|
131
140
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
132
141
|
*/
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
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, TransactionEventType, UniswapTransaction } from "./types_pb.js";
|
|
4
|
-
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
2
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
3
|
+
import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
|
|
5
4
|
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
5
|
+
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
6
6
|
import { ProtocolVersion } from "../v1/poolTypes_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from message data.v2.GetTokenMarketsRequest
|
|
@@ -361,6 +361,15 @@ export declare class GetTokenHistoryPriceRequest extends Message<GetTokenHistory
|
|
|
361
361
|
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
362
362
|
*/
|
|
363
363
|
duration: HistoryDuration;
|
|
364
|
+
/**
|
|
365
|
+
* Anchored mode: when set, the series covers [start_time, now] instead of a
|
|
366
|
+
* trailing duration window (duration is ignored). The server picks the
|
|
367
|
+
* bucket width — the finest available (1 min) for short ranges, scaled up so
|
|
368
|
+
* the series stays under ~400 points for long ones. single_chain (EVM) only.
|
|
369
|
+
*
|
|
370
|
+
* @generated from field: optional google.protobuf.Timestamp start_time = 4;
|
|
371
|
+
*/
|
|
372
|
+
startTime?: Timestamp;
|
|
364
373
|
constructor(data?: PartialMessage<GetTokenHistoryPriceRequest>);
|
|
365
374
|
static readonly runtime: typeof proto3;
|
|
366
375
|
static readonly typeName = "data.v2.GetTokenHistoryPriceRequest";
|
|
@@ -475,6 +484,56 @@ export declare class GetTokenHistoryTVLResponse extends Message<GetTokenHistoryT
|
|
|
475
484
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLResponse;
|
|
476
485
|
static equals(a: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined, b: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined): boolean;
|
|
477
486
|
}
|
|
487
|
+
/**
|
|
488
|
+
* Newest-first swap feed for a token, aggregated across ALL its pools
|
|
489
|
+
* (v2/v3/v4) on the chain. Non-swap events (mints/burns/liquidity) are
|
|
490
|
+
* excluded. Lookback is capped at 3 months. EVM-only.
|
|
491
|
+
*
|
|
492
|
+
* @generated from message data.v2.GetTokenTradesRequest
|
|
493
|
+
*/
|
|
494
|
+
export declare class GetTokenTradesRequest extends Message<GetTokenTradesRequest> {
|
|
495
|
+
/**
|
|
496
|
+
* @generated from field: data.v2.TokenIdentifier token = 1;
|
|
497
|
+
*/
|
|
498
|
+
token?: TokenIdentifier;
|
|
499
|
+
/**
|
|
500
|
+
* page_size (default 25, max 100) + page_token
|
|
501
|
+
*
|
|
502
|
+
* @generated from field: optional data.v2.PageRequest page = 2;
|
|
503
|
+
*/
|
|
504
|
+
page?: PageRequest;
|
|
505
|
+
constructor(data?: PartialMessage<GetTokenTradesRequest>);
|
|
506
|
+
static readonly runtime: typeof proto3;
|
|
507
|
+
static readonly typeName = "data.v2.GetTokenTradesRequest";
|
|
508
|
+
static readonly fields: FieldList;
|
|
509
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenTradesRequest;
|
|
510
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenTradesRequest;
|
|
511
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenTradesRequest;
|
|
512
|
+
static equals(a: GetTokenTradesRequest | PlainMessage<GetTokenTradesRequest> | undefined, b: GetTokenTradesRequest | PlainMessage<GetTokenTradesRequest> | undefined): boolean;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* @generated from message data.v2.GetTokenTradesResponse
|
|
516
|
+
*/
|
|
517
|
+
export declare class GetTokenTradesResponse extends Message<GetTokenTradesResponse> {
|
|
518
|
+
/**
|
|
519
|
+
* @generated from field: repeated data.v2.TokenTrade trades = 1;
|
|
520
|
+
*/
|
|
521
|
+
trades: TokenTrade[];
|
|
522
|
+
/**
|
|
523
|
+
* next_page_token absent on last page
|
|
524
|
+
*
|
|
525
|
+
* @generated from field: data.v2.PageResponse page = 2;
|
|
526
|
+
*/
|
|
527
|
+
page?: PageResponse;
|
|
528
|
+
constructor(data?: PartialMessage<GetTokenTradesResponse>);
|
|
529
|
+
static readonly runtime: typeof proto3;
|
|
530
|
+
static readonly typeName = "data.v2.GetTokenTradesResponse";
|
|
531
|
+
static readonly fields: FieldList;
|
|
532
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenTradesResponse;
|
|
533
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenTradesResponse;
|
|
534
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenTradesResponse;
|
|
535
|
+
static equals(a: GetTokenTradesResponse | PlainMessage<GetTokenTradesResponse> | undefined, b: GetTokenTradesResponse | PlainMessage<GetTokenTradesResponse> | undefined): boolean;
|
|
536
|
+
}
|
|
478
537
|
/**
|
|
479
538
|
* @generated from message data.v2.TvlPoint
|
|
480
539
|
*/
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// @generated from file data/v2/api.proto (package data.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
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, TransactionEventType, UniswapTransaction } from "./types_pb.js";
|
|
7
|
-
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
5
|
+
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
|
|
6
|
+
import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
|
|
8
7
|
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
8
|
+
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
9
9
|
import { ProtocolVersion } from "../v1/poolTypes_pb.js";
|
|
10
10
|
/**
|
|
11
11
|
* @generated from message data.v2.GetTokenMarketsRequest
|
|
@@ -460,6 +460,7 @@ GetTokenHistoryPriceRequest.fields = proto3.util.newFieldList(() => [
|
|
|
460
460
|
{ no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
|
|
461
461
|
{ no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
|
|
462
462
|
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
463
|
+
{ no: 4, name: "start_time", kind: "message", T: Timestamp, opt: true },
|
|
463
464
|
]);
|
|
464
465
|
/**
|
|
465
466
|
* @generated from message data.v2.GetTokenHistoryPriceResponse
|
|
@@ -605,6 +606,68 @@ GetTokenHistoryTVLResponse.typeName = "data.v2.GetTokenHistoryTVLResponse";
|
|
|
605
606
|
GetTokenHistoryTVLResponse.fields = proto3.util.newFieldList(() => [
|
|
606
607
|
{ no: 1, name: "points", kind: "message", T: TvlPoint, repeated: true },
|
|
607
608
|
]);
|
|
609
|
+
/**
|
|
610
|
+
* Newest-first swap feed for a token, aggregated across ALL its pools
|
|
611
|
+
* (v2/v3/v4) on the chain. Non-swap events (mints/burns/liquidity) are
|
|
612
|
+
* excluded. Lookback is capped at 3 months. EVM-only.
|
|
613
|
+
*
|
|
614
|
+
* @generated from message data.v2.GetTokenTradesRequest
|
|
615
|
+
*/
|
|
616
|
+
export class GetTokenTradesRequest extends Message {
|
|
617
|
+
constructor(data) {
|
|
618
|
+
super();
|
|
619
|
+
proto3.util.initPartial(data, this);
|
|
620
|
+
}
|
|
621
|
+
static fromBinary(bytes, options) {
|
|
622
|
+
return new GetTokenTradesRequest().fromBinary(bytes, options);
|
|
623
|
+
}
|
|
624
|
+
static fromJson(jsonValue, options) {
|
|
625
|
+
return new GetTokenTradesRequest().fromJson(jsonValue, options);
|
|
626
|
+
}
|
|
627
|
+
static fromJsonString(jsonString, options) {
|
|
628
|
+
return new GetTokenTradesRequest().fromJsonString(jsonString, options);
|
|
629
|
+
}
|
|
630
|
+
static equals(a, b) {
|
|
631
|
+
return proto3.util.equals(GetTokenTradesRequest, a, b);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
GetTokenTradesRequest.runtime = proto3;
|
|
635
|
+
GetTokenTradesRequest.typeName = "data.v2.GetTokenTradesRequest";
|
|
636
|
+
GetTokenTradesRequest.fields = proto3.util.newFieldList(() => [
|
|
637
|
+
{ no: 1, name: "token", kind: "message", T: TokenIdentifier },
|
|
638
|
+
{ no: 2, name: "page", kind: "message", T: PageRequest, opt: true },
|
|
639
|
+
]);
|
|
640
|
+
/**
|
|
641
|
+
* @generated from message data.v2.GetTokenTradesResponse
|
|
642
|
+
*/
|
|
643
|
+
export class GetTokenTradesResponse extends Message {
|
|
644
|
+
constructor(data) {
|
|
645
|
+
super();
|
|
646
|
+
/**
|
|
647
|
+
* @generated from field: repeated data.v2.TokenTrade trades = 1;
|
|
648
|
+
*/
|
|
649
|
+
this.trades = [];
|
|
650
|
+
proto3.util.initPartial(data, this);
|
|
651
|
+
}
|
|
652
|
+
static fromBinary(bytes, options) {
|
|
653
|
+
return new GetTokenTradesResponse().fromBinary(bytes, options);
|
|
654
|
+
}
|
|
655
|
+
static fromJson(jsonValue, options) {
|
|
656
|
+
return new GetTokenTradesResponse().fromJson(jsonValue, options);
|
|
657
|
+
}
|
|
658
|
+
static fromJsonString(jsonString, options) {
|
|
659
|
+
return new GetTokenTradesResponse().fromJsonString(jsonString, options);
|
|
660
|
+
}
|
|
661
|
+
static equals(a, b) {
|
|
662
|
+
return proto3.util.equals(GetTokenTradesResponse, a, b);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
GetTokenTradesResponse.runtime = proto3;
|
|
666
|
+
GetTokenTradesResponse.typeName = "data.v2.GetTokenTradesResponse";
|
|
667
|
+
GetTokenTradesResponse.fields = proto3.util.newFieldList(() => [
|
|
668
|
+
{ no: 1, name: "trades", kind: "message", T: TokenTrade, repeated: true },
|
|
669
|
+
{ no: 2, name: "page", kind: "message", T: PageResponse },
|
|
670
|
+
]);
|
|
608
671
|
/**
|
|
609
672
|
* @generated from message data.v2.TvlPoint
|
|
610
673
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
3
3
|
import { TimestampedValue, TokenType } from "../v1/types_pb.js";
|
|
4
4
|
import { ProtocolVersion } from "../v1/poolTypes_pb.js";
|
|
5
5
|
/**
|
|
@@ -305,6 +305,27 @@ export declare enum LaunchesOrderBy {
|
|
|
305
305
|
*/
|
|
306
306
|
VOLUME_1D = 2
|
|
307
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* The trade's direction from the trader's perspective: BUY = the trader
|
|
310
|
+
* received the requested token, SELL = the trader gave it up. UNSPECIFIED
|
|
311
|
+
* when the direction can't be derived (zero/unknown amount).
|
|
312
|
+
*
|
|
313
|
+
* @generated from enum data.v2.TradeSide
|
|
314
|
+
*/
|
|
315
|
+
export declare enum TradeSide {
|
|
316
|
+
/**
|
|
317
|
+
* @generated from enum value: TRADE_SIDE_UNSPECIFIED = 0;
|
|
318
|
+
*/
|
|
319
|
+
UNSPECIFIED = 0,
|
|
320
|
+
/**
|
|
321
|
+
* @generated from enum value: TRADE_SIDE_BUY = 1;
|
|
322
|
+
*/
|
|
323
|
+
BUY = 1,
|
|
324
|
+
/**
|
|
325
|
+
* @generated from enum value: TRADE_SIDE_SELL = 2;
|
|
326
|
+
*/
|
|
327
|
+
SELL = 2
|
|
328
|
+
}
|
|
308
329
|
/**
|
|
309
330
|
* Volume, TVL, FDV, and price-change stats for a ranked token. All values are USD-denominated.
|
|
310
331
|
* All fields are populated from Clickhouse aggregations.
|
|
@@ -1419,6 +1440,59 @@ export declare class Launch extends Message<Launch> {
|
|
|
1419
1440
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Launch;
|
|
1420
1441
|
static equals(a: Launch | PlainMessage<Launch> | undefined, b: Launch | PlainMessage<Launch> | undefined): boolean;
|
|
1421
1442
|
}
|
|
1443
|
+
/**
|
|
1444
|
+
* One swap involving the requested token, returned by GetTokenTrades.
|
|
1445
|
+
*
|
|
1446
|
+
* @generated from message data.v2.TokenTrade
|
|
1447
|
+
*/
|
|
1448
|
+
export declare class TokenTrade extends Message<TokenTrade> {
|
|
1449
|
+
/**
|
|
1450
|
+
* @generated from field: string tx_hash = 1;
|
|
1451
|
+
*/
|
|
1452
|
+
txHash: string;
|
|
1453
|
+
/**
|
|
1454
|
+
* @generated from field: data.v2.TradeSide side = 2;
|
|
1455
|
+
*/
|
|
1456
|
+
side: TradeSide;
|
|
1457
|
+
/**
|
|
1458
|
+
* The transaction's from-address (the EOA that signed it), not the router
|
|
1459
|
+
* contract that forwarded the swap to the pool.
|
|
1460
|
+
*
|
|
1461
|
+
* @generated from field: string wallet = 3;
|
|
1462
|
+
*/
|
|
1463
|
+
wallet: string;
|
|
1464
|
+
/**
|
|
1465
|
+
* Whole-swap USD value at trade time; unset when no USD price is known.
|
|
1466
|
+
*
|
|
1467
|
+
* @generated from field: optional double amount_usd = 4;
|
|
1468
|
+
*/
|
|
1469
|
+
amountUsd?: number;
|
|
1470
|
+
/**
|
|
1471
|
+
* Absolute amount of the requested token traded, decimal string in token
|
|
1472
|
+
* units (decimals applied). Empty when the token's decimals are unknown.
|
|
1473
|
+
*
|
|
1474
|
+
* @generated from field: string token_amount = 5;
|
|
1475
|
+
*/
|
|
1476
|
+
tokenAmount: string;
|
|
1477
|
+
/**
|
|
1478
|
+
* USD price of the requested token at trade time; unset when unknown.
|
|
1479
|
+
*
|
|
1480
|
+
* @generated from field: optional double price_usd = 6;
|
|
1481
|
+
*/
|
|
1482
|
+
priceUsd?: number;
|
|
1483
|
+
/**
|
|
1484
|
+
* @generated from field: google.protobuf.Timestamp timestamp = 7;
|
|
1485
|
+
*/
|
|
1486
|
+
timestamp?: Timestamp;
|
|
1487
|
+
constructor(data?: PartialMessage<TokenTrade>);
|
|
1488
|
+
static readonly runtime: typeof proto3;
|
|
1489
|
+
static readonly typeName = "data.v2.TokenTrade";
|
|
1490
|
+
static readonly fields: FieldList;
|
|
1491
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenTrade;
|
|
1492
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenTrade;
|
|
1493
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenTrade;
|
|
1494
|
+
static equals(a: TokenTrade | PlainMessage<TokenTrade> | undefined, b: TokenTrade | PlainMessage<TokenTrade> | undefined): boolean;
|
|
1495
|
+
}
|
|
1422
1496
|
/**
|
|
1423
1497
|
* @generated from message data.v2.NftImage
|
|
1424
1498
|
*/
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file data/v2/types.proto (package data.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
5
|
+
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
|
|
6
6
|
import { TimestampedValue, TokenType } from "../v1/types_pb.js";
|
|
7
7
|
import { ProtocolVersion } from "../v1/poolTypes_pb.js";
|
|
8
8
|
/**
|
|
@@ -397,6 +397,34 @@ proto3.util.setEnumType(LaunchesOrderBy, "data.v2.LaunchesOrderBy", [
|
|
|
397
397
|
{ no: 1, name: "LAUNCHES_ORDER_BY_LAUNCHED_AT" },
|
|
398
398
|
{ no: 2, name: "LAUNCHES_ORDER_BY_VOLUME_1D" },
|
|
399
399
|
]);
|
|
400
|
+
/**
|
|
401
|
+
* The trade's direction from the trader's perspective: BUY = the trader
|
|
402
|
+
* received the requested token, SELL = the trader gave it up. UNSPECIFIED
|
|
403
|
+
* when the direction can't be derived (zero/unknown amount).
|
|
404
|
+
*
|
|
405
|
+
* @generated from enum data.v2.TradeSide
|
|
406
|
+
*/
|
|
407
|
+
export var TradeSide;
|
|
408
|
+
(function (TradeSide) {
|
|
409
|
+
/**
|
|
410
|
+
* @generated from enum value: TRADE_SIDE_UNSPECIFIED = 0;
|
|
411
|
+
*/
|
|
412
|
+
TradeSide[TradeSide["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
413
|
+
/**
|
|
414
|
+
* @generated from enum value: TRADE_SIDE_BUY = 1;
|
|
415
|
+
*/
|
|
416
|
+
TradeSide[TradeSide["BUY"] = 1] = "BUY";
|
|
417
|
+
/**
|
|
418
|
+
* @generated from enum value: TRADE_SIDE_SELL = 2;
|
|
419
|
+
*/
|
|
420
|
+
TradeSide[TradeSide["SELL"] = 2] = "SELL";
|
|
421
|
+
})(TradeSide || (TradeSide = {}));
|
|
422
|
+
// Retrieve enum metadata with: proto3.getEnumType(TradeSide)
|
|
423
|
+
proto3.util.setEnumType(TradeSide, "data.v2.TradeSide", [
|
|
424
|
+
{ no: 0, name: "TRADE_SIDE_UNSPECIFIED" },
|
|
425
|
+
{ no: 1, name: "TRADE_SIDE_BUY" },
|
|
426
|
+
{ no: 2, name: "TRADE_SIDE_SELL" },
|
|
427
|
+
]);
|
|
400
428
|
/**
|
|
401
429
|
* Volume, TVL, FDV, and price-change stats for a ranked token. All values are USD-denominated.
|
|
402
430
|
* All fields are populated from Clickhouse aggregations.
|
|
@@ -1598,6 +1626,62 @@ Launch.fields = proto3.util.newFieldList(() => [
|
|
|
1598
1626
|
{ no: 9, name: "auction_end_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1599
1627
|
{ no: 10, name: "bidder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1600
1628
|
]);
|
|
1629
|
+
/**
|
|
1630
|
+
* One swap involving the requested token, returned by GetTokenTrades.
|
|
1631
|
+
*
|
|
1632
|
+
* @generated from message data.v2.TokenTrade
|
|
1633
|
+
*/
|
|
1634
|
+
export class TokenTrade extends Message {
|
|
1635
|
+
constructor(data) {
|
|
1636
|
+
super();
|
|
1637
|
+
/**
|
|
1638
|
+
* @generated from field: string tx_hash = 1;
|
|
1639
|
+
*/
|
|
1640
|
+
this.txHash = "";
|
|
1641
|
+
/**
|
|
1642
|
+
* @generated from field: data.v2.TradeSide side = 2;
|
|
1643
|
+
*/
|
|
1644
|
+
this.side = TradeSide.UNSPECIFIED;
|
|
1645
|
+
/**
|
|
1646
|
+
* The transaction's from-address (the EOA that signed it), not the router
|
|
1647
|
+
* contract that forwarded the swap to the pool.
|
|
1648
|
+
*
|
|
1649
|
+
* @generated from field: string wallet = 3;
|
|
1650
|
+
*/
|
|
1651
|
+
this.wallet = "";
|
|
1652
|
+
/**
|
|
1653
|
+
* Absolute amount of the requested token traded, decimal string in token
|
|
1654
|
+
* units (decimals applied). Empty when the token's decimals are unknown.
|
|
1655
|
+
*
|
|
1656
|
+
* @generated from field: string token_amount = 5;
|
|
1657
|
+
*/
|
|
1658
|
+
this.tokenAmount = "";
|
|
1659
|
+
proto3.util.initPartial(data, this);
|
|
1660
|
+
}
|
|
1661
|
+
static fromBinary(bytes, options) {
|
|
1662
|
+
return new TokenTrade().fromBinary(bytes, options);
|
|
1663
|
+
}
|
|
1664
|
+
static fromJson(jsonValue, options) {
|
|
1665
|
+
return new TokenTrade().fromJson(jsonValue, options);
|
|
1666
|
+
}
|
|
1667
|
+
static fromJsonString(jsonString, options) {
|
|
1668
|
+
return new TokenTrade().fromJsonString(jsonString, options);
|
|
1669
|
+
}
|
|
1670
|
+
static equals(a, b) {
|
|
1671
|
+
return proto3.util.equals(TokenTrade, a, b);
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
TokenTrade.runtime = proto3;
|
|
1675
|
+
TokenTrade.typeName = "data.v2.TokenTrade";
|
|
1676
|
+
TokenTrade.fields = proto3.util.newFieldList(() => [
|
|
1677
|
+
{ no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1678
|
+
{ no: 2, name: "side", kind: "enum", T: proto3.getEnumType(TradeSide) },
|
|
1679
|
+
{ no: 3, name: "wallet", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1680
|
+
{ no: 4, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1681
|
+
{ no: 5, name: "token_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1682
|
+
{ no: 6, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1683
|
+
{ no: 7, name: "timestamp", kind: "message", T: Timestamp },
|
|
1684
|
+
]);
|
|
1601
1685
|
/**
|
|
1602
1686
|
* @generated from message data.v2.NftImage
|
|
1603
1687
|
*/
|