@uniswap/client-trading 0.5.5 → 0.5.7

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.
@@ -530,6 +530,23 @@ export declare enum OrderType {
530
530
  */
531
531
  OrderType_DUTCH_V3 = 4
532
532
  }
533
+ /**
534
+ * @generated from enum trading.v1.AllowanceUnit
535
+ */
536
+ export declare enum AllowanceUnit {
537
+ /**
538
+ * @generated from enum value: ALLOWANCE_UNIT_UNSPECIFIED = 0;
539
+ */
540
+ UNSPECIFIED = 0,
541
+ /**
542
+ * @generated from enum value: ALLOWANCE_UNIT_FREE_SWAPS = 1;
543
+ */
544
+ FREE_SWAPS = 1,
545
+ /**
546
+ * @generated from enum value: ALLOWANCE_UNIT_USD_CENT = 2;
547
+ */
548
+ USD_CENT = 2
549
+ }
533
550
  /**
534
551
  * @generated from message trading.v1.Encode7702Request
535
552
  */
@@ -6915,6 +6932,30 @@ export declare class CampaignDetails extends Message<CampaignDetails> {
6915
6932
  * @generated from field: optional string description = 2;
6916
6933
  */
6917
6934
  description?: string;
6935
+ /**
6936
+ * Human-readable headline; `description` is the subheader.
6937
+ *
6938
+ * @generated from field: optional string headline = 3;
6939
+ */
6940
+ headline?: string;
6941
+ /**
6942
+ * Campaign image asset for the UI thumbnail.
6943
+ *
6944
+ * @generated from field: optional string thumbnail_url = 4;
6945
+ */
6946
+ thumbnailUrl?: string;
6947
+ /**
6948
+ * Per-wallet caps + utilization, one entry per dimension; empty when no cap.
6949
+ *
6950
+ * @generated from field: repeated trading.v1.CampaignAllowance allowances = 5;
6951
+ */
6952
+ allowances: CampaignAllowance[];
6953
+ /**
6954
+ * Chains the campaign covers, for the "eligible chains" modal.
6955
+ *
6956
+ * @generated from field: repeated trading.v1.ChainId eligible_chains = 6;
6957
+ */
6958
+ eligibleChains: ChainId[];
6918
6959
  constructor(data?: PartialMessage<CampaignDetails>);
6919
6960
  static readonly runtime: typeof proto3;
6920
6961
  static readonly typeName = "trading.v1.CampaignDetails";
@@ -6924,6 +6965,33 @@ export declare class CampaignDetails extends Message<CampaignDetails> {
6924
6965
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CampaignDetails;
6925
6966
  static equals(a: CampaignDetails | PlainMessage<CampaignDetails> | undefined, b: CampaignDetails | PlainMessage<CampaignDetails> | undefined): boolean;
6926
6967
  }
6968
+ /**
6969
+ * Drives the allowance line, e.g. "5 of 5 free swaps remaining" or "$2 of $10".
6970
+ *
6971
+ * @generated from message trading.v1.CampaignAllowance
6972
+ */
6973
+ export declare class CampaignAllowance extends Message<CampaignAllowance> {
6974
+ /**
6975
+ * @generated from field: trading.v1.AllowanceUnit unit = 1;
6976
+ */
6977
+ unit: AllowanceUnit;
6978
+ /**
6979
+ * @generated from field: string total = 2;
6980
+ */
6981
+ total: string;
6982
+ /**
6983
+ * @generated from field: string remaining = 3;
6984
+ */
6985
+ remaining: string;
6986
+ constructor(data?: PartialMessage<CampaignAllowance>);
6987
+ static readonly runtime: typeof proto3;
6988
+ static readonly typeName = "trading.v1.CampaignAllowance";
6989
+ static readonly fields: FieldList;
6990
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CampaignAllowance;
6991
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CampaignAllowance;
6992
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CampaignAllowance;
6993
+ static equals(a: CampaignAllowance | PlainMessage<CampaignAllowance> | undefined, b: CampaignAllowance | PlainMessage<CampaignAllowance> | undefined): boolean;
6994
+ }
6927
6995
  /**
6928
6996
  * @generated from message trading.v1.SponsorshipInfo
6929
6997
  */
@@ -720,6 +720,30 @@ proto3.util.setEnumType(OrderType, "trading.v1.OrderType", [
720
720
  { no: 3, name: "OrderType_PRIORITY" },
721
721
  { no: 4, name: "OrderType_DUTCH_V3" },
722
722
  ]);
723
+ /**
724
+ * @generated from enum trading.v1.AllowanceUnit
725
+ */
726
+ export var AllowanceUnit;
727
+ (function (AllowanceUnit) {
728
+ /**
729
+ * @generated from enum value: ALLOWANCE_UNIT_UNSPECIFIED = 0;
730
+ */
731
+ AllowanceUnit[AllowanceUnit["UNSPECIFIED"] = 0] = "UNSPECIFIED";
732
+ /**
733
+ * @generated from enum value: ALLOWANCE_UNIT_FREE_SWAPS = 1;
734
+ */
735
+ AllowanceUnit[AllowanceUnit["FREE_SWAPS"] = 1] = "FREE_SWAPS";
736
+ /**
737
+ * @generated from enum value: ALLOWANCE_UNIT_USD_CENT = 2;
738
+ */
739
+ AllowanceUnit[AllowanceUnit["USD_CENT"] = 2] = "USD_CENT";
740
+ })(AllowanceUnit || (AllowanceUnit = {}));
741
+ // Retrieve enum metadata with: proto3.getEnumType(AllowanceUnit)
742
+ proto3.util.setEnumType(AllowanceUnit, "trading.v1.AllowanceUnit", [
743
+ { no: 0, name: "ALLOWANCE_UNIT_UNSPECIFIED" },
744
+ { no: 1, name: "ALLOWANCE_UNIT_FREE_SWAPS" },
745
+ { no: 2, name: "ALLOWANCE_UNIT_USD_CENT" },
746
+ ]);
723
747
  /**
724
748
  * @generated from message trading.v1.Encode7702Request
725
749
  */
@@ -8094,6 +8118,18 @@ SponsorMetadata.fields = proto3.util.newFieldList(() => [
8094
8118
  export class CampaignDetails extends Message {
8095
8119
  constructor(data) {
8096
8120
  super();
8121
+ /**
8122
+ * Per-wallet caps + utilization, one entry per dimension; empty when no cap.
8123
+ *
8124
+ * @generated from field: repeated trading.v1.CampaignAllowance allowances = 5;
8125
+ */
8126
+ this.allowances = [];
8127
+ /**
8128
+ * Chains the campaign covers, for the "eligible chains" modal.
8129
+ *
8130
+ * @generated from field: repeated trading.v1.ChainId eligible_chains = 6;
8131
+ */
8132
+ this.eligibleChains = [];
8097
8133
  proto3.util.initPartial(data, this);
8098
8134
  }
8099
8135
  static fromBinary(bytes, options) {
@@ -8114,6 +8150,52 @@ CampaignDetails.typeName = "trading.v1.CampaignDetails";
8114
8150
  CampaignDetails.fields = proto3.util.newFieldList(() => [
8115
8151
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8116
8152
  { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8153
+ { no: 3, name: "headline", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8154
+ { no: 4, name: "thumbnail_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8155
+ { no: 5, name: "allowances", kind: "message", T: CampaignAllowance, repeated: true },
8156
+ { no: 6, name: "eligible_chains", kind: "enum", T: proto3.getEnumType(ChainId), repeated: true },
8157
+ ]);
8158
+ /**
8159
+ * Drives the allowance line, e.g. "5 of 5 free swaps remaining" or "$2 of $10".
8160
+ *
8161
+ * @generated from message trading.v1.CampaignAllowance
8162
+ */
8163
+ export class CampaignAllowance extends Message {
8164
+ constructor(data) {
8165
+ super();
8166
+ /**
8167
+ * @generated from field: trading.v1.AllowanceUnit unit = 1;
8168
+ */
8169
+ this.unit = AllowanceUnit.UNSPECIFIED;
8170
+ /**
8171
+ * @generated from field: string total = 2;
8172
+ */
8173
+ this.total = "";
8174
+ /**
8175
+ * @generated from field: string remaining = 3;
8176
+ */
8177
+ this.remaining = "";
8178
+ proto3.util.initPartial(data, this);
8179
+ }
8180
+ static fromBinary(bytes, options) {
8181
+ return new CampaignAllowance().fromBinary(bytes, options);
8182
+ }
8183
+ static fromJson(jsonValue, options) {
8184
+ return new CampaignAllowance().fromJson(jsonValue, options);
8185
+ }
8186
+ static fromJsonString(jsonString, options) {
8187
+ return new CampaignAllowance().fromJsonString(jsonString, options);
8188
+ }
8189
+ static equals(a, b) {
8190
+ return proto3.util.equals(CampaignAllowance, a, b);
8191
+ }
8192
+ }
8193
+ CampaignAllowance.runtime = proto3;
8194
+ CampaignAllowance.typeName = "trading.v1.CampaignAllowance";
8195
+ CampaignAllowance.fields = proto3.util.newFieldList(() => [
8196
+ { no: 1, name: "unit", kind: "enum", T: proto3.getEnumType(AllowanceUnit) },
8197
+ { no: 2, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ },
8198
+ { no: 3, name: "remaining", kind: "scalar", T: 9 /* ScalarType.STRING */ },
8117
8199
  ]);
8118
8200
  /**
8119
8201
  * @generated from message trading.v1.SponsorshipInfo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },