@uniswap/client-trading 0.5.17 → 0.5.18

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.
@@ -466,7 +466,17 @@ export declare enum PlanStepType {
466
466
  /**
467
467
  * @generated from enum value: PLAN_STEP_TYPE_VAULT_WITHDRAW = 15;
468
468
  */
469
- VAULT_WITHDRAW = 15
469
+ VAULT_WITHDRAW = 15,
470
+ /**
471
+ * One MarginRouter execute([...actions]) transaction. Every margin action key
472
+ * compiles to this one step type: what the action does mechanically lives in the
473
+ * ordered operations inside marginExecutionMetadata, and which action the user
474
+ * chose lives on the echoed quote. Keeping the action grid out of this enum is
475
+ * what lets a new action key ship without a partner-visible wire change.
476
+ *
477
+ * @generated from enum value: PLAN_STEP_TYPE_MARGIN_EXECUTE = 16;
478
+ */
479
+ MARGIN_EXECUTE = 16
470
480
  }
471
481
  /**
472
482
  * Set when the output is a fee taken from the swap; unset for the swapper's
@@ -1572,7 +1582,7 @@ export declare class TokenListSafetyInfo extends Message<TokenListSafetyInfo> {
1572
1582
  */
1573
1583
  export declare class TokenListExtensions extends Message<TokenListExtensions> {
1574
1584
  /**
1575
- * chainId -> counterpart address on that chain
1585
+ * chainId -> token address
1576
1586
  *
1577
1587
  * @generated from field: map<string, trading.v1.TokenListBridgeInfo> bridge_info = 1;
1578
1588
  */
@@ -1605,8 +1615,7 @@ export declare class TokenListEntry extends Message<TokenListEntry> {
1605
1615
  */
1606
1616
  address: string;
1607
1617
  /**
1608
- * Raw chain id, not the ChainId enum: token lists span chains the trading
1609
- * service does not swap on (e.g. Solana entries in the hosted lists).
1618
+ * Raw chain id to support solana entries
1610
1619
  *
1611
1620
  * @generated from field: uint32 chain_id = 3;
1612
1621
  */
@@ -612,6 +612,16 @@ export var PlanStepType;
612
612
  * @generated from enum value: PLAN_STEP_TYPE_VAULT_WITHDRAW = 15;
613
613
  */
614
614
  PlanStepType[PlanStepType["VAULT_WITHDRAW"] = 15] = "VAULT_WITHDRAW";
615
+ /**
616
+ * One MarginRouter execute([...actions]) transaction. Every margin action key
617
+ * compiles to this one step type: what the action does mechanically lives in the
618
+ * ordered operations inside marginExecutionMetadata, and which action the user
619
+ * chose lives on the echoed quote. Keeping the action grid out of this enum is
620
+ * what lets a new action key ship without a partner-visible wire change.
621
+ *
622
+ * @generated from enum value: PLAN_STEP_TYPE_MARGIN_EXECUTE = 16;
623
+ */
624
+ PlanStepType[PlanStepType["MARGIN_EXECUTE"] = 16] = "MARGIN_EXECUTE";
615
625
  })(PlanStepType || (PlanStepType = {}));
616
626
  // Retrieve enum metadata with: proto3.getEnumType(PlanStepType)
617
627
  proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
@@ -631,6 +641,7 @@ proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
631
641
  { no: 13, name: "PLAN_STEP_TYPE_RESET_APPROVAL_TXN" },
632
642
  { no: 14, name: "PLAN_STEP_TYPE_VAULT_DEPOSIT" },
633
643
  { no: 15, name: "PLAN_STEP_TYPE_VAULT_WITHDRAW" },
644
+ { no: 16, name: "PLAN_STEP_TYPE_MARGIN_EXECUTE" },
634
645
  ]);
635
646
  /**
636
647
  * Set when the output is a fee taken from the swap; unset for the swapper's
@@ -1962,7 +1973,7 @@ export class TokenListExtensions extends Message {
1962
1973
  constructor(data) {
1963
1974
  super();
1964
1975
  /**
1965
- * chainId -> counterpart address on that chain
1976
+ * chainId -> token address
1966
1977
  *
1967
1978
  * @generated from field: map<string, trading.v1.TokenListBridgeInfo> bridge_info = 1;
1968
1979
  */
@@ -2003,8 +2014,7 @@ export class TokenListEntry extends Message {
2003
2014
  */
2004
2015
  this.address = "";
2005
2016
  /**
2006
- * Raw chain id, not the ChainId enum: token lists span chains the trading
2007
- * service does not swap on (e.g. Solana entries in the hosted lists).
2017
+ * Raw chain id to support solana entries
2008
2018
  *
2009
2019
  * @generated from field: uint32 chain_id = 3;
2010
2020
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },