@uniswap/client-data-api 0.0.253 → 0.0.255
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/v1/api-DataApiService_connectquery.d.ts +1 -40
- package/dist/data/v1/api-DataApiService_connectquery.js +1 -40
- package/dist/data/v1/api_connect.d.ts +1 -28
- package/dist/data/v1/api_connect.js +1 -28
- package/dist/data/v1/api_pb.d.ts +1 -155
- package/dist/data/v1/api_pb.js +1 -213
- package/dist/data/v1/poolTypes_pb.d.ts +0 -41
- package/dist/data/v1/poolTypes_pb.js +0 -60
- package/dist/data/v2/categories_pb.d.ts +1 -1
- package/dist/data/v2/categories_pb.js +1 -1
- package/dist/data/v2/search_pb.d.ts +13 -1
- package/dist/data/v2/search_pb.js +3 -1
- package/dist/data/v2/types_pb.d.ts +61 -0
- package/dist/data/v2/types_pb.js +72 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse,
|
|
2
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
|
|
5
5
|
*/
|
|
@@ -143,45 +143,6 @@ export declare const verifyTokenFactoryImage: {
|
|
|
143
143
|
readonly typeName: "data.v1.DataApiService";
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
|
-
/**
|
|
147
|
-
* @generated from rpc data.v1.DataApiService.GetPair
|
|
148
|
-
*/
|
|
149
|
-
export declare const getPair: {
|
|
150
|
-
readonly localName: "getPair";
|
|
151
|
-
readonly name: "GetPair";
|
|
152
|
-
readonly kind: MethodKind.Unary;
|
|
153
|
-
readonly I: typeof GetPairRequest;
|
|
154
|
-
readonly O: typeof GetPairResponse;
|
|
155
|
-
readonly service: {
|
|
156
|
-
readonly typeName: "data.v1.DataApiService";
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* @generated from rpc data.v1.DataApiService.GetPool
|
|
161
|
-
*/
|
|
162
|
-
export declare const getPool: {
|
|
163
|
-
readonly localName: "getPool";
|
|
164
|
-
readonly name: "GetPool";
|
|
165
|
-
readonly kind: MethodKind.Unary;
|
|
166
|
-
readonly I: typeof GetPoolRequest;
|
|
167
|
-
readonly O: typeof GetPoolResponse;
|
|
168
|
-
readonly service: {
|
|
169
|
-
readonly typeName: "data.v1.DataApiService";
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* @generated from rpc data.v1.DataApiService.GetPosition
|
|
174
|
-
*/
|
|
175
|
-
export declare const getPosition: {
|
|
176
|
-
readonly localName: "getPosition";
|
|
177
|
-
readonly name: "GetPosition";
|
|
178
|
-
readonly kind: MethodKind.Unary;
|
|
179
|
-
readonly I: typeof GetPositionRequest;
|
|
180
|
-
readonly O: typeof GetPositionResponse;
|
|
181
|
-
readonly service: {
|
|
182
|
-
readonly typeName: "data.v1.DataApiService";
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
146
|
/**
|
|
186
147
|
* @generated from rpc data.v1.DataApiService.ListPools
|
|
187
148
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse,
|
|
6
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
|
|
9
9
|
*/
|
|
@@ -147,45 +147,6 @@ export const verifyTokenFactoryImage = {
|
|
|
147
147
|
typeName: "data.v1.DataApiService"
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
/**
|
|
151
|
-
* @generated from rpc data.v1.DataApiService.GetPair
|
|
152
|
-
*/
|
|
153
|
-
export const getPair = {
|
|
154
|
-
localName: "getPair",
|
|
155
|
-
name: "GetPair",
|
|
156
|
-
kind: MethodKind.Unary,
|
|
157
|
-
I: GetPairRequest,
|
|
158
|
-
O: GetPairResponse,
|
|
159
|
-
service: {
|
|
160
|
-
typeName: "data.v1.DataApiService"
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* @generated from rpc data.v1.DataApiService.GetPool
|
|
165
|
-
*/
|
|
166
|
-
export const getPool = {
|
|
167
|
-
localName: "getPool",
|
|
168
|
-
name: "GetPool",
|
|
169
|
-
kind: MethodKind.Unary,
|
|
170
|
-
I: GetPoolRequest,
|
|
171
|
-
O: GetPoolResponse,
|
|
172
|
-
service: {
|
|
173
|
-
typeName: "data.v1.DataApiService"
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* @generated from rpc data.v1.DataApiService.GetPosition
|
|
178
|
-
*/
|
|
179
|
-
export const getPosition = {
|
|
180
|
-
localName: "getPosition",
|
|
181
|
-
name: "GetPosition",
|
|
182
|
-
kind: MethodKind.Unary,
|
|
183
|
-
I: GetPositionRequest,
|
|
184
|
-
O: GetPositionResponse,
|
|
185
|
-
service: {
|
|
186
|
-
typeName: "data.v1.DataApiService"
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
150
|
/**
|
|
190
151
|
* @generated from rpc data.v1.DataApiService.ListPools
|
|
191
152
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse,
|
|
1
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v1.DataApiService
|
|
@@ -105,33 +105,6 @@ export declare const DataApiService: {
|
|
|
105
105
|
readonly O: typeof VerifyTokenFactoryImageResponse;
|
|
106
106
|
readonly kind: MethodKind.Unary;
|
|
107
107
|
};
|
|
108
|
-
/**
|
|
109
|
-
* @generated from rpc data.v1.DataApiService.GetPair
|
|
110
|
-
*/
|
|
111
|
-
readonly getPair: {
|
|
112
|
-
readonly name: "GetPair";
|
|
113
|
-
readonly I: typeof GetPairRequest;
|
|
114
|
-
readonly O: typeof GetPairResponse;
|
|
115
|
-
readonly kind: MethodKind.Unary;
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* @generated from rpc data.v1.DataApiService.GetPool
|
|
119
|
-
*/
|
|
120
|
-
readonly getPool: {
|
|
121
|
-
readonly name: "GetPool";
|
|
122
|
-
readonly I: typeof GetPoolRequest;
|
|
123
|
-
readonly O: typeof GetPoolResponse;
|
|
124
|
-
readonly kind: MethodKind.Unary;
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* @generated from rpc data.v1.DataApiService.GetPosition
|
|
128
|
-
*/
|
|
129
|
-
readonly getPosition: {
|
|
130
|
-
readonly name: "GetPosition";
|
|
131
|
-
readonly I: typeof GetPositionRequest;
|
|
132
|
-
readonly O: typeof GetPositionResponse;
|
|
133
|
-
readonly kind: MethodKind.Unary;
|
|
134
|
-
};
|
|
135
108
|
/**
|
|
136
109
|
* @generated from rpc data.v1.DataApiService.ListPools
|
|
137
110
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file data/v1/api.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse,
|
|
5
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v1.DataApiService
|
|
@@ -109,33 +109,6 @@ export const DataApiService = {
|
|
|
109
109
|
O: VerifyTokenFactoryImageResponse,
|
|
110
110
|
kind: MethodKind.Unary,
|
|
111
111
|
},
|
|
112
|
-
/**
|
|
113
|
-
* @generated from rpc data.v1.DataApiService.GetPair
|
|
114
|
-
*/
|
|
115
|
-
getPair: {
|
|
116
|
-
name: "GetPair",
|
|
117
|
-
I: GetPairRequest,
|
|
118
|
-
O: GetPairResponse,
|
|
119
|
-
kind: MethodKind.Unary,
|
|
120
|
-
},
|
|
121
|
-
/**
|
|
122
|
-
* @generated from rpc data.v1.DataApiService.GetPool
|
|
123
|
-
*/
|
|
124
|
-
getPool: {
|
|
125
|
-
name: "GetPool",
|
|
126
|
-
I: GetPoolRequest,
|
|
127
|
-
O: GetPoolResponse,
|
|
128
|
-
kind: MethodKind.Unary,
|
|
129
|
-
},
|
|
130
|
-
/**
|
|
131
|
-
* @generated from rpc data.v1.DataApiService.GetPosition
|
|
132
|
-
*/
|
|
133
|
-
getPosition: {
|
|
134
|
-
name: "GetPosition",
|
|
135
|
-
I: GetPositionRequest,
|
|
136
|
-
O: GetPositionResponse,
|
|
137
|
-
kind: MethodKind.Unary,
|
|
138
|
-
},
|
|
139
112
|
/**
|
|
140
113
|
* @generated from rpc data.v1.DataApiService.ListPools
|
|
141
114
|
*/
|
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
3
|
import { ChainTokenProfitLoss, Contract, MultichainToken, MultichainTokenProfitLoss, Pool as Pool$1, PoolRef, Portfolio, PortfolioValueModifier, Token, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Pool, ProtocolVersion, RewardBalance, Token as Token$1 } from "./poolTypes_pb.js";
|
|
5
5
|
/**
|
|
6
6
|
* @generated from enum data.v1.Platform
|
|
7
7
|
*/
|
|
@@ -824,160 +824,6 @@ export declare enum VerifyTokenFactoryImageResponse_Status {
|
|
|
824
824
|
*/
|
|
825
825
|
BLOCKED = 2
|
|
826
826
|
}
|
|
827
|
-
/**
|
|
828
|
-
* @generated from message data.v1.GetPairRequest
|
|
829
|
-
*/
|
|
830
|
-
export declare class GetPairRequest extends Message<GetPairRequest> {
|
|
831
|
-
/**
|
|
832
|
-
* @generated from field: uint32 chain_id = 1;
|
|
833
|
-
*/
|
|
834
|
-
chainId: number;
|
|
835
|
-
/**
|
|
836
|
-
* @generated from field: string pair_address = 2;
|
|
837
|
-
*/
|
|
838
|
-
pairAddress: string;
|
|
839
|
-
constructor(data?: PartialMessage<GetPairRequest>);
|
|
840
|
-
static readonly runtime: typeof proto3;
|
|
841
|
-
static readonly typeName = "data.v1.GetPairRequest";
|
|
842
|
-
static readonly fields: FieldList;
|
|
843
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPairRequest;
|
|
844
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPairRequest;
|
|
845
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPairRequest;
|
|
846
|
-
static equals(a: GetPairRequest | PlainMessage<GetPairRequest> | undefined, b: GetPairRequest | PlainMessage<GetPairRequest> | undefined): boolean;
|
|
847
|
-
}
|
|
848
|
-
/**
|
|
849
|
-
* @generated from message data.v1.GetPairResponse
|
|
850
|
-
*/
|
|
851
|
-
export declare class GetPairResponse extends Message<GetPairResponse> {
|
|
852
|
-
/**
|
|
853
|
-
* @generated from field: pools.v1.Pair pair = 1;
|
|
854
|
-
*/
|
|
855
|
-
pair?: Pair;
|
|
856
|
-
constructor(data?: PartialMessage<GetPairResponse>);
|
|
857
|
-
static readonly runtime: typeof proto3;
|
|
858
|
-
static readonly typeName = "data.v1.GetPairResponse";
|
|
859
|
-
static readonly fields: FieldList;
|
|
860
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPairResponse;
|
|
861
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPairResponse;
|
|
862
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPairResponse;
|
|
863
|
-
static equals(a: GetPairResponse | PlainMessage<GetPairResponse> | undefined, b: GetPairResponse | PlainMessage<GetPairResponse> | undefined): boolean;
|
|
864
|
-
}
|
|
865
|
-
/**
|
|
866
|
-
* @generated from message data.v1.GetPoolRequest
|
|
867
|
-
*/
|
|
868
|
-
export declare class GetPoolRequest extends Message<GetPoolRequest> {
|
|
869
|
-
/**
|
|
870
|
-
* @generated from field: uint32 chain_id = 1;
|
|
871
|
-
*/
|
|
872
|
-
chainId: number;
|
|
873
|
-
/**
|
|
874
|
-
* @generated from field: string pool_id = 2;
|
|
875
|
-
*/
|
|
876
|
-
poolId: string;
|
|
877
|
-
/**
|
|
878
|
-
* @generated from field: pools.v1.ProtocolVersion protocol_version = 3;
|
|
879
|
-
*/
|
|
880
|
-
protocolVersion: ProtocolVersion;
|
|
881
|
-
/**
|
|
882
|
-
* @generated from field: optional bool include_volume_30d = 4;
|
|
883
|
-
*/
|
|
884
|
-
includeVolume30d?: boolean;
|
|
885
|
-
constructor(data?: PartialMessage<GetPoolRequest>);
|
|
886
|
-
static readonly runtime: typeof proto3;
|
|
887
|
-
static readonly typeName = "data.v1.GetPoolRequest";
|
|
888
|
-
static readonly fields: FieldList;
|
|
889
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolRequest;
|
|
890
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolRequest;
|
|
891
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolRequest;
|
|
892
|
-
static equals(a: GetPoolRequest | PlainMessage<GetPoolRequest> | undefined, b: GetPoolRequest | PlainMessage<GetPoolRequest> | undefined): boolean;
|
|
893
|
-
}
|
|
894
|
-
/**
|
|
895
|
-
* @generated from message data.v1.GetPoolResponse
|
|
896
|
-
*/
|
|
897
|
-
export declare class GetPoolResponse extends Message<GetPoolResponse> {
|
|
898
|
-
/**
|
|
899
|
-
* @generated from field: pools.v1.Pool pool = 1;
|
|
900
|
-
*/
|
|
901
|
-
pool?: Pool;
|
|
902
|
-
constructor(data?: PartialMessage<GetPoolResponse>);
|
|
903
|
-
static readonly runtime: typeof proto3;
|
|
904
|
-
static readonly typeName = "data.v1.GetPoolResponse";
|
|
905
|
-
static readonly fields: FieldList;
|
|
906
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolResponse;
|
|
907
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolResponse;
|
|
908
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolResponse;
|
|
909
|
-
static equals(a: GetPoolResponse | PlainMessage<GetPoolResponse> | undefined, b: GetPoolResponse | PlainMessage<GetPoolResponse> | undefined): boolean;
|
|
910
|
-
}
|
|
911
|
-
/**
|
|
912
|
-
* @generated from message data.v1.GetPositionRequest
|
|
913
|
-
*/
|
|
914
|
-
export declare class GetPositionRequest extends Message<GetPositionRequest> {
|
|
915
|
-
/**
|
|
916
|
-
* @generated from field: uint32 chain_id = 1;
|
|
917
|
-
*/
|
|
918
|
-
chainId: number;
|
|
919
|
-
/**
|
|
920
|
-
* @generated from field: pools.v1.ProtocolVersion protocol_version = 2;
|
|
921
|
-
*/
|
|
922
|
-
protocolVersion: ProtocolVersion;
|
|
923
|
-
/**
|
|
924
|
-
* required for V3/V4
|
|
925
|
-
*
|
|
926
|
-
* @generated from field: string token_id = 3;
|
|
927
|
-
*/
|
|
928
|
-
tokenId: string;
|
|
929
|
-
/**
|
|
930
|
-
* required for V2
|
|
931
|
-
*
|
|
932
|
-
* @generated from field: string pair_address = 4;
|
|
933
|
-
*/
|
|
934
|
-
pairAddress: string;
|
|
935
|
-
/**
|
|
936
|
-
* required for V2
|
|
937
|
-
*
|
|
938
|
-
* @generated from field: string owner = 5;
|
|
939
|
-
*/
|
|
940
|
-
owner: string;
|
|
941
|
-
/**
|
|
942
|
-
* if true, fallback to onchain data for pool data
|
|
943
|
-
*
|
|
944
|
-
* @generated from field: optional bool fallback_to_chain = 6;
|
|
945
|
-
*/
|
|
946
|
-
fallbackToChain?: boolean;
|
|
947
|
-
/**
|
|
948
|
-
* Selector for V4: if true, resolve tokenId against the PermissionedPositionManager
|
|
949
|
-
* instead of the canonical V4 PositionManager. Default false (canonical). A tokenId
|
|
950
|
-
* is only unique within one manager, so the caller must indicate which to query.
|
|
951
|
-
*
|
|
952
|
-
* @generated from field: optional bool permissioned = 7;
|
|
953
|
-
*/
|
|
954
|
-
permissioned?: boolean;
|
|
955
|
-
constructor(data?: PartialMessage<GetPositionRequest>);
|
|
956
|
-
static readonly runtime: typeof proto3;
|
|
957
|
-
static readonly typeName = "data.v1.GetPositionRequest";
|
|
958
|
-
static readonly fields: FieldList;
|
|
959
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionRequest;
|
|
960
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionRequest;
|
|
961
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionRequest;
|
|
962
|
-
static equals(a: GetPositionRequest | PlainMessage<GetPositionRequest> | undefined, b: GetPositionRequest | PlainMessage<GetPositionRequest> | undefined): boolean;
|
|
963
|
-
}
|
|
964
|
-
/**
|
|
965
|
-
* @generated from message data.v1.GetPositionResponse
|
|
966
|
-
*/
|
|
967
|
-
export declare class GetPositionResponse extends Message<GetPositionResponse> {
|
|
968
|
-
/**
|
|
969
|
-
* @generated from field: pools.v1.Position position = 1;
|
|
970
|
-
*/
|
|
971
|
-
position?: Position;
|
|
972
|
-
constructor(data?: PartialMessage<GetPositionResponse>);
|
|
973
|
-
static readonly runtime: typeof proto3;
|
|
974
|
-
static readonly typeName = "data.v1.GetPositionResponse";
|
|
975
|
-
static readonly fields: FieldList;
|
|
976
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionResponse;
|
|
977
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionResponse;
|
|
978
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionResponse;
|
|
979
|
-
static equals(a: GetPositionResponse | PlainMessage<GetPositionResponse> | undefined, b: GetPositionResponse | PlainMessage<GetPositionResponse> | undefined): boolean;
|
|
980
|
-
}
|
|
981
827
|
/**
|
|
982
828
|
* @generated from message data.v1.ListPoolsRequest
|
|
983
829
|
*/
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
6
|
import { ChainTokenProfitLoss, Contract, MultichainToken, MultichainTokenProfitLoss, Pool as Pool$1, PoolRef, Portfolio, PortfolioValueModifier, Token, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Pool, ProtocolVersion, RewardBalance, Token as Token$1 } from "./poolTypes_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* @generated from enum data.v1.Platform
|
|
10
10
|
*/
|
|
@@ -1169,218 +1169,6 @@ proto3.util.setEnumType(VerifyTokenFactoryImageResponse_Status, "data.v1.VerifyT
|
|
|
1169
1169
|
{ no: 1, name: "STATUS_APPROVED" },
|
|
1170
1170
|
{ no: 2, name: "STATUS_BLOCKED" },
|
|
1171
1171
|
]);
|
|
1172
|
-
/**
|
|
1173
|
-
* @generated from message data.v1.GetPairRequest
|
|
1174
|
-
*/
|
|
1175
|
-
export class GetPairRequest extends Message {
|
|
1176
|
-
constructor(data) {
|
|
1177
|
-
super();
|
|
1178
|
-
/**
|
|
1179
|
-
* @generated from field: uint32 chain_id = 1;
|
|
1180
|
-
*/
|
|
1181
|
-
this.chainId = 0;
|
|
1182
|
-
/**
|
|
1183
|
-
* @generated from field: string pair_address = 2;
|
|
1184
|
-
*/
|
|
1185
|
-
this.pairAddress = "";
|
|
1186
|
-
proto3.util.initPartial(data, this);
|
|
1187
|
-
}
|
|
1188
|
-
static fromBinary(bytes, options) {
|
|
1189
|
-
return new GetPairRequest().fromBinary(bytes, options);
|
|
1190
|
-
}
|
|
1191
|
-
static fromJson(jsonValue, options) {
|
|
1192
|
-
return new GetPairRequest().fromJson(jsonValue, options);
|
|
1193
|
-
}
|
|
1194
|
-
static fromJsonString(jsonString, options) {
|
|
1195
|
-
return new GetPairRequest().fromJsonString(jsonString, options);
|
|
1196
|
-
}
|
|
1197
|
-
static equals(a, b) {
|
|
1198
|
-
return proto3.util.equals(GetPairRequest, a, b);
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
GetPairRequest.runtime = proto3;
|
|
1202
|
-
GetPairRequest.typeName = "data.v1.GetPairRequest";
|
|
1203
|
-
GetPairRequest.fields = proto3.util.newFieldList(() => [
|
|
1204
|
-
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1205
|
-
{ no: 2, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1206
|
-
]);
|
|
1207
|
-
/**
|
|
1208
|
-
* @generated from message data.v1.GetPairResponse
|
|
1209
|
-
*/
|
|
1210
|
-
export class GetPairResponse extends Message {
|
|
1211
|
-
constructor(data) {
|
|
1212
|
-
super();
|
|
1213
|
-
proto3.util.initPartial(data, this);
|
|
1214
|
-
}
|
|
1215
|
-
static fromBinary(bytes, options) {
|
|
1216
|
-
return new GetPairResponse().fromBinary(bytes, options);
|
|
1217
|
-
}
|
|
1218
|
-
static fromJson(jsonValue, options) {
|
|
1219
|
-
return new GetPairResponse().fromJson(jsonValue, options);
|
|
1220
|
-
}
|
|
1221
|
-
static fromJsonString(jsonString, options) {
|
|
1222
|
-
return new GetPairResponse().fromJsonString(jsonString, options);
|
|
1223
|
-
}
|
|
1224
|
-
static equals(a, b) {
|
|
1225
|
-
return proto3.util.equals(GetPairResponse, a, b);
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
GetPairResponse.runtime = proto3;
|
|
1229
|
-
GetPairResponse.typeName = "data.v1.GetPairResponse";
|
|
1230
|
-
GetPairResponse.fields = proto3.util.newFieldList(() => [
|
|
1231
|
-
{ no: 1, name: "pair", kind: "message", T: Pair },
|
|
1232
|
-
]);
|
|
1233
|
-
/**
|
|
1234
|
-
* @generated from message data.v1.GetPoolRequest
|
|
1235
|
-
*/
|
|
1236
|
-
export class GetPoolRequest extends Message {
|
|
1237
|
-
constructor(data) {
|
|
1238
|
-
super();
|
|
1239
|
-
/**
|
|
1240
|
-
* @generated from field: uint32 chain_id = 1;
|
|
1241
|
-
*/
|
|
1242
|
-
this.chainId = 0;
|
|
1243
|
-
/**
|
|
1244
|
-
* @generated from field: string pool_id = 2;
|
|
1245
|
-
*/
|
|
1246
|
-
this.poolId = "";
|
|
1247
|
-
/**
|
|
1248
|
-
* @generated from field: pools.v1.ProtocolVersion protocol_version = 3;
|
|
1249
|
-
*/
|
|
1250
|
-
this.protocolVersion = ProtocolVersion.UNSPECIFIED;
|
|
1251
|
-
proto3.util.initPartial(data, this);
|
|
1252
|
-
}
|
|
1253
|
-
static fromBinary(bytes, options) {
|
|
1254
|
-
return new GetPoolRequest().fromBinary(bytes, options);
|
|
1255
|
-
}
|
|
1256
|
-
static fromJson(jsonValue, options) {
|
|
1257
|
-
return new GetPoolRequest().fromJson(jsonValue, options);
|
|
1258
|
-
}
|
|
1259
|
-
static fromJsonString(jsonString, options) {
|
|
1260
|
-
return new GetPoolRequest().fromJsonString(jsonString, options);
|
|
1261
|
-
}
|
|
1262
|
-
static equals(a, b) {
|
|
1263
|
-
return proto3.util.equals(GetPoolRequest, a, b);
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
GetPoolRequest.runtime = proto3;
|
|
1267
|
-
GetPoolRequest.typeName = "data.v1.GetPoolRequest";
|
|
1268
|
-
GetPoolRequest.fields = proto3.util.newFieldList(() => [
|
|
1269
|
-
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1270
|
-
{ no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1271
|
-
{ no: 3, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
|
|
1272
|
-
{ no: 4, name: "include_volume_30d", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1273
|
-
]);
|
|
1274
|
-
/**
|
|
1275
|
-
* @generated from message data.v1.GetPoolResponse
|
|
1276
|
-
*/
|
|
1277
|
-
export class GetPoolResponse extends Message {
|
|
1278
|
-
constructor(data) {
|
|
1279
|
-
super();
|
|
1280
|
-
proto3.util.initPartial(data, this);
|
|
1281
|
-
}
|
|
1282
|
-
static fromBinary(bytes, options) {
|
|
1283
|
-
return new GetPoolResponse().fromBinary(bytes, options);
|
|
1284
|
-
}
|
|
1285
|
-
static fromJson(jsonValue, options) {
|
|
1286
|
-
return new GetPoolResponse().fromJson(jsonValue, options);
|
|
1287
|
-
}
|
|
1288
|
-
static fromJsonString(jsonString, options) {
|
|
1289
|
-
return new GetPoolResponse().fromJsonString(jsonString, options);
|
|
1290
|
-
}
|
|
1291
|
-
static equals(a, b) {
|
|
1292
|
-
return proto3.util.equals(GetPoolResponse, a, b);
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
GetPoolResponse.runtime = proto3;
|
|
1296
|
-
GetPoolResponse.typeName = "data.v1.GetPoolResponse";
|
|
1297
|
-
GetPoolResponse.fields = proto3.util.newFieldList(() => [
|
|
1298
|
-
{ no: 1, name: "pool", kind: "message", T: Pool },
|
|
1299
|
-
]);
|
|
1300
|
-
/**
|
|
1301
|
-
* @generated from message data.v1.GetPositionRequest
|
|
1302
|
-
*/
|
|
1303
|
-
export class GetPositionRequest extends Message {
|
|
1304
|
-
constructor(data) {
|
|
1305
|
-
super();
|
|
1306
|
-
/**
|
|
1307
|
-
* @generated from field: uint32 chain_id = 1;
|
|
1308
|
-
*/
|
|
1309
|
-
this.chainId = 0;
|
|
1310
|
-
/**
|
|
1311
|
-
* @generated from field: pools.v1.ProtocolVersion protocol_version = 2;
|
|
1312
|
-
*/
|
|
1313
|
-
this.protocolVersion = ProtocolVersion.UNSPECIFIED;
|
|
1314
|
-
/**
|
|
1315
|
-
* required for V3/V4
|
|
1316
|
-
*
|
|
1317
|
-
* @generated from field: string token_id = 3;
|
|
1318
|
-
*/
|
|
1319
|
-
this.tokenId = "";
|
|
1320
|
-
/**
|
|
1321
|
-
* required for V2
|
|
1322
|
-
*
|
|
1323
|
-
* @generated from field: string pair_address = 4;
|
|
1324
|
-
*/
|
|
1325
|
-
this.pairAddress = "";
|
|
1326
|
-
/**
|
|
1327
|
-
* required for V2
|
|
1328
|
-
*
|
|
1329
|
-
* @generated from field: string owner = 5;
|
|
1330
|
-
*/
|
|
1331
|
-
this.owner = "";
|
|
1332
|
-
proto3.util.initPartial(data, this);
|
|
1333
|
-
}
|
|
1334
|
-
static fromBinary(bytes, options) {
|
|
1335
|
-
return new GetPositionRequest().fromBinary(bytes, options);
|
|
1336
|
-
}
|
|
1337
|
-
static fromJson(jsonValue, options) {
|
|
1338
|
-
return new GetPositionRequest().fromJson(jsonValue, options);
|
|
1339
|
-
}
|
|
1340
|
-
static fromJsonString(jsonString, options) {
|
|
1341
|
-
return new GetPositionRequest().fromJsonString(jsonString, options);
|
|
1342
|
-
}
|
|
1343
|
-
static equals(a, b) {
|
|
1344
|
-
return proto3.util.equals(GetPositionRequest, a, b);
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
GetPositionRequest.runtime = proto3;
|
|
1348
|
-
GetPositionRequest.typeName = "data.v1.GetPositionRequest";
|
|
1349
|
-
GetPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
1350
|
-
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1351
|
-
{ no: 2, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
|
|
1352
|
-
{ no: 3, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1353
|
-
{ no: 4, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1354
|
-
{ no: 5, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1355
|
-
{ no: 6, name: "fallback_to_chain", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1356
|
-
{ no: 7, name: "permissioned", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1357
|
-
]);
|
|
1358
|
-
/**
|
|
1359
|
-
* @generated from message data.v1.GetPositionResponse
|
|
1360
|
-
*/
|
|
1361
|
-
export class GetPositionResponse extends Message {
|
|
1362
|
-
constructor(data) {
|
|
1363
|
-
super();
|
|
1364
|
-
proto3.util.initPartial(data, this);
|
|
1365
|
-
}
|
|
1366
|
-
static fromBinary(bytes, options) {
|
|
1367
|
-
return new GetPositionResponse().fromBinary(bytes, options);
|
|
1368
|
-
}
|
|
1369
|
-
static fromJson(jsonValue, options) {
|
|
1370
|
-
return new GetPositionResponse().fromJson(jsonValue, options);
|
|
1371
|
-
}
|
|
1372
|
-
static fromJsonString(jsonString, options) {
|
|
1373
|
-
return new GetPositionResponse().fromJsonString(jsonString, options);
|
|
1374
|
-
}
|
|
1375
|
-
static equals(a, b) {
|
|
1376
|
-
return proto3.util.equals(GetPositionResponse, a, b);
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
GetPositionResponse.runtime = proto3;
|
|
1380
|
-
GetPositionResponse.typeName = "data.v1.GetPositionResponse";
|
|
1381
|
-
GetPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
1382
|
-
{ no: 1, name: "position", kind: "message", T: Position },
|
|
1383
|
-
]);
|
|
1384
1172
|
/**
|
|
1385
1173
|
* @generated from message data.v1.ListPoolsRequest
|
|
1386
1174
|
*/
|
|
@@ -534,44 +534,3 @@ export declare class Pool extends Message<Pool> {
|
|
|
534
534
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pool;
|
|
535
535
|
static equals(a: Pool | PlainMessage<Pool> | undefined, b: Pool | PlainMessage<Pool> | undefined): boolean;
|
|
536
536
|
}
|
|
537
|
-
/**
|
|
538
|
-
* @generated from message pools.v1.Pair
|
|
539
|
-
*/
|
|
540
|
-
export declare class Pair extends Message<Pair> {
|
|
541
|
-
/**
|
|
542
|
-
* @generated from field: string pair_address = 1;
|
|
543
|
-
*/
|
|
544
|
-
pairAddress: string;
|
|
545
|
-
/**
|
|
546
|
-
* @generated from field: string token0 = 2;
|
|
547
|
-
*/
|
|
548
|
-
token0: string;
|
|
549
|
-
/**
|
|
550
|
-
* @generated from field: string token1 = 3;
|
|
551
|
-
*/
|
|
552
|
-
token1: string;
|
|
553
|
-
/**
|
|
554
|
-
* @generated from field: string reserve0 = 4;
|
|
555
|
-
*/
|
|
556
|
-
reserve0: string;
|
|
557
|
-
/**
|
|
558
|
-
* @generated from field: string reserve1 = 5;
|
|
559
|
-
*/
|
|
560
|
-
reserve1: string;
|
|
561
|
-
/**
|
|
562
|
-
* @generated from field: string total_supply = 6;
|
|
563
|
-
*/
|
|
564
|
-
totalSupply: string;
|
|
565
|
-
/**
|
|
566
|
-
* @generated from field: float apr = 7;
|
|
567
|
-
*/
|
|
568
|
-
apr: number;
|
|
569
|
-
constructor(data?: PartialMessage<Pair>);
|
|
570
|
-
static readonly runtime: typeof proto3;
|
|
571
|
-
static readonly typeName = "pools.v1.Pair";
|
|
572
|
-
static readonly fields: FieldList;
|
|
573
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pair;
|
|
574
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pair;
|
|
575
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pair;
|
|
576
|
-
static equals(a: Pair | PlainMessage<Pair> | undefined, b: Pair | PlainMessage<Pair> | undefined): boolean;
|
|
577
|
-
}
|
|
@@ -591,63 +591,3 @@ Pool.fields = proto3.util.newFieldList(() => [
|
|
|
591
591
|
{ no: 21, name: "apr_7d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
592
592
|
{ no: 22, name: "apr_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
593
593
|
]);
|
|
594
|
-
/**
|
|
595
|
-
* @generated from message pools.v1.Pair
|
|
596
|
-
*/
|
|
597
|
-
export class Pair extends Message {
|
|
598
|
-
constructor(data) {
|
|
599
|
-
super();
|
|
600
|
-
/**
|
|
601
|
-
* @generated from field: string pair_address = 1;
|
|
602
|
-
*/
|
|
603
|
-
this.pairAddress = "";
|
|
604
|
-
/**
|
|
605
|
-
* @generated from field: string token0 = 2;
|
|
606
|
-
*/
|
|
607
|
-
this.token0 = "";
|
|
608
|
-
/**
|
|
609
|
-
* @generated from field: string token1 = 3;
|
|
610
|
-
*/
|
|
611
|
-
this.token1 = "";
|
|
612
|
-
/**
|
|
613
|
-
* @generated from field: string reserve0 = 4;
|
|
614
|
-
*/
|
|
615
|
-
this.reserve0 = "";
|
|
616
|
-
/**
|
|
617
|
-
* @generated from field: string reserve1 = 5;
|
|
618
|
-
*/
|
|
619
|
-
this.reserve1 = "";
|
|
620
|
-
/**
|
|
621
|
-
* @generated from field: string total_supply = 6;
|
|
622
|
-
*/
|
|
623
|
-
this.totalSupply = "";
|
|
624
|
-
/**
|
|
625
|
-
* @generated from field: float apr = 7;
|
|
626
|
-
*/
|
|
627
|
-
this.apr = 0;
|
|
628
|
-
proto3.util.initPartial(data, this);
|
|
629
|
-
}
|
|
630
|
-
static fromBinary(bytes, options) {
|
|
631
|
-
return new Pair().fromBinary(bytes, options);
|
|
632
|
-
}
|
|
633
|
-
static fromJson(jsonValue, options) {
|
|
634
|
-
return new Pair().fromJson(jsonValue, options);
|
|
635
|
-
}
|
|
636
|
-
static fromJsonString(jsonString, options) {
|
|
637
|
-
return new Pair().fromJsonString(jsonString, options);
|
|
638
|
-
}
|
|
639
|
-
static equals(a, b) {
|
|
640
|
-
return proto3.util.equals(Pair, a, b);
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
Pair.runtime = proto3;
|
|
644
|
-
Pair.typeName = "pools.v1.Pair";
|
|
645
|
-
Pair.fields = proto3.util.newFieldList(() => [
|
|
646
|
-
{ no: 1, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
647
|
-
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
648
|
-
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
649
|
-
{ no: 4, name: "reserve0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
650
|
-
{ no: 5, name: "reserve1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
651
|
-
{ no: 6, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
652
|
-
{ no: 7, name: "apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
653
|
-
]);
|
|
@@ -9,7 +9,7 @@ export declare enum CategoryClass {
|
|
|
9
9
|
*/
|
|
10
10
|
UNSPECIFIED = 0,
|
|
11
11
|
/**
|
|
12
|
-
* Computed from market stats (e.g. Recently Launched,
|
|
12
|
+
* Computed from market stats (e.g. Recently Launched, Top Gainers).
|
|
13
13
|
*
|
|
14
14
|
* @generated from enum value: CATEGORY_CLASS_MARKET = 1;
|
|
15
15
|
*/
|
|
@@ -13,7 +13,7 @@ export var CategoryClass;
|
|
|
13
13
|
*/
|
|
14
14
|
CategoryClass[CategoryClass["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
15
15
|
/**
|
|
16
|
-
* Computed from market stats (e.g. Recently Launched,
|
|
16
|
+
* Computed from market stats (e.g. Recently Launched, Top Gainers).
|
|
17
17
|
*
|
|
18
18
|
* @generated from enum value: CATEGORY_CLASS_MARKET = 1;
|
|
19
19
|
*/
|
|
@@ -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 { RankedMultichainToken, RankedPool } from "./types_pb.js";
|
|
4
4
|
/**
|
|
5
5
|
* @generated from enum data.v2.SearchType
|
|
@@ -142,6 +142,18 @@ export declare class SearchAuction extends Message<SearchAuction> {
|
|
|
142
142
|
* @generated from field: string total_bid_volume_usd = 7;
|
|
143
143
|
*/
|
|
144
144
|
totalBidVolumeUsd: string;
|
|
145
|
+
/**
|
|
146
|
+
* USD decimal string, same math as data.v1.Auction.fdv_usd; unset when any input is unavailable.
|
|
147
|
+
*
|
|
148
|
+
* @generated from field: optional string fdv_usd = 8;
|
|
149
|
+
*/
|
|
150
|
+
fdvUsd?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Same rules as data.v1.Auction.estimated_end_time; unset when unresolvable or the auction has graduated.
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: optional google.protobuf.Timestamp estimated_end_time = 9;
|
|
155
|
+
*/
|
|
156
|
+
estimatedEndTime?: Timestamp;
|
|
145
157
|
constructor(data?: PartialMessage<SearchAuction>);
|
|
146
158
|
static readonly runtime: typeof proto3;
|
|
147
159
|
static readonly typeName = "data.v2.SearchAuction";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file data/v2/search.proto (package data.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
5
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
6
6
|
import { RankedMultichainToken, RankedPool } from "./types_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from enum data.v2.SearchType
|
|
@@ -208,4 +208,6 @@ SearchAuction.fields = proto3.util.newFieldList(() => [
|
|
|
208
208
|
{ no: 5, name: "token_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
209
209
|
{ no: 6, name: "token_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
210
210
|
{ no: 7, name: "total_bid_volume_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
211
|
+
{ no: 8, name: "fdv_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
212
|
+
{ no: 9, name: "estimated_end_time", kind: "message", T: Timestamp, opt: true },
|
|
211
213
|
]);
|
|
@@ -323,6 +323,32 @@ export declare enum TransactionEventType {
|
|
|
323
323
|
*/
|
|
324
324
|
REMOVE = 3
|
|
325
325
|
}
|
|
326
|
+
/**
|
|
327
|
+
* How the selected launch created the token. CROWD and CUSTOM are the two
|
|
328
|
+
* Continuous Clearing Auction modes (quick launch vs. creator-configured
|
|
329
|
+
* parameters); INSTANT is a bonding-curve launch with no auction. UNSPECIFIED
|
|
330
|
+
* when the source records the launchpad but not the method.
|
|
331
|
+
*
|
|
332
|
+
* @generated from enum data.v2.LaunchMethod
|
|
333
|
+
*/
|
|
334
|
+
export declare enum LaunchMethod {
|
|
335
|
+
/**
|
|
336
|
+
* @generated from enum value: LAUNCH_METHOD_UNSPECIFIED = 0;
|
|
337
|
+
*/
|
|
338
|
+
UNSPECIFIED = 0,
|
|
339
|
+
/**
|
|
340
|
+
* @generated from enum value: LAUNCH_METHOD_CROWD = 1;
|
|
341
|
+
*/
|
|
342
|
+
CROWD = 1,
|
|
343
|
+
/**
|
|
344
|
+
* @generated from enum value: LAUNCH_METHOD_CUSTOM = 2;
|
|
345
|
+
*/
|
|
346
|
+
CUSTOM = 2,
|
|
347
|
+
/**
|
|
348
|
+
* @generated from enum value: LAUNCH_METHOD_INSTANT = 3;
|
|
349
|
+
*/
|
|
350
|
+
INSTANT = 3
|
|
351
|
+
}
|
|
326
352
|
/**
|
|
327
353
|
* Sort field for ListLaunches; UNSPECIFIED defaults to LAUNCHED_AT (newest first).
|
|
328
354
|
*
|
|
@@ -1605,6 +1631,14 @@ export declare class Token extends Message<Token> {
|
|
|
1605
1631
|
* @generated from field: optional data.v2.TokenIssuerInfo issuer = 14;
|
|
1606
1632
|
*/
|
|
1607
1633
|
issuer?: TokenIssuerInfo;
|
|
1634
|
+
/**
|
|
1635
|
+
* Best-effort display origin populated by canonical-token GetToken and
|
|
1636
|
+
* GetTokens reads. Other RPCs that reuse Token may leave it unset; absence
|
|
1637
|
+
* there does not prove the token has no eligible launch.
|
|
1638
|
+
*
|
|
1639
|
+
* @generated from field: optional data.v2.TokenLaunchProvenance launch_provenance = 15;
|
|
1640
|
+
*/
|
|
1641
|
+
launchProvenance?: TokenLaunchProvenance;
|
|
1608
1642
|
constructor(data?: PartialMessage<Token>);
|
|
1609
1643
|
static readonly runtime: typeof proto3;
|
|
1610
1644
|
static readonly typeName = "data.v2.Token";
|
|
@@ -1651,6 +1685,33 @@ export declare class Launchpad extends Message<Launchpad> {
|
|
|
1651
1685
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Launchpad;
|
|
1652
1686
|
static equals(a: Launchpad | PlainMessage<Launchpad> | undefined, b: Launchpad | PlainMessage<Launchpad> | undefined): boolean;
|
|
1653
1687
|
}
|
|
1688
|
+
/**
|
|
1689
|
+
* One token's earliest eligible launch, for display rather than complete
|
|
1690
|
+
* launch history. The launchpad is a serve-time snapshot of data-api's
|
|
1691
|
+
* registry so clients can render its badge without another request. When the
|
|
1692
|
+
* registry entry is missing or incomplete, the server omits the whole
|
|
1693
|
+
* launch_provenance field instead of returning a partial attribution.
|
|
1694
|
+
*
|
|
1695
|
+
* @generated from message data.v2.TokenLaunchProvenance
|
|
1696
|
+
*/
|
|
1697
|
+
export declare class TokenLaunchProvenance extends Message<TokenLaunchProvenance> {
|
|
1698
|
+
/**
|
|
1699
|
+
* @generated from field: data.v2.Launchpad launchpad = 1;
|
|
1700
|
+
*/
|
|
1701
|
+
launchpad?: Launchpad;
|
|
1702
|
+
/**
|
|
1703
|
+
* @generated from field: data.v2.LaunchMethod launch_method = 2;
|
|
1704
|
+
*/
|
|
1705
|
+
launchMethod: LaunchMethod;
|
|
1706
|
+
constructor(data?: PartialMessage<TokenLaunchProvenance>);
|
|
1707
|
+
static readonly runtime: typeof proto3;
|
|
1708
|
+
static readonly typeName = "data.v2.TokenLaunchProvenance";
|
|
1709
|
+
static readonly fields: FieldList;
|
|
1710
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenLaunchProvenance;
|
|
1711
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenLaunchProvenance;
|
|
1712
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenLaunchProvenance;
|
|
1713
|
+
static equals(a: TokenLaunchProvenance | PlainMessage<TokenLaunchProvenance> | undefined, b: TokenLaunchProvenance | PlainMessage<TokenLaunchProvenance> | undefined): boolean;
|
|
1714
|
+
}
|
|
1654
1715
|
/**
|
|
1655
1716
|
* Optional filters for ListLaunches. When a window is set and sort_by is
|
|
1656
1717
|
* UNSPECIFIED the server sorts by 24h volume (VOLUME_1D).
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -419,6 +419,40 @@ proto3.util.setEnumType(TransactionEventType, "data.v2.TransactionEventType", [
|
|
|
419
419
|
{ no: 2, name: "TRANSACTION_EVENT_TYPE_ADD" },
|
|
420
420
|
{ no: 3, name: "TRANSACTION_EVENT_TYPE_REMOVE" },
|
|
421
421
|
]);
|
|
422
|
+
/**
|
|
423
|
+
* How the selected launch created the token. CROWD and CUSTOM are the two
|
|
424
|
+
* Continuous Clearing Auction modes (quick launch vs. creator-configured
|
|
425
|
+
* parameters); INSTANT is a bonding-curve launch with no auction. UNSPECIFIED
|
|
426
|
+
* when the source records the launchpad but not the method.
|
|
427
|
+
*
|
|
428
|
+
* @generated from enum data.v2.LaunchMethod
|
|
429
|
+
*/
|
|
430
|
+
export var LaunchMethod;
|
|
431
|
+
(function (LaunchMethod) {
|
|
432
|
+
/**
|
|
433
|
+
* @generated from enum value: LAUNCH_METHOD_UNSPECIFIED = 0;
|
|
434
|
+
*/
|
|
435
|
+
LaunchMethod[LaunchMethod["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
436
|
+
/**
|
|
437
|
+
* @generated from enum value: LAUNCH_METHOD_CROWD = 1;
|
|
438
|
+
*/
|
|
439
|
+
LaunchMethod[LaunchMethod["CROWD"] = 1] = "CROWD";
|
|
440
|
+
/**
|
|
441
|
+
* @generated from enum value: LAUNCH_METHOD_CUSTOM = 2;
|
|
442
|
+
*/
|
|
443
|
+
LaunchMethod[LaunchMethod["CUSTOM"] = 2] = "CUSTOM";
|
|
444
|
+
/**
|
|
445
|
+
* @generated from enum value: LAUNCH_METHOD_INSTANT = 3;
|
|
446
|
+
*/
|
|
447
|
+
LaunchMethod[LaunchMethod["INSTANT"] = 3] = "INSTANT";
|
|
448
|
+
})(LaunchMethod || (LaunchMethod = {}));
|
|
449
|
+
// Retrieve enum metadata with: proto3.getEnumType(LaunchMethod)
|
|
450
|
+
proto3.util.setEnumType(LaunchMethod, "data.v2.LaunchMethod", [
|
|
451
|
+
{ no: 0, name: "LAUNCH_METHOD_UNSPECIFIED" },
|
|
452
|
+
{ no: 1, name: "LAUNCH_METHOD_CROWD" },
|
|
453
|
+
{ no: 2, name: "LAUNCH_METHOD_CUSTOM" },
|
|
454
|
+
{ no: 3, name: "LAUNCH_METHOD_INSTANT" },
|
|
455
|
+
]);
|
|
422
456
|
/**
|
|
423
457
|
* Sort field for ListLaunches; UNSPECIFIED defaults to LAUNCHED_AT (newest first).
|
|
424
458
|
*
|
|
@@ -1706,6 +1740,7 @@ Token.fields = proto3.util.newFieldList(() => [
|
|
|
1706
1740
|
{ no: 12, name: "fdv", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1707
1741
|
{ no: 13, name: "category_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1708
1742
|
{ no: 14, name: "issuer", kind: "message", T: TokenIssuerInfo, opt: true },
|
|
1743
|
+
{ no: 15, name: "launch_provenance", kind: "message", T: TokenLaunchProvenance, opt: true },
|
|
1709
1744
|
]);
|
|
1710
1745
|
/**
|
|
1711
1746
|
* A token launchpad known to the Launches surface (see the data-api
|
|
@@ -1748,6 +1783,43 @@ Launchpad.fields = proto3.util.newFieldList(() => [
|
|
|
1748
1783
|
{ no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1749
1784
|
{ no: 4, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1750
1785
|
]);
|
|
1786
|
+
/**
|
|
1787
|
+
* One token's earliest eligible launch, for display rather than complete
|
|
1788
|
+
* launch history. The launchpad is a serve-time snapshot of data-api's
|
|
1789
|
+
* registry so clients can render its badge without another request. When the
|
|
1790
|
+
* registry entry is missing or incomplete, the server omits the whole
|
|
1791
|
+
* launch_provenance field instead of returning a partial attribution.
|
|
1792
|
+
*
|
|
1793
|
+
* @generated from message data.v2.TokenLaunchProvenance
|
|
1794
|
+
*/
|
|
1795
|
+
export class TokenLaunchProvenance extends Message {
|
|
1796
|
+
constructor(data) {
|
|
1797
|
+
super();
|
|
1798
|
+
/**
|
|
1799
|
+
* @generated from field: data.v2.LaunchMethod launch_method = 2;
|
|
1800
|
+
*/
|
|
1801
|
+
this.launchMethod = LaunchMethod.UNSPECIFIED;
|
|
1802
|
+
proto3.util.initPartial(data, this);
|
|
1803
|
+
}
|
|
1804
|
+
static fromBinary(bytes, options) {
|
|
1805
|
+
return new TokenLaunchProvenance().fromBinary(bytes, options);
|
|
1806
|
+
}
|
|
1807
|
+
static fromJson(jsonValue, options) {
|
|
1808
|
+
return new TokenLaunchProvenance().fromJson(jsonValue, options);
|
|
1809
|
+
}
|
|
1810
|
+
static fromJsonString(jsonString, options) {
|
|
1811
|
+
return new TokenLaunchProvenance().fromJsonString(jsonString, options);
|
|
1812
|
+
}
|
|
1813
|
+
static equals(a, b) {
|
|
1814
|
+
return proto3.util.equals(TokenLaunchProvenance, a, b);
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
TokenLaunchProvenance.runtime = proto3;
|
|
1818
|
+
TokenLaunchProvenance.typeName = "data.v2.TokenLaunchProvenance";
|
|
1819
|
+
TokenLaunchProvenance.fields = proto3.util.newFieldList(() => [
|
|
1820
|
+
{ no: 1, name: "launchpad", kind: "message", T: Launchpad },
|
|
1821
|
+
{ no: 2, name: "launch_method", kind: "enum", T: proto3.getEnumType(LaunchMethod) },
|
|
1822
|
+
]);
|
|
1751
1823
|
/**
|
|
1752
1824
|
* Optional filters for ListLaunches. When a window is set and sort_by is
|
|
1753
1825
|
* UNSPECIFIED the server sorts by 24h volume (VOLUME_1D).
|