@uniswap/client-trading 0.1.4 → 0.1.5

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.
@@ -163,27 +163,7 @@ export declare enum RoutingPreference {
163
163
  /**
164
164
  * @generated from enum value: FASTEST = 1;
165
165
  */
166
- FASTEST = 1,
167
- /**
168
- * @generated from enum value: ROUTING_CLASSIC = 2;
169
- */
170
- ROUTING_CLASSIC = 2,
171
- /**
172
- * @generated from enum value: ROUTING_UNISWAPX_V2 = 4;
173
- */
174
- ROUTING_UNISWAPX_V2 = 4,
175
- /**
176
- * @generated from enum value: V3_ONLY = 5;
177
- */
178
- V3_ONLY = 5,
179
- /**
180
- * @generated from enum value: V2_ONLY = 6;
181
- */
182
- V2_ONLY = 6,
183
- /**
184
- * @generated from enum value: BEST_PRICE_V2 = 7;
185
- */
186
- BEST_PRICE_V2 = 7
166
+ FASTEST = 1
187
167
  }
188
168
  /**
189
169
  * @generated from enum trading.v1.SpreadOptimization
@@ -1226,14 +1206,6 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
1226
1206
  * @generated from field: optional trading.v1.PermitAmount permit_amount = 15;
1227
1207
  */
1228
1208
  permitAmount?: PermitAmount;
1229
- /**
1230
- * @generated from field: optional int32 portion_bips = 16;
1231
- */
1232
- portionBips?: number;
1233
- /**
1234
- * @generated from field: optional string portion_recipient = 17;
1235
- */
1236
- portionRecipient?: string;
1237
1209
  /**
1238
1210
  * @generated from field: bool generate_permit_as_transaction = 18;
1239
1211
  */
@@ -1242,6 +1214,10 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
1242
1214
  * @generated from field: optional trading.v1.HooksOptions hooks_options = 19;
1243
1215
  */
1244
1216
  hooksOptions?: HooksOptions;
1217
+ /**
1218
+ * @generated from field: repeated trading.v1.IntegratorFee integrator_fees = 20;
1219
+ */
1220
+ integratorFees: IntegratorFee[];
1245
1221
  constructor(data?: PartialMessage<QuoteRequest>);
1246
1222
  static readonly runtime: typeof proto3;
1247
1223
  static readonly typeName = "trading.v1.QuoteRequest";
@@ -1251,6 +1227,27 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
1251
1227
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuoteRequest;
1252
1228
  static equals(a: QuoteRequest | PlainMessage<QuoteRequest> | undefined, b: QuoteRequest | PlainMessage<QuoteRequest> | undefined): boolean;
1253
1229
  }
1230
+ /**
1231
+ * @generated from message trading.v1.IntegratorFee
1232
+ */
1233
+ export declare class IntegratorFee extends Message<IntegratorFee> {
1234
+ /**
1235
+ * @generated from field: int32 bips_x100 = 1;
1236
+ */
1237
+ bipsX100: number;
1238
+ /**
1239
+ * @generated from field: string recipient = 2;
1240
+ */
1241
+ recipient: string;
1242
+ constructor(data?: PartialMessage<IntegratorFee>);
1243
+ static readonly runtime: typeof proto3;
1244
+ static readonly typeName = "trading.v1.IntegratorFee";
1245
+ static readonly fields: FieldList;
1246
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntegratorFee;
1247
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntegratorFee;
1248
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntegratorFee;
1249
+ static equals(a: IntegratorFee | PlainMessage<IntegratorFee> | undefined, b: IntegratorFee | PlainMessage<IntegratorFee> | undefined): boolean;
1250
+ }
1254
1251
  /**
1255
1252
  * @generated from message trading.v1.QuoteResponse
1256
1253
  */
@@ -217,36 +217,11 @@ export var RoutingPreference;
217
217
  * @generated from enum value: FASTEST = 1;
218
218
  */
219
219
  RoutingPreference[RoutingPreference["FASTEST"] = 1] = "FASTEST";
220
- /**
221
- * @generated from enum value: ROUTING_CLASSIC = 2;
222
- */
223
- RoutingPreference[RoutingPreference["ROUTING_CLASSIC"] = 2] = "ROUTING_CLASSIC";
224
- /**
225
- * @generated from enum value: ROUTING_UNISWAPX_V2 = 4;
226
- */
227
- RoutingPreference[RoutingPreference["ROUTING_UNISWAPX_V2"] = 4] = "ROUTING_UNISWAPX_V2";
228
- /**
229
- * @generated from enum value: V3_ONLY = 5;
230
- */
231
- RoutingPreference[RoutingPreference["V3_ONLY"] = 5] = "V3_ONLY";
232
- /**
233
- * @generated from enum value: V2_ONLY = 6;
234
- */
235
- RoutingPreference[RoutingPreference["V2_ONLY"] = 6] = "V2_ONLY";
236
- /**
237
- * @generated from enum value: BEST_PRICE_V2 = 7;
238
- */
239
- RoutingPreference[RoutingPreference["BEST_PRICE_V2"] = 7] = "BEST_PRICE_V2";
240
220
  })(RoutingPreference || (RoutingPreference = {}));
241
221
  // Retrieve enum metadata with: proto3.getEnumType(RoutingPreference)
242
222
  proto3.util.setEnumType(RoutingPreference, "trading.v1.RoutingPreference", [
243
223
  { no: 0, name: "BEST_PRICE" },
244
224
  { no: 1, name: "FASTEST" },
245
- { no: 2, name: "ROUTING_CLASSIC" },
246
- { no: 4, name: "ROUTING_UNISWAPX_V2" },
247
- { no: 5, name: "V3_ONLY" },
248
- { no: 6, name: "V2_ONLY" },
249
- { no: 7, name: "BEST_PRICE_V2" },
250
225
  ]);
251
226
  /**
252
227
  * @generated from enum trading.v1.SpreadOptimization
@@ -1589,6 +1564,10 @@ export class QuoteRequest extends Message {
1589
1564
  * @generated from field: bool generate_permit_as_transaction = 18;
1590
1565
  */
1591
1566
  this.generatePermitAsTransaction = false;
1567
+ /**
1568
+ * @generated from field: repeated trading.v1.IntegratorFee integrator_fees = 20;
1569
+ */
1570
+ this.integratorFees = [];
1592
1571
  proto3.util.initPartial(data, this);
1593
1572
  }
1594
1573
  static fromBinary(bytes, options) {
@@ -1622,10 +1601,44 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
1622
1601
  { no: 13, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
1623
1602
  { no: 14, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
1624
1603
  { no: 15, name: "permit_amount", kind: "enum", T: proto3.getEnumType(PermitAmount), opt: true },
1625
- { no: 16, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1626
- { no: 17, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1627
1604
  { no: 18, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1628
1605
  { no: 19, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
1606
+ { no: 20, name: "integrator_fees", kind: "message", T: IntegratorFee, repeated: true },
1607
+ ]);
1608
+ /**
1609
+ * @generated from message trading.v1.IntegratorFee
1610
+ */
1611
+ export class IntegratorFee extends Message {
1612
+ constructor(data) {
1613
+ super();
1614
+ /**
1615
+ * @generated from field: int32 bips_x100 = 1;
1616
+ */
1617
+ this.bipsX100 = 0;
1618
+ /**
1619
+ * @generated from field: string recipient = 2;
1620
+ */
1621
+ this.recipient = "";
1622
+ proto3.util.initPartial(data, this);
1623
+ }
1624
+ static fromBinary(bytes, options) {
1625
+ return new IntegratorFee().fromBinary(bytes, options);
1626
+ }
1627
+ static fromJson(jsonValue, options) {
1628
+ return new IntegratorFee().fromJson(jsonValue, options);
1629
+ }
1630
+ static fromJsonString(jsonString, options) {
1631
+ return new IntegratorFee().fromJsonString(jsonString, options);
1632
+ }
1633
+ static equals(a, b) {
1634
+ return proto3.util.equals(IntegratorFee, a, b);
1635
+ }
1636
+ }
1637
+ IntegratorFee.runtime = proto3;
1638
+ IntegratorFee.typeName = "trading.v1.IntegratorFee";
1639
+ IntegratorFee.fields = proto3.util.newFieldList(() => [
1640
+ { no: 1, name: "bips_x100", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1641
+ { no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1629
1642
  ]);
1630
1643
  /**
1631
1644
  * @generated from message trading.v1.QuoteResponse
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },