@uniswap/client-platform-service 0.0.21 → 0.0.22

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.
@@ -49,9 +49,9 @@ export declare class ListEligibleGasFeeSponsorshipCampaignsResponse extends Mess
49
49
  /**
50
50
  * Eligible campaigns, sorted by priority.
51
51
  *
52
- * @generated from field: repeated uniswap.platformservice.v1.Campaign campaigns = 1;
52
+ * @generated from field: repeated uniswap.platformservice.v1.SponsorshipCampaign campaigns = 1;
53
53
  */
54
- campaigns: Campaign[];
54
+ campaigns: SponsorshipCampaign[];
55
55
  constructor(data?: PartialMessage<ListEligibleGasFeeSponsorshipCampaignsResponse>);
56
56
  static readonly runtime: typeof proto3;
57
57
  static readonly typeName = "uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsResponse";
@@ -62,9 +62,9 @@ export declare class ListEligibleGasFeeSponsorshipCampaignsResponse extends Mess
62
62
  static equals(a: ListEligibleGasFeeSponsorshipCampaignsResponse | PlainMessage<ListEligibleGasFeeSponsorshipCampaignsResponse> | undefined, b: ListEligibleGasFeeSponsorshipCampaignsResponse | PlainMessage<ListEligibleGasFeeSponsorshipCampaignsResponse> | undefined): boolean;
63
63
  }
64
64
  /**
65
- * @generated from message uniswap.platformservice.v1.Campaign
65
+ * @generated from message uniswap.platformservice.v1.SponsorshipCampaign
66
66
  */
67
- export declare class Campaign extends Message<Campaign> {
67
+ export declare class SponsorshipCampaign extends Message<SponsorshipCampaign> {
68
68
  /**
69
69
  * Machine-readable unique identifier, e.g. "unichain-free-swap-2026-q1".
70
70
  *
@@ -79,13 +79,13 @@ export declare class Campaign extends Message<Campaign> {
79
79
  */
80
80
  description: string;
81
81
  /**
82
- * All criteria must match (AND logic).
82
+ * All criteria must match (AND logic). Server-side eligibility config — clients can ignore.
83
83
  *
84
84
  * @generated from field: repeated uniswap.platformservice.v1.Criterion criteria = 3;
85
85
  */
86
86
  criteria: Criterion[];
87
87
  /**
88
- * @generated from oneof uniswap.platformservice.v1.Campaign.policyId
88
+ * @generated from oneof uniswap.platformservice.v1.SponsorshipCampaign.policyId
89
89
  */
90
90
  policyId: {
91
91
  /**
@@ -97,14 +97,26 @@ export declare class Campaign extends Message<Campaign> {
97
97
  case: undefined;
98
98
  value?: undefined;
99
99
  };
100
- constructor(data?: PartialMessage<Campaign>);
100
+ /**
101
+ * Display name of the sponsor brand shown to end users, e.g. "Uniswap", "Polymarket".
102
+ *
103
+ * @generated from field: string sponsor_name = 5;
104
+ */
105
+ sponsorName: string;
106
+ /**
107
+ * URL to the sponsor's logo for client display.
108
+ *
109
+ * @generated from field: string sponsor_logo_url = 6;
110
+ */
111
+ sponsorLogoUrl: string;
112
+ constructor(data?: PartialMessage<SponsorshipCampaign>);
101
113
  static readonly runtime: typeof proto3;
102
- static readonly typeName = "uniswap.platformservice.v1.Campaign";
114
+ static readonly typeName = "uniswap.platformservice.v1.SponsorshipCampaign";
103
115
  static readonly fields: FieldList;
104
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Campaign;
105
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Campaign;
106
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Campaign;
107
- static equals(a: Campaign | PlainMessage<Campaign> | undefined, b: Campaign | PlainMessage<Campaign> | undefined): boolean;
116
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorshipCampaign;
117
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorshipCampaign;
118
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorshipCampaign;
119
+ static equals(a: SponsorshipCampaign | PlainMessage<SponsorshipCampaign> | undefined, b: SponsorshipCampaign | PlainMessage<SponsorshipCampaign> | undefined): boolean;
108
120
  }
109
121
  /**
110
122
  * @generated from message uniswap.platformservice.v1.Criterion
@@ -48,7 +48,7 @@ export class ListEligibleGasFeeSponsorshipCampaignsResponse extends Message {
48
48
  /**
49
49
  * Eligible campaigns, sorted by priority.
50
50
  *
51
- * @generated from field: repeated uniswap.platformservice.v1.Campaign campaigns = 1;
51
+ * @generated from field: repeated uniswap.platformservice.v1.SponsorshipCampaign campaigns = 1;
52
52
  */
53
53
  this.campaigns = [];
54
54
  proto3.util.initPartial(data, this);
@@ -69,12 +69,12 @@ export class ListEligibleGasFeeSponsorshipCampaignsResponse extends Message {
69
69
  ListEligibleGasFeeSponsorshipCampaignsResponse.runtime = proto3;
70
70
  ListEligibleGasFeeSponsorshipCampaignsResponse.typeName = "uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsResponse";
71
71
  ListEligibleGasFeeSponsorshipCampaignsResponse.fields = proto3.util.newFieldList(() => [
72
- { no: 1, name: "campaigns", kind: "message", T: Campaign, repeated: true },
72
+ { no: 1, name: "campaigns", kind: "message", T: SponsorshipCampaign, repeated: true },
73
73
  ]);
74
74
  /**
75
- * @generated from message uniswap.platformservice.v1.Campaign
75
+ * @generated from message uniswap.platformservice.v1.SponsorshipCampaign
76
76
  */
77
- export class Campaign extends Message {
77
+ export class SponsorshipCampaign extends Message {
78
78
  constructor(data) {
79
79
  super();
80
80
  /**
@@ -91,37 +91,51 @@ export class Campaign extends Message {
91
91
  */
92
92
  this.description = "";
93
93
  /**
94
- * All criteria must match (AND logic).
94
+ * All criteria must match (AND logic). Server-side eligibility config — clients can ignore.
95
95
  *
96
96
  * @generated from field: repeated uniswap.platformservice.v1.Criterion criteria = 3;
97
97
  */
98
98
  this.criteria = [];
99
99
  /**
100
- * @generated from oneof uniswap.platformservice.v1.Campaign.policyId
100
+ * @generated from oneof uniswap.platformservice.v1.SponsorshipCampaign.policyId
101
101
  */
102
102
  this.policyId = { case: undefined };
103
+ /**
104
+ * Display name of the sponsor brand shown to end users, e.g. "Uniswap", "Polymarket".
105
+ *
106
+ * @generated from field: string sponsor_name = 5;
107
+ */
108
+ this.sponsorName = "";
109
+ /**
110
+ * URL to the sponsor's logo for client display.
111
+ *
112
+ * @generated from field: string sponsor_logo_url = 6;
113
+ */
114
+ this.sponsorLogoUrl = "";
103
115
  proto3.util.initPartial(data, this);
104
116
  }
105
117
  static fromBinary(bytes, options) {
106
- return new Campaign().fromBinary(bytes, options);
118
+ return new SponsorshipCampaign().fromBinary(bytes, options);
107
119
  }
108
120
  static fromJson(jsonValue, options) {
109
- return new Campaign().fromJson(jsonValue, options);
121
+ return new SponsorshipCampaign().fromJson(jsonValue, options);
110
122
  }
111
123
  static fromJsonString(jsonString, options) {
112
- return new Campaign().fromJsonString(jsonString, options);
124
+ return new SponsorshipCampaign().fromJsonString(jsonString, options);
113
125
  }
114
126
  static equals(a, b) {
115
- return proto3.util.equals(Campaign, a, b);
127
+ return proto3.util.equals(SponsorshipCampaign, a, b);
116
128
  }
117
129
  }
118
- Campaign.runtime = proto3;
119
- Campaign.typeName = "uniswap.platformservice.v1.Campaign";
120
- Campaign.fields = proto3.util.newFieldList(() => [
130
+ SponsorshipCampaign.runtime = proto3;
131
+ SponsorshipCampaign.typeName = "uniswap.platformservice.v1.SponsorshipCampaign";
132
+ SponsorshipCampaign.fields = proto3.util.newFieldList(() => [
121
133
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
122
134
  { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
123
135
  { no: 3, name: "criteria", kind: "message", T: Criterion, repeated: true },
124
136
  { no: 4, name: "alchemy_policy_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "policyId" },
137
+ { no: 5, name: "sponsor_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
138
+ { no: 6, name: "sponsor_logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
125
139
  ]);
126
140
  /**
127
141
  * @generated from message uniswap.platformservice.v1.Criterion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },