@uniswap/client-liquidity 0.1.0 → 0.1.2
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/uniswap/liquidity/v1/api_pb.d.ts +4 -0
- package/dist/uniswap/liquidity/v1/api_pb.js +1 -0
- package/dist/uniswap/liquidity/v1/types_pb.d.ts +4 -0
- package/dist/uniswap/liquidity/v1/types_pb.js +1 -0
- package/dist/uniswap/liquidity/v1/x_verification-XVerificationService_connectquery.d.ts +34 -0
- package/dist/uniswap/liquidity/v1/x_verification-XVerificationService_connectquery.js +38 -0
- package/dist/uniswap/liquidity/v1/x_verification_connect.d.ts +34 -0
- package/dist/uniswap/liquidity/v1/x_verification_connect.js +38 -0
- package/dist/uniswap/liquidity/v1/x_verification_pb.d.ts +96 -0
- package/dist/uniswap/liquidity/v1/x_verification_pb.js +154 -0
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.d.ts +15 -1
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.js +15 -1
- package/dist/uniswap/liquidity/v2/api_connect.d.ts +11 -1
- package/dist/uniswap/liquidity/v2/api_connect.js +11 -1
- package/dist/uniswap/liquidity/v2/api_pb.d.ts +84 -1
- package/dist/uniswap/liquidity/v2/api_pb.js +93 -1
- package/dist/uniswap/liquidity/v2/types_pb.d.ts +72 -1
- package/dist/uniswap/liquidity/v2/types_pb.js +96 -1
- package/package.json +1 -1
|
@@ -315,6 +315,10 @@ export declare class CreateLPPositionResponse extends Message<CreateLPPositionRe
|
|
|
315
315
|
* @generated from field: optional string gas_fee = 7;
|
|
316
316
|
*/
|
|
317
317
|
gasFee?: string;
|
|
318
|
+
/**
|
|
319
|
+
* @generated from field: optional float slippage = 8;
|
|
320
|
+
*/
|
|
321
|
+
slippage?: number;
|
|
318
322
|
constructor(data?: PartialMessage<CreateLPPositionResponse>);
|
|
319
323
|
static readonly runtime: typeof proto3;
|
|
320
324
|
static readonly typeName = "uniswap.liquidity.v1.CreateLPPositionResponse";
|
|
@@ -340,6 +340,7 @@ CreateLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
340
340
|
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
341
341
|
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
342
342
|
{ no: 7, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
343
|
+
{ no: 8, name: "slippage", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
343
344
|
]);
|
|
344
345
|
/**
|
|
345
346
|
* @generated from message uniswap.liquidity.v1.PoolInfoRequest
|
|
@@ -1000,6 +1000,10 @@ export declare class V4CreateLPPosition extends Message<V4CreateLPPosition> {
|
|
|
1000
1000
|
* @generated from field: bool simulate_transaction = 19;
|
|
1001
1001
|
*/
|
|
1002
1002
|
simulateTransaction: boolean;
|
|
1003
|
+
/**
|
|
1004
|
+
* @generated from field: optional string native_token_balance = 20;
|
|
1005
|
+
*/
|
|
1006
|
+
nativeTokenBalance?: string;
|
|
1003
1007
|
constructor(data?: PartialMessage<V4CreateLPPosition>);
|
|
1004
1008
|
static readonly runtime: typeof proto3;
|
|
1005
1009
|
static readonly typeName = "uniswap.liquidity.v1.V4CreateLPPosition";
|
|
@@ -1216,6 +1216,7 @@ V4CreateLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1216
1216
|
{ no: 15, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
1217
1217
|
{ no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1218
1218
|
{ no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1219
|
+
{ no: 20, name: "native_token_balance", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1219
1220
|
]);
|
|
1220
1221
|
/**
|
|
1221
1222
|
* @generated from message uniswap.liquidity.v1.PoolInformation
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { GetXAuthUrlRequest, GetXAuthUrlResponse, VerifyXCallbackRequest, VerifyXCallbackResponse } from "./x_verification_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* Step 1: Get X OAuth authorization URL + signed state token
|
|
5
|
+
*
|
|
6
|
+
* @generated from rpc uniswap.liquidity.v1.XVerificationService.GetXAuthUrl
|
|
7
|
+
*/
|
|
8
|
+
export declare const getXAuthUrl: {
|
|
9
|
+
readonly localName: "getXAuthUrl";
|
|
10
|
+
readonly name: "GetXAuthUrl";
|
|
11
|
+
readonly kind: MethodKind.Unary;
|
|
12
|
+
readonly I: typeof GetXAuthUrlRequest;
|
|
13
|
+
readonly O: typeof GetXAuthUrlResponse;
|
|
14
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
15
|
+
readonly service: {
|
|
16
|
+
readonly typeName: "uniswap.liquidity.v1.XVerificationService";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Step 2: Exchange callback code for verified X handle + signed verification token
|
|
21
|
+
*
|
|
22
|
+
* @generated from rpc uniswap.liquidity.v1.XVerificationService.VerifyXCallback
|
|
23
|
+
*/
|
|
24
|
+
export declare const verifyXCallback: {
|
|
25
|
+
readonly localName: "verifyXCallback";
|
|
26
|
+
readonly name: "VerifyXCallback";
|
|
27
|
+
readonly kind: MethodKind.Unary;
|
|
28
|
+
readonly I: typeof VerifyXCallbackRequest;
|
|
29
|
+
readonly O: typeof VerifyXCallbackResponse;
|
|
30
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
31
|
+
readonly service: {
|
|
32
|
+
readonly typeName: "uniswap.liquidity.v1.XVerificationService";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/liquidity/v1/x_verification.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { GetXAuthUrlRequest, GetXAuthUrlResponse, VerifyXCallbackRequest, VerifyXCallbackResponse } from "./x_verification_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* Step 1: Get X OAuth authorization URL + signed state token
|
|
9
|
+
*
|
|
10
|
+
* @generated from rpc uniswap.liquidity.v1.XVerificationService.GetXAuthUrl
|
|
11
|
+
*/
|
|
12
|
+
export const getXAuthUrl = {
|
|
13
|
+
localName: "getXAuthUrl",
|
|
14
|
+
name: "GetXAuthUrl",
|
|
15
|
+
kind: MethodKind.Unary,
|
|
16
|
+
I: GetXAuthUrlRequest,
|
|
17
|
+
O: GetXAuthUrlResponse,
|
|
18
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
19
|
+
service: {
|
|
20
|
+
typeName: "uniswap.liquidity.v1.XVerificationService"
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Step 2: Exchange callback code for verified X handle + signed verification token
|
|
25
|
+
*
|
|
26
|
+
* @generated from rpc uniswap.liquidity.v1.XVerificationService.VerifyXCallback
|
|
27
|
+
*/
|
|
28
|
+
export const verifyXCallback = {
|
|
29
|
+
localName: "verifyXCallback",
|
|
30
|
+
name: "VerifyXCallback",
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
I: VerifyXCallbackRequest,
|
|
33
|
+
O: VerifyXCallbackResponse,
|
|
34
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
35
|
+
service: {
|
|
36
|
+
typeName: "uniswap.liquidity.v1.XVerificationService"
|
|
37
|
+
}
|
|
38
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GetXAuthUrlRequest, GetXAuthUrlResponse, VerifyXCallbackRequest, VerifyXCallbackResponse } from "./x_verification_pb.js";
|
|
2
|
+
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from service uniswap.liquidity.v1.XVerificationService
|
|
5
|
+
*/
|
|
6
|
+
export declare const XVerificationService: {
|
|
7
|
+
readonly typeName: "uniswap.liquidity.v1.XVerificationService";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* Step 1: Get X OAuth authorization URL + signed state token
|
|
11
|
+
*
|
|
12
|
+
* @generated from rpc uniswap.liquidity.v1.XVerificationService.GetXAuthUrl
|
|
13
|
+
*/
|
|
14
|
+
readonly getXAuthUrl: {
|
|
15
|
+
readonly name: "GetXAuthUrl";
|
|
16
|
+
readonly I: typeof GetXAuthUrlRequest;
|
|
17
|
+
readonly O: typeof GetXAuthUrlResponse;
|
|
18
|
+
readonly kind: MethodKind.Unary;
|
|
19
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Step 2: Exchange callback code for verified X handle + signed verification token
|
|
23
|
+
*
|
|
24
|
+
* @generated from rpc uniswap.liquidity.v1.XVerificationService.VerifyXCallback
|
|
25
|
+
*/
|
|
26
|
+
readonly verifyXCallback: {
|
|
27
|
+
readonly name: "VerifyXCallback";
|
|
28
|
+
readonly I: typeof VerifyXCallbackRequest;
|
|
29
|
+
readonly O: typeof VerifyXCallbackResponse;
|
|
30
|
+
readonly kind: MethodKind.Unary;
|
|
31
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/liquidity/v1/x_verification.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { GetXAuthUrlRequest, GetXAuthUrlResponse, VerifyXCallbackRequest, VerifyXCallbackResponse } from "./x_verification_pb.js";
|
|
6
|
+
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from service uniswap.liquidity.v1.XVerificationService
|
|
9
|
+
*/
|
|
10
|
+
export const XVerificationService = {
|
|
11
|
+
typeName: "uniswap.liquidity.v1.XVerificationService",
|
|
12
|
+
methods: {
|
|
13
|
+
/**
|
|
14
|
+
* Step 1: Get X OAuth authorization URL + signed state token
|
|
15
|
+
*
|
|
16
|
+
* @generated from rpc uniswap.liquidity.v1.XVerificationService.GetXAuthUrl
|
|
17
|
+
*/
|
|
18
|
+
getXAuthUrl: {
|
|
19
|
+
name: "GetXAuthUrl",
|
|
20
|
+
I: GetXAuthUrlRequest,
|
|
21
|
+
O: GetXAuthUrlResponse,
|
|
22
|
+
kind: MethodKind.Unary,
|
|
23
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* Step 2: Exchange callback code for verified X handle + signed verification token
|
|
27
|
+
*
|
|
28
|
+
* @generated from rpc uniswap.liquidity.v1.XVerificationService.VerifyXCallback
|
|
29
|
+
*/
|
|
30
|
+
verifyXCallback: {
|
|
31
|
+
name: "VerifyXCallback",
|
|
32
|
+
I: VerifyXCallbackRequest,
|
|
33
|
+
O: VerifyXCallbackResponse,
|
|
34
|
+
kind: MethodKind.Unary,
|
|
35
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message uniswap.liquidity.v1.GetXAuthUrlRequest
|
|
5
|
+
*/
|
|
6
|
+
export declare class GetXAuthUrlRequest extends Message<GetXAuthUrlRequest> {
|
|
7
|
+
/**
|
|
8
|
+
* Wallet address to bind in the verification token
|
|
9
|
+
*
|
|
10
|
+
* @generated from field: string wallet_address = 1;
|
|
11
|
+
*/
|
|
12
|
+
walletAddress: string;
|
|
13
|
+
constructor(data?: PartialMessage<GetXAuthUrlRequest>);
|
|
14
|
+
static readonly runtime: typeof proto3;
|
|
15
|
+
static readonly typeName = "uniswap.liquidity.v1.GetXAuthUrlRequest";
|
|
16
|
+
static readonly fields: FieldList;
|
|
17
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetXAuthUrlRequest;
|
|
18
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetXAuthUrlRequest;
|
|
19
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetXAuthUrlRequest;
|
|
20
|
+
static equals(a: GetXAuthUrlRequest | PlainMessage<GetXAuthUrlRequest> | undefined, b: GetXAuthUrlRequest | PlainMessage<GetXAuthUrlRequest> | undefined): boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @generated from message uniswap.liquidity.v1.GetXAuthUrlResponse
|
|
24
|
+
*/
|
|
25
|
+
export declare class GetXAuthUrlResponse extends Message<GetXAuthUrlResponse> {
|
|
26
|
+
/**
|
|
27
|
+
* Full https://x.com/i/oauth2/authorize?... URL — redirect user here
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string auth_url = 1;
|
|
30
|
+
*/
|
|
31
|
+
authUrl: string;
|
|
32
|
+
/**
|
|
33
|
+
* Signed HMAC state token — frontend must store this and return it on callback
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: string state = 2;
|
|
36
|
+
*/
|
|
37
|
+
state: string;
|
|
38
|
+
constructor(data?: PartialMessage<GetXAuthUrlResponse>);
|
|
39
|
+
static readonly runtime: typeof proto3;
|
|
40
|
+
static readonly typeName = "uniswap.liquidity.v1.GetXAuthUrlResponse";
|
|
41
|
+
static readonly fields: FieldList;
|
|
42
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetXAuthUrlResponse;
|
|
43
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetXAuthUrlResponse;
|
|
44
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetXAuthUrlResponse;
|
|
45
|
+
static equals(a: GetXAuthUrlResponse | PlainMessage<GetXAuthUrlResponse> | undefined, b: GetXAuthUrlResponse | PlainMessage<GetXAuthUrlResponse> | undefined): boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @generated from message uniswap.liquidity.v1.VerifyXCallbackRequest
|
|
49
|
+
*/
|
|
50
|
+
export declare class VerifyXCallbackRequest extends Message<VerifyXCallbackRequest> {
|
|
51
|
+
/**
|
|
52
|
+
* Authorization code received from X in the callback URL
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: string code = 1;
|
|
55
|
+
*/
|
|
56
|
+
code: string;
|
|
57
|
+
/**
|
|
58
|
+
* The state value returned by GetXAuthUrl (pass back unmodified)
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: string state = 2;
|
|
61
|
+
*/
|
|
62
|
+
state: string;
|
|
63
|
+
constructor(data?: PartialMessage<VerifyXCallbackRequest>);
|
|
64
|
+
static readonly runtime: typeof proto3;
|
|
65
|
+
static readonly typeName = "uniswap.liquidity.v1.VerifyXCallbackRequest";
|
|
66
|
+
static readonly fields: FieldList;
|
|
67
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyXCallbackRequest;
|
|
68
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyXCallbackRequest;
|
|
69
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyXCallbackRequest;
|
|
70
|
+
static equals(a: VerifyXCallbackRequest | PlainMessage<VerifyXCallbackRequest> | undefined, b: VerifyXCallbackRequest | PlainMessage<VerifyXCallbackRequest> | undefined): boolean;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @generated from message uniswap.liquidity.v1.VerifyXCallbackResponse
|
|
74
|
+
*/
|
|
75
|
+
export declare class VerifyXCallbackResponse extends Message<VerifyXCallbackResponse> {
|
|
76
|
+
/**
|
|
77
|
+
* X @handle without the @ (e.g. "elonmusk")
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: string x_handle = 1;
|
|
80
|
+
*/
|
|
81
|
+
xHandle: string;
|
|
82
|
+
/**
|
|
83
|
+
* Server-signed proof: HMAC({x_handle, wallet_address, exp}) — submit with token creation
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: string x_verification_token = 2;
|
|
86
|
+
*/
|
|
87
|
+
xVerificationToken: string;
|
|
88
|
+
constructor(data?: PartialMessage<VerifyXCallbackResponse>);
|
|
89
|
+
static readonly runtime: typeof proto3;
|
|
90
|
+
static readonly typeName = "uniswap.liquidity.v1.VerifyXCallbackResponse";
|
|
91
|
+
static readonly fields: FieldList;
|
|
92
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyXCallbackResponse;
|
|
93
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyXCallbackResponse;
|
|
94
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyXCallbackResponse;
|
|
95
|
+
static equals(a: VerifyXCallbackResponse | PlainMessage<VerifyXCallbackResponse> | undefined, b: VerifyXCallbackResponse | PlainMessage<VerifyXCallbackResponse> | undefined): boolean;
|
|
96
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/liquidity/v1/x_verification.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from message uniswap.liquidity.v1.GetXAuthUrlRequest
|
|
8
|
+
*/
|
|
9
|
+
export class GetXAuthUrlRequest extends Message {
|
|
10
|
+
constructor(data) {
|
|
11
|
+
super();
|
|
12
|
+
/**
|
|
13
|
+
* Wallet address to bind in the verification token
|
|
14
|
+
*
|
|
15
|
+
* @generated from field: string wallet_address = 1;
|
|
16
|
+
*/
|
|
17
|
+
this.walletAddress = "";
|
|
18
|
+
proto3.util.initPartial(data, this);
|
|
19
|
+
}
|
|
20
|
+
static fromBinary(bytes, options) {
|
|
21
|
+
return new GetXAuthUrlRequest().fromBinary(bytes, options);
|
|
22
|
+
}
|
|
23
|
+
static fromJson(jsonValue, options) {
|
|
24
|
+
return new GetXAuthUrlRequest().fromJson(jsonValue, options);
|
|
25
|
+
}
|
|
26
|
+
static fromJsonString(jsonString, options) {
|
|
27
|
+
return new GetXAuthUrlRequest().fromJsonString(jsonString, options);
|
|
28
|
+
}
|
|
29
|
+
static equals(a, b) {
|
|
30
|
+
return proto3.util.equals(GetXAuthUrlRequest, a, b);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
GetXAuthUrlRequest.runtime = proto3;
|
|
34
|
+
GetXAuthUrlRequest.typeName = "uniswap.liquidity.v1.GetXAuthUrlRequest";
|
|
35
|
+
GetXAuthUrlRequest.fields = proto3.util.newFieldList(() => [
|
|
36
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
37
|
+
]);
|
|
38
|
+
/**
|
|
39
|
+
* @generated from message uniswap.liquidity.v1.GetXAuthUrlResponse
|
|
40
|
+
*/
|
|
41
|
+
export class GetXAuthUrlResponse extends Message {
|
|
42
|
+
constructor(data) {
|
|
43
|
+
super();
|
|
44
|
+
/**
|
|
45
|
+
* Full https://x.com/i/oauth2/authorize?... URL — redirect user here
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: string auth_url = 1;
|
|
48
|
+
*/
|
|
49
|
+
this.authUrl = "";
|
|
50
|
+
/**
|
|
51
|
+
* Signed HMAC state token — frontend must store this and return it on callback
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: string state = 2;
|
|
54
|
+
*/
|
|
55
|
+
this.state = "";
|
|
56
|
+
proto3.util.initPartial(data, this);
|
|
57
|
+
}
|
|
58
|
+
static fromBinary(bytes, options) {
|
|
59
|
+
return new GetXAuthUrlResponse().fromBinary(bytes, options);
|
|
60
|
+
}
|
|
61
|
+
static fromJson(jsonValue, options) {
|
|
62
|
+
return new GetXAuthUrlResponse().fromJson(jsonValue, options);
|
|
63
|
+
}
|
|
64
|
+
static fromJsonString(jsonString, options) {
|
|
65
|
+
return new GetXAuthUrlResponse().fromJsonString(jsonString, options);
|
|
66
|
+
}
|
|
67
|
+
static equals(a, b) {
|
|
68
|
+
return proto3.util.equals(GetXAuthUrlResponse, a, b);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
GetXAuthUrlResponse.runtime = proto3;
|
|
72
|
+
GetXAuthUrlResponse.typeName = "uniswap.liquidity.v1.GetXAuthUrlResponse";
|
|
73
|
+
GetXAuthUrlResponse.fields = proto3.util.newFieldList(() => [
|
|
74
|
+
{ no: 1, name: "auth_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
{ no: 2, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
76
|
+
]);
|
|
77
|
+
/**
|
|
78
|
+
* @generated from message uniswap.liquidity.v1.VerifyXCallbackRequest
|
|
79
|
+
*/
|
|
80
|
+
export class VerifyXCallbackRequest extends Message {
|
|
81
|
+
constructor(data) {
|
|
82
|
+
super();
|
|
83
|
+
/**
|
|
84
|
+
* Authorization code received from X in the callback URL
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: string code = 1;
|
|
87
|
+
*/
|
|
88
|
+
this.code = "";
|
|
89
|
+
/**
|
|
90
|
+
* The state value returned by GetXAuthUrl (pass back unmodified)
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: string state = 2;
|
|
93
|
+
*/
|
|
94
|
+
this.state = "";
|
|
95
|
+
proto3.util.initPartial(data, this);
|
|
96
|
+
}
|
|
97
|
+
static fromBinary(bytes, options) {
|
|
98
|
+
return new VerifyXCallbackRequest().fromBinary(bytes, options);
|
|
99
|
+
}
|
|
100
|
+
static fromJson(jsonValue, options) {
|
|
101
|
+
return new VerifyXCallbackRequest().fromJson(jsonValue, options);
|
|
102
|
+
}
|
|
103
|
+
static fromJsonString(jsonString, options) {
|
|
104
|
+
return new VerifyXCallbackRequest().fromJsonString(jsonString, options);
|
|
105
|
+
}
|
|
106
|
+
static equals(a, b) {
|
|
107
|
+
return proto3.util.equals(VerifyXCallbackRequest, a, b);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
VerifyXCallbackRequest.runtime = proto3;
|
|
111
|
+
VerifyXCallbackRequest.typeName = "uniswap.liquidity.v1.VerifyXCallbackRequest";
|
|
112
|
+
VerifyXCallbackRequest.fields = proto3.util.newFieldList(() => [
|
|
113
|
+
{ no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
114
|
+
{ no: 2, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
115
|
+
]);
|
|
116
|
+
/**
|
|
117
|
+
* @generated from message uniswap.liquidity.v1.VerifyXCallbackResponse
|
|
118
|
+
*/
|
|
119
|
+
export class VerifyXCallbackResponse extends Message {
|
|
120
|
+
constructor(data) {
|
|
121
|
+
super();
|
|
122
|
+
/**
|
|
123
|
+
* X @handle without the @ (e.g. "elonmusk")
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: string x_handle = 1;
|
|
126
|
+
*/
|
|
127
|
+
this.xHandle = "";
|
|
128
|
+
/**
|
|
129
|
+
* Server-signed proof: HMAC({x_handle, wallet_address, exp}) — submit with token creation
|
|
130
|
+
*
|
|
131
|
+
* @generated from field: string x_verification_token = 2;
|
|
132
|
+
*/
|
|
133
|
+
this.xVerificationToken = "";
|
|
134
|
+
proto3.util.initPartial(data, this);
|
|
135
|
+
}
|
|
136
|
+
static fromBinary(bytes, options) {
|
|
137
|
+
return new VerifyXCallbackResponse().fromBinary(bytes, options);
|
|
138
|
+
}
|
|
139
|
+
static fromJson(jsonValue, options) {
|
|
140
|
+
return new VerifyXCallbackResponse().fromJson(jsonValue, options);
|
|
141
|
+
}
|
|
142
|
+
static fromJsonString(jsonString, options) {
|
|
143
|
+
return new VerifyXCallbackResponse().fromJsonString(jsonString, options);
|
|
144
|
+
}
|
|
145
|
+
static equals(a, b) {
|
|
146
|
+
return proto3.util.equals(VerifyXCallbackResponse, a, b);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
VerifyXCallbackResponse.runtime = proto3;
|
|
150
|
+
VerifyXCallbackResponse.typeName = "uniswap.liquidity.v1.VerifyXCallbackResponse";
|
|
151
|
+
VerifyXCallbackResponse.fields = proto3.util.newFieldList(() => [
|
|
152
|
+
{ no: 1, name: "x_handle", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
153
|
+
{ no: 2, name: "x_verification_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
154
|
+
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
2
|
+
import { LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
|
|
5
5
|
*/
|
|
@@ -14,3 +14,17 @@ export declare const migrateV2ToV3LPPosition: {
|
|
|
14
14
|
readonly typeName: "uniswap.liquidity.v2.LiquidityService";
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CheckLPApproval
|
|
19
|
+
*/
|
|
20
|
+
export declare const checkLPApproval: {
|
|
21
|
+
readonly localName: "checkLPApproval";
|
|
22
|
+
readonly name: "CheckLPApproval";
|
|
23
|
+
readonly kind: MethodKind.Unary;
|
|
24
|
+
readonly I: typeof LPApprovalRequest;
|
|
25
|
+
readonly O: typeof LPApprovalResponse;
|
|
26
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
27
|
+
readonly service: {
|
|
28
|
+
readonly typeName: "uniswap.liquidity.v2.LiquidityService";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
6
|
+
import { LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
|
|
9
9
|
*/
|
|
@@ -18,3 +18,17 @@ export const migrateV2ToV3LPPosition = {
|
|
|
18
18
|
typeName: "uniswap.liquidity.v2.LiquidityService"
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CheckLPApproval
|
|
23
|
+
*/
|
|
24
|
+
export const checkLPApproval = {
|
|
25
|
+
localName: "checkLPApproval",
|
|
26
|
+
name: "CheckLPApproval",
|
|
27
|
+
kind: MethodKind.Unary,
|
|
28
|
+
I: LPApprovalRequest,
|
|
29
|
+
O: LPApprovalResponse,
|
|
30
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
31
|
+
service: {
|
|
32
|
+
typeName: "uniswap.liquidity.v2.LiquidityService"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
1
|
+
import { LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service uniswap.liquidity.v2.LiquidityService
|
|
@@ -16,5 +16,15 @@ export declare const LiquidityService: {
|
|
|
16
16
|
readonly kind: MethodKind.Unary;
|
|
17
17
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
18
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CheckLPApproval
|
|
21
|
+
*/
|
|
22
|
+
readonly checkLPApproval: {
|
|
23
|
+
readonly name: "CheckLPApproval";
|
|
24
|
+
readonly I: typeof LPApprovalRequest;
|
|
25
|
+
readonly O: typeof LPApprovalResponse;
|
|
26
|
+
readonly kind: MethodKind.Unary;
|
|
27
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
28
|
+
};
|
|
19
29
|
};
|
|
20
30
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file uniswap/liquidity/v2/api.proto (package uniswap.liquidity.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
5
|
+
import { LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service uniswap.liquidity.v2.LiquidityService
|
|
@@ -20,5 +20,15 @@ export const LiquidityService = {
|
|
|
20
20
|
kind: MethodKind.Unary,
|
|
21
21
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
22
22
|
},
|
|
23
|
+
/**
|
|
24
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CheckLPApproval
|
|
25
|
+
*/
|
|
26
|
+
checkLPApproval: {
|
|
27
|
+
name: "CheckLPApproval",
|
|
28
|
+
I: LPApprovalRequest,
|
|
29
|
+
O: LPApprovalResponse,
|
|
30
|
+
kind: MethodKind.Unary,
|
|
31
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
32
|
+
},
|
|
23
33
|
}
|
|
24
34
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { ChainId, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
3
|
+
import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
4
|
+
import { ApprovalTransactionRequest, GasUrgency, LPAction, LPToken } from "./types_pb.js";
|
|
4
5
|
/**
|
|
6
|
+
* MigrateV2ToV3LPPosition
|
|
7
|
+
*
|
|
5
8
|
* @generated from message uniswap.liquidity.v2.MigrateV2ToV3LPPositionRequest
|
|
6
9
|
*/
|
|
7
10
|
export declare class MigrateV2ToV3LPPositionRequest extends Message<MigrateV2ToV3LPPositionRequest> {
|
|
@@ -75,3 +78,83 @@ export declare class MigrateV2ToV3LPPositionResponse extends Message<MigrateV2To
|
|
|
75
78
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionResponse;
|
|
76
79
|
static equals(a: MigrateV2ToV3LPPositionResponse | PlainMessage<MigrateV2ToV3LPPositionResponse> | undefined, b: MigrateV2ToV3LPPositionResponse | PlainMessage<MigrateV2ToV3LPPositionResponse> | undefined): boolean;
|
|
77
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* CheckLPApproval
|
|
83
|
+
*
|
|
84
|
+
* @generated from message uniswap.liquidity.v2.LPApprovalRequest
|
|
85
|
+
*/
|
|
86
|
+
export declare class LPApprovalRequest extends Message<LPApprovalRequest> {
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: string wallet_address = 1;
|
|
89
|
+
*/
|
|
90
|
+
walletAddress: string;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 2;
|
|
93
|
+
*/
|
|
94
|
+
protocol: Protocols;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: repeated uniswap.liquidity.v2.LPToken lp_tokens = 3;
|
|
97
|
+
*/
|
|
98
|
+
lpTokens: LPToken[];
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: uniswap.liquidity.v2.LPAction action = 4;
|
|
101
|
+
*/
|
|
102
|
+
action: LPAction;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: optional bool include_gas_info = 5;
|
|
105
|
+
*/
|
|
106
|
+
includeGasInfo?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: optional bool simulate_transaction = 6;
|
|
109
|
+
*/
|
|
110
|
+
simulateTransaction?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: optional bool generate_permit_as_transaction = 7;
|
|
113
|
+
*/
|
|
114
|
+
generatePermitAsTransaction?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 8;
|
|
117
|
+
*/
|
|
118
|
+
urgency?: GasUrgency;
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: optional int32 v3_nft_token_id = 9;
|
|
121
|
+
*/
|
|
122
|
+
v3NftTokenId?: number;
|
|
123
|
+
constructor(data?: PartialMessage<LPApprovalRequest>);
|
|
124
|
+
static readonly runtime: typeof proto3;
|
|
125
|
+
static readonly typeName = "uniswap.liquidity.v2.LPApprovalRequest";
|
|
126
|
+
static readonly fields: FieldList;
|
|
127
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LPApprovalRequest;
|
|
128
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LPApprovalRequest;
|
|
129
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LPApprovalRequest;
|
|
130
|
+
static equals(a: LPApprovalRequest | PlainMessage<LPApprovalRequest> | undefined, b: LPApprovalRequest | PlainMessage<LPApprovalRequest> | undefined): boolean;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @generated from message uniswap.liquidity.v2.LPApprovalResponse
|
|
134
|
+
*/
|
|
135
|
+
export declare class LPApprovalResponse extends Message<LPApprovalResponse> {
|
|
136
|
+
/**
|
|
137
|
+
* @generated from field: string request_id = 1;
|
|
138
|
+
*/
|
|
139
|
+
requestId: string;
|
|
140
|
+
/**
|
|
141
|
+
* @generated from field: repeated uniswap.liquidity.v2.ApprovalTransactionRequest transactions = 2;
|
|
142
|
+
*/
|
|
143
|
+
transactions: ApprovalTransactionRequest[];
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: optional uniswap.liquidity.v1.PermitBatchData v4_batch_permit_data = 3;
|
|
146
|
+
*/
|
|
147
|
+
v4BatchPermitData?: PermitBatchData;
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: optional uniswap.liquidity.v1.NFTPermitData v3_nft_permit_data = 4;
|
|
150
|
+
*/
|
|
151
|
+
v3NftPermitData?: NFTPermitData;
|
|
152
|
+
constructor(data?: PartialMessage<LPApprovalResponse>);
|
|
153
|
+
static readonly runtime: typeof proto3;
|
|
154
|
+
static readonly typeName = "uniswap.liquidity.v2.LPApprovalResponse";
|
|
155
|
+
static readonly fields: FieldList;
|
|
156
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LPApprovalResponse;
|
|
157
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LPApprovalResponse;
|
|
158
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LPApprovalResponse;
|
|
159
|
+
static equals(a: LPApprovalResponse | PlainMessage<LPApprovalResponse> | undefined, b: LPApprovalResponse | PlainMessage<LPApprovalResponse> | undefined): boolean;
|
|
160
|
+
}
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { ChainId, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
6
|
+
import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
7
|
+
import { ApprovalTransactionRequest, GasUrgency, LPAction, LPToken } from "./types_pb.js";
|
|
7
8
|
/**
|
|
9
|
+
* MigrateV2ToV3LPPosition
|
|
10
|
+
*
|
|
8
11
|
* @generated from message uniswap.liquidity.v2.MigrateV2ToV3LPPositionRequest
|
|
9
12
|
*/
|
|
10
13
|
export class MigrateV2ToV3LPPositionRequest extends Message {
|
|
@@ -78,3 +81,92 @@ MigrateV2ToV3LPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
78
81
|
{ no: 4, name: "estimated_refund_token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
79
82
|
{ no: 5, name: "estimated_refund_token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
80
83
|
]);
|
|
84
|
+
/**
|
|
85
|
+
* CheckLPApproval
|
|
86
|
+
*
|
|
87
|
+
* @generated from message uniswap.liquidity.v2.LPApprovalRequest
|
|
88
|
+
*/
|
|
89
|
+
export class LPApprovalRequest extends Message {
|
|
90
|
+
constructor(data) {
|
|
91
|
+
super();
|
|
92
|
+
/**
|
|
93
|
+
* @generated from field: string wallet_address = 1;
|
|
94
|
+
*/
|
|
95
|
+
this.walletAddress = "";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 2;
|
|
98
|
+
*/
|
|
99
|
+
this.protocol = Protocols.V2;
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: repeated uniswap.liquidity.v2.LPToken lp_tokens = 3;
|
|
102
|
+
*/
|
|
103
|
+
this.lpTokens = [];
|
|
104
|
+
/**
|
|
105
|
+
* @generated from field: uniswap.liquidity.v2.LPAction action = 4;
|
|
106
|
+
*/
|
|
107
|
+
this.action = LPAction.CREATE;
|
|
108
|
+
proto3.util.initPartial(data, this);
|
|
109
|
+
}
|
|
110
|
+
static fromBinary(bytes, options) {
|
|
111
|
+
return new LPApprovalRequest().fromBinary(bytes, options);
|
|
112
|
+
}
|
|
113
|
+
static fromJson(jsonValue, options) {
|
|
114
|
+
return new LPApprovalRequest().fromJson(jsonValue, options);
|
|
115
|
+
}
|
|
116
|
+
static fromJsonString(jsonString, options) {
|
|
117
|
+
return new LPApprovalRequest().fromJsonString(jsonString, options);
|
|
118
|
+
}
|
|
119
|
+
static equals(a, b) {
|
|
120
|
+
return proto3.util.equals(LPApprovalRequest, a, b);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
LPApprovalRequest.runtime = proto3;
|
|
124
|
+
LPApprovalRequest.typeName = "uniswap.liquidity.v2.LPApprovalRequest";
|
|
125
|
+
LPApprovalRequest.fields = proto3.util.newFieldList(() => [
|
|
126
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
127
|
+
{ no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
128
|
+
{ no: 3, name: "lp_tokens", kind: "message", T: LPToken, repeated: true },
|
|
129
|
+
{ no: 4, name: "action", kind: "enum", T: proto3.getEnumType(LPAction) },
|
|
130
|
+
{ no: 5, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
131
|
+
{ no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
132
|
+
{ no: 7, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
133
|
+
{ no: 8, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
134
|
+
{ no: 9, name: "v3_nft_token_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
135
|
+
]);
|
|
136
|
+
/**
|
|
137
|
+
* @generated from message uniswap.liquidity.v2.LPApprovalResponse
|
|
138
|
+
*/
|
|
139
|
+
export class LPApprovalResponse extends Message {
|
|
140
|
+
constructor(data) {
|
|
141
|
+
super();
|
|
142
|
+
/**
|
|
143
|
+
* @generated from field: string request_id = 1;
|
|
144
|
+
*/
|
|
145
|
+
this.requestId = "";
|
|
146
|
+
/**
|
|
147
|
+
* @generated from field: repeated uniswap.liquidity.v2.ApprovalTransactionRequest transactions = 2;
|
|
148
|
+
*/
|
|
149
|
+
this.transactions = [];
|
|
150
|
+
proto3.util.initPartial(data, this);
|
|
151
|
+
}
|
|
152
|
+
static fromBinary(bytes, options) {
|
|
153
|
+
return new LPApprovalResponse().fromBinary(bytes, options);
|
|
154
|
+
}
|
|
155
|
+
static fromJson(jsonValue, options) {
|
|
156
|
+
return new LPApprovalResponse().fromJson(jsonValue, options);
|
|
157
|
+
}
|
|
158
|
+
static fromJsonString(jsonString, options) {
|
|
159
|
+
return new LPApprovalResponse().fromJsonString(jsonString, options);
|
|
160
|
+
}
|
|
161
|
+
static equals(a, b) {
|
|
162
|
+
return proto3.util.equals(LPApprovalResponse, a, b);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
LPApprovalResponse.runtime = proto3;
|
|
166
|
+
LPApprovalResponse.typeName = "uniswap.liquidity.v2.LPApprovalResponse";
|
|
167
|
+
LPApprovalResponse.fields = proto3.util.newFieldList(() => [
|
|
168
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
169
|
+
{ no: 2, name: "transactions", kind: "message", T: ApprovalTransactionRequest, repeated: true },
|
|
170
|
+
{ no: 3, name: "v4_batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
|
|
171
|
+
{ no: 4, name: "v3_nft_permit_data", kind: "message", T: NFTPermitData, opt: true },
|
|
172
|
+
]);
|
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { ChainId } from "../v1/types_pb.js";
|
|
3
|
+
import { ChainId, TransactionRequest } from "../v1/types_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* @generated from enum uniswap.liquidity.v2.LPAction
|
|
6
|
+
*/
|
|
7
|
+
export declare enum LPAction {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum value: CREATE = 0;
|
|
10
|
+
*/
|
|
11
|
+
CREATE = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: INCREASE = 1;
|
|
14
|
+
*/
|
|
15
|
+
INCREASE = 1,
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: DECREASE = 2;
|
|
18
|
+
*/
|
|
19
|
+
DECREASE = 2,
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: MIGRATE = 3;
|
|
22
|
+
*/
|
|
23
|
+
MIGRATE = 3
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum uniswap.liquidity.v2.GasUrgency
|
|
27
|
+
*/
|
|
28
|
+
export declare enum GasUrgency {
|
|
29
|
+
/**
|
|
30
|
+
* @generated from enum value: GAS_URGENCY_UNSPECIFIED = 0;
|
|
31
|
+
*/
|
|
32
|
+
GAS_URGENCY_UNSPECIFIED = 0,
|
|
33
|
+
/**
|
|
34
|
+
* @generated from enum value: NORMAL = 1;
|
|
35
|
+
*/
|
|
36
|
+
NORMAL = 1,
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum value: FAST = 2;
|
|
39
|
+
*/
|
|
40
|
+
FAST = 2,
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: URGENT = 3;
|
|
43
|
+
*/
|
|
44
|
+
URGENT = 3
|
|
45
|
+
}
|
|
4
46
|
/**
|
|
5
47
|
* @generated from message uniswap.liquidity.v2.LPToken
|
|
6
48
|
*/
|
|
@@ -26,3 +68,32 @@ export declare class LPToken extends Message<LPToken> {
|
|
|
26
68
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LPToken;
|
|
27
69
|
static equals(a: LPToken | PlainMessage<LPToken> | undefined, b: LPToken | PlainMessage<LPToken> | undefined): boolean;
|
|
28
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @generated from message uniswap.liquidity.v2.ApprovalTransactionRequest
|
|
73
|
+
*/
|
|
74
|
+
export declare class ApprovalTransactionRequest extends Message<ApprovalTransactionRequest> {
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: uniswap.liquidity.v1.TransactionRequest transaction = 1;
|
|
77
|
+
*/
|
|
78
|
+
transaction?: TransactionRequest;
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: bool cancel_approval = 2;
|
|
81
|
+
*/
|
|
82
|
+
cancelApproval: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: uniswap.liquidity.v2.LPAction action = 3;
|
|
85
|
+
*/
|
|
86
|
+
action: LPAction;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: optional string gas_fee = 4;
|
|
89
|
+
*/
|
|
90
|
+
gasFee?: string;
|
|
91
|
+
constructor(data?: PartialMessage<ApprovalTransactionRequest>);
|
|
92
|
+
static readonly runtime: typeof proto3;
|
|
93
|
+
static readonly typeName = "uniswap.liquidity.v2.ApprovalTransactionRequest";
|
|
94
|
+
static readonly fields: FieldList;
|
|
95
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApprovalTransactionRequest;
|
|
96
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApprovalTransactionRequest;
|
|
97
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApprovalTransactionRequest;
|
|
98
|
+
static equals(a: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined, b: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined): boolean;
|
|
99
|
+
}
|
|
@@ -3,7 +3,65 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { ChainId } from "../v1/types_pb.js";
|
|
6
|
+
import { ChainId, TransactionRequest } from "../v1/types_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum uniswap.liquidity.v2.LPAction
|
|
9
|
+
*/
|
|
10
|
+
export var LPAction;
|
|
11
|
+
(function (LPAction) {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: CREATE = 0;
|
|
14
|
+
*/
|
|
15
|
+
LPAction[LPAction["CREATE"] = 0] = "CREATE";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: INCREASE = 1;
|
|
18
|
+
*/
|
|
19
|
+
LPAction[LPAction["INCREASE"] = 1] = "INCREASE";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: DECREASE = 2;
|
|
22
|
+
*/
|
|
23
|
+
LPAction[LPAction["DECREASE"] = 2] = "DECREASE";
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: MIGRATE = 3;
|
|
26
|
+
*/
|
|
27
|
+
LPAction[LPAction["MIGRATE"] = 3] = "MIGRATE";
|
|
28
|
+
})(LPAction || (LPAction = {}));
|
|
29
|
+
// Retrieve enum metadata with: proto3.getEnumType(LPAction)
|
|
30
|
+
proto3.util.setEnumType(LPAction, "uniswap.liquidity.v2.LPAction", [
|
|
31
|
+
{ no: 0, name: "CREATE" },
|
|
32
|
+
{ no: 1, name: "INCREASE" },
|
|
33
|
+
{ no: 2, name: "DECREASE" },
|
|
34
|
+
{ no: 3, name: "MIGRATE" },
|
|
35
|
+
]);
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum uniswap.liquidity.v2.GasUrgency
|
|
38
|
+
*/
|
|
39
|
+
export var GasUrgency;
|
|
40
|
+
(function (GasUrgency) {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: GAS_URGENCY_UNSPECIFIED = 0;
|
|
43
|
+
*/
|
|
44
|
+
GasUrgency[GasUrgency["GAS_URGENCY_UNSPECIFIED"] = 0] = "GAS_URGENCY_UNSPECIFIED";
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: NORMAL = 1;
|
|
47
|
+
*/
|
|
48
|
+
GasUrgency[GasUrgency["NORMAL"] = 1] = "NORMAL";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: FAST = 2;
|
|
51
|
+
*/
|
|
52
|
+
GasUrgency[GasUrgency["FAST"] = 2] = "FAST";
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: URGENT = 3;
|
|
55
|
+
*/
|
|
56
|
+
GasUrgency[GasUrgency["URGENT"] = 3] = "URGENT";
|
|
57
|
+
})(GasUrgency || (GasUrgency = {}));
|
|
58
|
+
// Retrieve enum metadata with: proto3.getEnumType(GasUrgency)
|
|
59
|
+
proto3.util.setEnumType(GasUrgency, "uniswap.liquidity.v2.GasUrgency", [
|
|
60
|
+
{ no: 0, name: "GAS_URGENCY_UNSPECIFIED" },
|
|
61
|
+
{ no: 1, name: "NORMAL" },
|
|
62
|
+
{ no: 2, name: "FAST" },
|
|
63
|
+
{ no: 3, name: "URGENT" },
|
|
64
|
+
]);
|
|
7
65
|
/**
|
|
8
66
|
* @generated from message uniswap.liquidity.v2.LPToken
|
|
9
67
|
*/
|
|
@@ -44,3 +102,40 @@ LPToken.fields = proto3.util.newFieldList(() => [
|
|
|
44
102
|
{ no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
45
103
|
{ no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
46
104
|
]);
|
|
105
|
+
/**
|
|
106
|
+
* @generated from message uniswap.liquidity.v2.ApprovalTransactionRequest
|
|
107
|
+
*/
|
|
108
|
+
export class ApprovalTransactionRequest extends Message {
|
|
109
|
+
constructor(data) {
|
|
110
|
+
super();
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: bool cancel_approval = 2;
|
|
113
|
+
*/
|
|
114
|
+
this.cancelApproval = false;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: uniswap.liquidity.v2.LPAction action = 3;
|
|
117
|
+
*/
|
|
118
|
+
this.action = LPAction.CREATE;
|
|
119
|
+
proto3.util.initPartial(data, this);
|
|
120
|
+
}
|
|
121
|
+
static fromBinary(bytes, options) {
|
|
122
|
+
return new ApprovalTransactionRequest().fromBinary(bytes, options);
|
|
123
|
+
}
|
|
124
|
+
static fromJson(jsonValue, options) {
|
|
125
|
+
return new ApprovalTransactionRequest().fromJson(jsonValue, options);
|
|
126
|
+
}
|
|
127
|
+
static fromJsonString(jsonString, options) {
|
|
128
|
+
return new ApprovalTransactionRequest().fromJsonString(jsonString, options);
|
|
129
|
+
}
|
|
130
|
+
static equals(a, b) {
|
|
131
|
+
return proto3.util.equals(ApprovalTransactionRequest, a, b);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
ApprovalTransactionRequest.runtime = proto3;
|
|
135
|
+
ApprovalTransactionRequest.typeName = "uniswap.liquidity.v2.ApprovalTransactionRequest";
|
|
136
|
+
ApprovalTransactionRequest.fields = proto3.util.newFieldList(() => [
|
|
137
|
+
{ no: 1, name: "transaction", kind: "message", T: TransactionRequest },
|
|
138
|
+
{ no: 2, name: "cancel_approval", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
139
|
+
{ no: 3, name: "action", kind: "enum", T: proto3.getEnumType(LPAction) },
|
|
140
|
+
{ no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
141
|
+
]);
|