@uniswap/client-data-api 0.0.15 → 0.0.17
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 +120 -1
- package/dist/data/v1/api_pb.js +164 -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 +28 -0
- package/dist/data/v1/workerService-WorkerService_connectquery.js +32 -0
- package/dist/data/v1/workerService_connect.d.ts +28 -0
- package/dist/data/v1/workerService_connect.js +32 -0
- package/dist/data/v1/workerService_pb.d.ts +104 -0
- package/dist/data/v1/workerService_pb.js +175 -0
- 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, 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, 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
|
*/
|
|
@@ -117,6 +117,19 @@ export declare const createTokenFactoryPresignedUrl: {
|
|
|
117
117
|
readonly typeName: "data.v1.DataApiService";
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* @generated from rpc data.v1.DataApiService.InvokeTokenFactorySubgraphSyncer
|
|
122
|
+
*/
|
|
123
|
+
export declare const invokeTokenFactorySubgraphSyncer: {
|
|
124
|
+
readonly localName: "invokeTokenFactorySubgraphSyncer";
|
|
125
|
+
readonly name: "InvokeTokenFactorySubgraphSyncer";
|
|
126
|
+
readonly kind: MethodKind.Unary;
|
|
127
|
+
readonly I: typeof InvokeTokenFactorySubgraphSyncerRequest;
|
|
128
|
+
readonly O: typeof InvokeTokenFactorySubgraphSyncerResponse;
|
|
129
|
+
readonly service: {
|
|
130
|
+
readonly typeName: "data.v1.DataApiService";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
120
133
|
/**
|
|
121
134
|
* @generated from rpc data.v1.DataApiService.GetPair
|
|
122
135
|
*/
|
|
@@ -195,3 +208,16 @@ export declare const getRewards: {
|
|
|
195
208
|
readonly typeName: "data.v1.DataApiService";
|
|
196
209
|
};
|
|
197
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
|
+
};
|
|
@@ -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, 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, 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
|
*/
|
|
@@ -121,6 +121,19 @@ export const createTokenFactoryPresignedUrl = {
|
|
|
121
121
|
typeName: "data.v1.DataApiService"
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* @generated from rpc data.v1.DataApiService.InvokeTokenFactorySubgraphSyncer
|
|
126
|
+
*/
|
|
127
|
+
export const invokeTokenFactorySubgraphSyncer = {
|
|
128
|
+
localName: "invokeTokenFactorySubgraphSyncer",
|
|
129
|
+
name: "InvokeTokenFactorySubgraphSyncer",
|
|
130
|
+
kind: MethodKind.Unary,
|
|
131
|
+
I: InvokeTokenFactorySubgraphSyncerRequest,
|
|
132
|
+
O: InvokeTokenFactorySubgraphSyncerResponse,
|
|
133
|
+
service: {
|
|
134
|
+
typeName: "data.v1.DataApiService"
|
|
135
|
+
}
|
|
136
|
+
};
|
|
124
137
|
/**
|
|
125
138
|
* @generated from rpc data.v1.DataApiService.GetPair
|
|
126
139
|
*/
|
|
@@ -199,3 +212,16 @@ export const getRewards = {
|
|
|
199
212
|
typeName: "data.v1.DataApiService"
|
|
200
213
|
}
|
|
201
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
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, 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, 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
|
|
@@ -87,6 +87,15 @@ export declare const DataApiService: {
|
|
|
87
87
|
readonly O: typeof CreateTokenFactoryPresignedUrlResponse;
|
|
88
88
|
readonly kind: MethodKind.Unary;
|
|
89
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* @generated from rpc data.v1.DataApiService.InvokeTokenFactorySubgraphSyncer
|
|
92
|
+
*/
|
|
93
|
+
readonly invokeTokenFactorySubgraphSyncer: {
|
|
94
|
+
readonly name: "InvokeTokenFactorySubgraphSyncer";
|
|
95
|
+
readonly I: typeof InvokeTokenFactorySubgraphSyncerRequest;
|
|
96
|
+
readonly O: typeof InvokeTokenFactorySubgraphSyncerResponse;
|
|
97
|
+
readonly kind: MethodKind.Unary;
|
|
98
|
+
};
|
|
90
99
|
/**
|
|
91
100
|
* @generated from rpc data.v1.DataApiService.GetPair
|
|
92
101
|
*/
|
|
@@ -141,5 +150,14 @@ export declare const DataApiService: {
|
|
|
141
150
|
readonly O: typeof GetRewardsResponse;
|
|
142
151
|
readonly kind: MethodKind.Unary;
|
|
143
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
|
+
};
|
|
144
162
|
};
|
|
145
163
|
};
|
|
@@ -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, 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, 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
|
|
@@ -91,6 +91,15 @@ export const DataApiService = {
|
|
|
91
91
|
O: CreateTokenFactoryPresignedUrlResponse,
|
|
92
92
|
kind: MethodKind.Unary,
|
|
93
93
|
},
|
|
94
|
+
/**
|
|
95
|
+
* @generated from rpc data.v1.DataApiService.InvokeTokenFactorySubgraphSyncer
|
|
96
|
+
*/
|
|
97
|
+
invokeTokenFactorySubgraphSyncer: {
|
|
98
|
+
name: "InvokeTokenFactorySubgraphSyncer",
|
|
99
|
+
I: InvokeTokenFactorySubgraphSyncerRequest,
|
|
100
|
+
O: InvokeTokenFactorySubgraphSyncerResponse,
|
|
101
|
+
kind: MethodKind.Unary,
|
|
102
|
+
},
|
|
94
103
|
/**
|
|
95
104
|
* @generated from rpc data.v1.DataApiService.GetPair
|
|
96
105
|
*/
|
|
@@ -145,5 +154,14 @@ export const DataApiService = {
|
|
|
145
154
|
O: GetRewardsResponse,
|
|
146
155
|
kind: MethodKind.Unary,
|
|
147
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
|
+
},
|
|
148
166
|
}
|
|
149
167
|
};
|
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
|
*/
|
|
@@ -546,6 +575,36 @@ export declare class CreateTokenFactoryPresignedUrlResponse extends Message<Crea
|
|
|
546
575
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateTokenFactoryPresignedUrlResponse;
|
|
547
576
|
static equals(a: CreateTokenFactoryPresignedUrlResponse | PlainMessage<CreateTokenFactoryPresignedUrlResponse> | undefined, b: CreateTokenFactoryPresignedUrlResponse | PlainMessage<CreateTokenFactoryPresignedUrlResponse> | undefined): boolean;
|
|
548
577
|
}
|
|
578
|
+
/**
|
|
579
|
+
* @generated from message data.v1.InvokeTokenFactorySubgraphSyncerRequest
|
|
580
|
+
*/
|
|
581
|
+
export declare class InvokeTokenFactorySubgraphSyncerRequest extends Message<InvokeTokenFactorySubgraphSyncerRequest> {
|
|
582
|
+
constructor(data?: PartialMessage<InvokeTokenFactorySubgraphSyncerRequest>);
|
|
583
|
+
static readonly runtime: typeof proto3;
|
|
584
|
+
static readonly typeName = "data.v1.InvokeTokenFactorySubgraphSyncerRequest";
|
|
585
|
+
static readonly fields: FieldList;
|
|
586
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InvokeTokenFactorySubgraphSyncerRequest;
|
|
587
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InvokeTokenFactorySubgraphSyncerRequest;
|
|
588
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InvokeTokenFactorySubgraphSyncerRequest;
|
|
589
|
+
static equals(a: InvokeTokenFactorySubgraphSyncerRequest | PlainMessage<InvokeTokenFactorySubgraphSyncerRequest> | undefined, b: InvokeTokenFactorySubgraphSyncerRequest | PlainMessage<InvokeTokenFactorySubgraphSyncerRequest> | undefined): boolean;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* @generated from message data.v1.InvokeTokenFactorySubgraphSyncerResponse
|
|
593
|
+
*/
|
|
594
|
+
export declare class InvokeTokenFactorySubgraphSyncerResponse extends Message<InvokeTokenFactorySubgraphSyncerResponse> {
|
|
595
|
+
/**
|
|
596
|
+
* @generated from field: bool success = 1;
|
|
597
|
+
*/
|
|
598
|
+
success: boolean;
|
|
599
|
+
constructor(data?: PartialMessage<InvokeTokenFactorySubgraphSyncerResponse>);
|
|
600
|
+
static readonly runtime: typeof proto3;
|
|
601
|
+
static readonly typeName = "data.v1.InvokeTokenFactorySubgraphSyncerResponse";
|
|
602
|
+
static readonly fields: FieldList;
|
|
603
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InvokeTokenFactorySubgraphSyncerResponse;
|
|
604
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InvokeTokenFactorySubgraphSyncerResponse;
|
|
605
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InvokeTokenFactorySubgraphSyncerResponse;
|
|
606
|
+
static equals(a: InvokeTokenFactorySubgraphSyncerResponse | PlainMessage<InvokeTokenFactorySubgraphSyncerResponse> | undefined, b: InvokeTokenFactorySubgraphSyncerResponse | PlainMessage<InvokeTokenFactorySubgraphSyncerResponse> | undefined): boolean;
|
|
607
|
+
}
|
|
549
608
|
/**
|
|
550
609
|
* @generated from message data.v1.GetPairRequest
|
|
551
610
|
*/
|
|
@@ -888,3 +947,63 @@ export declare class GetRewardsResponse extends Message<GetRewardsResponse> {
|
|
|
888
947
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRewardsResponse;
|
|
889
948
|
static equals(a: GetRewardsResponse | PlainMessage<GetRewardsResponse> | undefined, b: GetRewardsResponse | PlainMessage<GetRewardsResponse> | undefined): boolean;
|
|
890
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
|
+
}
|
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
|
*/
|
|
@@ -822,6 +861,60 @@ CreateTokenFactoryPresignedUrlResponse.typeName = "data.v1.CreateTokenFactoryPre
|
|
|
822
861
|
CreateTokenFactoryPresignedUrlResponse.fields = proto3.util.newFieldList(() => [
|
|
823
862
|
{ no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
824
863
|
]);
|
|
864
|
+
/**
|
|
865
|
+
* @generated from message data.v1.InvokeTokenFactorySubgraphSyncerRequest
|
|
866
|
+
*/
|
|
867
|
+
export class InvokeTokenFactorySubgraphSyncerRequest extends Message {
|
|
868
|
+
constructor(data) {
|
|
869
|
+
super();
|
|
870
|
+
proto3.util.initPartial(data, this);
|
|
871
|
+
}
|
|
872
|
+
static fromBinary(bytes, options) {
|
|
873
|
+
return new InvokeTokenFactorySubgraphSyncerRequest().fromBinary(bytes, options);
|
|
874
|
+
}
|
|
875
|
+
static fromJson(jsonValue, options) {
|
|
876
|
+
return new InvokeTokenFactorySubgraphSyncerRequest().fromJson(jsonValue, options);
|
|
877
|
+
}
|
|
878
|
+
static fromJsonString(jsonString, options) {
|
|
879
|
+
return new InvokeTokenFactorySubgraphSyncerRequest().fromJsonString(jsonString, options);
|
|
880
|
+
}
|
|
881
|
+
static equals(a, b) {
|
|
882
|
+
return proto3.util.equals(InvokeTokenFactorySubgraphSyncerRequest, a, b);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
InvokeTokenFactorySubgraphSyncerRequest.runtime = proto3;
|
|
886
|
+
InvokeTokenFactorySubgraphSyncerRequest.typeName = "data.v1.InvokeTokenFactorySubgraphSyncerRequest";
|
|
887
|
+
InvokeTokenFactorySubgraphSyncerRequest.fields = proto3.util.newFieldList(() => []);
|
|
888
|
+
/**
|
|
889
|
+
* @generated from message data.v1.InvokeTokenFactorySubgraphSyncerResponse
|
|
890
|
+
*/
|
|
891
|
+
export class InvokeTokenFactorySubgraphSyncerResponse extends Message {
|
|
892
|
+
constructor(data) {
|
|
893
|
+
super();
|
|
894
|
+
/**
|
|
895
|
+
* @generated from field: bool success = 1;
|
|
896
|
+
*/
|
|
897
|
+
this.success = false;
|
|
898
|
+
proto3.util.initPartial(data, this);
|
|
899
|
+
}
|
|
900
|
+
static fromBinary(bytes, options) {
|
|
901
|
+
return new InvokeTokenFactorySubgraphSyncerResponse().fromBinary(bytes, options);
|
|
902
|
+
}
|
|
903
|
+
static fromJson(jsonValue, options) {
|
|
904
|
+
return new InvokeTokenFactorySubgraphSyncerResponse().fromJson(jsonValue, options);
|
|
905
|
+
}
|
|
906
|
+
static fromJsonString(jsonString, options) {
|
|
907
|
+
return new InvokeTokenFactorySubgraphSyncerResponse().fromJsonString(jsonString, options);
|
|
908
|
+
}
|
|
909
|
+
static equals(a, b) {
|
|
910
|
+
return proto3.util.equals(InvokeTokenFactorySubgraphSyncerResponse, a, b);
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
InvokeTokenFactorySubgraphSyncerResponse.runtime = proto3;
|
|
914
|
+
InvokeTokenFactorySubgraphSyncerResponse.typeName = "data.v1.InvokeTokenFactorySubgraphSyncerResponse";
|
|
915
|
+
InvokeTokenFactorySubgraphSyncerResponse.fields = proto3.util.newFieldList(() => [
|
|
916
|
+
{ no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
917
|
+
]);
|
|
825
918
|
/**
|
|
826
919
|
* @generated from message data.v1.GetPairRequest
|
|
827
920
|
*/
|
|
@@ -1268,3 +1361,73 @@ GetRewardsResponse.typeName = "data.v1.GetRewardsResponse";
|
|
|
1268
1361
|
GetRewardsResponse.fields = proto3.util.newFieldList(() => [
|
|
1269
1362
|
{ no: 1, name: "total_unclaimed_amount_uni", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1270
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
|
+
]);
|
|
@@ -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
|
+
]);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { IngestPoolsFromQueueRequest, IngestPoolsFromQueueResponse, IngestPoolsFromS3Request, IngestPoolsFromS3Response } from "./workerService_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from rpc data.v1.WorkerService.IngestPoolsFromS3
|
|
5
|
+
*/
|
|
6
|
+
export declare const ingestPoolsFromS3: {
|
|
7
|
+
readonly localName: "ingestPoolsFromS3";
|
|
8
|
+
readonly name: "IngestPoolsFromS3";
|
|
9
|
+
readonly kind: MethodKind.Unary;
|
|
10
|
+
readonly I: typeof IngestPoolsFromS3Request;
|
|
11
|
+
readonly O: typeof IngestPoolsFromS3Response;
|
|
12
|
+
readonly service: {
|
|
13
|
+
readonly typeName: "data.v1.WorkerService";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @generated from rpc data.v1.WorkerService.IngestPoolsFromQueue
|
|
18
|
+
*/
|
|
19
|
+
export declare const ingestPoolsFromQueue: {
|
|
20
|
+
readonly localName: "ingestPoolsFromQueue";
|
|
21
|
+
readonly name: "IngestPoolsFromQueue";
|
|
22
|
+
readonly kind: MethodKind.Unary;
|
|
23
|
+
readonly I: typeof IngestPoolsFromQueueRequest;
|
|
24
|
+
readonly O: typeof IngestPoolsFromQueueResponse;
|
|
25
|
+
readonly service: {
|
|
26
|
+
readonly typeName: "data.v1.WorkerService";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v1/workerService.proto (package data.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { IngestPoolsFromQueueRequest, IngestPoolsFromQueueResponse, IngestPoolsFromS3Request, IngestPoolsFromS3Response } from "./workerService_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from rpc data.v1.WorkerService.IngestPoolsFromS3
|
|
9
|
+
*/
|
|
10
|
+
export const ingestPoolsFromS3 = {
|
|
11
|
+
localName: "ingestPoolsFromS3",
|
|
12
|
+
name: "IngestPoolsFromS3",
|
|
13
|
+
kind: MethodKind.Unary,
|
|
14
|
+
I: IngestPoolsFromS3Request,
|
|
15
|
+
O: IngestPoolsFromS3Response,
|
|
16
|
+
service: {
|
|
17
|
+
typeName: "data.v1.WorkerService"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @generated from rpc data.v1.WorkerService.IngestPoolsFromQueue
|
|
22
|
+
*/
|
|
23
|
+
export const ingestPoolsFromQueue = {
|
|
24
|
+
localName: "ingestPoolsFromQueue",
|
|
25
|
+
name: "IngestPoolsFromQueue",
|
|
26
|
+
kind: MethodKind.Unary,
|
|
27
|
+
I: IngestPoolsFromQueueRequest,
|
|
28
|
+
O: IngestPoolsFromQueueResponse,
|
|
29
|
+
service: {
|
|
30
|
+
typeName: "data.v1.WorkerService"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IngestPoolsFromQueueRequest, IngestPoolsFromQueueResponse, IngestPoolsFromS3Request, IngestPoolsFromS3Response } from "./workerService_pb.js";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from service data.v1.WorkerService
|
|
5
|
+
*/
|
|
6
|
+
export declare const WorkerService: {
|
|
7
|
+
readonly typeName: "data.v1.WorkerService";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from rpc data.v1.WorkerService.IngestPoolsFromS3
|
|
11
|
+
*/
|
|
12
|
+
readonly ingestPoolsFromS3: {
|
|
13
|
+
readonly name: "IngestPoolsFromS3";
|
|
14
|
+
readonly I: typeof IngestPoolsFromS3Request;
|
|
15
|
+
readonly O: typeof IngestPoolsFromS3Response;
|
|
16
|
+
readonly kind: MethodKind.Unary;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc data.v1.WorkerService.IngestPoolsFromQueue
|
|
20
|
+
*/
|
|
21
|
+
readonly ingestPoolsFromQueue: {
|
|
22
|
+
readonly name: "IngestPoolsFromQueue";
|
|
23
|
+
readonly I: typeof IngestPoolsFromQueueRequest;
|
|
24
|
+
readonly O: typeof IngestPoolsFromQueueResponse;
|
|
25
|
+
readonly kind: MethodKind.Unary;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v1/workerService.proto (package data.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { IngestPoolsFromQueueRequest, IngestPoolsFromQueueResponse, IngestPoolsFromS3Request, IngestPoolsFromS3Response } from "./workerService_pb.js";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from service data.v1.WorkerService
|
|
9
|
+
*/
|
|
10
|
+
export const WorkerService = {
|
|
11
|
+
typeName: "data.v1.WorkerService",
|
|
12
|
+
methods: {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from rpc data.v1.WorkerService.IngestPoolsFromS3
|
|
15
|
+
*/
|
|
16
|
+
ingestPoolsFromS3: {
|
|
17
|
+
name: "IngestPoolsFromS3",
|
|
18
|
+
I: IngestPoolsFromS3Request,
|
|
19
|
+
O: IngestPoolsFromS3Response,
|
|
20
|
+
kind: MethodKind.Unary,
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* @generated from rpc data.v1.WorkerService.IngestPoolsFromQueue
|
|
24
|
+
*/
|
|
25
|
+
ingestPoolsFromQueue: {
|
|
26
|
+
name: "IngestPoolsFromQueue",
|
|
27
|
+
I: IngestPoolsFromQueueRequest,
|
|
28
|
+
O: IngestPoolsFromQueueResponse,
|
|
29
|
+
kind: MethodKind.Unary,
|
|
30
|
+
},
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message data.v1.IngestPoolsFromS3Request
|
|
5
|
+
*/
|
|
6
|
+
export declare class IngestPoolsFromS3Request extends Message<IngestPoolsFromS3Request> {
|
|
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>);
|
|
20
|
+
static readonly runtime: typeof proto3;
|
|
21
|
+
static readonly typeName = "data.v1.IngestPoolsFromS3Request";
|
|
22
|
+
static readonly fields: FieldList;
|
|
23
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestPoolsFromS3Request;
|
|
24
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestPoolsFromS3Request;
|
|
25
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestPoolsFromS3Request;
|
|
26
|
+
static equals(a: IngestPoolsFromS3Request | PlainMessage<IngestPoolsFromS3Request> | undefined, b: IngestPoolsFromS3Request | PlainMessage<IngestPoolsFromS3Request> | undefined): boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @generated from message data.v1.Bucket
|
|
30
|
+
*/
|
|
31
|
+
export declare class Bucket extends Message<Bucket> {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from field: string name = 1;
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
constructor(data?: PartialMessage<Bucket>);
|
|
37
|
+
static readonly runtime: typeof proto3;
|
|
38
|
+
static readonly typeName = "data.v1.Bucket";
|
|
39
|
+
static readonly fields: FieldList;
|
|
40
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Bucket;
|
|
41
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Bucket;
|
|
42
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Bucket;
|
|
43
|
+
static equals(a: Bucket | PlainMessage<Bucket> | undefined, b: Bucket | PlainMessage<Bucket> | undefined): boolean;
|
|
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;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @generated from message data.v1.IngestPoolsFromQueueRequest
|
|
77
|
+
*/
|
|
78
|
+
export declare class IngestPoolsFromQueueRequest extends Message<IngestPoolsFromQueueRequest> {
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: bool backfill = 1;
|
|
81
|
+
*/
|
|
82
|
+
backfill: boolean;
|
|
83
|
+
constructor(data?: PartialMessage<IngestPoolsFromQueueRequest>);
|
|
84
|
+
static readonly runtime: typeof proto3;
|
|
85
|
+
static readonly typeName = "data.v1.IngestPoolsFromQueueRequest";
|
|
86
|
+
static readonly fields: FieldList;
|
|
87
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestPoolsFromQueueRequest;
|
|
88
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestPoolsFromQueueRequest;
|
|
89
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestPoolsFromQueueRequest;
|
|
90
|
+
static equals(a: IngestPoolsFromQueueRequest | PlainMessage<IngestPoolsFromQueueRequest> | undefined, b: IngestPoolsFromQueueRequest | PlainMessage<IngestPoolsFromQueueRequest> | undefined): boolean;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @generated from message data.v1.IngestPoolsFromQueueResponse
|
|
94
|
+
*/
|
|
95
|
+
export declare class IngestPoolsFromQueueResponse extends Message<IngestPoolsFromQueueResponse> {
|
|
96
|
+
constructor(data?: PartialMessage<IngestPoolsFromQueueResponse>);
|
|
97
|
+
static readonly runtime: typeof proto3;
|
|
98
|
+
static readonly typeName = "data.v1.IngestPoolsFromQueueResponse";
|
|
99
|
+
static readonly fields: FieldList;
|
|
100
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestPoolsFromQueueResponse;
|
|
101
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestPoolsFromQueueResponse;
|
|
102
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestPoolsFromQueueResponse;
|
|
103
|
+
static equals(a: IngestPoolsFromQueueResponse | PlainMessage<IngestPoolsFromQueueResponse> | undefined, b: IngestPoolsFromQueueResponse | PlainMessage<IngestPoolsFromQueueResponse> | undefined): boolean;
|
|
104
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v1/workerService.proto (package data.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from message data.v1.IngestPoolsFromS3Request
|
|
8
|
+
*/
|
|
9
|
+
export class IngestPoolsFromS3Request extends Message {
|
|
10
|
+
constructor(data) {
|
|
11
|
+
super();
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: string reason = 3;
|
|
14
|
+
*/
|
|
15
|
+
this.reason = "";
|
|
16
|
+
proto3.util.initPartial(data, this);
|
|
17
|
+
}
|
|
18
|
+
static fromBinary(bytes, options) {
|
|
19
|
+
return new IngestPoolsFromS3Request().fromBinary(bytes, options);
|
|
20
|
+
}
|
|
21
|
+
static fromJson(jsonValue, options) {
|
|
22
|
+
return new IngestPoolsFromS3Request().fromJson(jsonValue, options);
|
|
23
|
+
}
|
|
24
|
+
static fromJsonString(jsonString, options) {
|
|
25
|
+
return new IngestPoolsFromS3Request().fromJsonString(jsonString, options);
|
|
26
|
+
}
|
|
27
|
+
static equals(a, b) {
|
|
28
|
+
return proto3.util.equals(IngestPoolsFromS3Request, a, b);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
IngestPoolsFromS3Request.runtime = proto3;
|
|
32
|
+
IngestPoolsFromS3Request.typeName = "data.v1.IngestPoolsFromS3Request";
|
|
33
|
+
IngestPoolsFromS3Request.fields = proto3.util.newFieldList(() => [
|
|
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
|
+
]);
|
|
38
|
+
/**
|
|
39
|
+
* @generated from message data.v1.Bucket
|
|
40
|
+
*/
|
|
41
|
+
export class Bucket extends Message {
|
|
42
|
+
constructor(data) {
|
|
43
|
+
super();
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: string name = 1;
|
|
46
|
+
*/
|
|
47
|
+
this.name = "";
|
|
48
|
+
proto3.util.initPartial(data, this);
|
|
49
|
+
}
|
|
50
|
+
static fromBinary(bytes, options) {
|
|
51
|
+
return new Bucket().fromBinary(bytes, options);
|
|
52
|
+
}
|
|
53
|
+
static fromJson(jsonValue, options) {
|
|
54
|
+
return new Bucket().fromJson(jsonValue, options);
|
|
55
|
+
}
|
|
56
|
+
static fromJsonString(jsonString, options) {
|
|
57
|
+
return new Bucket().fromJsonString(jsonString, options);
|
|
58
|
+
}
|
|
59
|
+
static equals(a, b) {
|
|
60
|
+
return proto3.util.equals(Bucket, a, b);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
Bucket.runtime = proto3;
|
|
64
|
+
Bucket.typeName = "data.v1.Bucket";
|
|
65
|
+
Bucket.fields = proto3.util.newFieldList(() => [
|
|
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(() => []);
|
|
122
|
+
/**
|
|
123
|
+
* @generated from message data.v1.IngestPoolsFromQueueRequest
|
|
124
|
+
*/
|
|
125
|
+
export class IngestPoolsFromQueueRequest extends Message {
|
|
126
|
+
constructor(data) {
|
|
127
|
+
super();
|
|
128
|
+
/**
|
|
129
|
+
* @generated from field: bool backfill = 1;
|
|
130
|
+
*/
|
|
131
|
+
this.backfill = false;
|
|
132
|
+
proto3.util.initPartial(data, this);
|
|
133
|
+
}
|
|
134
|
+
static fromBinary(bytes, options) {
|
|
135
|
+
return new IngestPoolsFromQueueRequest().fromBinary(bytes, options);
|
|
136
|
+
}
|
|
137
|
+
static fromJson(jsonValue, options) {
|
|
138
|
+
return new IngestPoolsFromQueueRequest().fromJson(jsonValue, options);
|
|
139
|
+
}
|
|
140
|
+
static fromJsonString(jsonString, options) {
|
|
141
|
+
return new IngestPoolsFromQueueRequest().fromJsonString(jsonString, options);
|
|
142
|
+
}
|
|
143
|
+
static equals(a, b) {
|
|
144
|
+
return proto3.util.equals(IngestPoolsFromQueueRequest, a, b);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
IngestPoolsFromQueueRequest.runtime = proto3;
|
|
148
|
+
IngestPoolsFromQueueRequest.typeName = "data.v1.IngestPoolsFromQueueRequest";
|
|
149
|
+
IngestPoolsFromQueueRequest.fields = proto3.util.newFieldList(() => [
|
|
150
|
+
{ no: 1, name: "backfill", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
151
|
+
]);
|
|
152
|
+
/**
|
|
153
|
+
* @generated from message data.v1.IngestPoolsFromQueueResponse
|
|
154
|
+
*/
|
|
155
|
+
export class IngestPoolsFromQueueResponse extends Message {
|
|
156
|
+
constructor(data) {
|
|
157
|
+
super();
|
|
158
|
+
proto3.util.initPartial(data, this);
|
|
159
|
+
}
|
|
160
|
+
static fromBinary(bytes, options) {
|
|
161
|
+
return new IngestPoolsFromQueueResponse().fromBinary(bytes, options);
|
|
162
|
+
}
|
|
163
|
+
static fromJson(jsonValue, options) {
|
|
164
|
+
return new IngestPoolsFromQueueResponse().fromJson(jsonValue, options);
|
|
165
|
+
}
|
|
166
|
+
static fromJsonString(jsonString, options) {
|
|
167
|
+
return new IngestPoolsFromQueueResponse().fromJsonString(jsonString, options);
|
|
168
|
+
}
|
|
169
|
+
static equals(a, b) {
|
|
170
|
+
return proto3.util.equals(IngestPoolsFromQueueResponse, a, b);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
IngestPoolsFromQueueResponse.runtime = proto3;
|
|
174
|
+
IngestPoolsFromQueueResponse.typeName = "data.v1.IngestPoolsFromQueueResponse";
|
|
175
|
+
IngestPoolsFromQueueResponse.fields = proto3.util.newFieldList(() => []);
|