@uniswap/client-liquidity 0.1.8 → 0.2.0
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
3
|
import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
4
|
-
import { ApprovalTransactionRequest, CreatePoolParameters, GasUrgency, LPAction, LPToken,
|
|
4
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, GasUrgency, LPAction, LPToken, V2PoolParameters } from "./types_pb.js";
|
|
5
5
|
/**
|
|
6
6
|
* MigrateV2ToV3LPPosition
|
|
7
7
|
*
|
|
@@ -167,24 +167,9 @@ export declare class CreateClassicPositionRequest extends Message<CreateClassicP
|
|
|
167
167
|
*/
|
|
168
168
|
walletAddress: string;
|
|
169
169
|
/**
|
|
170
|
-
* @generated from
|
|
170
|
+
* @generated from field: uniswap.liquidity.v2.V2PoolParameters pool_parameters = 3;
|
|
171
171
|
*/
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @generated from field: uniswap.liquidity.v2.PairAddress pair_address = 2;
|
|
175
|
-
*/
|
|
176
|
-
value: PairAddress;
|
|
177
|
-
case: "pairAddress";
|
|
178
|
-
} | {
|
|
179
|
-
/**
|
|
180
|
-
* @generated from field: uniswap.liquidity.v2.V2PoolParameters pool_parameters = 3;
|
|
181
|
-
*/
|
|
182
|
-
value: V2PoolParameters;
|
|
183
|
-
case: "poolParameters";
|
|
184
|
-
} | {
|
|
185
|
-
case: undefined;
|
|
186
|
-
value?: undefined;
|
|
187
|
-
};
|
|
172
|
+
poolParameters?: V2PoolParameters;
|
|
188
173
|
/**
|
|
189
174
|
* @generated from field: uniswap.liquidity.v2.LPToken independent_token = 4;
|
|
190
175
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
6
|
import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
7
|
-
import { ApprovalTransactionRequest, CreatePoolParameters, GasUrgency, LPAction, LPToken,
|
|
7
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, GasUrgency, LPAction, LPToken, V2PoolParameters } from "./types_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* MigrateV2ToV3LPPosition
|
|
10
10
|
*
|
|
@@ -180,10 +180,6 @@ export class CreateClassicPositionRequest extends Message {
|
|
|
180
180
|
* @generated from field: string wallet_address = 1;
|
|
181
181
|
*/
|
|
182
182
|
this.walletAddress = "";
|
|
183
|
-
/**
|
|
184
|
-
* @generated from oneof uniswap.liquidity.v2.CreateClassicPositionRequest.pool
|
|
185
|
-
*/
|
|
186
|
-
this.pool = { case: undefined };
|
|
187
183
|
proto3.util.initPartial(data, this);
|
|
188
184
|
}
|
|
189
185
|
static fromBinary(bytes, options) {
|
|
@@ -203,8 +199,7 @@ CreateClassicPositionRequest.runtime = proto3;
|
|
|
203
199
|
CreateClassicPositionRequest.typeName = "uniswap.liquidity.v2.CreateClassicPositionRequest";
|
|
204
200
|
CreateClassicPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
205
201
|
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
206
|
-
{ no:
|
|
207
|
-
{ no: 3, name: "pool_parameters", kind: "message", T: V2PoolParameters, oneof: "pool" },
|
|
202
|
+
{ no: 3, name: "pool_parameters", kind: "message", T: V2PoolParameters },
|
|
208
203
|
{ no: 4, name: "independent_token", kind: "message", T: LPToken },
|
|
209
204
|
{ no: 6, name: "dependent_token", kind: "message", T: LPToken, opt: true },
|
|
210
205
|
{ no: 7, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|