@uniswap/client-pools
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,2 +0,2 @@ | ||
import { GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, ListPoolsRequest, ListPoolsResponse, ListPositionsRequest, ListPositionsResponse } from "./api_pb.js"; | ||
import { GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPositionRequest, GetPositionResponse, ListPoolsRequest, ListPoolsResponse, ListPositionsRequest, ListPositionsResponse } from "./api_pb.js"; | ||
import { MethodKind } from "@bufbuild/protobuf"; | ||
@@ -28,2 +28,11 @@ /** | ||
/** | ||
* @generated from rpc pools.v1.PoolsService.GetPosition | ||
*/ | ||
readonly getPosition: { | ||
readonly name: "GetPosition"; | ||
readonly I: typeof GetPositionRequest; | ||
readonly O: typeof GetPositionResponse; | ||
readonly kind: MethodKind.Unary; | ||
}; | ||
/** | ||
* @generated from rpc pools.v1.PoolsService.ListPools | ||
@@ -30,0 +39,0 @@ */ |
@@ -5,3 +5,3 @@ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts" | ||
// @ts-nocheck | ||
import { GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, ListPoolsRequest, ListPoolsResponse, ListPositionsRequest, ListPositionsResponse } from "./api_pb.js"; | ||
import { GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPositionRequest, GetPositionResponse, ListPoolsRequest, ListPoolsResponse, ListPositionsRequest, ListPositionsResponse } from "./api_pb.js"; | ||
import { MethodKind } from "@bufbuild/protobuf"; | ||
@@ -33,2 +33,11 @@ /** | ||
/** | ||
* @generated from rpc pools.v1.PoolsService.GetPosition | ||
*/ | ||
getPosition: { | ||
name: "GetPosition", | ||
I: GetPositionRequest, | ||
O: GetPositionResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc pools.v1.PoolsService.ListPools | ||
@@ -35,0 +44,0 @@ */ |
@@ -98,2 +98,58 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; | ||
/** | ||
* @generated from message pools.v1.GetPositionRequest | ||
*/ | ||
export declare class GetPositionRequest extends Message<GetPositionRequest> { | ||
/** | ||
* @generated from field: uint32 chain_id = 1; | ||
*/ | ||
chainId: number; | ||
/** | ||
* @generated from field: pools.v1.ProtocolVersion protocol_version = 2; | ||
*/ | ||
protocolVersion: ProtocolVersion; | ||
/** | ||
* required for V3/V4 | ||
* | ||
* @generated from field: string token_id = 3; | ||
*/ | ||
tokenId: string; | ||
/** | ||
* required for V2 | ||
* | ||
* @generated from field: string pair_address = 4; | ||
*/ | ||
pairAddress: string; | ||
/** | ||
* required for V2 | ||
* | ||
* @generated from field: string owner = 5; | ||
*/ | ||
owner: string; | ||
constructor(data?: PartialMessage<GetPositionRequest>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "pools.v1.GetPositionRequest"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionRequest; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionRequest; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionRequest; | ||
static equals(a: GetPositionRequest | PlainMessage<GetPositionRequest> | undefined, b: GetPositionRequest | PlainMessage<GetPositionRequest> | undefined): boolean; | ||
} | ||
/** | ||
* @generated from message pools.v1.GetPositionResponse | ||
*/ | ||
export declare class GetPositionResponse extends Message<GetPositionResponse> { | ||
/** | ||
* @generated from field: pools.v1.Position position = 1; | ||
*/ | ||
position?: Position; | ||
constructor(data?: PartialMessage<GetPositionResponse>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "pools.v1.GetPositionResponse"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionResponse; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionResponse; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionResponse; | ||
static equals(a: GetPositionResponse | PlainMessage<GetPositionResponse> | undefined, b: GetPositionResponse | PlainMessage<GetPositionResponse> | undefined): boolean; | ||
} | ||
/** | ||
* @generated from message pools.v1.ListPoolsRequest | ||
@@ -100,0 +156,0 @@ */ |
@@ -154,2 +154,84 @@ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts" | ||
/** | ||
* @generated from message pools.v1.GetPositionRequest | ||
*/ | ||
export class GetPositionRequest extends Message { | ||
constructor(data) { | ||
super(); | ||
/** | ||
* @generated from field: uint32 chain_id = 1; | ||
*/ | ||
this.chainId = 0; | ||
/** | ||
* @generated from field: pools.v1.ProtocolVersion protocol_version = 2; | ||
*/ | ||
this.protocolVersion = ProtocolVersion.UNSPECIFIED; | ||
/** | ||
* required for V3/V4 | ||
* | ||
* @generated from field: string token_id = 3; | ||
*/ | ||
this.tokenId = ""; | ||
/** | ||
* required for V2 | ||
* | ||
* @generated from field: string pair_address = 4; | ||
*/ | ||
this.pairAddress = ""; | ||
/** | ||
* required for V2 | ||
* | ||
* @generated from field: string owner = 5; | ||
*/ | ||
this.owner = ""; | ||
proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new GetPositionRequest().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new GetPositionRequest().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new GetPositionRequest().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return proto3.util.equals(GetPositionRequest, a, b); | ||
} | ||
} | ||
GetPositionRequest.runtime = proto3; | ||
GetPositionRequest.typeName = "pools.v1.GetPositionRequest"; | ||
GetPositionRequest.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, | ||
{ no: 2, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) }, | ||
{ no: 3, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 4, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 5, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
]); | ||
/** | ||
* @generated from message pools.v1.GetPositionResponse | ||
*/ | ||
export class GetPositionResponse extends Message { | ||
constructor(data) { | ||
super(); | ||
proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new GetPositionResponse().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new GetPositionResponse().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new GetPositionResponse().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return proto3.util.equals(GetPositionResponse, a, b); | ||
} | ||
} | ||
GetPositionResponse.runtime = proto3; | ||
GetPositionResponse.typeName = "pools.v1.GetPositionResponse"; | ||
GetPositionResponse.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "position", kind: "message", T: Position }, | ||
]); | ||
/** | ||
* @generated from message pools.v1.ListPoolsRequest | ||
@@ -156,0 +238,0 @@ */ |
import { MethodKind } from "@bufbuild/protobuf"; | ||
import { GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, ListPoolsRequest, ListPoolsResponse, ListPositionsRequest, ListPositionsResponse } from "./api_pb.js"; | ||
import { GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPositionRequest, GetPositionResponse, ListPoolsRequest, ListPoolsResponse, ListPositionsRequest, ListPositionsResponse } from "./api_pb.js"; | ||
/** | ||
@@ -30,2 +30,15 @@ * @generated from rpc pools.v1.PoolsService.GetPair | ||
/** | ||
* @generated from rpc pools.v1.PoolsService.GetPosition | ||
*/ | ||
export declare const getPosition: { | ||
readonly localName: "getPosition"; | ||
readonly name: "GetPosition"; | ||
readonly kind: MethodKind.Unary; | ||
readonly I: typeof GetPositionRequest; | ||
readonly O: typeof GetPositionResponse; | ||
readonly service: { | ||
readonly typeName: "pools.v1.PoolsService"; | ||
}; | ||
}; | ||
/** | ||
* @generated from rpc pools.v1.PoolsService.ListPools | ||
@@ -32,0 +45,0 @@ */ |
@@ -6,3 +6,3 @@ // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts" | ||
import { MethodKind } from "@bufbuild/protobuf"; | ||
import { GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, ListPoolsRequest, ListPoolsResponse, ListPositionsRequest, ListPositionsResponse } from "./api_pb.js"; | ||
import { GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPositionRequest, GetPositionResponse, ListPoolsRequest, ListPoolsResponse, ListPositionsRequest, ListPositionsResponse } from "./api_pb.js"; | ||
/** | ||
@@ -35,2 +35,15 @@ * @generated from rpc pools.v1.PoolsService.GetPair | ||
/** | ||
* @generated from rpc pools.v1.PoolsService.GetPosition | ||
*/ | ||
export const getPosition = { | ||
localName: "getPosition", | ||
name: "GetPosition", | ||
kind: MethodKind.Unary, | ||
I: GetPositionRequest, | ||
O: GetPositionResponse, | ||
service: { | ||
typeName: "pools.v1.PoolsService" | ||
} | ||
}; | ||
/** | ||
* @generated from rpc pools.v1.PoolsService.ListPools | ||
@@ -37,0 +50,0 @@ */ |
{ | ||
"name": "@uniswap/client-pools", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
71639
2021