@uniswap/client-platform-service 0.0.22 → 0.0.24

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.
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
2
+ import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
3
3
  /**
4
4
  * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
5
5
  */
@@ -26,3 +26,20 @@ export declare const paymasterRpcCall: {
26
26
  readonly typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService";
27
27
  };
28
28
  };
29
+ /**
30
+ * Internal-only. Returns a wallet's finalized (on-chain) sponsored
31
+ * transactions via a single-partition query on the GasFeeSponsee table
32
+ * (PK = wallet address). Pending rows (no transaction hash) are excluded.
33
+ *
34
+ * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListSponsoredTransactionsByWallet
35
+ */
36
+ export declare const listSponsoredTransactionsByWallet: {
37
+ readonly localName: "listSponsoredTransactionsByWallet";
38
+ readonly name: "ListSponsoredTransactionsByWallet";
39
+ readonly kind: MethodKind.Unary;
40
+ readonly I: typeof ListSponsoredTransactionsByWalletRequest;
41
+ readonly O: typeof ListSponsoredTransactionsByWalletResponse;
42
+ readonly service: {
43
+ readonly typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService";
44
+ };
45
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
6
+ import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
7
7
  /**
8
8
  * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
9
9
  */
@@ -30,3 +30,20 @@ export const paymasterRpcCall = {
30
30
  typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService"
31
31
  }
32
32
  };
33
+ /**
34
+ * Internal-only. Returns a wallet's finalized (on-chain) sponsored
35
+ * transactions via a single-partition query on the GasFeeSponsee table
36
+ * (PK = wallet address). Pending rows (no transaction hash) are excluded.
37
+ *
38
+ * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListSponsoredTransactionsByWallet
39
+ */
40
+ export const listSponsoredTransactionsByWallet = {
41
+ localName: "listSponsoredTransactionsByWallet",
42
+ name: "ListSponsoredTransactionsByWallet",
43
+ kind: MethodKind.Unary,
44
+ I: ListSponsoredTransactionsByWalletRequest,
45
+ O: ListSponsoredTransactionsByWalletResponse,
46
+ service: {
47
+ typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService"
48
+ }
49
+ };
@@ -1,4 +1,4 @@
1
- import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
1
+ import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service uniswap.platformservice.v1.GasFeeSponsorshipService
@@ -24,5 +24,18 @@ export declare const GasFeeSponsorshipService: {
24
24
  readonly O: typeof PaymasterRpcCallResponse;
25
25
  readonly kind: MethodKind.Unary;
26
26
  };
27
+ /**
28
+ * Internal-only. Returns a wallet's finalized (on-chain) sponsored
29
+ * transactions via a single-partition query on the GasFeeSponsee table
30
+ * (PK = wallet address). Pending rows (no transaction hash) are excluded.
31
+ *
32
+ * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListSponsoredTransactionsByWallet
33
+ */
34
+ readonly listSponsoredTransactionsByWallet: {
35
+ readonly name: "ListSponsoredTransactionsByWallet";
36
+ readonly I: typeof ListSponsoredTransactionsByWalletRequest;
37
+ readonly O: typeof ListSponsoredTransactionsByWalletResponse;
38
+ readonly kind: MethodKind.Unary;
39
+ };
27
40
  };
28
41
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/platformservice/v1/gasFeeSponsorshipService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
5
+ import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service uniswap.platformservice.v1.GasFeeSponsorshipService
@@ -28,5 +28,18 @@ export const GasFeeSponsorshipService = {
28
28
  O: PaymasterRpcCallResponse,
29
29
  kind: MethodKind.Unary,
30
30
  },
31
+ /**
32
+ * Internal-only. Returns a wallet's finalized (on-chain) sponsored
33
+ * transactions via a single-partition query on the GasFeeSponsee table
34
+ * (PK = wallet address). Pending rows (no transaction hash) are excluded.
35
+ *
36
+ * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListSponsoredTransactionsByWallet
37
+ */
38
+ listSponsoredTransactionsByWallet: {
39
+ name: "ListSponsoredTransactionsByWallet",
40
+ I: ListSponsoredTransactionsByWalletRequest,
41
+ O: ListSponsoredTransactionsByWalletResponse,
42
+ kind: MethodKind.Unary,
43
+ },
31
44
  }
32
45
  };
@@ -6,8 +6,8 @@ import { Message, proto3, Timestamp, Value } from "@bufbuild/protobuf";
6
6
  export declare class ListEligibleGasFeeSponsorshipCampaignsRequest extends Message<ListEligibleGasFeeSponsorshipCampaignsRequest> {
7
7
  /**
8
8
  * The user-intended on-chain action being evaluated for sponsorship.
9
- * Variants cover swap/wrap/bridge today; additional types such as liquidity
10
- * provision will be added as new cases.
9
+ * Variants cover swap/wrap/bridge/approval today; additional types such as
10
+ * liquidity provision will be added as new cases.
11
11
  *
12
12
  * @generated from oneof uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest.intent
13
13
  */
@@ -29,6 +29,12 @@ export declare class ListEligibleGasFeeSponsorshipCampaignsRequest extends Messa
29
29
  */
30
30
  value: BridgeQuote;
31
31
  case: "bridgeQuote";
32
+ } | {
33
+ /**
34
+ * @generated from field: uniswap.platformservice.v1.ApprovalIntent approval_intent = 4;
35
+ */
36
+ value: ApprovalIntent;
37
+ case: "approvalIntent";
32
38
  } | {
33
39
  case: undefined;
34
40
  value?: undefined;
@@ -61,6 +67,86 @@ export declare class ListEligibleGasFeeSponsorshipCampaignsResponse extends Mess
61
67
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEligibleGasFeeSponsorshipCampaignsResponse;
62
68
  static equals(a: ListEligibleGasFeeSponsorshipCampaignsResponse | PlainMessage<ListEligibleGasFeeSponsorshipCampaignsResponse> | undefined, b: ListEligibleGasFeeSponsorshipCampaignsResponse | PlainMessage<ListEligibleGasFeeSponsorshipCampaignsResponse> | undefined): boolean;
63
69
  }
70
+ /**
71
+ * @generated from message uniswap.platformservice.v1.ListSponsoredTransactionsByWalletRequest
72
+ */
73
+ export declare class ListSponsoredTransactionsByWalletRequest extends Message<ListSponsoredTransactionsByWalletRequest> {
74
+ /**
75
+ * Wallet address (UserOp.sender). Matched case-insensitively.
76
+ *
77
+ * @generated from field: string address = 1;
78
+ */
79
+ address: string;
80
+ /**
81
+ * Optional chain filter. Omit to return sponsored transactions across all
82
+ * chains for the wallet.
83
+ *
84
+ * @generated from field: optional uint32 chain_id = 2;
85
+ */
86
+ chainId?: number;
87
+ constructor(data?: PartialMessage<ListSponsoredTransactionsByWalletRequest>);
88
+ static readonly runtime: typeof proto3;
89
+ static readonly typeName = "uniswap.platformservice.v1.ListSponsoredTransactionsByWalletRequest";
90
+ static readonly fields: FieldList;
91
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSponsoredTransactionsByWalletRequest;
92
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSponsoredTransactionsByWalletRequest;
93
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSponsoredTransactionsByWalletRequest;
94
+ static equals(a: ListSponsoredTransactionsByWalletRequest | PlainMessage<ListSponsoredTransactionsByWalletRequest> | undefined, b: ListSponsoredTransactionsByWalletRequest | PlainMessage<ListSponsoredTransactionsByWalletRequest> | undefined): boolean;
95
+ }
96
+ /**
97
+ * @generated from message uniswap.platformservice.v1.ListSponsoredTransactionsByWalletResponse
98
+ */
99
+ export declare class ListSponsoredTransactionsByWalletResponse extends Message<ListSponsoredTransactionsByWalletResponse> {
100
+ /**
101
+ * @generated from field: repeated uniswap.platformservice.v1.SponsoredTransaction transactions = 1;
102
+ */
103
+ transactions: SponsoredTransaction[];
104
+ constructor(data?: PartialMessage<ListSponsoredTransactionsByWalletResponse>);
105
+ static readonly runtime: typeof proto3;
106
+ static readonly typeName = "uniswap.platformservice.v1.ListSponsoredTransactionsByWalletResponse";
107
+ static readonly fields: FieldList;
108
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSponsoredTransactionsByWalletResponse;
109
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSponsoredTransactionsByWalletResponse;
110
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSponsoredTransactionsByWalletResponse;
111
+ static equals(a: ListSponsoredTransactionsByWalletResponse | PlainMessage<ListSponsoredTransactionsByWalletResponse> | undefined, b: ListSponsoredTransactionsByWalletResponse | PlainMessage<ListSponsoredTransactionsByWalletResponse> | undefined): boolean;
112
+ }
113
+ /**
114
+ * A single finalized (on-chain) sponsorship for a wallet. `sponsor_name` and
115
+ * `sponsor_logo_url` are resolved from the campaign config keyed by
116
+ * `campaign_name`; they are empty when the campaign is no longer configured.
117
+ *
118
+ * @generated from message uniswap.platformservice.v1.SponsoredTransaction
119
+ */
120
+ export declare class SponsoredTransaction extends Message<SponsoredTransaction> {
121
+ /**
122
+ * @generated from field: string transaction_hash = 1;
123
+ */
124
+ transactionHash: string;
125
+ /**
126
+ * @generated from field: uint32 chain_id = 2;
127
+ */
128
+ chainId: number;
129
+ /**
130
+ * @generated from field: string campaign_name = 3;
131
+ */
132
+ campaignName: string;
133
+ /**
134
+ * @generated from field: string sponsor_name = 4;
135
+ */
136
+ sponsorName: string;
137
+ /**
138
+ * @generated from field: string sponsor_logo_url = 5;
139
+ */
140
+ sponsorLogoUrl: string;
141
+ constructor(data?: PartialMessage<SponsoredTransaction>);
142
+ static readonly runtime: typeof proto3;
143
+ static readonly typeName = "uniswap.platformservice.v1.SponsoredTransaction";
144
+ static readonly fields: FieldList;
145
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsoredTransaction;
146
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsoredTransaction;
147
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsoredTransaction;
148
+ static equals(a: SponsoredTransaction | PlainMessage<SponsoredTransaction> | undefined, b: SponsoredTransaction | PlainMessage<SponsoredTransaction> | undefined): boolean;
149
+ }
64
150
  /**
65
151
  * @generated from message uniswap.platformservice.v1.SponsorshipCampaign
66
152
  */
@@ -344,6 +430,40 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
344
430
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BridgeQuote;
345
431
  static equals(a: BridgeQuote | PlainMessage<BridgeQuote> | undefined, b: BridgeQuote | PlainMessage<BridgeQuote> | undefined): boolean;
346
432
  }
433
+ /**
434
+ * An ERC-20 approval being evaluated for sponsorship — the gasless precursor
435
+ * to a sponsored swap. Always same-chain (a token approval can't cross
436
+ * chains). `spender` is the contract being granted the allowance (e.g. the
437
+ * Universal Router or Permit2).
438
+ *
439
+ * @generated from message uniswap.platformservice.v1.ApprovalIntent
440
+ */
441
+ export declare class ApprovalIntent extends Message<ApprovalIntent> {
442
+ /**
443
+ * @generated from field: uint32 chain_id = 1;
444
+ */
445
+ chainId: number;
446
+ /**
447
+ * @generated from field: string swapper = 2;
448
+ */
449
+ swapper: string;
450
+ /**
451
+ * @generated from field: string token = 3;
452
+ */
453
+ token: string;
454
+ /**
455
+ * @generated from field: string spender = 4;
456
+ */
457
+ spender: string;
458
+ constructor(data?: PartialMessage<ApprovalIntent>);
459
+ static readonly runtime: typeof proto3;
460
+ static readonly typeName = "uniswap.platformservice.v1.ApprovalIntent";
461
+ static readonly fields: FieldList;
462
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApprovalIntent;
463
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApprovalIntent;
464
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApprovalIntent;
465
+ static equals(a: ApprovalIntent | PlainMessage<ApprovalIntent> | undefined, b: ApprovalIntent | PlainMessage<ApprovalIntent> | undefined): boolean;
466
+ }
347
467
  /**
348
468
  * Standard JSON-RPC envelope for paymaster-only methods.
349
469
  *
@@ -11,8 +11,8 @@ export class ListEligibleGasFeeSponsorshipCampaignsRequest extends Message {
11
11
  super();
12
12
  /**
13
13
  * The user-intended on-chain action being evaluated for sponsorship.
14
- * Variants cover swap/wrap/bridge today; additional types such as liquidity
15
- * provision will be added as new cases.
14
+ * Variants cover swap/wrap/bridge/approval today; additional types such as
15
+ * liquidity provision will be added as new cases.
16
16
  *
17
17
  * @generated from oneof uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest.intent
18
18
  */
@@ -38,6 +38,7 @@ ListEligibleGasFeeSponsorshipCampaignsRequest.fields = proto3.util.newFieldList(
38
38
  { no: 1, name: "classic_quote", kind: "message", T: ClassicQuote, oneof: "intent" },
39
39
  { no: 2, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "intent" },
40
40
  { no: 3, name: "bridge_quote", kind: "message", T: BridgeQuote, oneof: "intent" },
41
+ { no: 4, name: "approval_intent", kind: "message", T: ApprovalIntent, oneof: "intent" },
41
42
  ]);
42
43
  /**
43
44
  * @generated from message uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsResponse
@@ -71,6 +72,123 @@ ListEligibleGasFeeSponsorshipCampaignsResponse.typeName = "uniswap.platformservi
71
72
  ListEligibleGasFeeSponsorshipCampaignsResponse.fields = proto3.util.newFieldList(() => [
72
73
  { no: 1, name: "campaigns", kind: "message", T: SponsorshipCampaign, repeated: true },
73
74
  ]);
75
+ /**
76
+ * @generated from message uniswap.platformservice.v1.ListSponsoredTransactionsByWalletRequest
77
+ */
78
+ export class ListSponsoredTransactionsByWalletRequest extends Message {
79
+ constructor(data) {
80
+ super();
81
+ /**
82
+ * Wallet address (UserOp.sender). Matched case-insensitively.
83
+ *
84
+ * @generated from field: string address = 1;
85
+ */
86
+ this.address = "";
87
+ proto3.util.initPartial(data, this);
88
+ }
89
+ static fromBinary(bytes, options) {
90
+ return new ListSponsoredTransactionsByWalletRequest().fromBinary(bytes, options);
91
+ }
92
+ static fromJson(jsonValue, options) {
93
+ return new ListSponsoredTransactionsByWalletRequest().fromJson(jsonValue, options);
94
+ }
95
+ static fromJsonString(jsonString, options) {
96
+ return new ListSponsoredTransactionsByWalletRequest().fromJsonString(jsonString, options);
97
+ }
98
+ static equals(a, b) {
99
+ return proto3.util.equals(ListSponsoredTransactionsByWalletRequest, a, b);
100
+ }
101
+ }
102
+ ListSponsoredTransactionsByWalletRequest.runtime = proto3;
103
+ ListSponsoredTransactionsByWalletRequest.typeName = "uniswap.platformservice.v1.ListSponsoredTransactionsByWalletRequest";
104
+ ListSponsoredTransactionsByWalletRequest.fields = proto3.util.newFieldList(() => [
105
+ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
106
+ { no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
107
+ ]);
108
+ /**
109
+ * @generated from message uniswap.platformservice.v1.ListSponsoredTransactionsByWalletResponse
110
+ */
111
+ export class ListSponsoredTransactionsByWalletResponse extends Message {
112
+ constructor(data) {
113
+ super();
114
+ /**
115
+ * @generated from field: repeated uniswap.platformservice.v1.SponsoredTransaction transactions = 1;
116
+ */
117
+ this.transactions = [];
118
+ proto3.util.initPartial(data, this);
119
+ }
120
+ static fromBinary(bytes, options) {
121
+ return new ListSponsoredTransactionsByWalletResponse().fromBinary(bytes, options);
122
+ }
123
+ static fromJson(jsonValue, options) {
124
+ return new ListSponsoredTransactionsByWalletResponse().fromJson(jsonValue, options);
125
+ }
126
+ static fromJsonString(jsonString, options) {
127
+ return new ListSponsoredTransactionsByWalletResponse().fromJsonString(jsonString, options);
128
+ }
129
+ static equals(a, b) {
130
+ return proto3.util.equals(ListSponsoredTransactionsByWalletResponse, a, b);
131
+ }
132
+ }
133
+ ListSponsoredTransactionsByWalletResponse.runtime = proto3;
134
+ ListSponsoredTransactionsByWalletResponse.typeName = "uniswap.platformservice.v1.ListSponsoredTransactionsByWalletResponse";
135
+ ListSponsoredTransactionsByWalletResponse.fields = proto3.util.newFieldList(() => [
136
+ { no: 1, name: "transactions", kind: "message", T: SponsoredTransaction, repeated: true },
137
+ ]);
138
+ /**
139
+ * A single finalized (on-chain) sponsorship for a wallet. `sponsor_name` and
140
+ * `sponsor_logo_url` are resolved from the campaign config keyed by
141
+ * `campaign_name`; they are empty when the campaign is no longer configured.
142
+ *
143
+ * @generated from message uniswap.platformservice.v1.SponsoredTransaction
144
+ */
145
+ export class SponsoredTransaction extends Message {
146
+ constructor(data) {
147
+ super();
148
+ /**
149
+ * @generated from field: string transaction_hash = 1;
150
+ */
151
+ this.transactionHash = "";
152
+ /**
153
+ * @generated from field: uint32 chain_id = 2;
154
+ */
155
+ this.chainId = 0;
156
+ /**
157
+ * @generated from field: string campaign_name = 3;
158
+ */
159
+ this.campaignName = "";
160
+ /**
161
+ * @generated from field: string sponsor_name = 4;
162
+ */
163
+ this.sponsorName = "";
164
+ /**
165
+ * @generated from field: string sponsor_logo_url = 5;
166
+ */
167
+ this.sponsorLogoUrl = "";
168
+ proto3.util.initPartial(data, this);
169
+ }
170
+ static fromBinary(bytes, options) {
171
+ return new SponsoredTransaction().fromBinary(bytes, options);
172
+ }
173
+ static fromJson(jsonValue, options) {
174
+ return new SponsoredTransaction().fromJson(jsonValue, options);
175
+ }
176
+ static fromJsonString(jsonString, options) {
177
+ return new SponsoredTransaction().fromJsonString(jsonString, options);
178
+ }
179
+ static equals(a, b) {
180
+ return proto3.util.equals(SponsoredTransaction, a, b);
181
+ }
182
+ }
183
+ SponsoredTransaction.runtime = proto3;
184
+ SponsoredTransaction.typeName = "uniswap.platformservice.v1.SponsoredTransaction";
185
+ SponsoredTransaction.fields = proto3.util.newFieldList(() => [
186
+ { no: 1, name: "transaction_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
187
+ { no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
188
+ { no: 3, name: "campaign_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
189
+ { no: 4, name: "sponsor_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
190
+ { no: 5, name: "sponsor_logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
191
+ ]);
74
192
  /**
75
193
  * @generated from message uniswap.platformservice.v1.SponsorshipCampaign
76
194
  */
@@ -446,6 +564,56 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
446
564
  { no: 4, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
447
565
  { no: 5, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
448
566
  ]);
567
+ /**
568
+ * An ERC-20 approval being evaluated for sponsorship — the gasless precursor
569
+ * to a sponsored swap. Always same-chain (a token approval can't cross
570
+ * chains). `spender` is the contract being granted the allowance (e.g. the
571
+ * Universal Router or Permit2).
572
+ *
573
+ * @generated from message uniswap.platformservice.v1.ApprovalIntent
574
+ */
575
+ export class ApprovalIntent extends Message {
576
+ constructor(data) {
577
+ super();
578
+ /**
579
+ * @generated from field: uint32 chain_id = 1;
580
+ */
581
+ this.chainId = 0;
582
+ /**
583
+ * @generated from field: string swapper = 2;
584
+ */
585
+ this.swapper = "";
586
+ /**
587
+ * @generated from field: string token = 3;
588
+ */
589
+ this.token = "";
590
+ /**
591
+ * @generated from field: string spender = 4;
592
+ */
593
+ this.spender = "";
594
+ proto3.util.initPartial(data, this);
595
+ }
596
+ static fromBinary(bytes, options) {
597
+ return new ApprovalIntent().fromBinary(bytes, options);
598
+ }
599
+ static fromJson(jsonValue, options) {
600
+ return new ApprovalIntent().fromJson(jsonValue, options);
601
+ }
602
+ static fromJsonString(jsonString, options) {
603
+ return new ApprovalIntent().fromJsonString(jsonString, options);
604
+ }
605
+ static equals(a, b) {
606
+ return proto3.util.equals(ApprovalIntent, a, b);
607
+ }
608
+ }
609
+ ApprovalIntent.runtime = proto3;
610
+ ApprovalIntent.typeName = "uniswap.platformservice.v1.ApprovalIntent";
611
+ ApprovalIntent.fields = proto3.util.newFieldList(() => [
612
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
613
+ { no: 2, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
614
+ { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
615
+ { no: 4, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
616
+ ]);
449
617
  /**
450
618
  * Standard JSON-RPC envelope for paymaster-only methods.
451
619
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },