@uniswap/client-data-api 0.0.111 → 0.0.112

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.
@@ -61,7 +61,32 @@ export declare enum SwapType {
61
61
  /**
62
62
  * @generated from enum value: SWAP_TYPE_RESET_APPROVAL_TXN = 14;
63
63
  */
64
- RESET_APPROVAL_TXN = 14
64
+ RESET_APPROVAL_TXN = 14,
65
+ /**
66
+ * @generated from enum value: SWAP_TYPE_VAULT_DEPOSIT = 15;
67
+ */
68
+ VAULT_DEPOSIT = 15,
69
+ /**
70
+ * @generated from enum value: SWAP_TYPE_VAULT_WITHDRAW = 16;
71
+ */
72
+ VAULT_WITHDRAW = 16
73
+ }
74
+ /**
75
+ * @generated from enum data.v1.EarnPlanAction
76
+ */
77
+ export declare enum EarnPlanAction {
78
+ /**
79
+ * @generated from enum value: EARN_PLAN_ACTION_UNKNOWN = 0;
80
+ */
81
+ UNKNOWN = 0,
82
+ /**
83
+ * @generated from enum value: EARN_PLAN_ACTION_DEPOSIT = 1;
84
+ */
85
+ DEPOSIT = 1,
86
+ /**
87
+ * @generated from enum value: EARN_PLAN_ACTION_WITHDRAW = 2;
88
+ */
89
+ WITHDRAW = 2
65
90
  }
66
91
  /**
67
92
  * @generated from enum data.v1.PlanStepStatus
@@ -68,6 +68,14 @@ export var SwapType;
68
68
  * @generated from enum value: SWAP_TYPE_RESET_APPROVAL_TXN = 14;
69
69
  */
70
70
  SwapType[SwapType["RESET_APPROVAL_TXN"] = 14] = "RESET_APPROVAL_TXN";
71
+ /**
72
+ * @generated from enum value: SWAP_TYPE_VAULT_DEPOSIT = 15;
73
+ */
74
+ SwapType[SwapType["VAULT_DEPOSIT"] = 15] = "VAULT_DEPOSIT";
75
+ /**
76
+ * @generated from enum value: SWAP_TYPE_VAULT_WITHDRAW = 16;
77
+ */
78
+ SwapType[SwapType["VAULT_WITHDRAW"] = 16] = "VAULT_WITHDRAW";
71
79
  })(SwapType || (SwapType = {}));
72
80
  // Retrieve enum metadata with: proto3.getEnumType(SwapType)
73
81
  proto3.util.setEnumType(SwapType, "data.v1.SwapType", [
@@ -86,6 +94,32 @@ proto3.util.setEnumType(SwapType, "data.v1.SwapType", [
86
94
  { no: 12, name: "SWAP_TYPE_APPROVAL_TXN" },
87
95
  { no: 13, name: "SWAP_TYPE_APPROVAL_PERMIT" },
88
96
  { no: 14, name: "SWAP_TYPE_RESET_APPROVAL_TXN" },
97
+ { no: 15, name: "SWAP_TYPE_VAULT_DEPOSIT" },
98
+ { no: 16, name: "SWAP_TYPE_VAULT_WITHDRAW" },
99
+ ]);
100
+ /**
101
+ * @generated from enum data.v1.EarnPlanAction
102
+ */
103
+ export var EarnPlanAction;
104
+ (function (EarnPlanAction) {
105
+ /**
106
+ * @generated from enum value: EARN_PLAN_ACTION_UNKNOWN = 0;
107
+ */
108
+ EarnPlanAction[EarnPlanAction["UNKNOWN"] = 0] = "UNKNOWN";
109
+ /**
110
+ * @generated from enum value: EARN_PLAN_ACTION_DEPOSIT = 1;
111
+ */
112
+ EarnPlanAction[EarnPlanAction["DEPOSIT"] = 1] = "DEPOSIT";
113
+ /**
114
+ * @generated from enum value: EARN_PLAN_ACTION_WITHDRAW = 2;
115
+ */
116
+ EarnPlanAction[EarnPlanAction["WITHDRAW"] = 2] = "WITHDRAW";
117
+ })(EarnPlanAction || (EarnPlanAction = {}));
118
+ // Retrieve enum metadata with: proto3.getEnumType(EarnPlanAction)
119
+ proto3.util.setEnumType(EarnPlanAction, "data.v1.EarnPlanAction", [
120
+ { no: 0, name: "EARN_PLAN_ACTION_UNKNOWN" },
121
+ { no: 1, name: "EARN_PLAN_ACTION_DEPOSIT" },
122
+ { no: 2, name: "EARN_PLAN_ACTION_WITHDRAW" },
89
123
  ]);
90
124
  /**
91
125
  * @generated from enum data.v1.PlanStepStatus
@@ -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 { PlanStatus, PlanStepStatus, SwapType } from "./plan_pb.js";
3
+ import { EarnPlanAction, PlanStatus, PlanStepStatus, SwapType } from "./plan_pb.js";
4
4
  import { ProtocolVersion } from "./poolTypes_pb.js";
5
5
  /**
6
6
  * @generated from enum data.v1.TokenType
@@ -1646,6 +1646,13 @@ export declare class PlanTransaction extends Message<PlanTransaction> {
1646
1646
  * @generated from field: optional uint64 last_user_action_at_millis = 15;
1647
1647
  */
1648
1648
  lastUserActionAtMillis?: bigint;
1649
+ /**
1650
+ * Set when the plan is an Earn vault deposit/withdraw flow. Lets clients
1651
+ * label the plan with Earn intent instead of generic swap language.
1652
+ *
1653
+ * @generated from field: optional data.v1.EarnPlanMetadata earn_metadata = 16;
1654
+ */
1655
+ earnMetadata?: EarnPlanMetadata;
1649
1656
  constructor(data?: PartialMessage<PlanTransaction>);
1650
1657
  static readonly runtime: typeof proto3;
1651
1658
  static readonly typeName = "data.v1.PlanTransaction";
@@ -1655,6 +1662,35 @@ export declare class PlanTransaction extends Message<PlanTransaction> {
1655
1662
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanTransaction;
1656
1663
  static equals(a: PlanTransaction | PlainMessage<PlanTransaction> | undefined, b: PlanTransaction | PlainMessage<PlanTransaction> | undefined): boolean;
1657
1664
  }
1665
+ /**
1666
+ * Plan-level Earn intent metadata for chained Earn vault flows.
1667
+ *
1668
+ * @generated from message data.v1.EarnPlanMetadata
1669
+ */
1670
+ export declare class EarnPlanMetadata extends Message<EarnPlanMetadata> {
1671
+ /**
1672
+ * @generated from field: data.v1.EarnPlanAction action = 1;
1673
+ */
1674
+ action: EarnPlanAction;
1675
+ /**
1676
+ * Vault share token address; unset when not derivable.
1677
+ *
1678
+ * @generated from field: optional string vault = 2;
1679
+ */
1680
+ vault?: string;
1681
+ /**
1682
+ * @generated from field: optional uint32 chain_id = 3;
1683
+ */
1684
+ chainId?: number;
1685
+ constructor(data?: PartialMessage<EarnPlanMetadata>);
1686
+ static readonly runtime: typeof proto3;
1687
+ static readonly typeName = "data.v1.EarnPlanMetadata";
1688
+ static readonly fields: FieldList;
1689
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnPlanMetadata;
1690
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnPlanMetadata;
1691
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnPlanMetadata;
1692
+ static equals(a: EarnPlanMetadata | PlainMessage<EarnPlanMetadata> | undefined, b: EarnPlanMetadata | PlainMessage<EarnPlanMetadata> | undefined): boolean;
1693
+ }
1658
1694
  /**
1659
1695
  * @generated from message data.v1.PlanActivity
1660
1696
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
- import { PlanStatus, PlanStepStatus, SwapType } from "./plan_pb.js";
6
+ import { EarnPlanAction, PlanStatus, PlanStepStatus, SwapType } from "./plan_pb.js";
7
7
  import { ProtocolVersion } from "./poolTypes_pb.js";
8
8
  /**
9
9
  * @generated from enum data.v1.TokenType
@@ -2101,6 +2101,41 @@ PlanTransaction.fields = proto3.util.newFieldList(() => [
2101
2101
  { no: 13, name: "transaction_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2102
2102
  { no: 14, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2103
2103
  { no: 15, name: "last_user_action_at_millis", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
2104
+ { no: 16, name: "earn_metadata", kind: "message", T: EarnPlanMetadata, opt: true },
2105
+ ]);
2106
+ /**
2107
+ * Plan-level Earn intent metadata for chained Earn vault flows.
2108
+ *
2109
+ * @generated from message data.v1.EarnPlanMetadata
2110
+ */
2111
+ export class EarnPlanMetadata extends Message {
2112
+ constructor(data) {
2113
+ super();
2114
+ /**
2115
+ * @generated from field: data.v1.EarnPlanAction action = 1;
2116
+ */
2117
+ this.action = EarnPlanAction.UNKNOWN;
2118
+ proto3.util.initPartial(data, this);
2119
+ }
2120
+ static fromBinary(bytes, options) {
2121
+ return new EarnPlanMetadata().fromBinary(bytes, options);
2122
+ }
2123
+ static fromJson(jsonValue, options) {
2124
+ return new EarnPlanMetadata().fromJson(jsonValue, options);
2125
+ }
2126
+ static fromJsonString(jsonString, options) {
2127
+ return new EarnPlanMetadata().fromJsonString(jsonString, options);
2128
+ }
2129
+ static equals(a, b) {
2130
+ return proto3.util.equals(EarnPlanMetadata, a, b);
2131
+ }
2132
+ }
2133
+ EarnPlanMetadata.runtime = proto3;
2134
+ EarnPlanMetadata.typeName = "data.v1.EarnPlanMetadata";
2135
+ EarnPlanMetadata.fields = proto3.util.newFieldList(() => [
2136
+ { no: 1, name: "action", kind: "enum", T: proto3.getEnumType(EarnPlanAction) },
2137
+ { no: 2, name: "vault", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2138
+ { no: 3, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
2104
2139
  ]);
2105
2140
  /**
2106
2141
  * @generated from message data.v1.PlanActivity
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.111",
3
+ "version": "0.0.112",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },