@uniswap/client-liquidity 0.2.0 → 0.3.1
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/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 +48 -21
- package/dist/uniswap/liquidity/v2/api_pb.js +25 -21
- package/dist/uniswap/liquidity/v2/types_pb.d.ts +92 -12
- package/dist/uniswap/liquidity/v2/types_pb.js +152 -17
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
2
|
+
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
|
|
5
5
|
*/
|
|
@@ -84,3 +84,17 @@ export declare const claimFees: {
|
|
|
84
84
|
readonly typeName: "uniswap.liquidity.v2.LiquidityService";
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CreatePosition
|
|
89
|
+
*/
|
|
90
|
+
export declare const createPosition: {
|
|
91
|
+
readonly localName: "createPosition";
|
|
92
|
+
readonly name: "CreatePosition";
|
|
93
|
+
readonly kind: MethodKind.Unary;
|
|
94
|
+
readonly I: typeof CreatePositionRequest;
|
|
95
|
+
readonly O: typeof CreatePositionResponse;
|
|
96
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
97
|
+
readonly service: {
|
|
98
|
+
readonly typeName: "uniswap.liquidity.v2.LiquidityService";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
6
|
+
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
|
|
9
9
|
*/
|
|
@@ -88,3 +88,17 @@ export const claimFees = {
|
|
|
88
88
|
typeName: "uniswap.liquidity.v2.LiquidityService"
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
+
/**
|
|
92
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CreatePosition
|
|
93
|
+
*/
|
|
94
|
+
export const createPosition = {
|
|
95
|
+
localName: "createPosition",
|
|
96
|
+
name: "CreatePosition",
|
|
97
|
+
kind: MethodKind.Unary,
|
|
98
|
+
I: CreatePositionRequest,
|
|
99
|
+
O: CreatePositionResponse,
|
|
100
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
101
|
+
service: {
|
|
102
|
+
typeName: "uniswap.liquidity.v2.LiquidityService"
|
|
103
|
+
}
|
|
104
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
1
|
+
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, 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
|
|
@@ -66,5 +66,15 @@ export declare const LiquidityService: {
|
|
|
66
66
|
readonly kind: MethodKind.Unary;
|
|
67
67
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
68
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CreatePosition
|
|
71
|
+
*/
|
|
72
|
+
readonly createPosition: {
|
|
73
|
+
readonly name: "CreatePosition";
|
|
74
|
+
readonly I: typeof CreatePositionRequest;
|
|
75
|
+
readonly O: typeof CreatePositionResponse;
|
|
76
|
+
readonly kind: MethodKind.Unary;
|
|
77
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
78
|
+
};
|
|
69
79
|
};
|
|
70
80
|
};
|
|
@@ -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 { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
5
|
+
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, 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
|
|
@@ -70,5 +70,15 @@ export const LiquidityService = {
|
|
|
70
70
|
kind: MethodKind.Unary,
|
|
71
71
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
72
72
|
},
|
|
73
|
+
/**
|
|
74
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CreatePosition
|
|
75
|
+
*/
|
|
76
|
+
createPosition: {
|
|
77
|
+
name: "CreatePosition",
|
|
78
|
+
I: CreatePositionRequest,
|
|
79
|
+
O: CreatePositionResponse,
|
|
80
|
+
kind: MethodKind.Unary,
|
|
81
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
82
|
+
},
|
|
73
83
|
}
|
|
74
84
|
};
|
|
@@ -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, V2PoolParameters } from "./types_pb.js";
|
|
4
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, LPAction, LPToken, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
|
|
5
5
|
/**
|
|
6
6
|
* MigrateV2ToV3LPPosition
|
|
7
7
|
*
|
|
@@ -93,31 +93,35 @@ export declare class LPApprovalRequest extends Message<LPApprovalRequest> {
|
|
|
93
93
|
*/
|
|
94
94
|
protocol: Protocols;
|
|
95
95
|
/**
|
|
96
|
-
* @generated from field:
|
|
96
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
97
|
+
*/
|
|
98
|
+
chainId: ChainId;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: repeated uniswap.liquidity.v2.LPToken lp_tokens = 4;
|
|
97
101
|
*/
|
|
98
102
|
lpTokens: LPToken[];
|
|
99
103
|
/**
|
|
100
|
-
* @generated from field: uniswap.liquidity.v2.LPAction action =
|
|
104
|
+
* @generated from field: uniswap.liquidity.v2.LPAction action = 5;
|
|
101
105
|
*/
|
|
102
106
|
action: LPAction;
|
|
103
107
|
/**
|
|
104
|
-
* @generated from field: optional bool include_gas_info =
|
|
108
|
+
* @generated from field: optional bool include_gas_info = 6;
|
|
105
109
|
*/
|
|
106
110
|
includeGasInfo?: boolean;
|
|
107
111
|
/**
|
|
108
|
-
* @generated from field: optional bool simulate_transaction =
|
|
112
|
+
* @generated from field: optional bool simulate_transaction = 7;
|
|
109
113
|
*/
|
|
110
114
|
simulateTransaction?: boolean;
|
|
111
115
|
/**
|
|
112
|
-
* @generated from field: optional bool generate_permit_as_transaction =
|
|
116
|
+
* @generated from field: optional bool generate_permit_as_transaction = 8;
|
|
113
117
|
*/
|
|
114
118
|
generatePermitAsTransaction?: boolean;
|
|
115
119
|
/**
|
|
116
|
-
* @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency =
|
|
120
|
+
* @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 9;
|
|
117
121
|
*/
|
|
118
122
|
urgency?: GasUrgency;
|
|
119
123
|
/**
|
|
120
|
-
* @generated from field: optional int32 v3_nft_token_id =
|
|
124
|
+
* @generated from field: optional int32 v3_nft_token_id = 10;
|
|
121
125
|
*/
|
|
122
126
|
v3NftTokenId?: number;
|
|
123
127
|
constructor(data?: PartialMessage<LPApprovalRequest>);
|
|
@@ -194,6 +198,10 @@ export declare class CreateClassicPositionRequest extends Message<CreateClassicP
|
|
|
194
198
|
* @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 10;
|
|
195
199
|
*/
|
|
196
200
|
urgency?: GasUrgency;
|
|
201
|
+
/**
|
|
202
|
+
* @generated from field: optional bool include_approval_simulation = 11;
|
|
203
|
+
*/
|
|
204
|
+
includeApprovalSimulation?: boolean;
|
|
197
205
|
constructor(data?: PartialMessage<CreateClassicPositionRequest>);
|
|
198
206
|
static readonly runtime: typeof proto3;
|
|
199
207
|
static readonly typeName = "uniswap.liquidity.v2.CreateClassicPositionRequest";
|
|
@@ -392,6 +400,10 @@ export declare class IncreasePositionRequest extends Message<IncreasePositionReq
|
|
|
392
400
|
* @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 13;
|
|
393
401
|
*/
|
|
394
402
|
urgency?: GasUrgency;
|
|
403
|
+
/**
|
|
404
|
+
* @generated from field: optional bool include_approval_simulation = 14;
|
|
405
|
+
*/
|
|
406
|
+
includeApprovalSimulation?: boolean;
|
|
395
407
|
constructor(data?: PartialMessage<IncreasePositionRequest>);
|
|
396
408
|
static readonly runtime: typeof proto3;
|
|
397
409
|
static readonly typeName = "uniswap.liquidity.v2.IncreasePositionRequest";
|
|
@@ -449,10 +461,10 @@ export declare class CreatePositionRequest extends Message<CreatePositionRequest
|
|
|
449
461
|
*/
|
|
450
462
|
pool: {
|
|
451
463
|
/**
|
|
452
|
-
* @generated from field:
|
|
464
|
+
* @generated from field: uniswap.liquidity.v2.CreatePositionExistingPoolParameters existing_pool = 2;
|
|
453
465
|
*/
|
|
454
|
-
value:
|
|
455
|
-
case: "
|
|
466
|
+
value: CreatePositionExistingPoolParameters;
|
|
467
|
+
case: "existingPool";
|
|
456
468
|
} | {
|
|
457
469
|
/**
|
|
458
470
|
* @generated from field: uniswap.liquidity.v2.CreatePoolParameters new_pool = 3;
|
|
@@ -472,21 +484,32 @@ export declare class CreatePositionRequest extends Message<CreatePositionRequest
|
|
|
472
484
|
*/
|
|
473
485
|
protocol: Protocols;
|
|
474
486
|
/**
|
|
475
|
-
* @generated from field: uniswap.liquidity.v2.
|
|
476
|
-
*/
|
|
477
|
-
independentToken?: LPToken;
|
|
478
|
-
/**
|
|
479
|
-
* @generated from field: optional uniswap.liquidity.v2.LPToken dependent_token = 7;
|
|
487
|
+
* @generated from field: uniswap.liquidity.v2.CreateToken independent_token = 6;
|
|
480
488
|
*/
|
|
481
|
-
|
|
489
|
+
independentToken?: CreateToken;
|
|
482
490
|
/**
|
|
483
|
-
* @generated from field:
|
|
491
|
+
* @generated from field: optional uniswap.liquidity.v2.CreateToken dependent_token = 7;
|
|
484
492
|
*/
|
|
485
|
-
|
|
493
|
+
dependentToken?: CreateToken;
|
|
486
494
|
/**
|
|
487
|
-
* @generated from
|
|
495
|
+
* @generated from oneof uniswap.liquidity.v2.CreatePositionRequest.tickPrice
|
|
488
496
|
*/
|
|
489
|
-
|
|
497
|
+
tickPrice: {
|
|
498
|
+
/**
|
|
499
|
+
* @generated from field: uniswap.liquidity.v2.PositionPriceBounds price_bounds = 8;
|
|
500
|
+
*/
|
|
501
|
+
value: PositionPriceBounds;
|
|
502
|
+
case: "priceBounds";
|
|
503
|
+
} | {
|
|
504
|
+
/**
|
|
505
|
+
* @generated from field: uniswap.liquidity.v2.PositionTickBounds tick_bounds = 9;
|
|
506
|
+
*/
|
|
507
|
+
value: PositionTickBounds;
|
|
508
|
+
case: "tickBounds";
|
|
509
|
+
} | {
|
|
510
|
+
case: undefined;
|
|
511
|
+
value?: undefined;
|
|
512
|
+
};
|
|
490
513
|
/**
|
|
491
514
|
* @generated from field: optional float slippage_tolerance = 10;
|
|
492
515
|
*/
|
|
@@ -515,6 +538,10 @@ export declare class CreatePositionRequest extends Message<CreatePositionRequest
|
|
|
515
538
|
* @generated from field: optional string native_token_balance = 16;
|
|
516
539
|
*/
|
|
517
540
|
nativeTokenBalance?: string;
|
|
541
|
+
/**
|
|
542
|
+
* @generated from field: optional bool include_approval_simulation = 17;
|
|
543
|
+
*/
|
|
544
|
+
includeApprovalSimulation?: boolean;
|
|
518
545
|
constructor(data?: PartialMessage<CreatePositionRequest>);
|
|
519
546
|
static readonly runtime: typeof proto3;
|
|
520
547
|
static readonly typeName = "uniswap.liquidity.v2.CreatePositionRequest";
|
|
@@ -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, V2PoolParameters } from "./types_pb.js";
|
|
7
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, LPAction, LPToken, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* MigrateV2ToV3LPPosition
|
|
10
10
|
*
|
|
@@ -98,11 +98,15 @@ export class LPApprovalRequest extends Message {
|
|
|
98
98
|
*/
|
|
99
99
|
this.protocol = Protocols.V2;
|
|
100
100
|
/**
|
|
101
|
-
* @generated from field:
|
|
101
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
102
|
+
*/
|
|
103
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
104
|
+
/**
|
|
105
|
+
* @generated from field: repeated uniswap.liquidity.v2.LPToken lp_tokens = 4;
|
|
102
106
|
*/
|
|
103
107
|
this.lpTokens = [];
|
|
104
108
|
/**
|
|
105
|
-
* @generated from field: uniswap.liquidity.v2.LPAction action =
|
|
109
|
+
* @generated from field: uniswap.liquidity.v2.LPAction action = 5;
|
|
106
110
|
*/
|
|
107
111
|
this.action = LPAction.CREATE;
|
|
108
112
|
proto3.util.initPartial(data, this);
|
|
@@ -125,13 +129,14 @@ LPApprovalRequest.typeName = "uniswap.liquidity.v2.LPApprovalRequest";
|
|
|
125
129
|
LPApprovalRequest.fields = proto3.util.newFieldList(() => [
|
|
126
130
|
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
127
131
|
{ no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
128
|
-
{ no: 3, name: "
|
|
129
|
-
{ no: 4, name: "
|
|
130
|
-
{ no: 5, name: "
|
|
131
|
-
{ no: 6, name: "
|
|
132
|
-
{ no: 7, name: "
|
|
133
|
-
{ no: 8, name: "
|
|
134
|
-
{ no: 9, name: "
|
|
132
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
133
|
+
{ no: 4, name: "lp_tokens", kind: "message", T: LPToken, repeated: true },
|
|
134
|
+
{ no: 5, name: "action", kind: "enum", T: proto3.getEnumType(LPAction) },
|
|
135
|
+
{ no: 6, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
136
|
+
{ no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
137
|
+
{ no: 8, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
138
|
+
{ no: 9, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
139
|
+
{ no: 10, name: "v3_nft_token_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
135
140
|
]);
|
|
136
141
|
/**
|
|
137
142
|
* @generated from message uniswap.liquidity.v2.LPApprovalResponse
|
|
@@ -206,6 +211,7 @@ CreateClassicPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
206
211
|
{ no: 8, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
207
212
|
{ no: 9, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
208
213
|
{ no: 10, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
214
|
+
{ no: 11, name: "include_approval_simulation", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
209
215
|
]);
|
|
210
216
|
/**
|
|
211
217
|
* @generated from message uniswap.liquidity.v2.CreateClassicPositionResponse
|
|
@@ -397,6 +403,7 @@ IncreasePositionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
397
403
|
{ no: 11, name: "v4_batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
|
|
398
404
|
{ no: 12, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
399
405
|
{ no: 13, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
406
|
+
{ no: 14, name: "include_approval_simulation", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
400
407
|
]);
|
|
401
408
|
/**
|
|
402
409
|
* @generated from message uniswap.liquidity.v2.IncreasePositionResponse
|
|
@@ -457,13 +464,9 @@ export class CreatePositionRequest extends Message {
|
|
|
457
464
|
*/
|
|
458
465
|
this.protocol = Protocols.V2;
|
|
459
466
|
/**
|
|
460
|
-
* @generated from
|
|
461
|
-
*/
|
|
462
|
-
this.minPrice = "";
|
|
463
|
-
/**
|
|
464
|
-
* @generated from field: string max_price = 9;
|
|
467
|
+
* @generated from oneof uniswap.liquidity.v2.CreatePositionRequest.tickPrice
|
|
465
468
|
*/
|
|
466
|
-
this.
|
|
469
|
+
this.tickPrice = { case: undefined };
|
|
467
470
|
proto3.util.initPartial(data, this);
|
|
468
471
|
}
|
|
469
472
|
static fromBinary(bytes, options) {
|
|
@@ -483,14 +486,14 @@ CreatePositionRequest.runtime = proto3;
|
|
|
483
486
|
CreatePositionRequest.typeName = "uniswap.liquidity.v2.CreatePositionRequest";
|
|
484
487
|
CreatePositionRequest.fields = proto3.util.newFieldList(() => [
|
|
485
488
|
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
486
|
-
{ no: 2, name: "
|
|
489
|
+
{ no: 2, name: "existing_pool", kind: "message", T: CreatePositionExistingPoolParameters, oneof: "pool" },
|
|
487
490
|
{ no: 3, name: "new_pool", kind: "message", T: CreatePoolParameters, oneof: "pool" },
|
|
488
491
|
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
489
492
|
{ no: 5, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
490
|
-
{ no: 6, name: "independent_token", kind: "message", T:
|
|
491
|
-
{ no: 7, name: "dependent_token", kind: "message", T:
|
|
492
|
-
{ no: 8, name: "
|
|
493
|
-
{ no: 9, name: "
|
|
493
|
+
{ no: 6, name: "independent_token", kind: "message", T: CreateToken },
|
|
494
|
+
{ no: 7, name: "dependent_token", kind: "message", T: CreateToken, opt: true },
|
|
495
|
+
{ no: 8, name: "price_bounds", kind: "message", T: PositionPriceBounds, oneof: "tickPrice" },
|
|
496
|
+
{ no: 9, name: "tick_bounds", kind: "message", T: PositionTickBounds, oneof: "tickPrice" },
|
|
494
497
|
{ no: 10, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
495
498
|
{ no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
496
499
|
{ no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
@@ -498,6 +501,7 @@ CreatePositionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
498
501
|
{ no: 14, name: "batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
|
|
499
502
|
{ no: 15, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
500
503
|
{ no: 16, name: "native_token_balance", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
504
|
+
{ no: 17, name: "include_approval_simulation", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
501
505
|
]);
|
|
502
506
|
/**
|
|
503
507
|
* @generated from message uniswap.liquidity.v2.CreatePositionResponse
|
|
@@ -47,10 +47,6 @@ export declare enum GasUrgency {
|
|
|
47
47
|
* @generated from message uniswap.liquidity.v2.LPToken
|
|
48
48
|
*/
|
|
49
49
|
export declare class LPToken extends Message<LPToken> {
|
|
50
|
-
/**
|
|
51
|
-
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 1;
|
|
52
|
-
*/
|
|
53
|
-
chainId: ChainId;
|
|
54
50
|
/**
|
|
55
51
|
* @generated from field: string token_address = 2;
|
|
56
52
|
*/
|
|
@@ -144,9 +140,9 @@ export declare class ApprovalTransactionRequest extends Message<ApprovalTransact
|
|
|
144
140
|
static equals(a: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined, b: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined): boolean;
|
|
145
141
|
}
|
|
146
142
|
/**
|
|
147
|
-
* @generated from message uniswap.liquidity.v2.
|
|
143
|
+
* @generated from message uniswap.liquidity.v2.CreatePositionExistingPoolParameters
|
|
148
144
|
*/
|
|
149
|
-
export declare class
|
|
145
|
+
export declare class CreatePositionExistingPoolParameters extends Message<CreatePositionExistingPoolParameters> {
|
|
150
146
|
/**
|
|
151
147
|
* @generated from field: string token_0_address = 1;
|
|
152
148
|
*/
|
|
@@ -156,23 +152,44 @@ export declare class CreatePoolParameters extends Message<CreatePoolParameters>
|
|
|
156
152
|
*/
|
|
157
153
|
token1Address: string;
|
|
158
154
|
/**
|
|
159
|
-
* @generated from field:
|
|
155
|
+
* @generated from field: string pool_reference = 3;
|
|
160
156
|
*/
|
|
161
|
-
|
|
157
|
+
poolReference: string;
|
|
158
|
+
constructor(data?: PartialMessage<CreatePositionExistingPoolParameters>);
|
|
159
|
+
static readonly runtime: typeof proto3;
|
|
160
|
+
static readonly typeName = "uniswap.liquidity.v2.CreatePositionExistingPoolParameters";
|
|
161
|
+
static readonly fields: FieldList;
|
|
162
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePositionExistingPoolParameters;
|
|
163
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePositionExistingPoolParameters;
|
|
164
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePositionExistingPoolParameters;
|
|
165
|
+
static equals(a: CreatePositionExistingPoolParameters | PlainMessage<CreatePositionExistingPoolParameters> | undefined, b: CreatePositionExistingPoolParameters | PlainMessage<CreatePositionExistingPoolParameters> | undefined): boolean;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @generated from message uniswap.liquidity.v2.CreatePoolParameters
|
|
169
|
+
*/
|
|
170
|
+
export declare class CreatePoolParameters extends Message<CreatePoolParameters> {
|
|
162
171
|
/**
|
|
163
|
-
* @generated from field:
|
|
172
|
+
* @generated from field: string token_0_address = 1;
|
|
173
|
+
*/
|
|
174
|
+
token0Address: string;
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: string token_1_address = 2;
|
|
177
|
+
*/
|
|
178
|
+
token1Address: string;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: int32 fee = 3;
|
|
164
181
|
*/
|
|
165
182
|
fee: number;
|
|
166
183
|
/**
|
|
167
|
-
* @generated from field: int32 tick_spacing =
|
|
184
|
+
* @generated from field: int32 tick_spacing = 4;
|
|
168
185
|
*/
|
|
169
186
|
tickSpacing: number;
|
|
170
187
|
/**
|
|
171
|
-
* @generated from field: optional string hooks =
|
|
188
|
+
* @generated from field: optional string hooks = 5;
|
|
172
189
|
*/
|
|
173
190
|
hooks?: string;
|
|
174
191
|
/**
|
|
175
|
-
* @generated from field: string initial_price =
|
|
192
|
+
* @generated from field: string initial_price = 6;
|
|
176
193
|
*/
|
|
177
194
|
initialPrice: string;
|
|
178
195
|
constructor(data?: PartialMessage<CreatePoolParameters>);
|
|
@@ -184,3 +201,66 @@ export declare class CreatePoolParameters extends Message<CreatePoolParameters>
|
|
|
184
201
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePoolParameters;
|
|
185
202
|
static equals(a: CreatePoolParameters | PlainMessage<CreatePoolParameters> | undefined, b: CreatePoolParameters | PlainMessage<CreatePoolParameters> | undefined): boolean;
|
|
186
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* @generated from message uniswap.liquidity.v2.PositionPriceBounds
|
|
206
|
+
*/
|
|
207
|
+
export declare class PositionPriceBounds extends Message<PositionPriceBounds> {
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: string min_price = 1;
|
|
210
|
+
*/
|
|
211
|
+
minPrice: string;
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: string max_price = 2;
|
|
214
|
+
*/
|
|
215
|
+
maxPrice: string;
|
|
216
|
+
constructor(data?: PartialMessage<PositionPriceBounds>);
|
|
217
|
+
static readonly runtime: typeof proto3;
|
|
218
|
+
static readonly typeName = "uniswap.liquidity.v2.PositionPriceBounds";
|
|
219
|
+
static readonly fields: FieldList;
|
|
220
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PositionPriceBounds;
|
|
221
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PositionPriceBounds;
|
|
222
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PositionPriceBounds;
|
|
223
|
+
static equals(a: PositionPriceBounds | PlainMessage<PositionPriceBounds> | undefined, b: PositionPriceBounds | PlainMessage<PositionPriceBounds> | undefined): boolean;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @generated from message uniswap.liquidity.v2.PositionTickBounds
|
|
227
|
+
*/
|
|
228
|
+
export declare class PositionTickBounds extends Message<PositionTickBounds> {
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: sint32 tick_lower = 1;
|
|
231
|
+
*/
|
|
232
|
+
tickLower: number;
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: sint32 tick_upper = 2;
|
|
235
|
+
*/
|
|
236
|
+
tickUpper: number;
|
|
237
|
+
constructor(data?: PartialMessage<PositionTickBounds>);
|
|
238
|
+
static readonly runtime: typeof proto3;
|
|
239
|
+
static readonly typeName = "uniswap.liquidity.v2.PositionTickBounds";
|
|
240
|
+
static readonly fields: FieldList;
|
|
241
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PositionTickBounds;
|
|
242
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PositionTickBounds;
|
|
243
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PositionTickBounds;
|
|
244
|
+
static equals(a: PositionTickBounds | PlainMessage<PositionTickBounds> | undefined, b: PositionTickBounds | PlainMessage<PositionTickBounds> | undefined): boolean;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* @generated from message uniswap.liquidity.v2.CreateToken
|
|
248
|
+
*/
|
|
249
|
+
export declare class CreateToken extends Message<CreateToken> {
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: string token_address = 1;
|
|
252
|
+
*/
|
|
253
|
+
tokenAddress: string;
|
|
254
|
+
/**
|
|
255
|
+
* @generated from field: string amount = 2;
|
|
256
|
+
*/
|
|
257
|
+
amount: string;
|
|
258
|
+
constructor(data?: PartialMessage<CreateToken>);
|
|
259
|
+
static readonly runtime: typeof proto3;
|
|
260
|
+
static readonly typeName = "uniswap.liquidity.v2.CreateToken";
|
|
261
|
+
static readonly fields: FieldList;
|
|
262
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateToken;
|
|
263
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateToken;
|
|
264
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateToken;
|
|
265
|
+
static equals(a: CreateToken | PlainMessage<CreateToken> | undefined, b: CreateToken | PlainMessage<CreateToken> | undefined): boolean;
|
|
266
|
+
}
|
|
@@ -68,10 +68,6 @@ proto3.util.setEnumType(GasUrgency, "uniswap.liquidity.v2.GasUrgency", [
|
|
|
68
68
|
export class LPToken extends Message {
|
|
69
69
|
constructor(data) {
|
|
70
70
|
super();
|
|
71
|
-
/**
|
|
72
|
-
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 1;
|
|
73
|
-
*/
|
|
74
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
75
71
|
/**
|
|
76
72
|
* @generated from field: string token_address = 2;
|
|
77
73
|
*/
|
|
@@ -98,7 +94,6 @@ export class LPToken extends Message {
|
|
|
98
94
|
LPToken.runtime = proto3;
|
|
99
95
|
LPToken.typeName = "uniswap.liquidity.v2.LPToken";
|
|
100
96
|
LPToken.fields = proto3.util.newFieldList(() => [
|
|
101
|
-
{ no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
102
97
|
{ no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
103
98
|
{ no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
104
99
|
]);
|
|
@@ -215,9 +210,9 @@ ApprovalTransactionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
215
210
|
{ no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
216
211
|
]);
|
|
217
212
|
/**
|
|
218
|
-
* @generated from message uniswap.liquidity.v2.
|
|
213
|
+
* @generated from message uniswap.liquidity.v2.CreatePositionExistingPoolParameters
|
|
219
214
|
*/
|
|
220
|
-
export class
|
|
215
|
+
export class CreatePositionExistingPoolParameters extends Message {
|
|
221
216
|
constructor(data) {
|
|
222
217
|
super();
|
|
223
218
|
/**
|
|
@@ -229,19 +224,55 @@ export class CreatePoolParameters extends Message {
|
|
|
229
224
|
*/
|
|
230
225
|
this.token1Address = "";
|
|
231
226
|
/**
|
|
232
|
-
* @generated from field:
|
|
227
|
+
* @generated from field: string pool_reference = 3;
|
|
233
228
|
*/
|
|
234
|
-
this.
|
|
229
|
+
this.poolReference = "";
|
|
230
|
+
proto3.util.initPartial(data, this);
|
|
231
|
+
}
|
|
232
|
+
static fromBinary(bytes, options) {
|
|
233
|
+
return new CreatePositionExistingPoolParameters().fromBinary(bytes, options);
|
|
234
|
+
}
|
|
235
|
+
static fromJson(jsonValue, options) {
|
|
236
|
+
return new CreatePositionExistingPoolParameters().fromJson(jsonValue, options);
|
|
237
|
+
}
|
|
238
|
+
static fromJsonString(jsonString, options) {
|
|
239
|
+
return new CreatePositionExistingPoolParameters().fromJsonString(jsonString, options);
|
|
240
|
+
}
|
|
241
|
+
static equals(a, b) {
|
|
242
|
+
return proto3.util.equals(CreatePositionExistingPoolParameters, a, b);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
CreatePositionExistingPoolParameters.runtime = proto3;
|
|
246
|
+
CreatePositionExistingPoolParameters.typeName = "uniswap.liquidity.v2.CreatePositionExistingPoolParameters";
|
|
247
|
+
CreatePositionExistingPoolParameters.fields = proto3.util.newFieldList(() => [
|
|
248
|
+
{ no: 1, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
249
|
+
{ no: 2, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
250
|
+
{ no: 3, name: "pool_reference", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
251
|
+
]);
|
|
252
|
+
/**
|
|
253
|
+
* @generated from message uniswap.liquidity.v2.CreatePoolParameters
|
|
254
|
+
*/
|
|
255
|
+
export class CreatePoolParameters extends Message {
|
|
256
|
+
constructor(data) {
|
|
257
|
+
super();
|
|
258
|
+
/**
|
|
259
|
+
* @generated from field: string token_0_address = 1;
|
|
260
|
+
*/
|
|
261
|
+
this.token0Address = "";
|
|
235
262
|
/**
|
|
236
|
-
* @generated from field:
|
|
263
|
+
* @generated from field: string token_1_address = 2;
|
|
264
|
+
*/
|
|
265
|
+
this.token1Address = "";
|
|
266
|
+
/**
|
|
267
|
+
* @generated from field: int32 fee = 3;
|
|
237
268
|
*/
|
|
238
269
|
this.fee = 0;
|
|
239
270
|
/**
|
|
240
|
-
* @generated from field: int32 tick_spacing =
|
|
271
|
+
* @generated from field: int32 tick_spacing = 4;
|
|
241
272
|
*/
|
|
242
273
|
this.tickSpacing = 0;
|
|
243
274
|
/**
|
|
244
|
-
* @generated from field: string initial_price =
|
|
275
|
+
* @generated from field: string initial_price = 6;
|
|
245
276
|
*/
|
|
246
277
|
this.initialPrice = "";
|
|
247
278
|
proto3.util.initPartial(data, this);
|
|
@@ -264,9 +295,113 @@ CreatePoolParameters.typeName = "uniswap.liquidity.v2.CreatePoolParameters";
|
|
|
264
295
|
CreatePoolParameters.fields = proto3.util.newFieldList(() => [
|
|
265
296
|
{ no: 1, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
266
297
|
{ no: 2, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
267
|
-
{ no: 3, name: "
|
|
268
|
-
{ no: 4, name: "
|
|
269
|
-
{ no: 5, name: "
|
|
270
|
-
{ no: 6, name: "
|
|
271
|
-
|
|
298
|
+
{ no: 3, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
299
|
+
{ no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
300
|
+
{ no: 5, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
301
|
+
{ no: 6, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
302
|
+
]);
|
|
303
|
+
/**
|
|
304
|
+
* @generated from message uniswap.liquidity.v2.PositionPriceBounds
|
|
305
|
+
*/
|
|
306
|
+
export class PositionPriceBounds extends Message {
|
|
307
|
+
constructor(data) {
|
|
308
|
+
super();
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: string min_price = 1;
|
|
311
|
+
*/
|
|
312
|
+
this.minPrice = "";
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: string max_price = 2;
|
|
315
|
+
*/
|
|
316
|
+
this.maxPrice = "";
|
|
317
|
+
proto3.util.initPartial(data, this);
|
|
318
|
+
}
|
|
319
|
+
static fromBinary(bytes, options) {
|
|
320
|
+
return new PositionPriceBounds().fromBinary(bytes, options);
|
|
321
|
+
}
|
|
322
|
+
static fromJson(jsonValue, options) {
|
|
323
|
+
return new PositionPriceBounds().fromJson(jsonValue, options);
|
|
324
|
+
}
|
|
325
|
+
static fromJsonString(jsonString, options) {
|
|
326
|
+
return new PositionPriceBounds().fromJsonString(jsonString, options);
|
|
327
|
+
}
|
|
328
|
+
static equals(a, b) {
|
|
329
|
+
return proto3.util.equals(PositionPriceBounds, a, b);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
PositionPriceBounds.runtime = proto3;
|
|
333
|
+
PositionPriceBounds.typeName = "uniswap.liquidity.v2.PositionPriceBounds";
|
|
334
|
+
PositionPriceBounds.fields = proto3.util.newFieldList(() => [
|
|
335
|
+
{ no: 1, name: "min_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
336
|
+
{ no: 2, name: "max_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
337
|
+
]);
|
|
338
|
+
/**
|
|
339
|
+
* @generated from message uniswap.liquidity.v2.PositionTickBounds
|
|
340
|
+
*/
|
|
341
|
+
export class PositionTickBounds extends Message {
|
|
342
|
+
constructor(data) {
|
|
343
|
+
super();
|
|
344
|
+
/**
|
|
345
|
+
* @generated from field: sint32 tick_lower = 1;
|
|
346
|
+
*/
|
|
347
|
+
this.tickLower = 0;
|
|
348
|
+
/**
|
|
349
|
+
* @generated from field: sint32 tick_upper = 2;
|
|
350
|
+
*/
|
|
351
|
+
this.tickUpper = 0;
|
|
352
|
+
proto3.util.initPartial(data, this);
|
|
353
|
+
}
|
|
354
|
+
static fromBinary(bytes, options) {
|
|
355
|
+
return new PositionTickBounds().fromBinary(bytes, options);
|
|
356
|
+
}
|
|
357
|
+
static fromJson(jsonValue, options) {
|
|
358
|
+
return new PositionTickBounds().fromJson(jsonValue, options);
|
|
359
|
+
}
|
|
360
|
+
static fromJsonString(jsonString, options) {
|
|
361
|
+
return new PositionTickBounds().fromJsonString(jsonString, options);
|
|
362
|
+
}
|
|
363
|
+
static equals(a, b) {
|
|
364
|
+
return proto3.util.equals(PositionTickBounds, a, b);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
PositionTickBounds.runtime = proto3;
|
|
368
|
+
PositionTickBounds.typeName = "uniswap.liquidity.v2.PositionTickBounds";
|
|
369
|
+
PositionTickBounds.fields = proto3.util.newFieldList(() => [
|
|
370
|
+
{ no: 1, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
371
|
+
{ no: 2, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
372
|
+
]);
|
|
373
|
+
/**
|
|
374
|
+
* @generated from message uniswap.liquidity.v2.CreateToken
|
|
375
|
+
*/
|
|
376
|
+
export class CreateToken extends Message {
|
|
377
|
+
constructor(data) {
|
|
378
|
+
super();
|
|
379
|
+
/**
|
|
380
|
+
* @generated from field: string token_address = 1;
|
|
381
|
+
*/
|
|
382
|
+
this.tokenAddress = "";
|
|
383
|
+
/**
|
|
384
|
+
* @generated from field: string amount = 2;
|
|
385
|
+
*/
|
|
386
|
+
this.amount = "";
|
|
387
|
+
proto3.util.initPartial(data, this);
|
|
388
|
+
}
|
|
389
|
+
static fromBinary(bytes, options) {
|
|
390
|
+
return new CreateToken().fromBinary(bytes, options);
|
|
391
|
+
}
|
|
392
|
+
static fromJson(jsonValue, options) {
|
|
393
|
+
return new CreateToken().fromJson(jsonValue, options);
|
|
394
|
+
}
|
|
395
|
+
static fromJsonString(jsonString, options) {
|
|
396
|
+
return new CreateToken().fromJsonString(jsonString, options);
|
|
397
|
+
}
|
|
398
|
+
static equals(a, b) {
|
|
399
|
+
return proto3.util.equals(CreateToken, a, b);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
CreateToken.runtime = proto3;
|
|
403
|
+
CreateToken.typeName = "uniswap.liquidity.v2.CreateToken";
|
|
404
|
+
CreateToken.fields = proto3.util.newFieldList(() => [
|
|
405
|
+
{ no: 1, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
406
|
+
{ no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
272
407
|
]);
|