@uniswap/client-data-api 0.0.118 → 0.0.121
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_pb.d.ts +16 -0
- package/dist/data/v1/api_pb.js +2 -0
- package/dist/data/v1/poolTypes_pb.d.ts +8 -0
- package/dist/data/v1/poolTypes_pb.js +9 -0
- package/dist/data/v2/api_pb.d.ts +8 -0
- package/dist/data/v2/api_pb.js +9 -0
- package/dist/data/v2/workerService-WorkerService_connectquery.d.ts +15 -0
- package/dist/data/v2/workerService-WorkerService_connectquery.js +19 -0
- package/dist/data/v2/workerService_connect.d.ts +23 -0
- package/dist/data/v2/workerService_connect.js +27 -0
- package/dist/data/v2/workerService_pb.d.ts +28 -0
- package/dist/data/v2/workerService_pb.js +53 -0
- package/package.json +1 -1
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -957,6 +957,14 @@ export declare class GetPositionRequest extends Message<GetPositionRequest> {
|
|
|
957
957
|
* @generated from field: optional bool fallback_to_chain = 6;
|
|
958
958
|
*/
|
|
959
959
|
fallbackToChain?: boolean;
|
|
960
|
+
/**
|
|
961
|
+
* Selector for V4: if true, resolve tokenId against the PermissionedPositionManager
|
|
962
|
+
* instead of the canonical V4 PositionManager. Default false (canonical). A tokenId
|
|
963
|
+
* is only unique within one manager, so the caller must indicate which to query.
|
|
964
|
+
*
|
|
965
|
+
* @generated from field: optional bool permissioned = 7;
|
|
966
|
+
*/
|
|
967
|
+
permissioned?: boolean;
|
|
960
968
|
constructor(data?: PartialMessage<GetPositionRequest>);
|
|
961
969
|
static readonly runtime: typeof proto3;
|
|
962
970
|
static readonly typeName = "data.v1.GetPositionRequest";
|
|
@@ -1125,6 +1133,14 @@ export declare class ListPositionsRequest extends Message<ListPositionsRequest>
|
|
|
1125
1133
|
* @generated from field: optional bool include_hidden = 12;
|
|
1126
1134
|
*/
|
|
1127
1135
|
includeHidden?: boolean;
|
|
1136
|
+
/**
|
|
1137
|
+
* default false; when true, also returns V4 positions held via the
|
|
1138
|
+
* PermissionedPositionManager (discovered from Aurora). Off by default so
|
|
1139
|
+
* existing callers are unaffected until PA->sec-token translation lands.
|
|
1140
|
+
*
|
|
1141
|
+
* @generated from field: optional bool include_permissioned = 13;
|
|
1142
|
+
*/
|
|
1143
|
+
includePermissioned?: boolean;
|
|
1128
1144
|
constructor(data?: PartialMessage<ListPositionsRequest>);
|
|
1129
1145
|
static readonly runtime: typeof proto3;
|
|
1130
1146
|
static readonly typeName = "data.v1.ListPositionsRequest";
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -1372,6 +1372,7 @@ GetPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1372
1372
|
{ no: 4, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1373
1373
|
{ no: 5, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1374
1374
|
{ no: 6, name: "fallback_to_chain", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1375
|
+
{ no: 7, name: "permissioned", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1375
1376
|
]);
|
|
1376
1377
|
/**
|
|
1377
1378
|
* @generated from message data.v1.GetPositionResponse
|
|
@@ -1536,6 +1537,7 @@ ListPositionsRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1536
1537
|
{ no: 10, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1537
1538
|
{ no: 11, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1538
1539
|
{ no: 12, name: "include_hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1540
|
+
{ no: 13, name: "include_permissioned", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1539
1541
|
]);
|
|
1540
1542
|
/**
|
|
1541
1543
|
* @generated from message data.v1.ListPositionsResponse
|
|
@@ -298,6 +298,14 @@ export declare class Position extends Message<Position> {
|
|
|
298
298
|
* @generated from field: optional double uncollected_fees_usd = 10;
|
|
299
299
|
*/
|
|
300
300
|
uncollectedFeesUsd?: number;
|
|
301
|
+
/**
|
|
302
|
+
* True if this is a permissioned-pool position (held via the
|
|
303
|
+
* PermissionedPositionManager). ListPositions always merges canonical + perm;
|
|
304
|
+
* this discriminates which is which. Default false.
|
|
305
|
+
*
|
|
306
|
+
* @generated from field: bool permissioned = 11;
|
|
307
|
+
*/
|
|
308
|
+
permissioned: boolean;
|
|
301
309
|
constructor(data?: PartialMessage<Position>);
|
|
302
310
|
static readonly runtime: typeof proto3;
|
|
303
311
|
static readonly typeName = "pools.v1.Position";
|
|
@@ -342,6 +342,14 @@ export class Position extends Message {
|
|
|
342
342
|
* @generated from field: bool is_hidden = 8;
|
|
343
343
|
*/
|
|
344
344
|
this.isHidden = false;
|
|
345
|
+
/**
|
|
346
|
+
* True if this is a permissioned-pool position (held via the
|
|
347
|
+
* PermissionedPositionManager). ListPositions always merges canonical + perm;
|
|
348
|
+
* this discriminates which is which. Default false.
|
|
349
|
+
*
|
|
350
|
+
* @generated from field: bool permissioned = 11;
|
|
351
|
+
*/
|
|
352
|
+
this.permissioned = false;
|
|
345
353
|
proto3.util.initPartial(data, this);
|
|
346
354
|
}
|
|
347
355
|
static fromBinary(bytes, options) {
|
|
@@ -370,6 +378,7 @@ Position.fields = proto3.util.newFieldList(() => [
|
|
|
370
378
|
{ no: 8, name: "is_hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
371
379
|
{ no: 9, name: "value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
372
380
|
{ no: 10, name: "uncollected_fees_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
381
|
+
{ no: 11, name: "permissioned", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
373
382
|
]);
|
|
374
383
|
/**
|
|
375
384
|
* @generated from message pools.v1.Hook
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -431,6 +431,14 @@ export declare class GetTokenHistoryTVLRequest extends Message<GetTokenHistoryTV
|
|
|
431
431
|
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
432
432
|
*/
|
|
433
433
|
duration: HistoryDuration;
|
|
434
|
+
/**
|
|
435
|
+
* Multichain filter: aggregate only these chains. Empty = all chains in the
|
|
436
|
+
* asset's group. Ignored for the single_chain target. Solana TVL is
|
|
437
|
+
* included only when its chain id appears here (or the filter is empty).
|
|
438
|
+
*
|
|
439
|
+
* @generated from field: repeated uint32 chain_ids = 4;
|
|
440
|
+
*/
|
|
441
|
+
chainIds: number[];
|
|
434
442
|
constructor(data?: PartialMessage<GetTokenHistoryTVLRequest>);
|
|
435
443
|
static readonly runtime: typeof proto3;
|
|
436
444
|
static readonly typeName = "data.v2.GetTokenHistoryTVLRequest";
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -533,6 +533,14 @@ export class GetTokenHistoryTVLRequest extends Message {
|
|
|
533
533
|
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
534
534
|
*/
|
|
535
535
|
this.duration = HistoryDuration.UNSPECIFIED;
|
|
536
|
+
/**
|
|
537
|
+
* Multichain filter: aggregate only these chains. Empty = all chains in the
|
|
538
|
+
* asset's group. Ignored for the single_chain target. Solana TVL is
|
|
539
|
+
* included only when its chain id appears here (or the filter is empty).
|
|
540
|
+
*
|
|
541
|
+
* @generated from field: repeated uint32 chain_ids = 4;
|
|
542
|
+
*/
|
|
543
|
+
this.chainIds = [];
|
|
536
544
|
proto3.util.initPartial(data, this);
|
|
537
545
|
}
|
|
538
546
|
static fromBinary(bytes, options) {
|
|
@@ -554,6 +562,7 @@ GetTokenHistoryTVLRequest.fields = proto3.util.newFieldList(() => [
|
|
|
554
562
|
{ no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
|
|
555
563
|
{ no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
|
|
556
564
|
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
565
|
+
{ no: 4, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
557
566
|
]);
|
|
558
567
|
/**
|
|
559
568
|
* @generated from message data.v2.GetTokenHistoryTVLResponse
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { RefreshSolanaTopTokensRequest, RefreshSolanaTopTokensResponse } from "./workerService_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from rpc data.v2.WorkerService.RefreshSolanaTopTokens
|
|
5
|
+
*/
|
|
6
|
+
export declare const refreshSolanaTopTokens: {
|
|
7
|
+
readonly localName: "refreshSolanaTopTokens";
|
|
8
|
+
readonly name: "RefreshSolanaTopTokens";
|
|
9
|
+
readonly kind: MethodKind.Unary;
|
|
10
|
+
readonly I: typeof RefreshSolanaTopTokensRequest;
|
|
11
|
+
readonly O: typeof RefreshSolanaTopTokensResponse;
|
|
12
|
+
readonly service: {
|
|
13
|
+
readonly typeName: "data.v2.WorkerService";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v2/workerService.proto (package data.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { RefreshSolanaTopTokensRequest, RefreshSolanaTopTokensResponse } from "./workerService_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from rpc data.v2.WorkerService.RefreshSolanaTopTokens
|
|
9
|
+
*/
|
|
10
|
+
export const refreshSolanaTopTokens = {
|
|
11
|
+
localName: "refreshSolanaTopTokens",
|
|
12
|
+
name: "RefreshSolanaTopTokens",
|
|
13
|
+
kind: MethodKind.Unary,
|
|
14
|
+
I: RefreshSolanaTopTokensRequest,
|
|
15
|
+
O: RefreshSolanaTopTokensResponse,
|
|
16
|
+
service: {
|
|
17
|
+
typeName: "data.v2.WorkerService"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RefreshSolanaTopTokensRequest, RefreshSolanaTopTokensResponse } from "./workerService_pb.js";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Internal worker/cron RPCs for the V2 data API. Triggered by EventBridge
|
|
5
|
+
* schedules (not client-facing), but kept in the v2 namespace alongside the v2
|
|
6
|
+
* data surface they feed.
|
|
7
|
+
*
|
|
8
|
+
* @generated from service data.v2.WorkerService
|
|
9
|
+
*/
|
|
10
|
+
export declare const WorkerService: {
|
|
11
|
+
readonly typeName: "data.v2.WorkerService";
|
|
12
|
+
readonly methods: {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from rpc data.v2.WorkerService.RefreshSolanaTopTokens
|
|
15
|
+
*/
|
|
16
|
+
readonly refreshSolanaTopTokens: {
|
|
17
|
+
readonly name: "RefreshSolanaTopTokens";
|
|
18
|
+
readonly I: typeof RefreshSolanaTopTokensRequest;
|
|
19
|
+
readonly O: typeof RefreshSolanaTopTokensResponse;
|
|
20
|
+
readonly kind: MethodKind.Unary;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v2/workerService.proto (package data.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { RefreshSolanaTopTokensRequest, RefreshSolanaTopTokensResponse } from "./workerService_pb.js";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* Internal worker/cron RPCs for the V2 data API. Triggered by EventBridge
|
|
9
|
+
* schedules (not client-facing), but kept in the v2 namespace alongside the v2
|
|
10
|
+
* data surface they feed.
|
|
11
|
+
*
|
|
12
|
+
* @generated from service data.v2.WorkerService
|
|
13
|
+
*/
|
|
14
|
+
export const WorkerService = {
|
|
15
|
+
typeName: "data.v2.WorkerService",
|
|
16
|
+
methods: {
|
|
17
|
+
/**
|
|
18
|
+
* @generated from rpc data.v2.WorkerService.RefreshSolanaTopTokens
|
|
19
|
+
*/
|
|
20
|
+
refreshSolanaTopTokens: {
|
|
21
|
+
name: "RefreshSolanaTopTokens",
|
|
22
|
+
I: RefreshSolanaTopTokensRequest,
|
|
23
|
+
O: RefreshSolanaTopTokensResponse,
|
|
24
|
+
kind: MethodKind.Unary,
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
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.v2.RefreshSolanaTopTokensRequest
|
|
5
|
+
*/
|
|
6
|
+
export declare class RefreshSolanaTopTokensRequest extends Message<RefreshSolanaTopTokensRequest> {
|
|
7
|
+
constructor(data?: PartialMessage<RefreshSolanaTopTokensRequest>);
|
|
8
|
+
static readonly runtime: typeof proto3;
|
|
9
|
+
static readonly typeName = "data.v2.RefreshSolanaTopTokensRequest";
|
|
10
|
+
static readonly fields: FieldList;
|
|
11
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RefreshSolanaTopTokensRequest;
|
|
12
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RefreshSolanaTopTokensRequest;
|
|
13
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RefreshSolanaTopTokensRequest;
|
|
14
|
+
static equals(a: RefreshSolanaTopTokensRequest | PlainMessage<RefreshSolanaTopTokensRequest> | undefined, b: RefreshSolanaTopTokensRequest | PlainMessage<RefreshSolanaTopTokensRequest> | undefined): boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @generated from message data.v2.RefreshSolanaTopTokensResponse
|
|
18
|
+
*/
|
|
19
|
+
export declare class RefreshSolanaTopTokensResponse extends Message<RefreshSolanaTopTokensResponse> {
|
|
20
|
+
constructor(data?: PartialMessage<RefreshSolanaTopTokensResponse>);
|
|
21
|
+
static readonly runtime: typeof proto3;
|
|
22
|
+
static readonly typeName = "data.v2.RefreshSolanaTopTokensResponse";
|
|
23
|
+
static readonly fields: FieldList;
|
|
24
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RefreshSolanaTopTokensResponse;
|
|
25
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RefreshSolanaTopTokensResponse;
|
|
26
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RefreshSolanaTopTokensResponse;
|
|
27
|
+
static equals(a: RefreshSolanaTopTokensResponse | PlainMessage<RefreshSolanaTopTokensResponse> | undefined, b: RefreshSolanaTopTokensResponse | PlainMessage<RefreshSolanaTopTokensResponse> | undefined): boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v2/workerService.proto (package data.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from message data.v2.RefreshSolanaTopTokensRequest
|
|
8
|
+
*/
|
|
9
|
+
export class RefreshSolanaTopTokensRequest extends Message {
|
|
10
|
+
constructor(data) {
|
|
11
|
+
super();
|
|
12
|
+
proto3.util.initPartial(data, this);
|
|
13
|
+
}
|
|
14
|
+
static fromBinary(bytes, options) {
|
|
15
|
+
return new RefreshSolanaTopTokensRequest().fromBinary(bytes, options);
|
|
16
|
+
}
|
|
17
|
+
static fromJson(jsonValue, options) {
|
|
18
|
+
return new RefreshSolanaTopTokensRequest().fromJson(jsonValue, options);
|
|
19
|
+
}
|
|
20
|
+
static fromJsonString(jsonString, options) {
|
|
21
|
+
return new RefreshSolanaTopTokensRequest().fromJsonString(jsonString, options);
|
|
22
|
+
}
|
|
23
|
+
static equals(a, b) {
|
|
24
|
+
return proto3.util.equals(RefreshSolanaTopTokensRequest, a, b);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
RefreshSolanaTopTokensRequest.runtime = proto3;
|
|
28
|
+
RefreshSolanaTopTokensRequest.typeName = "data.v2.RefreshSolanaTopTokensRequest";
|
|
29
|
+
RefreshSolanaTopTokensRequest.fields = proto3.util.newFieldList(() => []);
|
|
30
|
+
/**
|
|
31
|
+
* @generated from message data.v2.RefreshSolanaTopTokensResponse
|
|
32
|
+
*/
|
|
33
|
+
export class RefreshSolanaTopTokensResponse extends Message {
|
|
34
|
+
constructor(data) {
|
|
35
|
+
super();
|
|
36
|
+
proto3.util.initPartial(data, this);
|
|
37
|
+
}
|
|
38
|
+
static fromBinary(bytes, options) {
|
|
39
|
+
return new RefreshSolanaTopTokensResponse().fromBinary(bytes, options);
|
|
40
|
+
}
|
|
41
|
+
static fromJson(jsonValue, options) {
|
|
42
|
+
return new RefreshSolanaTopTokensResponse().fromJson(jsonValue, options);
|
|
43
|
+
}
|
|
44
|
+
static fromJsonString(jsonString, options) {
|
|
45
|
+
return new RefreshSolanaTopTokensResponse().fromJsonString(jsonString, options);
|
|
46
|
+
}
|
|
47
|
+
static equals(a, b) {
|
|
48
|
+
return proto3.util.equals(RefreshSolanaTopTokensResponse, a, b);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
RefreshSolanaTopTokensResponse.runtime = proto3;
|
|
52
|
+
RefreshSolanaTopTokensResponse.typeName = "data.v2.RefreshSolanaTopTokensResponse";
|
|
53
|
+
RefreshSolanaTopTokensResponse.fields = proto3.util.newFieldList(() => []);
|