@uniswap/client-liquidity 0.0.10 → 0.0.12
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-LiquidityService_connectquery.d.ts +29 -1
- package/dist/uniswap/liquidity/v1/api-LiquidityService_connectquery.js +29 -1
- package/dist/uniswap/liquidity/v1/api_connect.d.ts +21 -1
- package/dist/uniswap/liquidity/v1/api_connect.js +21 -1
- package/dist/uniswap/liquidity/v1/api_pb.d.ts +194 -1
- package/dist/uniswap/liquidity/v1/api_pb.js +147 -1
- package/dist/uniswap/liquidity/v1/types_pb.d.ts +274 -0
- package/dist/uniswap/liquidity/v1/types_pb.js +327 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
2
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.liquidity.v1.LiquidityService.MigrateV2ToV3LPPosition
|
|
5
5
|
*/
|
|
@@ -98,3 +98,31 @@ export declare const decreaseLPPosition: {
|
|
|
98
98
|
readonly typeName: "uniswap.liquidity.v1.LiquidityService";
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* @generated from rpc uniswap.liquidity.v1.LiquidityService.ClaimLPFees
|
|
103
|
+
*/
|
|
104
|
+
export declare const claimLPFees: {
|
|
105
|
+
readonly localName: "claimLPFees";
|
|
106
|
+
readonly name: "ClaimLPFees";
|
|
107
|
+
readonly kind: MethodKind.Unary;
|
|
108
|
+
readonly I: typeof ClaimLPFeesRequest;
|
|
109
|
+
readonly O: typeof ClaimLPFeesResponse;
|
|
110
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
111
|
+
readonly service: {
|
|
112
|
+
readonly typeName: "uniswap.liquidity.v1.LiquidityService";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* @generated from rpc uniswap.liquidity.v1.LiquidityService.CheckLPApproval
|
|
117
|
+
*/
|
|
118
|
+
export declare const checkLPApproval: {
|
|
119
|
+
readonly localName: "checkLPApproval";
|
|
120
|
+
readonly name: "CheckLPApproval";
|
|
121
|
+
readonly kind: MethodKind.Unary;
|
|
122
|
+
readonly I: typeof CheckApprovalLPRequest;
|
|
123
|
+
readonly O: typeof CheckApprovalLPResponse;
|
|
124
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
125
|
+
readonly service: {
|
|
126
|
+
readonly typeName: "uniswap.liquidity.v1.LiquidityService";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
6
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.liquidity.v1.LiquidityService.MigrateV2ToV3LPPosition
|
|
9
9
|
*/
|
|
@@ -102,3 +102,31 @@ export const decreaseLPPosition = {
|
|
|
102
102
|
typeName: "uniswap.liquidity.v1.LiquidityService"
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* @generated from rpc uniswap.liquidity.v1.LiquidityService.ClaimLPFees
|
|
107
|
+
*/
|
|
108
|
+
export const claimLPFees = {
|
|
109
|
+
localName: "claimLPFees",
|
|
110
|
+
name: "ClaimLPFees",
|
|
111
|
+
kind: MethodKind.Unary,
|
|
112
|
+
I: ClaimLPFeesRequest,
|
|
113
|
+
O: ClaimLPFeesResponse,
|
|
114
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
115
|
+
service: {
|
|
116
|
+
typeName: "uniswap.liquidity.v1.LiquidityService"
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* @generated from rpc uniswap.liquidity.v1.LiquidityService.CheckLPApproval
|
|
121
|
+
*/
|
|
122
|
+
export const checkLPApproval = {
|
|
123
|
+
localName: "checkLPApproval",
|
|
124
|
+
name: "CheckLPApproval",
|
|
125
|
+
kind: MethodKind.Unary,
|
|
126
|
+
I: CheckApprovalLPRequest,
|
|
127
|
+
O: CheckApprovalLPResponse,
|
|
128
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
129
|
+
service: {
|
|
130
|
+
typeName: "uniswap.liquidity.v1.LiquidityService"
|
|
131
|
+
}
|
|
132
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
1
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service uniswap.liquidity.v1.LiquidityService
|
|
@@ -76,5 +76,25 @@ export declare const LiquidityService: {
|
|
|
76
76
|
readonly kind: MethodKind.Unary;
|
|
77
77
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* @generated from rpc uniswap.liquidity.v1.LiquidityService.ClaimLPFees
|
|
81
|
+
*/
|
|
82
|
+
readonly claimLPFees: {
|
|
83
|
+
readonly name: "ClaimLPFees";
|
|
84
|
+
readonly I: typeof ClaimLPFeesRequest;
|
|
85
|
+
readonly O: typeof ClaimLPFeesResponse;
|
|
86
|
+
readonly kind: MethodKind.Unary;
|
|
87
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* @generated from rpc uniswap.liquidity.v1.LiquidityService.CheckLPApproval
|
|
91
|
+
*/
|
|
92
|
+
readonly checkLPApproval: {
|
|
93
|
+
readonly name: "CheckLPApproval";
|
|
94
|
+
readonly I: typeof CheckApprovalLPRequest;
|
|
95
|
+
readonly O: typeof CheckApprovalLPResponse;
|
|
96
|
+
readonly kind: MethodKind.Unary;
|
|
97
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
98
|
+
};
|
|
79
99
|
};
|
|
80
100
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file uniswap/liquidity/v1/api.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
5
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service uniswap.liquidity.v1.LiquidityService
|
|
@@ -80,5 +80,25 @@ export const LiquidityService = {
|
|
|
80
80
|
kind: MethodKind.Unary,
|
|
81
81
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
82
82
|
},
|
|
83
|
+
/**
|
|
84
|
+
* @generated from rpc uniswap.liquidity.v1.LiquidityService.ClaimLPFees
|
|
85
|
+
*/
|
|
86
|
+
claimLPFees: {
|
|
87
|
+
name: "ClaimLPFees",
|
|
88
|
+
I: ClaimLPFeesRequest,
|
|
89
|
+
O: ClaimLPFeesResponse,
|
|
90
|
+
kind: MethodKind.Unary,
|
|
91
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* @generated from rpc uniswap.liquidity.v1.LiquidityService.CheckLPApproval
|
|
95
|
+
*/
|
|
96
|
+
checkLPApproval: {
|
|
97
|
+
name: "CheckLPApproval",
|
|
98
|
+
I: CheckApprovalLPRequest,
|
|
99
|
+
O: CheckApprovalLPResponse,
|
|
100
|
+
kind: MethodKind.Unary,
|
|
101
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
102
|
+
},
|
|
83
103
|
}
|
|
84
104
|
};
|
|
@@ -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 { ChainId, Distributor, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
|
|
3
|
+
import { ChainId, Distributor, NFTPermitData, PermitBatchData, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2CheckApprovalLPRequest, V2ClaimLPFeesRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3CheckApprovalLPRequest, V3ClaimLPFeesRequest, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4CheckApprovalLPRequest, V4ClaimLPFeesRequest, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
|
|
4
4
|
/**
|
|
5
5
|
* REQUESTS & RESPONSES
|
|
6
6
|
*
|
|
@@ -536,3 +536,196 @@ export declare class DecreaseLPPositionResponse extends Message<DecreaseLPPositi
|
|
|
536
536
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecreaseLPPositionResponse;
|
|
537
537
|
static equals(a: DecreaseLPPositionResponse | PlainMessage<DecreaseLPPositionResponse> | undefined, b: DecreaseLPPositionResponse | PlainMessage<DecreaseLPPositionResponse> | undefined): boolean;
|
|
538
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
* @generated from message uniswap.liquidity.v1.ClaimLPFeesRequest
|
|
541
|
+
*/
|
|
542
|
+
export declare class ClaimLPFeesRequest extends Message<ClaimLPFeesRequest> {
|
|
543
|
+
/**
|
|
544
|
+
* @generated from oneof uniswap.liquidity.v1.ClaimLPFeesRequest.claimLPFeesRequest
|
|
545
|
+
*/
|
|
546
|
+
claimLPFeesRequest: {
|
|
547
|
+
/**
|
|
548
|
+
* @generated from field: uniswap.liquidity.v1.V2ClaimLPFeesRequest v2_claim_lp_fees_request = 1;
|
|
549
|
+
*/
|
|
550
|
+
value: V2ClaimLPFeesRequest;
|
|
551
|
+
case: "v2ClaimLpFeesRequest";
|
|
552
|
+
} | {
|
|
553
|
+
/**
|
|
554
|
+
* @generated from field: uniswap.liquidity.v1.V3ClaimLPFeesRequest v3_claim_lp_fees_request = 2;
|
|
555
|
+
*/
|
|
556
|
+
value: V3ClaimLPFeesRequest;
|
|
557
|
+
case: "v3ClaimLpFeesRequest";
|
|
558
|
+
} | {
|
|
559
|
+
/**
|
|
560
|
+
* @generated from field: uniswap.liquidity.v1.V4ClaimLPFeesRequest v4_claim_lp_fees_request = 3;
|
|
561
|
+
*/
|
|
562
|
+
value: V4ClaimLPFeesRequest;
|
|
563
|
+
case: "v4ClaimLpFeesRequest";
|
|
564
|
+
} | {
|
|
565
|
+
case: undefined;
|
|
566
|
+
value?: undefined;
|
|
567
|
+
};
|
|
568
|
+
constructor(data?: PartialMessage<ClaimLPFeesRequest>);
|
|
569
|
+
static readonly runtime: typeof proto3;
|
|
570
|
+
static readonly typeName = "uniswap.liquidity.v1.ClaimLPFeesRequest";
|
|
571
|
+
static readonly fields: FieldList;
|
|
572
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimLPFeesRequest;
|
|
573
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimLPFeesRequest;
|
|
574
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimLPFeesRequest;
|
|
575
|
+
static equals(a: ClaimLPFeesRequest | PlainMessage<ClaimLPFeesRequest> | undefined, b: ClaimLPFeesRequest | PlainMessage<ClaimLPFeesRequest> | undefined): boolean;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* @generated from message uniswap.liquidity.v1.ClaimLPFeesResponse
|
|
579
|
+
*/
|
|
580
|
+
export declare class ClaimLPFeesResponse extends Message<ClaimLPFeesResponse> {
|
|
581
|
+
/**
|
|
582
|
+
* @generated from field: string request_id = 1;
|
|
583
|
+
*/
|
|
584
|
+
requestId: string;
|
|
585
|
+
/**
|
|
586
|
+
* @generated from field: optional uniswap.liquidity.v1.TransactionRequest claim = 2;
|
|
587
|
+
*/
|
|
588
|
+
claim?: TransactionRequest;
|
|
589
|
+
/**
|
|
590
|
+
* @generated from field: optional string gasFee = 3;
|
|
591
|
+
*/
|
|
592
|
+
gasFee?: string;
|
|
593
|
+
constructor(data?: PartialMessage<ClaimLPFeesResponse>);
|
|
594
|
+
static readonly runtime: typeof proto3;
|
|
595
|
+
static readonly typeName = "uniswap.liquidity.v1.ClaimLPFeesResponse";
|
|
596
|
+
static readonly fields: FieldList;
|
|
597
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimLPFeesResponse;
|
|
598
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimLPFeesResponse;
|
|
599
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimLPFeesResponse;
|
|
600
|
+
static equals(a: ClaimLPFeesResponse | PlainMessage<ClaimLPFeesResponse> | undefined, b: ClaimLPFeesResponse | PlainMessage<ClaimLPFeesResponse> | undefined): boolean;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* @generated from message uniswap.liquidity.v1.CheckApprovalLPRequest
|
|
604
|
+
*/
|
|
605
|
+
export declare class CheckApprovalLPRequest extends Message<CheckApprovalLPRequest> {
|
|
606
|
+
/**
|
|
607
|
+
* @generated from oneof uniswap.liquidity.v1.CheckApprovalLPRequest.checkApprovalLPRequest
|
|
608
|
+
*/
|
|
609
|
+
checkApprovalLPRequest: {
|
|
610
|
+
/**
|
|
611
|
+
* @generated from field: uniswap.liquidity.v1.V2CheckApprovalLPRequest v2_check_approval_lp_request = 1;
|
|
612
|
+
*/
|
|
613
|
+
value: V2CheckApprovalLPRequest;
|
|
614
|
+
case: "v2CheckApprovalLpRequest";
|
|
615
|
+
} | {
|
|
616
|
+
/**
|
|
617
|
+
* @generated from field: uniswap.liquidity.v1.V3CheckApprovalLPRequest v3_check_approval_lp_request = 2;
|
|
618
|
+
*/
|
|
619
|
+
value: V3CheckApprovalLPRequest;
|
|
620
|
+
case: "v3CheckApprovalLpRequest";
|
|
621
|
+
} | {
|
|
622
|
+
/**
|
|
623
|
+
* @generated from field: uniswap.liquidity.v1.V4CheckApprovalLPRequest v4_check_approval_lp_request = 3;
|
|
624
|
+
*/
|
|
625
|
+
value: V4CheckApprovalLPRequest;
|
|
626
|
+
case: "v4CheckApprovalLpRequest";
|
|
627
|
+
} | {
|
|
628
|
+
case: undefined;
|
|
629
|
+
value?: undefined;
|
|
630
|
+
};
|
|
631
|
+
constructor(data?: PartialMessage<CheckApprovalLPRequest>);
|
|
632
|
+
static readonly runtime: typeof proto3;
|
|
633
|
+
static readonly typeName = "uniswap.liquidity.v1.CheckApprovalLPRequest";
|
|
634
|
+
static readonly fields: FieldList;
|
|
635
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckApprovalLPRequest;
|
|
636
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckApprovalLPRequest;
|
|
637
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckApprovalLPRequest;
|
|
638
|
+
static equals(a: CheckApprovalLPRequest | PlainMessage<CheckApprovalLPRequest> | undefined, b: CheckApprovalLPRequest | PlainMessage<CheckApprovalLPRequest> | undefined): boolean;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* @generated from message uniswap.liquidity.v1.CheckApprovalLPResponse
|
|
642
|
+
*/
|
|
643
|
+
export declare class CheckApprovalLPResponse extends Message<CheckApprovalLPResponse> {
|
|
644
|
+
/**
|
|
645
|
+
* @generated from field: string request_id = 1;
|
|
646
|
+
*/
|
|
647
|
+
requestId: string;
|
|
648
|
+
/**
|
|
649
|
+
* @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_0_approval = 2;
|
|
650
|
+
*/
|
|
651
|
+
token0Approval?: TransactionRequest;
|
|
652
|
+
/**
|
|
653
|
+
* @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_1_approval = 3;
|
|
654
|
+
*/
|
|
655
|
+
token1Approval?: TransactionRequest;
|
|
656
|
+
/**
|
|
657
|
+
* @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_0_Cancel = 4;
|
|
658
|
+
*/
|
|
659
|
+
token0Cancel?: TransactionRequest;
|
|
660
|
+
/**
|
|
661
|
+
* @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_1_Cancel = 5;
|
|
662
|
+
*/
|
|
663
|
+
token1Cancel?: TransactionRequest;
|
|
664
|
+
/**
|
|
665
|
+
* @generated from field: optional uniswap.liquidity.v1.TransactionRequest position_token_approval = 6;
|
|
666
|
+
*/
|
|
667
|
+
positionTokenApproval?: TransactionRequest;
|
|
668
|
+
/**
|
|
669
|
+
* @generated from oneof uniswap.liquidity.v1.CheckApprovalLPResponse.permitData
|
|
670
|
+
*/
|
|
671
|
+
permitData: {
|
|
672
|
+
/**
|
|
673
|
+
* @generated from field: uniswap.liquidity.v1.PermitBatchData permit_batch_data = 7;
|
|
674
|
+
*/
|
|
675
|
+
value: PermitBatchData;
|
|
676
|
+
case: "permitBatchData";
|
|
677
|
+
} | {
|
|
678
|
+
/**
|
|
679
|
+
* @generated from field: uniswap.liquidity.v1.NFTPermitData nft_permit_data = 8;
|
|
680
|
+
*/
|
|
681
|
+
value: NFTPermitData;
|
|
682
|
+
case: "nftPermitData";
|
|
683
|
+
} | {
|
|
684
|
+
case: undefined;
|
|
685
|
+
value?: undefined;
|
|
686
|
+
};
|
|
687
|
+
/**
|
|
688
|
+
* @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_0_permit_transaction = 9;
|
|
689
|
+
*/
|
|
690
|
+
token0PermitTransaction?: TransactionRequest;
|
|
691
|
+
/**
|
|
692
|
+
* @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_1_permit_transaction = 10;
|
|
693
|
+
*/
|
|
694
|
+
token1PermitTransaction?: TransactionRequest;
|
|
695
|
+
/**
|
|
696
|
+
* @generated from field: optional string gas_fee_token_0_approval = 11;
|
|
697
|
+
*/
|
|
698
|
+
gasFeeToken0Approval?: string;
|
|
699
|
+
/**
|
|
700
|
+
* @generated from field: optional string gas_fee_token_1_approval = 12;
|
|
701
|
+
*/
|
|
702
|
+
gasFeeToken1Approval?: string;
|
|
703
|
+
/**
|
|
704
|
+
* @generated from field: optional string gas_fee_position_token_approval = 13;
|
|
705
|
+
*/
|
|
706
|
+
gasFeePositionTokenApproval?: string;
|
|
707
|
+
/**
|
|
708
|
+
* @generated from field: optional string gas_fee_token_0_cancel = 14;
|
|
709
|
+
*/
|
|
710
|
+
gasFeeToken0Cancel?: string;
|
|
711
|
+
/**
|
|
712
|
+
* @generated from field: optional string gas_fee_token_1_cancel = 15;
|
|
713
|
+
*/
|
|
714
|
+
gasFeeToken1Cancel?: string;
|
|
715
|
+
/**
|
|
716
|
+
* @generated from field: optional string gas_fee_token_0_permit = 16;
|
|
717
|
+
*/
|
|
718
|
+
gasFeeToken0Permit?: string;
|
|
719
|
+
/**
|
|
720
|
+
* @generated from field: optional string gas_fee_token_1_permit = 17;
|
|
721
|
+
*/
|
|
722
|
+
gasFeeToken1Permit?: string;
|
|
723
|
+
constructor(data?: PartialMessage<CheckApprovalLPResponse>);
|
|
724
|
+
static readonly runtime: typeof proto3;
|
|
725
|
+
static readonly typeName = "uniswap.liquidity.v1.CheckApprovalLPResponse";
|
|
726
|
+
static readonly fields: FieldList;
|
|
727
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckApprovalLPResponse;
|
|
728
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckApprovalLPResponse;
|
|
729
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckApprovalLPResponse;
|
|
730
|
+
static equals(a: CheckApprovalLPResponse | PlainMessage<CheckApprovalLPResponse> | undefined, b: CheckApprovalLPResponse | PlainMessage<CheckApprovalLPResponse> | undefined): boolean;
|
|
731
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { ChainId, Distributor, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
|
|
6
|
+
import { ChainId, Distributor, NFTPermitData, PermitBatchData, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2CheckApprovalLPRequest, V2ClaimLPFeesRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3CheckApprovalLPRequest, V3ClaimLPFeesRequest, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4CheckApprovalLPRequest, V4ClaimLPFeesRequest, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* REQUESTS & RESPONSES
|
|
9
9
|
*
|
|
@@ -558,3 +558,149 @@ DecreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
558
558
|
{ no: 5, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
559
559
|
{ no: 6, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
560
560
|
]);
|
|
561
|
+
/**
|
|
562
|
+
* @generated from message uniswap.liquidity.v1.ClaimLPFeesRequest
|
|
563
|
+
*/
|
|
564
|
+
export class ClaimLPFeesRequest extends Message {
|
|
565
|
+
constructor(data) {
|
|
566
|
+
super();
|
|
567
|
+
/**
|
|
568
|
+
* @generated from oneof uniswap.liquidity.v1.ClaimLPFeesRequest.claimLPFeesRequest
|
|
569
|
+
*/
|
|
570
|
+
this.claimLPFeesRequest = { case: undefined };
|
|
571
|
+
proto3.util.initPartial(data, this);
|
|
572
|
+
}
|
|
573
|
+
static fromBinary(bytes, options) {
|
|
574
|
+
return new ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
575
|
+
}
|
|
576
|
+
static fromJson(jsonValue, options) {
|
|
577
|
+
return new ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
578
|
+
}
|
|
579
|
+
static fromJsonString(jsonString, options) {
|
|
580
|
+
return new ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
581
|
+
}
|
|
582
|
+
static equals(a, b) {
|
|
583
|
+
return proto3.util.equals(ClaimLPFeesRequest, a, b);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
ClaimLPFeesRequest.runtime = proto3;
|
|
587
|
+
ClaimLPFeesRequest.typeName = "uniswap.liquidity.v1.ClaimLPFeesRequest";
|
|
588
|
+
ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
589
|
+
{ no: 1, name: "v2_claim_lp_fees_request", kind: "message", T: V2ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
590
|
+
{ no: 2, name: "v3_claim_lp_fees_request", kind: "message", T: V3ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
591
|
+
{ no: 3, name: "v4_claim_lp_fees_request", kind: "message", T: V4ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
592
|
+
]);
|
|
593
|
+
/**
|
|
594
|
+
* @generated from message uniswap.liquidity.v1.ClaimLPFeesResponse
|
|
595
|
+
*/
|
|
596
|
+
export class ClaimLPFeesResponse extends Message {
|
|
597
|
+
constructor(data) {
|
|
598
|
+
super();
|
|
599
|
+
/**
|
|
600
|
+
* @generated from field: string request_id = 1;
|
|
601
|
+
*/
|
|
602
|
+
this.requestId = "";
|
|
603
|
+
proto3.util.initPartial(data, this);
|
|
604
|
+
}
|
|
605
|
+
static fromBinary(bytes, options) {
|
|
606
|
+
return new ClaimLPFeesResponse().fromBinary(bytes, options);
|
|
607
|
+
}
|
|
608
|
+
static fromJson(jsonValue, options) {
|
|
609
|
+
return new ClaimLPFeesResponse().fromJson(jsonValue, options);
|
|
610
|
+
}
|
|
611
|
+
static fromJsonString(jsonString, options) {
|
|
612
|
+
return new ClaimLPFeesResponse().fromJsonString(jsonString, options);
|
|
613
|
+
}
|
|
614
|
+
static equals(a, b) {
|
|
615
|
+
return proto3.util.equals(ClaimLPFeesResponse, a, b);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
ClaimLPFeesResponse.runtime = proto3;
|
|
619
|
+
ClaimLPFeesResponse.typeName = "uniswap.liquidity.v1.ClaimLPFeesResponse";
|
|
620
|
+
ClaimLPFeesResponse.fields = proto3.util.newFieldList(() => [
|
|
621
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
622
|
+
{ no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
|
|
623
|
+
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
624
|
+
]);
|
|
625
|
+
/**
|
|
626
|
+
* @generated from message uniswap.liquidity.v1.CheckApprovalLPRequest
|
|
627
|
+
*/
|
|
628
|
+
export class CheckApprovalLPRequest extends Message {
|
|
629
|
+
constructor(data) {
|
|
630
|
+
super();
|
|
631
|
+
/**
|
|
632
|
+
* @generated from oneof uniswap.liquidity.v1.CheckApprovalLPRequest.checkApprovalLPRequest
|
|
633
|
+
*/
|
|
634
|
+
this.checkApprovalLPRequest = { case: undefined };
|
|
635
|
+
proto3.util.initPartial(data, this);
|
|
636
|
+
}
|
|
637
|
+
static fromBinary(bytes, options) {
|
|
638
|
+
return new CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
639
|
+
}
|
|
640
|
+
static fromJson(jsonValue, options) {
|
|
641
|
+
return new CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
642
|
+
}
|
|
643
|
+
static fromJsonString(jsonString, options) {
|
|
644
|
+
return new CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
645
|
+
}
|
|
646
|
+
static equals(a, b) {
|
|
647
|
+
return proto3.util.equals(CheckApprovalLPRequest, a, b);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
CheckApprovalLPRequest.runtime = proto3;
|
|
651
|
+
CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.CheckApprovalLPRequest";
|
|
652
|
+
CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
653
|
+
{ no: 1, name: "v2_check_approval_lp_request", kind: "message", T: V2CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
654
|
+
{ no: 2, name: "v3_check_approval_lp_request", kind: "message", T: V3CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
655
|
+
{ no: 3, name: "v4_check_approval_lp_request", kind: "message", T: V4CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
656
|
+
]);
|
|
657
|
+
/**
|
|
658
|
+
* @generated from message uniswap.liquidity.v1.CheckApprovalLPResponse
|
|
659
|
+
*/
|
|
660
|
+
export class CheckApprovalLPResponse extends Message {
|
|
661
|
+
constructor(data) {
|
|
662
|
+
super();
|
|
663
|
+
/**
|
|
664
|
+
* @generated from field: string request_id = 1;
|
|
665
|
+
*/
|
|
666
|
+
this.requestId = "";
|
|
667
|
+
/**
|
|
668
|
+
* @generated from oneof uniswap.liquidity.v1.CheckApprovalLPResponse.permitData
|
|
669
|
+
*/
|
|
670
|
+
this.permitData = { case: undefined };
|
|
671
|
+
proto3.util.initPartial(data, this);
|
|
672
|
+
}
|
|
673
|
+
static fromBinary(bytes, options) {
|
|
674
|
+
return new CheckApprovalLPResponse().fromBinary(bytes, options);
|
|
675
|
+
}
|
|
676
|
+
static fromJson(jsonValue, options) {
|
|
677
|
+
return new CheckApprovalLPResponse().fromJson(jsonValue, options);
|
|
678
|
+
}
|
|
679
|
+
static fromJsonString(jsonString, options) {
|
|
680
|
+
return new CheckApprovalLPResponse().fromJsonString(jsonString, options);
|
|
681
|
+
}
|
|
682
|
+
static equals(a, b) {
|
|
683
|
+
return proto3.util.equals(CheckApprovalLPResponse, a, b);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
CheckApprovalLPResponse.runtime = proto3;
|
|
687
|
+
CheckApprovalLPResponse.typeName = "uniswap.liquidity.v1.CheckApprovalLPResponse";
|
|
688
|
+
CheckApprovalLPResponse.fields = proto3.util.newFieldList(() => [
|
|
689
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
690
|
+
{ no: 2, name: "token_0_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
691
|
+
{ no: 3, name: "token_1_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
692
|
+
{ no: 4, name: "token_0_Cancel", kind: "message", T: TransactionRequest, opt: true },
|
|
693
|
+
{ no: 5, name: "token_1_Cancel", kind: "message", T: TransactionRequest, opt: true },
|
|
694
|
+
{ no: 6, name: "position_token_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
695
|
+
{ no: 7, name: "permit_batch_data", kind: "message", T: PermitBatchData, oneof: "permitData" },
|
|
696
|
+
{ no: 8, name: "nft_permit_data", kind: "message", T: NFTPermitData, oneof: "permitData" },
|
|
697
|
+
{ no: 9, name: "token_0_permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
698
|
+
{ no: 10, name: "token_1_permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
699
|
+
{ no: 11, name: "gas_fee_token_0_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
700
|
+
{ no: 12, name: "gas_fee_token_1_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
701
|
+
{ no: 13, name: "gas_fee_position_token_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
702
|
+
{ no: 14, name: "gas_fee_token_0_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
703
|
+
{ no: 15, name: "gas_fee_token_1_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
704
|
+
{ no: 16, name: "gas_fee_token_0_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
705
|
+
{ no: 17, name: "gas_fee_token_1_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
706
|
+
]);
|
|
@@ -1497,3 +1497,277 @@ export declare class V4DecreaseLPPosition extends Message<V4DecreaseLPPosition>
|
|
|
1497
1497
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4DecreaseLPPosition;
|
|
1498
1498
|
static equals(a: V4DecreaseLPPosition | PlainMessage<V4DecreaseLPPosition> | undefined, b: V4DecreaseLPPosition | PlainMessage<V4DecreaseLPPosition> | undefined): boolean;
|
|
1499
1499
|
}
|
|
1500
|
+
/**
|
|
1501
|
+
* @generated from message uniswap.liquidity.v1.V2ClaimLPFeesRequest
|
|
1502
|
+
*/
|
|
1503
|
+
export declare class V2ClaimLPFeesRequest extends Message<V2ClaimLPFeesRequest> {
|
|
1504
|
+
/**
|
|
1505
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1506
|
+
*/
|
|
1507
|
+
protocol: Protocols;
|
|
1508
|
+
/**
|
|
1509
|
+
* @generated from field: uniswap.liquidity.v1.V2Position position = 2;
|
|
1510
|
+
*/
|
|
1511
|
+
position?: V2Position;
|
|
1512
|
+
/**
|
|
1513
|
+
* @generated from field: string wallet_address = 3;
|
|
1514
|
+
*/
|
|
1515
|
+
walletAddress: string;
|
|
1516
|
+
/**
|
|
1517
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
1518
|
+
*/
|
|
1519
|
+
chainId: ChainId;
|
|
1520
|
+
/**
|
|
1521
|
+
* @generated from field: optional bool simulate_transaction = 5;
|
|
1522
|
+
*/
|
|
1523
|
+
simulateTransaction?: boolean;
|
|
1524
|
+
/**
|
|
1525
|
+
* @generated from field: bool collectAsWETH = 6;
|
|
1526
|
+
*/
|
|
1527
|
+
collectAsWETH: boolean;
|
|
1528
|
+
constructor(data?: PartialMessage<V2ClaimLPFeesRequest>);
|
|
1529
|
+
static readonly runtime: typeof proto3;
|
|
1530
|
+
static readonly typeName = "uniswap.liquidity.v1.V2ClaimLPFeesRequest";
|
|
1531
|
+
static readonly fields: FieldList;
|
|
1532
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V2ClaimLPFeesRequest;
|
|
1533
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V2ClaimLPFeesRequest;
|
|
1534
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V2ClaimLPFeesRequest;
|
|
1535
|
+
static equals(a: V2ClaimLPFeesRequest | PlainMessage<V2ClaimLPFeesRequest> | undefined, b: V2ClaimLPFeesRequest | PlainMessage<V2ClaimLPFeesRequest> | undefined): boolean;
|
|
1536
|
+
}
|
|
1537
|
+
/**
|
|
1538
|
+
* @generated from message uniswap.liquidity.v1.V3ClaimLPFeesRequest
|
|
1539
|
+
*/
|
|
1540
|
+
export declare class V3ClaimLPFeesRequest extends Message<V3ClaimLPFeesRequest> {
|
|
1541
|
+
/**
|
|
1542
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1543
|
+
*/
|
|
1544
|
+
protocol: Protocols;
|
|
1545
|
+
/**
|
|
1546
|
+
* @generated from field: int32 tokenId = 2;
|
|
1547
|
+
*/
|
|
1548
|
+
tokenId: number;
|
|
1549
|
+
/**
|
|
1550
|
+
* @generated from field: uniswap.liquidity.v1.V3Position position = 3;
|
|
1551
|
+
*/
|
|
1552
|
+
position?: V3Position;
|
|
1553
|
+
/**
|
|
1554
|
+
* @generated from field: string wallet_address = 4;
|
|
1555
|
+
*/
|
|
1556
|
+
walletAddress: string;
|
|
1557
|
+
/**
|
|
1558
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
|
|
1559
|
+
*/
|
|
1560
|
+
chainId: ChainId;
|
|
1561
|
+
/**
|
|
1562
|
+
* @generated from field: optional bool simulate_transaction = 6;
|
|
1563
|
+
*/
|
|
1564
|
+
simulateTransaction?: boolean;
|
|
1565
|
+
/**
|
|
1566
|
+
* @generated from field: bool collectAsWETH = 7;
|
|
1567
|
+
*/
|
|
1568
|
+
collectAsWETH: boolean;
|
|
1569
|
+
/**
|
|
1570
|
+
* @generated from field: string expectedTokenOwed0RawAmount = 8;
|
|
1571
|
+
*/
|
|
1572
|
+
expectedTokenOwed0RawAmount: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* @generated from field: string expectedTokenOwed1RawAmount = 9;
|
|
1575
|
+
*/
|
|
1576
|
+
expectedTokenOwed1RawAmount: string;
|
|
1577
|
+
constructor(data?: PartialMessage<V3ClaimLPFeesRequest>);
|
|
1578
|
+
static readonly runtime: typeof proto3;
|
|
1579
|
+
static readonly typeName = "uniswap.liquidity.v1.V3ClaimLPFeesRequest";
|
|
1580
|
+
static readonly fields: FieldList;
|
|
1581
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V3ClaimLPFeesRequest;
|
|
1582
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V3ClaimLPFeesRequest;
|
|
1583
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V3ClaimLPFeesRequest;
|
|
1584
|
+
static equals(a: V3ClaimLPFeesRequest | PlainMessage<V3ClaimLPFeesRequest> | undefined, b: V3ClaimLPFeesRequest | PlainMessage<V3ClaimLPFeesRequest> | undefined): boolean;
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
* @generated from message uniswap.liquidity.v1.V4ClaimLPFeesRequest
|
|
1588
|
+
*/
|
|
1589
|
+
export declare class V4ClaimLPFeesRequest extends Message<V4ClaimLPFeesRequest> {
|
|
1590
|
+
/**
|
|
1591
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1592
|
+
*/
|
|
1593
|
+
protocol: Protocols;
|
|
1594
|
+
/**
|
|
1595
|
+
* @generated from field: int32 tokenId = 2;
|
|
1596
|
+
*/
|
|
1597
|
+
tokenId: number;
|
|
1598
|
+
/**
|
|
1599
|
+
* @generated from field: uniswap.liquidity.v1.V4Position position = 3;
|
|
1600
|
+
*/
|
|
1601
|
+
position?: V4Position;
|
|
1602
|
+
/**
|
|
1603
|
+
* @generated from field: string wallet_address = 4;
|
|
1604
|
+
*/
|
|
1605
|
+
walletAddress: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
|
|
1608
|
+
*/
|
|
1609
|
+
chainId: ChainId;
|
|
1610
|
+
/**
|
|
1611
|
+
* @generated from field: optional bool simulate_transaction = 6;
|
|
1612
|
+
*/
|
|
1613
|
+
simulateTransaction?: boolean;
|
|
1614
|
+
constructor(data?: PartialMessage<V4ClaimLPFeesRequest>);
|
|
1615
|
+
static readonly runtime: typeof proto3;
|
|
1616
|
+
static readonly typeName = "uniswap.liquidity.v1.V4ClaimLPFeesRequest";
|
|
1617
|
+
static readonly fields: FieldList;
|
|
1618
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4ClaimLPFeesRequest;
|
|
1619
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4ClaimLPFeesRequest;
|
|
1620
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4ClaimLPFeesRequest;
|
|
1621
|
+
static equals(a: V4ClaimLPFeesRequest | PlainMessage<V4ClaimLPFeesRequest> | undefined, b: V4ClaimLPFeesRequest | PlainMessage<V4ClaimLPFeesRequest> | undefined): boolean;
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* @generated from message uniswap.liquidity.v1.V2CheckApprovalLPRequest
|
|
1625
|
+
*/
|
|
1626
|
+
export declare class V2CheckApprovalLPRequest extends Message<V2CheckApprovalLPRequest> {
|
|
1627
|
+
/**
|
|
1628
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1629
|
+
*/
|
|
1630
|
+
protocol: Protocols;
|
|
1631
|
+
/**
|
|
1632
|
+
* @generated from field: optional string token0 = 2;
|
|
1633
|
+
*/
|
|
1634
|
+
token0?: string;
|
|
1635
|
+
/**
|
|
1636
|
+
* @generated from field: optional string token1 = 3;
|
|
1637
|
+
*/
|
|
1638
|
+
token1?: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
1641
|
+
*/
|
|
1642
|
+
chainId: ChainId;
|
|
1643
|
+
/**
|
|
1644
|
+
* @generated from field: optional string position_token = 5;
|
|
1645
|
+
*/
|
|
1646
|
+
positionToken?: string;
|
|
1647
|
+
/**
|
|
1648
|
+
* @generated from field: string wallet_address = 6;
|
|
1649
|
+
*/
|
|
1650
|
+
walletAddress: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* @generated from field: optional string amount0 = 7;
|
|
1653
|
+
*/
|
|
1654
|
+
amount0?: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* @generated from field: optional string amount1 = 8;
|
|
1657
|
+
*/
|
|
1658
|
+
amount1?: string;
|
|
1659
|
+
/**
|
|
1660
|
+
* @generated from field: optional string position_amount = 9;
|
|
1661
|
+
*/
|
|
1662
|
+
positionAmount?: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* @generated from field: bool simulate_transaction = 10;
|
|
1665
|
+
*/
|
|
1666
|
+
simulateTransaction: boolean;
|
|
1667
|
+
constructor(data?: PartialMessage<V2CheckApprovalLPRequest>);
|
|
1668
|
+
static readonly runtime: typeof proto3;
|
|
1669
|
+
static readonly typeName = "uniswap.liquidity.v1.V2CheckApprovalLPRequest";
|
|
1670
|
+
static readonly fields: FieldList;
|
|
1671
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V2CheckApprovalLPRequest;
|
|
1672
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V2CheckApprovalLPRequest;
|
|
1673
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V2CheckApprovalLPRequest;
|
|
1674
|
+
static equals(a: V2CheckApprovalLPRequest | PlainMessage<V2CheckApprovalLPRequest> | undefined, b: V2CheckApprovalLPRequest | PlainMessage<V2CheckApprovalLPRequest> | undefined): boolean;
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* @generated from message uniswap.liquidity.v1.V3CheckApprovalLPRequest
|
|
1678
|
+
*/
|
|
1679
|
+
export declare class V3CheckApprovalLPRequest extends Message<V3CheckApprovalLPRequest> {
|
|
1680
|
+
/**
|
|
1681
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1682
|
+
*/
|
|
1683
|
+
protocol: Protocols;
|
|
1684
|
+
/**
|
|
1685
|
+
* @generated from field: optional string token0 = 2;
|
|
1686
|
+
*/
|
|
1687
|
+
token0?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* @generated from field: optional string token1 = 3;
|
|
1690
|
+
*/
|
|
1691
|
+
token1?: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
1694
|
+
*/
|
|
1695
|
+
chainId: ChainId;
|
|
1696
|
+
/**
|
|
1697
|
+
* @generated from field: optional string position_token = 5;
|
|
1698
|
+
*/
|
|
1699
|
+
positionToken?: string;
|
|
1700
|
+
/**
|
|
1701
|
+
* @generated from field: string wallet_address = 6;
|
|
1702
|
+
*/
|
|
1703
|
+
walletAddress: string;
|
|
1704
|
+
/**
|
|
1705
|
+
* @generated from field: optional string amount0 = 7;
|
|
1706
|
+
*/
|
|
1707
|
+
amount0?: string;
|
|
1708
|
+
/**
|
|
1709
|
+
* @generated from field: optional string amount1 = 8;
|
|
1710
|
+
*/
|
|
1711
|
+
amount1?: string;
|
|
1712
|
+
/**
|
|
1713
|
+
* @generated from field: bool simulate_transaction = 10;
|
|
1714
|
+
*/
|
|
1715
|
+
simulateTransaction: boolean;
|
|
1716
|
+
constructor(data?: PartialMessage<V3CheckApprovalLPRequest>);
|
|
1717
|
+
static readonly runtime: typeof proto3;
|
|
1718
|
+
static readonly typeName = "uniswap.liquidity.v1.V3CheckApprovalLPRequest";
|
|
1719
|
+
static readonly fields: FieldList;
|
|
1720
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V3CheckApprovalLPRequest;
|
|
1721
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V3CheckApprovalLPRequest;
|
|
1722
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V3CheckApprovalLPRequest;
|
|
1723
|
+
static equals(a: V3CheckApprovalLPRequest | PlainMessage<V3CheckApprovalLPRequest> | undefined, b: V3CheckApprovalLPRequest | PlainMessage<V3CheckApprovalLPRequest> | undefined): boolean;
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* @generated from message uniswap.liquidity.v1.V4CheckApprovalLPRequest
|
|
1727
|
+
*/
|
|
1728
|
+
export declare class V4CheckApprovalLPRequest extends Message<V4CheckApprovalLPRequest> {
|
|
1729
|
+
/**
|
|
1730
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1731
|
+
*/
|
|
1732
|
+
protocol: Protocols;
|
|
1733
|
+
/**
|
|
1734
|
+
* @generated from field: string token0 = 2;
|
|
1735
|
+
*/
|
|
1736
|
+
token0: string;
|
|
1737
|
+
/**
|
|
1738
|
+
* @generated from field: string token1 = 3;
|
|
1739
|
+
*/
|
|
1740
|
+
token1: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
1743
|
+
*/
|
|
1744
|
+
chainId: ChainId;
|
|
1745
|
+
/**
|
|
1746
|
+
* @generated from field: string wallet_address = 6;
|
|
1747
|
+
*/
|
|
1748
|
+
walletAddress: string;
|
|
1749
|
+
/**
|
|
1750
|
+
* @generated from field: string amount0 = 7;
|
|
1751
|
+
*/
|
|
1752
|
+
amount0: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* @generated from field: string amount1 = 8;
|
|
1755
|
+
*/
|
|
1756
|
+
amount1: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* @generated from field: bool generate_permit_as_transaction = 9;
|
|
1759
|
+
*/
|
|
1760
|
+
generatePermitAsTransaction: boolean;
|
|
1761
|
+
/**
|
|
1762
|
+
* @generated from field: bool simulate_transaction = 10;
|
|
1763
|
+
*/
|
|
1764
|
+
simulateTransaction: boolean;
|
|
1765
|
+
constructor(data?: PartialMessage<V4CheckApprovalLPRequest>);
|
|
1766
|
+
static readonly runtime: typeof proto3;
|
|
1767
|
+
static readonly typeName = "uniswap.liquidity.v1.V4CheckApprovalLPRequest";
|
|
1768
|
+
static readonly fields: FieldList;
|
|
1769
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4CheckApprovalLPRequest;
|
|
1770
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4CheckApprovalLPRequest;
|
|
1771
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4CheckApprovalLPRequest;
|
|
1772
|
+
static equals(a: V4CheckApprovalLPRequest | PlainMessage<V4CheckApprovalLPRequest> | undefined, b: V4CheckApprovalLPRequest | PlainMessage<V4CheckApprovalLPRequest> | undefined): boolean;
|
|
1773
|
+
}
|
|
@@ -1654,3 +1654,330 @@ V4DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1654
1654
|
{ no: 12, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1655
1655
|
{ no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1656
1656
|
]);
|
|
1657
|
+
/**
|
|
1658
|
+
* @generated from message uniswap.liquidity.v1.V2ClaimLPFeesRequest
|
|
1659
|
+
*/
|
|
1660
|
+
export class V2ClaimLPFeesRequest extends Message {
|
|
1661
|
+
constructor(data) {
|
|
1662
|
+
super();
|
|
1663
|
+
/**
|
|
1664
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1665
|
+
*/
|
|
1666
|
+
this.protocol = Protocols.V2;
|
|
1667
|
+
/**
|
|
1668
|
+
* @generated from field: string wallet_address = 3;
|
|
1669
|
+
*/
|
|
1670
|
+
this.walletAddress = "";
|
|
1671
|
+
/**
|
|
1672
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
1673
|
+
*/
|
|
1674
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1675
|
+
/**
|
|
1676
|
+
* @generated from field: bool collectAsWETH = 6;
|
|
1677
|
+
*/
|
|
1678
|
+
this.collectAsWETH = false;
|
|
1679
|
+
proto3.util.initPartial(data, this);
|
|
1680
|
+
}
|
|
1681
|
+
static fromBinary(bytes, options) {
|
|
1682
|
+
return new V2ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
1683
|
+
}
|
|
1684
|
+
static fromJson(jsonValue, options) {
|
|
1685
|
+
return new V2ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
1686
|
+
}
|
|
1687
|
+
static fromJsonString(jsonString, options) {
|
|
1688
|
+
return new V2ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
1689
|
+
}
|
|
1690
|
+
static equals(a, b) {
|
|
1691
|
+
return proto3.util.equals(V2ClaimLPFeesRequest, a, b);
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
V2ClaimLPFeesRequest.runtime = proto3;
|
|
1695
|
+
V2ClaimLPFeesRequest.typeName = "uniswap.liquidity.v1.V2ClaimLPFeesRequest";
|
|
1696
|
+
V2ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
1697
|
+
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1698
|
+
{ no: 2, name: "position", kind: "message", T: V2Position },
|
|
1699
|
+
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1700
|
+
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1701
|
+
{ no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1702
|
+
{ no: 6, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1703
|
+
]);
|
|
1704
|
+
/**
|
|
1705
|
+
* @generated from message uniswap.liquidity.v1.V3ClaimLPFeesRequest
|
|
1706
|
+
*/
|
|
1707
|
+
export class V3ClaimLPFeesRequest extends Message {
|
|
1708
|
+
constructor(data) {
|
|
1709
|
+
super();
|
|
1710
|
+
/**
|
|
1711
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1712
|
+
*/
|
|
1713
|
+
this.protocol = Protocols.V2;
|
|
1714
|
+
/**
|
|
1715
|
+
* @generated from field: int32 tokenId = 2;
|
|
1716
|
+
*/
|
|
1717
|
+
this.tokenId = 0;
|
|
1718
|
+
/**
|
|
1719
|
+
* @generated from field: string wallet_address = 4;
|
|
1720
|
+
*/
|
|
1721
|
+
this.walletAddress = "";
|
|
1722
|
+
/**
|
|
1723
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
|
|
1724
|
+
*/
|
|
1725
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1726
|
+
/**
|
|
1727
|
+
* @generated from field: bool collectAsWETH = 7;
|
|
1728
|
+
*/
|
|
1729
|
+
this.collectAsWETH = false;
|
|
1730
|
+
/**
|
|
1731
|
+
* @generated from field: string expectedTokenOwed0RawAmount = 8;
|
|
1732
|
+
*/
|
|
1733
|
+
this.expectedTokenOwed0RawAmount = "";
|
|
1734
|
+
/**
|
|
1735
|
+
* @generated from field: string expectedTokenOwed1RawAmount = 9;
|
|
1736
|
+
*/
|
|
1737
|
+
this.expectedTokenOwed1RawAmount = "";
|
|
1738
|
+
proto3.util.initPartial(data, this);
|
|
1739
|
+
}
|
|
1740
|
+
static fromBinary(bytes, options) {
|
|
1741
|
+
return new V3ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
1742
|
+
}
|
|
1743
|
+
static fromJson(jsonValue, options) {
|
|
1744
|
+
return new V3ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
1745
|
+
}
|
|
1746
|
+
static fromJsonString(jsonString, options) {
|
|
1747
|
+
return new V3ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
1748
|
+
}
|
|
1749
|
+
static equals(a, b) {
|
|
1750
|
+
return proto3.util.equals(V3ClaimLPFeesRequest, a, b);
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
V3ClaimLPFeesRequest.runtime = proto3;
|
|
1754
|
+
V3ClaimLPFeesRequest.typeName = "uniswap.liquidity.v1.V3ClaimLPFeesRequest";
|
|
1755
|
+
V3ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
1756
|
+
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1757
|
+
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1758
|
+
{ no: 3, name: "position", kind: "message", T: V3Position },
|
|
1759
|
+
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1760
|
+
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1761
|
+
{ no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1762
|
+
{ no: 7, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1763
|
+
{ no: 8, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1764
|
+
{ no: 9, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1765
|
+
]);
|
|
1766
|
+
/**
|
|
1767
|
+
* @generated from message uniswap.liquidity.v1.V4ClaimLPFeesRequest
|
|
1768
|
+
*/
|
|
1769
|
+
export class V4ClaimLPFeesRequest extends Message {
|
|
1770
|
+
constructor(data) {
|
|
1771
|
+
super();
|
|
1772
|
+
/**
|
|
1773
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1774
|
+
*/
|
|
1775
|
+
this.protocol = Protocols.V2;
|
|
1776
|
+
/**
|
|
1777
|
+
* @generated from field: int32 tokenId = 2;
|
|
1778
|
+
*/
|
|
1779
|
+
this.tokenId = 0;
|
|
1780
|
+
/**
|
|
1781
|
+
* @generated from field: string wallet_address = 4;
|
|
1782
|
+
*/
|
|
1783
|
+
this.walletAddress = "";
|
|
1784
|
+
/**
|
|
1785
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
|
|
1786
|
+
*/
|
|
1787
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1788
|
+
proto3.util.initPartial(data, this);
|
|
1789
|
+
}
|
|
1790
|
+
static fromBinary(bytes, options) {
|
|
1791
|
+
return new V4ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
1792
|
+
}
|
|
1793
|
+
static fromJson(jsonValue, options) {
|
|
1794
|
+
return new V4ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
1795
|
+
}
|
|
1796
|
+
static fromJsonString(jsonString, options) {
|
|
1797
|
+
return new V4ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
1798
|
+
}
|
|
1799
|
+
static equals(a, b) {
|
|
1800
|
+
return proto3.util.equals(V4ClaimLPFeesRequest, a, b);
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
V4ClaimLPFeesRequest.runtime = proto3;
|
|
1804
|
+
V4ClaimLPFeesRequest.typeName = "uniswap.liquidity.v1.V4ClaimLPFeesRequest";
|
|
1805
|
+
V4ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
1806
|
+
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1807
|
+
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1808
|
+
{ no: 3, name: "position", kind: "message", T: V4Position },
|
|
1809
|
+
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1810
|
+
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1811
|
+
{ no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1812
|
+
]);
|
|
1813
|
+
/**
|
|
1814
|
+
* @generated from message uniswap.liquidity.v1.V2CheckApprovalLPRequest
|
|
1815
|
+
*/
|
|
1816
|
+
export class V2CheckApprovalLPRequest extends Message {
|
|
1817
|
+
constructor(data) {
|
|
1818
|
+
super();
|
|
1819
|
+
/**
|
|
1820
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1821
|
+
*/
|
|
1822
|
+
this.protocol = Protocols.V2;
|
|
1823
|
+
/**
|
|
1824
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
1825
|
+
*/
|
|
1826
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1827
|
+
/**
|
|
1828
|
+
* @generated from field: string wallet_address = 6;
|
|
1829
|
+
*/
|
|
1830
|
+
this.walletAddress = "";
|
|
1831
|
+
/**
|
|
1832
|
+
* @generated from field: bool simulate_transaction = 10;
|
|
1833
|
+
*/
|
|
1834
|
+
this.simulateTransaction = false;
|
|
1835
|
+
proto3.util.initPartial(data, this);
|
|
1836
|
+
}
|
|
1837
|
+
static fromBinary(bytes, options) {
|
|
1838
|
+
return new V2CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1839
|
+
}
|
|
1840
|
+
static fromJson(jsonValue, options) {
|
|
1841
|
+
return new V2CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1842
|
+
}
|
|
1843
|
+
static fromJsonString(jsonString, options) {
|
|
1844
|
+
return new V2CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1845
|
+
}
|
|
1846
|
+
static equals(a, b) {
|
|
1847
|
+
return proto3.util.equals(V2CheckApprovalLPRequest, a, b);
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
V2CheckApprovalLPRequest.runtime = proto3;
|
|
1851
|
+
V2CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.V2CheckApprovalLPRequest";
|
|
1852
|
+
V2CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1853
|
+
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1854
|
+
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1855
|
+
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1856
|
+
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1857
|
+
{ no: 5, name: "position_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1858
|
+
{ no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1859
|
+
{ no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1860
|
+
{ no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1861
|
+
{ no: 9, name: "position_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1862
|
+
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1863
|
+
]);
|
|
1864
|
+
/**
|
|
1865
|
+
* @generated from message uniswap.liquidity.v1.V3CheckApprovalLPRequest
|
|
1866
|
+
*/
|
|
1867
|
+
export class V3CheckApprovalLPRequest extends Message {
|
|
1868
|
+
constructor(data) {
|
|
1869
|
+
super();
|
|
1870
|
+
/**
|
|
1871
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1872
|
+
*/
|
|
1873
|
+
this.protocol = Protocols.V2;
|
|
1874
|
+
/**
|
|
1875
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
1876
|
+
*/
|
|
1877
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1878
|
+
/**
|
|
1879
|
+
* @generated from field: string wallet_address = 6;
|
|
1880
|
+
*/
|
|
1881
|
+
this.walletAddress = "";
|
|
1882
|
+
/**
|
|
1883
|
+
* @generated from field: bool simulate_transaction = 10;
|
|
1884
|
+
*/
|
|
1885
|
+
this.simulateTransaction = false;
|
|
1886
|
+
proto3.util.initPartial(data, this);
|
|
1887
|
+
}
|
|
1888
|
+
static fromBinary(bytes, options) {
|
|
1889
|
+
return new V3CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1890
|
+
}
|
|
1891
|
+
static fromJson(jsonValue, options) {
|
|
1892
|
+
return new V3CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1893
|
+
}
|
|
1894
|
+
static fromJsonString(jsonString, options) {
|
|
1895
|
+
return new V3CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1896
|
+
}
|
|
1897
|
+
static equals(a, b) {
|
|
1898
|
+
return proto3.util.equals(V3CheckApprovalLPRequest, a, b);
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
V3CheckApprovalLPRequest.runtime = proto3;
|
|
1902
|
+
V3CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.V3CheckApprovalLPRequest";
|
|
1903
|
+
V3CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1904
|
+
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1905
|
+
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1906
|
+
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1907
|
+
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1908
|
+
{ no: 5, name: "position_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1909
|
+
{ no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1910
|
+
{ no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1911
|
+
{ no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1912
|
+
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1913
|
+
]);
|
|
1914
|
+
/**
|
|
1915
|
+
* @generated from message uniswap.liquidity.v1.V4CheckApprovalLPRequest
|
|
1916
|
+
*/
|
|
1917
|
+
export class V4CheckApprovalLPRequest extends Message {
|
|
1918
|
+
constructor(data) {
|
|
1919
|
+
super();
|
|
1920
|
+
/**
|
|
1921
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
1922
|
+
*/
|
|
1923
|
+
this.protocol = Protocols.V2;
|
|
1924
|
+
/**
|
|
1925
|
+
* @generated from field: string token0 = 2;
|
|
1926
|
+
*/
|
|
1927
|
+
this.token0 = "";
|
|
1928
|
+
/**
|
|
1929
|
+
* @generated from field: string token1 = 3;
|
|
1930
|
+
*/
|
|
1931
|
+
this.token1 = "";
|
|
1932
|
+
/**
|
|
1933
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
1934
|
+
*/
|
|
1935
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1936
|
+
/**
|
|
1937
|
+
* @generated from field: string wallet_address = 6;
|
|
1938
|
+
*/
|
|
1939
|
+
this.walletAddress = "";
|
|
1940
|
+
/**
|
|
1941
|
+
* @generated from field: string amount0 = 7;
|
|
1942
|
+
*/
|
|
1943
|
+
this.amount0 = "";
|
|
1944
|
+
/**
|
|
1945
|
+
* @generated from field: string amount1 = 8;
|
|
1946
|
+
*/
|
|
1947
|
+
this.amount1 = "";
|
|
1948
|
+
/**
|
|
1949
|
+
* @generated from field: bool generate_permit_as_transaction = 9;
|
|
1950
|
+
*/
|
|
1951
|
+
this.generatePermitAsTransaction = false;
|
|
1952
|
+
/**
|
|
1953
|
+
* @generated from field: bool simulate_transaction = 10;
|
|
1954
|
+
*/
|
|
1955
|
+
this.simulateTransaction = false;
|
|
1956
|
+
proto3.util.initPartial(data, this);
|
|
1957
|
+
}
|
|
1958
|
+
static fromBinary(bytes, options) {
|
|
1959
|
+
return new V4CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1960
|
+
}
|
|
1961
|
+
static fromJson(jsonValue, options) {
|
|
1962
|
+
return new V4CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1963
|
+
}
|
|
1964
|
+
static fromJsonString(jsonString, options) {
|
|
1965
|
+
return new V4CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1966
|
+
}
|
|
1967
|
+
static equals(a, b) {
|
|
1968
|
+
return proto3.util.equals(V4CheckApprovalLPRequest, a, b);
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
V4CheckApprovalLPRequest.runtime = proto3;
|
|
1972
|
+
V4CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.V4CheckApprovalLPRequest";
|
|
1973
|
+
V4CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1974
|
+
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1975
|
+
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1976
|
+
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1977
|
+
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1978
|
+
{ no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1979
|
+
{ no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1980
|
+
{ no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1981
|
+
{ no: 9, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1982
|
+
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1983
|
+
]);
|