@uniswap/client-data-api 0.0.16 → 0.0.18
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 +27 -1
- package/dist/data/v1/api-DataApiService_connectquery.js +27 -1
- package/dist/data/v1/api_connect.d.ts +19 -1
- package/dist/data/v1/api_connect.js +19 -1
- package/dist/data/v1/api_pb.d.ts +188 -1
- package/dist/data/v1/api_pb.js +249 -1
- package/dist/data/v1/types_pb.d.ts +87 -0
- package/dist/data/v1/types_pb.js +110 -0
- package/dist/data/v1/workerService-WorkerService_connectquery.d.ts +7 -7
- package/dist/data/v1/workerService-WorkerService_connectquery.js +7 -7
- package/dist/data/v1/workerService_connect.d.ts +6 -6
- package/dist/data/v1/workerService_connect.js +6 -6
- package/dist/data/v1/workerService_pb.d.ts +16 -62
- package/dist/data/v1/workerService_pb.js +18 -86
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
|
|
2
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
|
|
5
5
|
*/
|
|
@@ -208,3 +208,29 @@ export declare const getRewards: {
|
|
|
208
208
|
readonly typeName: "data.v1.DataApiService";
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
|
+
/**
|
|
212
|
+
* @generated from rpc data.v1.DataApiService.ListTopPools
|
|
213
|
+
*/
|
|
214
|
+
export declare const listTopPools: {
|
|
215
|
+
readonly localName: "listTopPools";
|
|
216
|
+
readonly name: "ListTopPools";
|
|
217
|
+
readonly kind: MethodKind.Unary;
|
|
218
|
+
readonly I: typeof ListTopPoolsRequest;
|
|
219
|
+
readonly O: typeof ListTopPoolsResponse;
|
|
220
|
+
readonly service: {
|
|
221
|
+
readonly typeName: "data.v1.DataApiService";
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* @generated from rpc data.v1.DataApiService.GetProtocolStats
|
|
226
|
+
*/
|
|
227
|
+
export declare const getProtocolStats: {
|
|
228
|
+
readonly localName: "getProtocolStats";
|
|
229
|
+
readonly name: "GetProtocolStats";
|
|
230
|
+
readonly kind: MethodKind.Unary;
|
|
231
|
+
readonly I: typeof GetProtocolStatsRequest;
|
|
232
|
+
readonly O: typeof GetProtocolStatsResponse;
|
|
233
|
+
readonly service: {
|
|
234
|
+
readonly typeName: "data.v1.DataApiService";
|
|
235
|
+
};
|
|
236
|
+
};
|
|
@@ -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, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
|
|
6
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
|
|
9
9
|
*/
|
|
@@ -212,3 +212,29 @@ export const getRewards = {
|
|
|
212
212
|
typeName: "data.v1.DataApiService"
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
|
+
/**
|
|
216
|
+
* @generated from rpc data.v1.DataApiService.ListTopPools
|
|
217
|
+
*/
|
|
218
|
+
export const listTopPools = {
|
|
219
|
+
localName: "listTopPools",
|
|
220
|
+
name: "ListTopPools",
|
|
221
|
+
kind: MethodKind.Unary,
|
|
222
|
+
I: ListTopPoolsRequest,
|
|
223
|
+
O: ListTopPoolsResponse,
|
|
224
|
+
service: {
|
|
225
|
+
typeName: "data.v1.DataApiService"
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* @generated from rpc data.v1.DataApiService.GetProtocolStats
|
|
230
|
+
*/
|
|
231
|
+
export const getProtocolStats = {
|
|
232
|
+
localName: "getProtocolStats",
|
|
233
|
+
name: "GetProtocolStats",
|
|
234
|
+
kind: MethodKind.Unary,
|
|
235
|
+
I: GetProtocolStatsRequest,
|
|
236
|
+
O: GetProtocolStatsResponse,
|
|
237
|
+
service: {
|
|
238
|
+
typeName: "data.v1.DataApiService"
|
|
239
|
+
}
|
|
240
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
|
|
1
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v1.DataApiService
|
|
@@ -150,5 +150,23 @@ export declare const DataApiService: {
|
|
|
150
150
|
readonly O: typeof GetRewardsResponse;
|
|
151
151
|
readonly kind: MethodKind.Unary;
|
|
152
152
|
};
|
|
153
|
+
/**
|
|
154
|
+
* @generated from rpc data.v1.DataApiService.ListTopPools
|
|
155
|
+
*/
|
|
156
|
+
readonly listTopPools: {
|
|
157
|
+
readonly name: "ListTopPools";
|
|
158
|
+
readonly I: typeof ListTopPoolsRequest;
|
|
159
|
+
readonly O: typeof ListTopPoolsResponse;
|
|
160
|
+
readonly kind: MethodKind.Unary;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* @generated from rpc data.v1.DataApiService.GetProtocolStats
|
|
164
|
+
*/
|
|
165
|
+
readonly getProtocolStats: {
|
|
166
|
+
readonly name: "GetProtocolStats";
|
|
167
|
+
readonly I: typeof GetProtocolStatsRequest;
|
|
168
|
+
readonly O: typeof GetProtocolStatsResponse;
|
|
169
|
+
readonly kind: MethodKind.Unary;
|
|
170
|
+
};
|
|
153
171
|
};
|
|
154
172
|
};
|
|
@@ -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, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
|
|
5
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v1.DataApiService
|
|
@@ -154,5 +154,23 @@ export const DataApiService = {
|
|
|
154
154
|
O: GetRewardsResponse,
|
|
155
155
|
kind: MethodKind.Unary,
|
|
156
156
|
},
|
|
157
|
+
/**
|
|
158
|
+
* @generated from rpc data.v1.DataApiService.ListTopPools
|
|
159
|
+
*/
|
|
160
|
+
listTopPools: {
|
|
161
|
+
name: "ListTopPools",
|
|
162
|
+
I: ListTopPoolsRequest,
|
|
163
|
+
O: ListTopPoolsResponse,
|
|
164
|
+
kind: MethodKind.Unary,
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* @generated from rpc data.v1.DataApiService.GetProtocolStats
|
|
168
|
+
*/
|
|
169
|
+
getProtocolStats: {
|
|
170
|
+
name: "GetProtocolStats",
|
|
171
|
+
I: GetProtocolStatsRequest,
|
|
172
|
+
O: GetProtocolStatsResponse,
|
|
173
|
+
kind: MethodKind.Unary,
|
|
174
|
+
},
|
|
157
175
|
}
|
|
158
176
|
};
|
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
|
|
3
|
+
import { Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
|
|
4
4
|
import { Pair, Pool, Position, PositionStatus, ProtocolVersion } from "./poolTypes_pb.js";
|
|
5
5
|
/**
|
|
6
6
|
* @generated from enum data.v1.Platform
|
|
@@ -28,6 +28,35 @@ export declare enum OrderBy {
|
|
|
28
28
|
*/
|
|
29
29
|
CREATION_DATE = 1
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum data.v1.TopPoolsOrderBy
|
|
33
|
+
*/
|
|
34
|
+
export declare enum TopPoolsOrderBy {
|
|
35
|
+
/**
|
|
36
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_UNSPECIFIED = 0;
|
|
37
|
+
*/
|
|
38
|
+
UNSPECIFIED = 0,
|
|
39
|
+
/**
|
|
40
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_TVL = 1;
|
|
41
|
+
*/
|
|
42
|
+
TVL = 1,
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_VOLUME_1D = 2;
|
|
45
|
+
*/
|
|
46
|
+
VOLUME_1D = 2,
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_VOLUME_30D = 3;
|
|
49
|
+
*/
|
|
50
|
+
VOLUME_30D = 3,
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_APR = 4;
|
|
53
|
+
*/
|
|
54
|
+
APR = 4,
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_REWARD_APR = 5;
|
|
57
|
+
*/
|
|
58
|
+
REWARD_APR = 5
|
|
59
|
+
}
|
|
31
60
|
/**
|
|
32
61
|
* @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
|
|
33
62
|
*/
|
|
@@ -918,3 +947,161 @@ export declare class GetRewardsResponse extends Message<GetRewardsResponse> {
|
|
|
918
947
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRewardsResponse;
|
|
919
948
|
static equals(a: GetRewardsResponse | PlainMessage<GetRewardsResponse> | undefined, b: GetRewardsResponse | PlainMessage<GetRewardsResponse> | undefined): boolean;
|
|
920
949
|
}
|
|
950
|
+
/**
|
|
951
|
+
* @generated from message data.v1.ListTopPoolsRequest
|
|
952
|
+
*/
|
|
953
|
+
export declare class ListTopPoolsRequest extends Message<ListTopPoolsRequest> {
|
|
954
|
+
/**
|
|
955
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
956
|
+
*/
|
|
957
|
+
chainIds: number[];
|
|
958
|
+
/**
|
|
959
|
+
* @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 2;
|
|
960
|
+
*/
|
|
961
|
+
protocolVersions: ProtocolVersion[];
|
|
962
|
+
/**
|
|
963
|
+
* @generated from field: optional data.v1.TopPoolsOrderBy order_by = 3;
|
|
964
|
+
*/
|
|
965
|
+
orderBy?: TopPoolsOrderBy;
|
|
966
|
+
/**
|
|
967
|
+
* default false
|
|
968
|
+
*
|
|
969
|
+
* @generated from field: optional bool ascending = 4;
|
|
970
|
+
*/
|
|
971
|
+
ascending?: boolean;
|
|
972
|
+
/**
|
|
973
|
+
* @generated from field: optional uint32 page_size = 5;
|
|
974
|
+
*/
|
|
975
|
+
pageSize?: number;
|
|
976
|
+
/**
|
|
977
|
+
* @generated from field: optional string page_token = 6;
|
|
978
|
+
*/
|
|
979
|
+
pageToken?: string;
|
|
980
|
+
constructor(data?: PartialMessage<ListTopPoolsRequest>);
|
|
981
|
+
static readonly runtime: typeof proto3;
|
|
982
|
+
static readonly typeName = "data.v1.ListTopPoolsRequest";
|
|
983
|
+
static readonly fields: FieldList;
|
|
984
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTopPoolsRequest;
|
|
985
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTopPoolsRequest;
|
|
986
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopPoolsRequest;
|
|
987
|
+
static equals(a: ListTopPoolsRequest | PlainMessage<ListTopPoolsRequest> | undefined, b: ListTopPoolsRequest | PlainMessage<ListTopPoolsRequest> | undefined): boolean;
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* @generated from message data.v1.ListTopPoolsResponse
|
|
991
|
+
*/
|
|
992
|
+
export declare class ListTopPoolsResponse extends Message<ListTopPoolsResponse> {
|
|
993
|
+
/**
|
|
994
|
+
* @generated from field: repeated data.v1.Pool pools = 1;
|
|
995
|
+
*/
|
|
996
|
+
pools: Pool$1[];
|
|
997
|
+
/**
|
|
998
|
+
* @generated from field: optional string next_page_token = 2;
|
|
999
|
+
*/
|
|
1000
|
+
nextPageToken?: string;
|
|
1001
|
+
constructor(data?: PartialMessage<ListTopPoolsResponse>);
|
|
1002
|
+
static readonly runtime: typeof proto3;
|
|
1003
|
+
static readonly typeName = "data.v1.ListTopPoolsResponse";
|
|
1004
|
+
static readonly fields: FieldList;
|
|
1005
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTopPoolsResponse;
|
|
1006
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTopPoolsResponse;
|
|
1007
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopPoolsResponse;
|
|
1008
|
+
static equals(a: ListTopPoolsResponse | PlainMessage<ListTopPoolsResponse> | undefined, b: ListTopPoolsResponse | PlainMessage<ListTopPoolsResponse> | undefined): boolean;
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* @generated from message data.v1.GetProtocolStatsRequest
|
|
1012
|
+
*/
|
|
1013
|
+
export declare class GetProtocolStatsRequest extends Message<GetProtocolStatsRequest> {
|
|
1014
|
+
constructor(data?: PartialMessage<GetProtocolStatsRequest>);
|
|
1015
|
+
static readonly runtime: typeof proto3;
|
|
1016
|
+
static readonly typeName = "data.v1.GetProtocolStatsRequest";
|
|
1017
|
+
static readonly fields: FieldList;
|
|
1018
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProtocolStatsRequest;
|
|
1019
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProtocolStatsRequest;
|
|
1020
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProtocolStatsRequest;
|
|
1021
|
+
static equals(a: GetProtocolStatsRequest | PlainMessage<GetProtocolStatsRequest> | undefined, b: GetProtocolStatsRequest | PlainMessage<GetProtocolStatsRequest> | undefined): boolean;
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* @generated from message data.v1.GetProtocolStatsResponse
|
|
1025
|
+
*/
|
|
1026
|
+
export declare class GetProtocolStatsResponse extends Message<GetProtocolStatsResponse> {
|
|
1027
|
+
/**
|
|
1028
|
+
* @generated from field: uint32 total_pools = 1;
|
|
1029
|
+
*/
|
|
1030
|
+
totalPools: number;
|
|
1031
|
+
/**
|
|
1032
|
+
* @generated from field: uint32 total_v2_pools = 2;
|
|
1033
|
+
*/
|
|
1034
|
+
totalV2Pools: number;
|
|
1035
|
+
/**
|
|
1036
|
+
* @generated from field: uint32 total_v3_pools = 3;
|
|
1037
|
+
*/
|
|
1038
|
+
totalV3Pools: number;
|
|
1039
|
+
/**
|
|
1040
|
+
* @generated from field: uint32 total_v4_pools = 4;
|
|
1041
|
+
*/
|
|
1042
|
+
totalV4Pools: number;
|
|
1043
|
+
/**
|
|
1044
|
+
* @generated from field: double tvl = 5;
|
|
1045
|
+
*/
|
|
1046
|
+
tvl: number;
|
|
1047
|
+
/**
|
|
1048
|
+
* @generated from field: double v2_tvl = 6;
|
|
1049
|
+
*/
|
|
1050
|
+
v2Tvl: number;
|
|
1051
|
+
/**
|
|
1052
|
+
* @generated from field: double v3_tvl = 7;
|
|
1053
|
+
*/
|
|
1054
|
+
v3Tvl: number;
|
|
1055
|
+
/**
|
|
1056
|
+
* @generated from field: double v4_tvl = 8;
|
|
1057
|
+
*/
|
|
1058
|
+
v4Tvl: number;
|
|
1059
|
+
/**
|
|
1060
|
+
* @generated from field: double volume_1d = 9;
|
|
1061
|
+
*/
|
|
1062
|
+
volume1d: number;
|
|
1063
|
+
/**
|
|
1064
|
+
* @generated from field: double v2_volume_1d = 10;
|
|
1065
|
+
*/
|
|
1066
|
+
v2Volume1d: number;
|
|
1067
|
+
/**
|
|
1068
|
+
* @generated from field: double v3_volume_1d = 11;
|
|
1069
|
+
*/
|
|
1070
|
+
v3Volume1d: number;
|
|
1071
|
+
/**
|
|
1072
|
+
* @generated from field: double v4_volume_1d = 12;
|
|
1073
|
+
*/
|
|
1074
|
+
v4Volume1d: number;
|
|
1075
|
+
/**
|
|
1076
|
+
* @generated from field: float volume_change_1d = 13;
|
|
1077
|
+
*/
|
|
1078
|
+
volumeChange1d: number;
|
|
1079
|
+
/**
|
|
1080
|
+
* @generated from field: float tvl_change_1d = 14;
|
|
1081
|
+
*/
|
|
1082
|
+
tvlChange1d: number;
|
|
1083
|
+
/**
|
|
1084
|
+
* @generated from field: float v2_tvl_change_1d = 15;
|
|
1085
|
+
*/
|
|
1086
|
+
v2TvlChange1d: number;
|
|
1087
|
+
/**
|
|
1088
|
+
* @generated from field: float v3_tvl_change_1d = 16;
|
|
1089
|
+
*/
|
|
1090
|
+
v3TvlChange1d: number;
|
|
1091
|
+
/**
|
|
1092
|
+
* @generated from field: float v4_tvl_change_1d = 17;
|
|
1093
|
+
*/
|
|
1094
|
+
v4TvlChange1d: number;
|
|
1095
|
+
/**
|
|
1096
|
+
* @generated from field: float total_pools_change_1d = 18;
|
|
1097
|
+
*/
|
|
1098
|
+
totalPoolsChange1d: number;
|
|
1099
|
+
constructor(data?: PartialMessage<GetProtocolStatsResponse>);
|
|
1100
|
+
static readonly runtime: typeof proto3;
|
|
1101
|
+
static readonly typeName = "data.v1.GetProtocolStatsResponse";
|
|
1102
|
+
static readonly fields: FieldList;
|
|
1103
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProtocolStatsResponse;
|
|
1104
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProtocolStatsResponse;
|
|
1105
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProtocolStatsResponse;
|
|
1106
|
+
static equals(a: GetProtocolStatsResponse | PlainMessage<GetProtocolStatsResponse> | undefined, b: GetProtocolStatsResponse | PlainMessage<GetProtocolStatsResponse> | undefined): boolean;
|
|
1107
|
+
}
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
|
|
6
|
+
import { Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
|
|
7
7
|
import { Pair, Pool, Position, PositionStatus, ProtocolVersion } from "./poolTypes_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* @generated from enum data.v1.Platform
|
|
@@ -43,6 +43,45 @@ proto3.util.setEnumType(OrderBy, "data.v1.OrderBy", [
|
|
|
43
43
|
{ no: 0, name: "ORDER_BY_UNSPECIFIED" },
|
|
44
44
|
{ no: 1, name: "ORDER_BY_CREATION_DATE" },
|
|
45
45
|
]);
|
|
46
|
+
/**
|
|
47
|
+
* @generated from enum data.v1.TopPoolsOrderBy
|
|
48
|
+
*/
|
|
49
|
+
export var TopPoolsOrderBy;
|
|
50
|
+
(function (TopPoolsOrderBy) {
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_UNSPECIFIED = 0;
|
|
53
|
+
*/
|
|
54
|
+
TopPoolsOrderBy[TopPoolsOrderBy["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_TVL = 1;
|
|
57
|
+
*/
|
|
58
|
+
TopPoolsOrderBy[TopPoolsOrderBy["TVL"] = 1] = "TVL";
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_VOLUME_1D = 2;
|
|
61
|
+
*/
|
|
62
|
+
TopPoolsOrderBy[TopPoolsOrderBy["VOLUME_1D"] = 2] = "VOLUME_1D";
|
|
63
|
+
/**
|
|
64
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_VOLUME_30D = 3;
|
|
65
|
+
*/
|
|
66
|
+
TopPoolsOrderBy[TopPoolsOrderBy["VOLUME_30D"] = 3] = "VOLUME_30D";
|
|
67
|
+
/**
|
|
68
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_APR = 4;
|
|
69
|
+
*/
|
|
70
|
+
TopPoolsOrderBy[TopPoolsOrderBy["APR"] = 4] = "APR";
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum value: TOP_POOLS_ORDER_BY_REWARD_APR = 5;
|
|
73
|
+
*/
|
|
74
|
+
TopPoolsOrderBy[TopPoolsOrderBy["REWARD_APR"] = 5] = "REWARD_APR";
|
|
75
|
+
})(TopPoolsOrderBy || (TopPoolsOrderBy = {}));
|
|
76
|
+
// Retrieve enum metadata with: proto3.getEnumType(TopPoolsOrderBy)
|
|
77
|
+
proto3.util.setEnumType(TopPoolsOrderBy, "data.v1.TopPoolsOrderBy", [
|
|
78
|
+
{ no: 0, name: "TOP_POOLS_ORDER_BY_UNSPECIFIED" },
|
|
79
|
+
{ no: 1, name: "TOP_POOLS_ORDER_BY_TVL" },
|
|
80
|
+
{ no: 2, name: "TOP_POOLS_ORDER_BY_VOLUME_1D" },
|
|
81
|
+
{ no: 3, name: "TOP_POOLS_ORDER_BY_VOLUME_30D" },
|
|
82
|
+
{ no: 4, name: "TOP_POOLS_ORDER_BY_APR" },
|
|
83
|
+
{ no: 5, name: "TOP_POOLS_ORDER_BY_REWARD_APR" },
|
|
84
|
+
]);
|
|
46
85
|
/**
|
|
47
86
|
* @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
|
|
48
87
|
*/
|
|
@@ -1322,3 +1361,212 @@ GetRewardsResponse.typeName = "data.v1.GetRewardsResponse";
|
|
|
1322
1361
|
GetRewardsResponse.fields = proto3.util.newFieldList(() => [
|
|
1323
1362
|
{ no: 1, name: "total_unclaimed_amount_uni", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1324
1363
|
]);
|
|
1364
|
+
/**
|
|
1365
|
+
* @generated from message data.v1.ListTopPoolsRequest
|
|
1366
|
+
*/
|
|
1367
|
+
export class ListTopPoolsRequest extends Message {
|
|
1368
|
+
constructor(data) {
|
|
1369
|
+
super();
|
|
1370
|
+
/**
|
|
1371
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
1372
|
+
*/
|
|
1373
|
+
this.chainIds = [];
|
|
1374
|
+
/**
|
|
1375
|
+
* @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 2;
|
|
1376
|
+
*/
|
|
1377
|
+
this.protocolVersions = [];
|
|
1378
|
+
proto3.util.initPartial(data, this);
|
|
1379
|
+
}
|
|
1380
|
+
static fromBinary(bytes, options) {
|
|
1381
|
+
return new ListTopPoolsRequest().fromBinary(bytes, options);
|
|
1382
|
+
}
|
|
1383
|
+
static fromJson(jsonValue, options) {
|
|
1384
|
+
return new ListTopPoolsRequest().fromJson(jsonValue, options);
|
|
1385
|
+
}
|
|
1386
|
+
static fromJsonString(jsonString, options) {
|
|
1387
|
+
return new ListTopPoolsRequest().fromJsonString(jsonString, options);
|
|
1388
|
+
}
|
|
1389
|
+
static equals(a, b) {
|
|
1390
|
+
return proto3.util.equals(ListTopPoolsRequest, a, b);
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
ListTopPoolsRequest.runtime = proto3;
|
|
1394
|
+
ListTopPoolsRequest.typeName = "data.v1.ListTopPoolsRequest";
|
|
1395
|
+
ListTopPoolsRequest.fields = proto3.util.newFieldList(() => [
|
|
1396
|
+
{ no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1397
|
+
{ no: 2, name: "protocol_versions", kind: "enum", T: proto3.getEnumType(ProtocolVersion), repeated: true },
|
|
1398
|
+
{ no: 3, name: "order_by", kind: "enum", T: proto3.getEnumType(TopPoolsOrderBy), opt: true },
|
|
1399
|
+
{ no: 4, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1400
|
+
{ no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1401
|
+
{ no: 6, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1402
|
+
]);
|
|
1403
|
+
/**
|
|
1404
|
+
* @generated from message data.v1.ListTopPoolsResponse
|
|
1405
|
+
*/
|
|
1406
|
+
export class ListTopPoolsResponse extends Message {
|
|
1407
|
+
constructor(data) {
|
|
1408
|
+
super();
|
|
1409
|
+
/**
|
|
1410
|
+
* @generated from field: repeated data.v1.Pool pools = 1;
|
|
1411
|
+
*/
|
|
1412
|
+
this.pools = [];
|
|
1413
|
+
proto3.util.initPartial(data, this);
|
|
1414
|
+
}
|
|
1415
|
+
static fromBinary(bytes, options) {
|
|
1416
|
+
return new ListTopPoolsResponse().fromBinary(bytes, options);
|
|
1417
|
+
}
|
|
1418
|
+
static fromJson(jsonValue, options) {
|
|
1419
|
+
return new ListTopPoolsResponse().fromJson(jsonValue, options);
|
|
1420
|
+
}
|
|
1421
|
+
static fromJsonString(jsonString, options) {
|
|
1422
|
+
return new ListTopPoolsResponse().fromJsonString(jsonString, options);
|
|
1423
|
+
}
|
|
1424
|
+
static equals(a, b) {
|
|
1425
|
+
return proto3.util.equals(ListTopPoolsResponse, a, b);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
ListTopPoolsResponse.runtime = proto3;
|
|
1429
|
+
ListTopPoolsResponse.typeName = "data.v1.ListTopPoolsResponse";
|
|
1430
|
+
ListTopPoolsResponse.fields = proto3.util.newFieldList(() => [
|
|
1431
|
+
{ no: 1, name: "pools", kind: "message", T: Pool$1, repeated: true },
|
|
1432
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1433
|
+
]);
|
|
1434
|
+
/**
|
|
1435
|
+
* @generated from message data.v1.GetProtocolStatsRequest
|
|
1436
|
+
*/
|
|
1437
|
+
export class GetProtocolStatsRequest extends Message {
|
|
1438
|
+
constructor(data) {
|
|
1439
|
+
super();
|
|
1440
|
+
proto3.util.initPartial(data, this);
|
|
1441
|
+
}
|
|
1442
|
+
static fromBinary(bytes, options) {
|
|
1443
|
+
return new GetProtocolStatsRequest().fromBinary(bytes, options);
|
|
1444
|
+
}
|
|
1445
|
+
static fromJson(jsonValue, options) {
|
|
1446
|
+
return new GetProtocolStatsRequest().fromJson(jsonValue, options);
|
|
1447
|
+
}
|
|
1448
|
+
static fromJsonString(jsonString, options) {
|
|
1449
|
+
return new GetProtocolStatsRequest().fromJsonString(jsonString, options);
|
|
1450
|
+
}
|
|
1451
|
+
static equals(a, b) {
|
|
1452
|
+
return proto3.util.equals(GetProtocolStatsRequest, a, b);
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
GetProtocolStatsRequest.runtime = proto3;
|
|
1456
|
+
GetProtocolStatsRequest.typeName = "data.v1.GetProtocolStatsRequest";
|
|
1457
|
+
GetProtocolStatsRequest.fields = proto3.util.newFieldList(() => []);
|
|
1458
|
+
/**
|
|
1459
|
+
* @generated from message data.v1.GetProtocolStatsResponse
|
|
1460
|
+
*/
|
|
1461
|
+
export class GetProtocolStatsResponse extends Message {
|
|
1462
|
+
constructor(data) {
|
|
1463
|
+
super();
|
|
1464
|
+
/**
|
|
1465
|
+
* @generated from field: uint32 total_pools = 1;
|
|
1466
|
+
*/
|
|
1467
|
+
this.totalPools = 0;
|
|
1468
|
+
/**
|
|
1469
|
+
* @generated from field: uint32 total_v2_pools = 2;
|
|
1470
|
+
*/
|
|
1471
|
+
this.totalV2Pools = 0;
|
|
1472
|
+
/**
|
|
1473
|
+
* @generated from field: uint32 total_v3_pools = 3;
|
|
1474
|
+
*/
|
|
1475
|
+
this.totalV3Pools = 0;
|
|
1476
|
+
/**
|
|
1477
|
+
* @generated from field: uint32 total_v4_pools = 4;
|
|
1478
|
+
*/
|
|
1479
|
+
this.totalV4Pools = 0;
|
|
1480
|
+
/**
|
|
1481
|
+
* @generated from field: double tvl = 5;
|
|
1482
|
+
*/
|
|
1483
|
+
this.tvl = 0;
|
|
1484
|
+
/**
|
|
1485
|
+
* @generated from field: double v2_tvl = 6;
|
|
1486
|
+
*/
|
|
1487
|
+
this.v2Tvl = 0;
|
|
1488
|
+
/**
|
|
1489
|
+
* @generated from field: double v3_tvl = 7;
|
|
1490
|
+
*/
|
|
1491
|
+
this.v3Tvl = 0;
|
|
1492
|
+
/**
|
|
1493
|
+
* @generated from field: double v4_tvl = 8;
|
|
1494
|
+
*/
|
|
1495
|
+
this.v4Tvl = 0;
|
|
1496
|
+
/**
|
|
1497
|
+
* @generated from field: double volume_1d = 9;
|
|
1498
|
+
*/
|
|
1499
|
+
this.volume1d = 0;
|
|
1500
|
+
/**
|
|
1501
|
+
* @generated from field: double v2_volume_1d = 10;
|
|
1502
|
+
*/
|
|
1503
|
+
this.v2Volume1d = 0;
|
|
1504
|
+
/**
|
|
1505
|
+
* @generated from field: double v3_volume_1d = 11;
|
|
1506
|
+
*/
|
|
1507
|
+
this.v3Volume1d = 0;
|
|
1508
|
+
/**
|
|
1509
|
+
* @generated from field: double v4_volume_1d = 12;
|
|
1510
|
+
*/
|
|
1511
|
+
this.v4Volume1d = 0;
|
|
1512
|
+
/**
|
|
1513
|
+
* @generated from field: float volume_change_1d = 13;
|
|
1514
|
+
*/
|
|
1515
|
+
this.volumeChange1d = 0;
|
|
1516
|
+
/**
|
|
1517
|
+
* @generated from field: float tvl_change_1d = 14;
|
|
1518
|
+
*/
|
|
1519
|
+
this.tvlChange1d = 0;
|
|
1520
|
+
/**
|
|
1521
|
+
* @generated from field: float v2_tvl_change_1d = 15;
|
|
1522
|
+
*/
|
|
1523
|
+
this.v2TvlChange1d = 0;
|
|
1524
|
+
/**
|
|
1525
|
+
* @generated from field: float v3_tvl_change_1d = 16;
|
|
1526
|
+
*/
|
|
1527
|
+
this.v3TvlChange1d = 0;
|
|
1528
|
+
/**
|
|
1529
|
+
* @generated from field: float v4_tvl_change_1d = 17;
|
|
1530
|
+
*/
|
|
1531
|
+
this.v4TvlChange1d = 0;
|
|
1532
|
+
/**
|
|
1533
|
+
* @generated from field: float total_pools_change_1d = 18;
|
|
1534
|
+
*/
|
|
1535
|
+
this.totalPoolsChange1d = 0;
|
|
1536
|
+
proto3.util.initPartial(data, this);
|
|
1537
|
+
}
|
|
1538
|
+
static fromBinary(bytes, options) {
|
|
1539
|
+
return new GetProtocolStatsResponse().fromBinary(bytes, options);
|
|
1540
|
+
}
|
|
1541
|
+
static fromJson(jsonValue, options) {
|
|
1542
|
+
return new GetProtocolStatsResponse().fromJson(jsonValue, options);
|
|
1543
|
+
}
|
|
1544
|
+
static fromJsonString(jsonString, options) {
|
|
1545
|
+
return new GetProtocolStatsResponse().fromJsonString(jsonString, options);
|
|
1546
|
+
}
|
|
1547
|
+
static equals(a, b) {
|
|
1548
|
+
return proto3.util.equals(GetProtocolStatsResponse, a, b);
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
GetProtocolStatsResponse.runtime = proto3;
|
|
1552
|
+
GetProtocolStatsResponse.typeName = "data.v1.GetProtocolStatsResponse";
|
|
1553
|
+
GetProtocolStatsResponse.fields = proto3.util.newFieldList(() => [
|
|
1554
|
+
{ no: 1, name: "total_pools", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1555
|
+
{ no: 2, name: "total_v2_pools", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1556
|
+
{ no: 3, name: "total_v3_pools", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1557
|
+
{ no: 4, name: "total_v4_pools", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1558
|
+
{ no: 5, name: "tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1559
|
+
{ no: 6, name: "v2_tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1560
|
+
{ no: 7, name: "v3_tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1561
|
+
{ no: 8, name: "v4_tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1562
|
+
{ no: 9, name: "volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1563
|
+
{ no: 10, name: "v2_volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1564
|
+
{ no: 11, name: "v3_volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1565
|
+
{ no: 12, name: "v4_volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1566
|
+
{ no: 13, name: "volume_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1567
|
+
{ no: 14, name: "tvl_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1568
|
+
{ no: 15, name: "v2_tvl_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1569
|
+
{ no: 16, name: "v3_tvl_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1570
|
+
{ no: 17, name: "v4_tvl_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1571
|
+
{ no: 18, name: "total_pools_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1572
|
+
]);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { ProtocolVersion } from "./poolTypes_pb.js";
|
|
3
4
|
/**
|
|
4
5
|
* @generated from enum data.v1.TokenType
|
|
5
6
|
*/
|
|
@@ -1168,3 +1169,89 @@ export declare class TransactionFee extends Message<TransactionFee> {
|
|
|
1168
1169
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransactionFee;
|
|
1169
1170
|
static equals(a: TransactionFee | PlainMessage<TransactionFee> | undefined, b: TransactionFee | PlainMessage<TransactionFee> | undefined): boolean;
|
|
1170
1171
|
}
|
|
1172
|
+
/**
|
|
1173
|
+
* @generated from message data.v1.PoolStats
|
|
1174
|
+
*/
|
|
1175
|
+
export declare class PoolStats extends Message<PoolStats> {
|
|
1176
|
+
/**
|
|
1177
|
+
* @generated from field: double tvl = 1;
|
|
1178
|
+
*/
|
|
1179
|
+
tvl: number;
|
|
1180
|
+
/**
|
|
1181
|
+
* @generated from field: double volume_1d = 2;
|
|
1182
|
+
*/
|
|
1183
|
+
volume1d: number;
|
|
1184
|
+
/**
|
|
1185
|
+
* @generated from field: double volume_30d = 3;
|
|
1186
|
+
*/
|
|
1187
|
+
volume30d: number;
|
|
1188
|
+
/**
|
|
1189
|
+
* @generated from field: float apr = 4;
|
|
1190
|
+
*/
|
|
1191
|
+
apr: number;
|
|
1192
|
+
/**
|
|
1193
|
+
* @generated from field: float reward_apr = 5;
|
|
1194
|
+
*/
|
|
1195
|
+
rewardApr: number;
|
|
1196
|
+
/**
|
|
1197
|
+
* @generated from field: float total_apr = 6;
|
|
1198
|
+
*/
|
|
1199
|
+
totalApr: number;
|
|
1200
|
+
constructor(data?: PartialMessage<PoolStats>);
|
|
1201
|
+
static readonly runtime: typeof proto3;
|
|
1202
|
+
static readonly typeName = "data.v1.PoolStats";
|
|
1203
|
+
static readonly fields: FieldList;
|
|
1204
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolStats;
|
|
1205
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolStats;
|
|
1206
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolStats;
|
|
1207
|
+
static equals(a: PoolStats | PlainMessage<PoolStats> | undefined, b: PoolStats | PlainMessage<PoolStats> | undefined): boolean;
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* @generated from message data.v1.Pool
|
|
1211
|
+
*/
|
|
1212
|
+
export declare class Pool extends Message<Pool> {
|
|
1213
|
+
/**
|
|
1214
|
+
* @generated from field: uint32 chain_id = 1;
|
|
1215
|
+
*/
|
|
1216
|
+
chainId: number;
|
|
1217
|
+
/**
|
|
1218
|
+
* @generated from field: string pool_id = 2;
|
|
1219
|
+
*/
|
|
1220
|
+
poolId: string;
|
|
1221
|
+
/**
|
|
1222
|
+
* @generated from field: data.v1.Token token0 = 3;
|
|
1223
|
+
*/
|
|
1224
|
+
token0?: Token;
|
|
1225
|
+
/**
|
|
1226
|
+
* @generated from field: data.v1.Token token1 = 4;
|
|
1227
|
+
*/
|
|
1228
|
+
token1?: Token;
|
|
1229
|
+
/**
|
|
1230
|
+
* @generated from field: pools.v1.ProtocolVersion protocol_version = 5;
|
|
1231
|
+
*/
|
|
1232
|
+
protocolVersion: ProtocolVersion;
|
|
1233
|
+
/**
|
|
1234
|
+
* @generated from field: uint32 fee_tier = 6;
|
|
1235
|
+
*/
|
|
1236
|
+
feeTier: number;
|
|
1237
|
+
/**
|
|
1238
|
+
* @generated from field: bool is_dynamic_fee = 7;
|
|
1239
|
+
*/
|
|
1240
|
+
isDynamicFee: boolean;
|
|
1241
|
+
/**
|
|
1242
|
+
* @generated from field: optional string hook_address = 8;
|
|
1243
|
+
*/
|
|
1244
|
+
hookAddress?: string;
|
|
1245
|
+
/**
|
|
1246
|
+
* @generated from field: data.v1.PoolStats stats = 9;
|
|
1247
|
+
*/
|
|
1248
|
+
stats?: PoolStats;
|
|
1249
|
+
constructor(data?: PartialMessage<Pool>);
|
|
1250
|
+
static readonly runtime: typeof proto3;
|
|
1251
|
+
static readonly typeName = "data.v1.Pool";
|
|
1252
|
+
static readonly fields: FieldList;
|
|
1253
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pool;
|
|
1254
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pool;
|
|
1255
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pool;
|
|
1256
|
+
static equals(a: Pool | PlainMessage<Pool> | undefined, b: Pool | PlainMessage<Pool> | undefined): boolean;
|
|
1257
|
+
}
|
package/dist/data/v1/types_pb.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
|
+
import { ProtocolVersion } from "./poolTypes_pb.js";
|
|
6
7
|
/**
|
|
7
8
|
* @generated from enum data.v1.TokenType
|
|
8
9
|
*/
|
|
@@ -1539,3 +1540,112 @@ TransactionFee.fields = proto3.util.newFieldList(() => [
|
|
|
1539
1540
|
{ no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1540
1541
|
{ no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1541
1542
|
]);
|
|
1543
|
+
/**
|
|
1544
|
+
* @generated from message data.v1.PoolStats
|
|
1545
|
+
*/
|
|
1546
|
+
export class PoolStats extends Message {
|
|
1547
|
+
constructor(data) {
|
|
1548
|
+
super();
|
|
1549
|
+
/**
|
|
1550
|
+
* @generated from field: double tvl = 1;
|
|
1551
|
+
*/
|
|
1552
|
+
this.tvl = 0;
|
|
1553
|
+
/**
|
|
1554
|
+
* @generated from field: double volume_1d = 2;
|
|
1555
|
+
*/
|
|
1556
|
+
this.volume1d = 0;
|
|
1557
|
+
/**
|
|
1558
|
+
* @generated from field: double volume_30d = 3;
|
|
1559
|
+
*/
|
|
1560
|
+
this.volume30d = 0;
|
|
1561
|
+
/**
|
|
1562
|
+
* @generated from field: float apr = 4;
|
|
1563
|
+
*/
|
|
1564
|
+
this.apr = 0;
|
|
1565
|
+
/**
|
|
1566
|
+
* @generated from field: float reward_apr = 5;
|
|
1567
|
+
*/
|
|
1568
|
+
this.rewardApr = 0;
|
|
1569
|
+
/**
|
|
1570
|
+
* @generated from field: float total_apr = 6;
|
|
1571
|
+
*/
|
|
1572
|
+
this.totalApr = 0;
|
|
1573
|
+
proto3.util.initPartial(data, this);
|
|
1574
|
+
}
|
|
1575
|
+
static fromBinary(bytes, options) {
|
|
1576
|
+
return new PoolStats().fromBinary(bytes, options);
|
|
1577
|
+
}
|
|
1578
|
+
static fromJson(jsonValue, options) {
|
|
1579
|
+
return new PoolStats().fromJson(jsonValue, options);
|
|
1580
|
+
}
|
|
1581
|
+
static fromJsonString(jsonString, options) {
|
|
1582
|
+
return new PoolStats().fromJsonString(jsonString, options);
|
|
1583
|
+
}
|
|
1584
|
+
static equals(a, b) {
|
|
1585
|
+
return proto3.util.equals(PoolStats, a, b);
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
PoolStats.runtime = proto3;
|
|
1589
|
+
PoolStats.typeName = "data.v1.PoolStats";
|
|
1590
|
+
PoolStats.fields = proto3.util.newFieldList(() => [
|
|
1591
|
+
{ no: 1, name: "tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1592
|
+
{ no: 2, name: "volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1593
|
+
{ no: 3, name: "volume_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1594
|
+
{ no: 4, name: "apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1595
|
+
{ no: 5, name: "reward_apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1596
|
+
{ no: 6, name: "total_apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1597
|
+
]);
|
|
1598
|
+
/**
|
|
1599
|
+
* @generated from message data.v1.Pool
|
|
1600
|
+
*/
|
|
1601
|
+
export class Pool extends Message {
|
|
1602
|
+
constructor(data) {
|
|
1603
|
+
super();
|
|
1604
|
+
/**
|
|
1605
|
+
* @generated from field: uint32 chain_id = 1;
|
|
1606
|
+
*/
|
|
1607
|
+
this.chainId = 0;
|
|
1608
|
+
/**
|
|
1609
|
+
* @generated from field: string pool_id = 2;
|
|
1610
|
+
*/
|
|
1611
|
+
this.poolId = "";
|
|
1612
|
+
/**
|
|
1613
|
+
* @generated from field: pools.v1.ProtocolVersion protocol_version = 5;
|
|
1614
|
+
*/
|
|
1615
|
+
this.protocolVersion = ProtocolVersion.UNSPECIFIED;
|
|
1616
|
+
/**
|
|
1617
|
+
* @generated from field: uint32 fee_tier = 6;
|
|
1618
|
+
*/
|
|
1619
|
+
this.feeTier = 0;
|
|
1620
|
+
/**
|
|
1621
|
+
* @generated from field: bool is_dynamic_fee = 7;
|
|
1622
|
+
*/
|
|
1623
|
+
this.isDynamicFee = false;
|
|
1624
|
+
proto3.util.initPartial(data, this);
|
|
1625
|
+
}
|
|
1626
|
+
static fromBinary(bytes, options) {
|
|
1627
|
+
return new Pool().fromBinary(bytes, options);
|
|
1628
|
+
}
|
|
1629
|
+
static fromJson(jsonValue, options) {
|
|
1630
|
+
return new Pool().fromJson(jsonValue, options);
|
|
1631
|
+
}
|
|
1632
|
+
static fromJsonString(jsonString, options) {
|
|
1633
|
+
return new Pool().fromJsonString(jsonString, options);
|
|
1634
|
+
}
|
|
1635
|
+
static equals(a, b) {
|
|
1636
|
+
return proto3.util.equals(Pool, a, b);
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
Pool.runtime = proto3;
|
|
1640
|
+
Pool.typeName = "data.v1.Pool";
|
|
1641
|
+
Pool.fields = proto3.util.newFieldList(() => [
|
|
1642
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1643
|
+
{ no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1644
|
+
{ no: 3, name: "token0", kind: "message", T: Token },
|
|
1645
|
+
{ no: 4, name: "token1", kind: "message", T: Token },
|
|
1646
|
+
{ no: 5, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
|
|
1647
|
+
{ no: 6, name: "fee_tier", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1648
|
+
{ no: 7, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1649
|
+
{ no: 8, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1650
|
+
{ no: 9, name: "stats", kind: "message", T: PoolStats },
|
|
1651
|
+
]);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import {
|
|
2
|
+
import { RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
3
3
|
/**
|
|
4
|
-
* @generated from rpc data.v1.WorkerService.
|
|
4
|
+
* @generated from rpc data.v1.WorkerService.RefreshProtocolStats
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
7
|
-
readonly localName: "
|
|
8
|
-
readonly name: "
|
|
6
|
+
export declare const refreshProtocolStats: {
|
|
7
|
+
readonly localName: "refreshProtocolStats";
|
|
8
|
+
readonly name: "RefreshProtocolStats";
|
|
9
9
|
readonly kind: MethodKind.Unary;
|
|
10
|
-
readonly I: typeof
|
|
11
|
-
readonly O: typeof
|
|
10
|
+
readonly I: typeof RefreshProtocolStatsRequest;
|
|
11
|
+
readonly O: typeof RefreshProtocolStatsResponse;
|
|
12
12
|
readonly service: {
|
|
13
13
|
readonly typeName: "data.v1.WorkerService";
|
|
14
14
|
};
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import {
|
|
6
|
+
import { RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
7
7
|
/**
|
|
8
|
-
* @generated from rpc data.v1.WorkerService.
|
|
8
|
+
* @generated from rpc data.v1.WorkerService.RefreshProtocolStats
|
|
9
9
|
*/
|
|
10
|
-
export const
|
|
11
|
-
localName: "
|
|
12
|
-
name: "
|
|
10
|
+
export const refreshProtocolStats = {
|
|
11
|
+
localName: "refreshProtocolStats",
|
|
12
|
+
name: "RefreshProtocolStats",
|
|
13
13
|
kind: MethodKind.Unary,
|
|
14
|
-
I:
|
|
15
|
-
O:
|
|
14
|
+
I: RefreshProtocolStatsRequest,
|
|
15
|
+
O: RefreshProtocolStatsResponse,
|
|
16
16
|
service: {
|
|
17
17
|
typeName: "data.v1.WorkerService"
|
|
18
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v1.WorkerService
|
|
@@ -7,12 +7,12 @@ export declare const WorkerService: {
|
|
|
7
7
|
readonly typeName: "data.v1.WorkerService";
|
|
8
8
|
readonly methods: {
|
|
9
9
|
/**
|
|
10
|
-
* @generated from rpc data.v1.WorkerService.
|
|
10
|
+
* @generated from rpc data.v1.WorkerService.RefreshProtocolStats
|
|
11
11
|
*/
|
|
12
|
-
readonly
|
|
13
|
-
readonly name: "
|
|
14
|
-
readonly I: typeof
|
|
15
|
-
readonly O: typeof
|
|
12
|
+
readonly refreshProtocolStats: {
|
|
13
|
+
readonly name: "RefreshProtocolStats";
|
|
14
|
+
readonly I: typeof RefreshProtocolStatsRequest;
|
|
15
|
+
readonly O: typeof RefreshProtocolStatsResponse;
|
|
16
16
|
readonly kind: MethodKind.Unary;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file data/v1/workerService.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import {
|
|
5
|
+
import { RefreshProtocolStatsRequest, RefreshProtocolStatsResponse } from "./workerService_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v1.WorkerService
|
|
@@ -11,12 +11,12 @@ export const WorkerService = {
|
|
|
11
11
|
typeName: "data.v1.WorkerService",
|
|
12
12
|
methods: {
|
|
13
13
|
/**
|
|
14
|
-
* @generated from rpc data.v1.WorkerService.
|
|
14
|
+
* @generated from rpc data.v1.WorkerService.RefreshProtocolStats
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
name: "
|
|
18
|
-
I:
|
|
19
|
-
O:
|
|
16
|
+
refreshProtocolStats: {
|
|
17
|
+
name: "RefreshProtocolStats",
|
|
18
|
+
I: RefreshProtocolStatsRequest,
|
|
19
|
+
O: RefreshProtocolStatsResponse,
|
|
20
20
|
kind: MethodKind.Unary,
|
|
21
21
|
},
|
|
22
22
|
}
|
|
@@ -1,74 +1,28 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
|
-
* @generated from message data.v1.
|
|
4
|
+
* @generated from message data.v1.RefreshProtocolStatsRequest
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
7
|
-
|
|
8
|
-
* @generated from field: data.v1.Bucket bucket = 1;
|
|
9
|
-
*/
|
|
10
|
-
bucket?: Bucket;
|
|
11
|
-
/**
|
|
12
|
-
* @generated from field: data.v1.S3Object object = 2;
|
|
13
|
-
*/
|
|
14
|
-
object?: S3Object;
|
|
15
|
-
/**
|
|
16
|
-
* @generated from field: string reason = 3;
|
|
17
|
-
*/
|
|
18
|
-
reason: string;
|
|
19
|
-
constructor(data?: PartialMessage<IngestPoolsFromS3Request>);
|
|
6
|
+
export declare class RefreshProtocolStatsRequest extends Message<RefreshProtocolStatsRequest> {
|
|
7
|
+
constructor(data?: PartialMessage<RefreshProtocolStatsRequest>);
|
|
20
8
|
static readonly runtime: typeof proto3;
|
|
21
|
-
static readonly typeName = "data.v1.
|
|
9
|
+
static readonly typeName = "data.v1.RefreshProtocolStatsRequest";
|
|
22
10
|
static readonly fields: FieldList;
|
|
23
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
24
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
25
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
26
|
-
static equals(a:
|
|
11
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RefreshProtocolStatsRequest;
|
|
12
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RefreshProtocolStatsRequest;
|
|
13
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RefreshProtocolStatsRequest;
|
|
14
|
+
static equals(a: RefreshProtocolStatsRequest | PlainMessage<RefreshProtocolStatsRequest> | undefined, b: RefreshProtocolStatsRequest | PlainMessage<RefreshProtocolStatsRequest> | undefined): boolean;
|
|
27
15
|
}
|
|
28
16
|
/**
|
|
29
|
-
* @generated from message data.v1.
|
|
17
|
+
* @generated from message data.v1.RefreshProtocolStatsResponse
|
|
30
18
|
*/
|
|
31
|
-
export declare class
|
|
32
|
-
|
|
33
|
-
* @generated from field: string name = 1;
|
|
34
|
-
*/
|
|
35
|
-
name: string;
|
|
36
|
-
constructor(data?: PartialMessage<Bucket>);
|
|
19
|
+
export declare class RefreshProtocolStatsResponse extends Message<RefreshProtocolStatsResponse> {
|
|
20
|
+
constructor(data?: PartialMessage<RefreshProtocolStatsResponse>);
|
|
37
21
|
static readonly runtime: typeof proto3;
|
|
38
|
-
static readonly typeName = "data.v1.
|
|
22
|
+
static readonly typeName = "data.v1.RefreshProtocolStatsResponse";
|
|
39
23
|
static readonly fields: FieldList;
|
|
40
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
41
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
42
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
43
|
-
static equals(a:
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @generated from message data.v1.S3Object
|
|
47
|
-
*/
|
|
48
|
-
export declare class S3Object extends Message<S3Object> {
|
|
49
|
-
/**
|
|
50
|
-
* @generated from field: string key = 1;
|
|
51
|
-
*/
|
|
52
|
-
key: string;
|
|
53
|
-
constructor(data?: PartialMessage<S3Object>);
|
|
54
|
-
static readonly runtime: typeof proto3;
|
|
55
|
-
static readonly typeName = "data.v1.S3Object";
|
|
56
|
-
static readonly fields: FieldList;
|
|
57
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): S3Object;
|
|
58
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): S3Object;
|
|
59
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): S3Object;
|
|
60
|
-
static equals(a: S3Object | PlainMessage<S3Object> | undefined, b: S3Object | PlainMessage<S3Object> | undefined): boolean;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* @generated from message data.v1.IngestPoolsFromS3Response
|
|
64
|
-
*/
|
|
65
|
-
export declare class IngestPoolsFromS3Response extends Message<IngestPoolsFromS3Response> {
|
|
66
|
-
constructor(data?: PartialMessage<IngestPoolsFromS3Response>);
|
|
67
|
-
static readonly runtime: typeof proto3;
|
|
68
|
-
static readonly typeName = "data.v1.IngestPoolsFromS3Response";
|
|
69
|
-
static readonly fields: FieldList;
|
|
70
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestPoolsFromS3Response;
|
|
71
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestPoolsFromS3Response;
|
|
72
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestPoolsFromS3Response;
|
|
73
|
-
static equals(a: IngestPoolsFromS3Response | PlainMessage<IngestPoolsFromS3Response> | undefined, b: IngestPoolsFromS3Response | PlainMessage<IngestPoolsFromS3Response> | undefined): boolean;
|
|
24
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RefreshProtocolStatsResponse;
|
|
25
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RefreshProtocolStatsResponse;
|
|
26
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RefreshProtocolStatsResponse;
|
|
27
|
+
static equals(a: RefreshProtocolStatsResponse | PlainMessage<RefreshProtocolStatsResponse> | undefined, b: RefreshProtocolStatsResponse | PlainMessage<RefreshProtocolStatsResponse> | undefined): boolean;
|
|
74
28
|
}
|
|
@@ -4,118 +4,50 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
6
|
/**
|
|
7
|
-
* @generated from message data.v1.
|
|
7
|
+
* @generated from message data.v1.RefreshProtocolStatsRequest
|
|
8
8
|
*/
|
|
9
|
-
export class
|
|
9
|
+
export class RefreshProtocolStatsRequest extends Message {
|
|
10
10
|
constructor(data) {
|
|
11
11
|
super();
|
|
12
|
-
/**
|
|
13
|
-
* @generated from field: string reason = 3;
|
|
14
|
-
*/
|
|
15
|
-
this.reason = "";
|
|
16
12
|
proto3.util.initPartial(data, this);
|
|
17
13
|
}
|
|
18
14
|
static fromBinary(bytes, options) {
|
|
19
|
-
return new
|
|
15
|
+
return new RefreshProtocolStatsRequest().fromBinary(bytes, options);
|
|
20
16
|
}
|
|
21
17
|
static fromJson(jsonValue, options) {
|
|
22
|
-
return new
|
|
18
|
+
return new RefreshProtocolStatsRequest().fromJson(jsonValue, options);
|
|
23
19
|
}
|
|
24
20
|
static fromJsonString(jsonString, options) {
|
|
25
|
-
return new
|
|
21
|
+
return new RefreshProtocolStatsRequest().fromJsonString(jsonString, options);
|
|
26
22
|
}
|
|
27
23
|
static equals(a, b) {
|
|
28
|
-
return proto3.util.equals(
|
|
24
|
+
return proto3.util.equals(RefreshProtocolStatsRequest, a, b);
|
|
29
25
|
}
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{ no: 1, name: "bucket", kind: "message", T: Bucket },
|
|
35
|
-
{ no: 2, name: "object", kind: "message", T: S3Object },
|
|
36
|
-
{ no: 3, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
37
|
-
]);
|
|
27
|
+
RefreshProtocolStatsRequest.runtime = proto3;
|
|
28
|
+
RefreshProtocolStatsRequest.typeName = "data.v1.RefreshProtocolStatsRequest";
|
|
29
|
+
RefreshProtocolStatsRequest.fields = proto3.util.newFieldList(() => []);
|
|
38
30
|
/**
|
|
39
|
-
* @generated from message data.v1.
|
|
31
|
+
* @generated from message data.v1.RefreshProtocolStatsResponse
|
|
40
32
|
*/
|
|
41
|
-
export class
|
|
33
|
+
export class RefreshProtocolStatsResponse extends Message {
|
|
42
34
|
constructor(data) {
|
|
43
35
|
super();
|
|
44
|
-
/**
|
|
45
|
-
* @generated from field: string name = 1;
|
|
46
|
-
*/
|
|
47
|
-
this.name = "";
|
|
48
36
|
proto3.util.initPartial(data, this);
|
|
49
37
|
}
|
|
50
38
|
static fromBinary(bytes, options) {
|
|
51
|
-
return new
|
|
39
|
+
return new RefreshProtocolStatsResponse().fromBinary(bytes, options);
|
|
52
40
|
}
|
|
53
41
|
static fromJson(jsonValue, options) {
|
|
54
|
-
return new
|
|
42
|
+
return new RefreshProtocolStatsResponse().fromJson(jsonValue, options);
|
|
55
43
|
}
|
|
56
44
|
static fromJsonString(jsonString, options) {
|
|
57
|
-
return new
|
|
45
|
+
return new RefreshProtocolStatsResponse().fromJsonString(jsonString, options);
|
|
58
46
|
}
|
|
59
47
|
static equals(a, b) {
|
|
60
|
-
return proto3.util.equals(
|
|
48
|
+
return proto3.util.equals(RefreshProtocolStatsResponse, a, b);
|
|
61
49
|
}
|
|
62
50
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
67
|
-
]);
|
|
68
|
-
/**
|
|
69
|
-
* @generated from message data.v1.S3Object
|
|
70
|
-
*/
|
|
71
|
-
export class S3Object extends Message {
|
|
72
|
-
constructor(data) {
|
|
73
|
-
super();
|
|
74
|
-
/**
|
|
75
|
-
* @generated from field: string key = 1;
|
|
76
|
-
*/
|
|
77
|
-
this.key = "";
|
|
78
|
-
proto3.util.initPartial(data, this);
|
|
79
|
-
}
|
|
80
|
-
static fromBinary(bytes, options) {
|
|
81
|
-
return new S3Object().fromBinary(bytes, options);
|
|
82
|
-
}
|
|
83
|
-
static fromJson(jsonValue, options) {
|
|
84
|
-
return new S3Object().fromJson(jsonValue, options);
|
|
85
|
-
}
|
|
86
|
-
static fromJsonString(jsonString, options) {
|
|
87
|
-
return new S3Object().fromJsonString(jsonString, options);
|
|
88
|
-
}
|
|
89
|
-
static equals(a, b) {
|
|
90
|
-
return proto3.util.equals(S3Object, a, b);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
S3Object.runtime = proto3;
|
|
94
|
-
S3Object.typeName = "data.v1.S3Object";
|
|
95
|
-
S3Object.fields = proto3.util.newFieldList(() => [
|
|
96
|
-
{ no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
97
|
-
]);
|
|
98
|
-
/**
|
|
99
|
-
* @generated from message data.v1.IngestPoolsFromS3Response
|
|
100
|
-
*/
|
|
101
|
-
export class IngestPoolsFromS3Response extends Message {
|
|
102
|
-
constructor(data) {
|
|
103
|
-
super();
|
|
104
|
-
proto3.util.initPartial(data, this);
|
|
105
|
-
}
|
|
106
|
-
static fromBinary(bytes, options) {
|
|
107
|
-
return new IngestPoolsFromS3Response().fromBinary(bytes, options);
|
|
108
|
-
}
|
|
109
|
-
static fromJson(jsonValue, options) {
|
|
110
|
-
return new IngestPoolsFromS3Response().fromJson(jsonValue, options);
|
|
111
|
-
}
|
|
112
|
-
static fromJsonString(jsonString, options) {
|
|
113
|
-
return new IngestPoolsFromS3Response().fromJsonString(jsonString, options);
|
|
114
|
-
}
|
|
115
|
-
static equals(a, b) {
|
|
116
|
-
return proto3.util.equals(IngestPoolsFromS3Response, a, b);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
IngestPoolsFromS3Response.runtime = proto3;
|
|
120
|
-
IngestPoolsFromS3Response.typeName = "data.v1.IngestPoolsFromS3Response";
|
|
121
|
-
IngestPoolsFromS3Response.fields = proto3.util.newFieldList(() => []);
|
|
51
|
+
RefreshProtocolStatsResponse.runtime = proto3;
|
|
52
|
+
RefreshProtocolStatsResponse.typeName = "data.v1.RefreshProtocolStatsResponse";
|
|
53
|
+
RefreshProtocolStatsResponse.fields = proto3.util.newFieldList(() => []);
|