@uniswap/client-platform-service 0.0.22 → 0.0.23

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
  };
@@ -61,6 +61,86 @@ export declare class ListEligibleGasFeeSponsorshipCampaignsResponse extends Mess
61
61
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEligibleGasFeeSponsorshipCampaignsResponse;
62
62
  static equals(a: ListEligibleGasFeeSponsorshipCampaignsResponse | PlainMessage<ListEligibleGasFeeSponsorshipCampaignsResponse> | undefined, b: ListEligibleGasFeeSponsorshipCampaignsResponse | PlainMessage<ListEligibleGasFeeSponsorshipCampaignsResponse> | undefined): boolean;
63
63
  }
64
+ /**
65
+ * @generated from message uniswap.platformservice.v1.ListSponsoredTransactionsByWalletRequest
66
+ */
67
+ export declare class ListSponsoredTransactionsByWalletRequest extends Message<ListSponsoredTransactionsByWalletRequest> {
68
+ /**
69
+ * Wallet address (UserOp.sender). Matched case-insensitively.
70
+ *
71
+ * @generated from field: string address = 1;
72
+ */
73
+ address: string;
74
+ /**
75
+ * Optional chain filter. Omit to return sponsored transactions across all
76
+ * chains for the wallet.
77
+ *
78
+ * @generated from field: optional uint32 chain_id = 2;
79
+ */
80
+ chainId?: number;
81
+ constructor(data?: PartialMessage<ListSponsoredTransactionsByWalletRequest>);
82
+ static readonly runtime: typeof proto3;
83
+ static readonly typeName = "uniswap.platformservice.v1.ListSponsoredTransactionsByWalletRequest";
84
+ static readonly fields: FieldList;
85
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSponsoredTransactionsByWalletRequest;
86
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSponsoredTransactionsByWalletRequest;
87
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSponsoredTransactionsByWalletRequest;
88
+ static equals(a: ListSponsoredTransactionsByWalletRequest | PlainMessage<ListSponsoredTransactionsByWalletRequest> | undefined, b: ListSponsoredTransactionsByWalletRequest | PlainMessage<ListSponsoredTransactionsByWalletRequest> | undefined): boolean;
89
+ }
90
+ /**
91
+ * @generated from message uniswap.platformservice.v1.ListSponsoredTransactionsByWalletResponse
92
+ */
93
+ export declare class ListSponsoredTransactionsByWalletResponse extends Message<ListSponsoredTransactionsByWalletResponse> {
94
+ /**
95
+ * @generated from field: repeated uniswap.platformservice.v1.SponsoredTransaction transactions = 1;
96
+ */
97
+ transactions: SponsoredTransaction[];
98
+ constructor(data?: PartialMessage<ListSponsoredTransactionsByWalletResponse>);
99
+ static readonly runtime: typeof proto3;
100
+ static readonly typeName = "uniswap.platformservice.v1.ListSponsoredTransactionsByWalletResponse";
101
+ static readonly fields: FieldList;
102
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSponsoredTransactionsByWalletResponse;
103
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSponsoredTransactionsByWalletResponse;
104
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSponsoredTransactionsByWalletResponse;
105
+ static equals(a: ListSponsoredTransactionsByWalletResponse | PlainMessage<ListSponsoredTransactionsByWalletResponse> | undefined, b: ListSponsoredTransactionsByWalletResponse | PlainMessage<ListSponsoredTransactionsByWalletResponse> | undefined): boolean;
106
+ }
107
+ /**
108
+ * A single finalized (on-chain) sponsorship for a wallet. `sponsor_name` and
109
+ * `sponsor_logo_url` are resolved from the campaign config keyed by
110
+ * `campaign_name`; they are empty when the campaign is no longer configured.
111
+ *
112
+ * @generated from message uniswap.platformservice.v1.SponsoredTransaction
113
+ */
114
+ export declare class SponsoredTransaction extends Message<SponsoredTransaction> {
115
+ /**
116
+ * @generated from field: string transaction_hash = 1;
117
+ */
118
+ transactionHash: string;
119
+ /**
120
+ * @generated from field: uint32 chain_id = 2;
121
+ */
122
+ chainId: number;
123
+ /**
124
+ * @generated from field: string campaign_name = 3;
125
+ */
126
+ campaignName: string;
127
+ /**
128
+ * @generated from field: string sponsor_name = 4;
129
+ */
130
+ sponsorName: string;
131
+ /**
132
+ * @generated from field: string sponsor_logo_url = 5;
133
+ */
134
+ sponsorLogoUrl: string;
135
+ constructor(data?: PartialMessage<SponsoredTransaction>);
136
+ static readonly runtime: typeof proto3;
137
+ static readonly typeName = "uniswap.platformservice.v1.SponsoredTransaction";
138
+ static readonly fields: FieldList;
139
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsoredTransaction;
140
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsoredTransaction;
141
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsoredTransaction;
142
+ static equals(a: SponsoredTransaction | PlainMessage<SponsoredTransaction> | undefined, b: SponsoredTransaction | PlainMessage<SponsoredTransaction> | undefined): boolean;
143
+ }
64
144
  /**
65
145
  * @generated from message uniswap.platformservice.v1.SponsorshipCampaign
66
146
  */
@@ -71,6 +71,123 @@ ListEligibleGasFeeSponsorshipCampaignsResponse.typeName = "uniswap.platformservi
71
71
  ListEligibleGasFeeSponsorshipCampaignsResponse.fields = proto3.util.newFieldList(() => [
72
72
  { no: 1, name: "campaigns", kind: "message", T: SponsorshipCampaign, repeated: true },
73
73
  ]);
74
+ /**
75
+ * @generated from message uniswap.platformservice.v1.ListSponsoredTransactionsByWalletRequest
76
+ */
77
+ export class ListSponsoredTransactionsByWalletRequest extends Message {
78
+ constructor(data) {
79
+ super();
80
+ /**
81
+ * Wallet address (UserOp.sender). Matched case-insensitively.
82
+ *
83
+ * @generated from field: string address = 1;
84
+ */
85
+ this.address = "";
86
+ proto3.util.initPartial(data, this);
87
+ }
88
+ static fromBinary(bytes, options) {
89
+ return new ListSponsoredTransactionsByWalletRequest().fromBinary(bytes, options);
90
+ }
91
+ static fromJson(jsonValue, options) {
92
+ return new ListSponsoredTransactionsByWalletRequest().fromJson(jsonValue, options);
93
+ }
94
+ static fromJsonString(jsonString, options) {
95
+ return new ListSponsoredTransactionsByWalletRequest().fromJsonString(jsonString, options);
96
+ }
97
+ static equals(a, b) {
98
+ return proto3.util.equals(ListSponsoredTransactionsByWalletRequest, a, b);
99
+ }
100
+ }
101
+ ListSponsoredTransactionsByWalletRequest.runtime = proto3;
102
+ ListSponsoredTransactionsByWalletRequest.typeName = "uniswap.platformservice.v1.ListSponsoredTransactionsByWalletRequest";
103
+ ListSponsoredTransactionsByWalletRequest.fields = proto3.util.newFieldList(() => [
104
+ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
105
+ { no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
106
+ ]);
107
+ /**
108
+ * @generated from message uniswap.platformservice.v1.ListSponsoredTransactionsByWalletResponse
109
+ */
110
+ export class ListSponsoredTransactionsByWalletResponse extends Message {
111
+ constructor(data) {
112
+ super();
113
+ /**
114
+ * @generated from field: repeated uniswap.platformservice.v1.SponsoredTransaction transactions = 1;
115
+ */
116
+ this.transactions = [];
117
+ proto3.util.initPartial(data, this);
118
+ }
119
+ static fromBinary(bytes, options) {
120
+ return new ListSponsoredTransactionsByWalletResponse().fromBinary(bytes, options);
121
+ }
122
+ static fromJson(jsonValue, options) {
123
+ return new ListSponsoredTransactionsByWalletResponse().fromJson(jsonValue, options);
124
+ }
125
+ static fromJsonString(jsonString, options) {
126
+ return new ListSponsoredTransactionsByWalletResponse().fromJsonString(jsonString, options);
127
+ }
128
+ static equals(a, b) {
129
+ return proto3.util.equals(ListSponsoredTransactionsByWalletResponse, a, b);
130
+ }
131
+ }
132
+ ListSponsoredTransactionsByWalletResponse.runtime = proto3;
133
+ ListSponsoredTransactionsByWalletResponse.typeName = "uniswap.platformservice.v1.ListSponsoredTransactionsByWalletResponse";
134
+ ListSponsoredTransactionsByWalletResponse.fields = proto3.util.newFieldList(() => [
135
+ { no: 1, name: "transactions", kind: "message", T: SponsoredTransaction, repeated: true },
136
+ ]);
137
+ /**
138
+ * A single finalized (on-chain) sponsorship for a wallet. `sponsor_name` and
139
+ * `sponsor_logo_url` are resolved from the campaign config keyed by
140
+ * `campaign_name`; they are empty when the campaign is no longer configured.
141
+ *
142
+ * @generated from message uniswap.platformservice.v1.SponsoredTransaction
143
+ */
144
+ export class SponsoredTransaction extends Message {
145
+ constructor(data) {
146
+ super();
147
+ /**
148
+ * @generated from field: string transaction_hash = 1;
149
+ */
150
+ this.transactionHash = "";
151
+ /**
152
+ * @generated from field: uint32 chain_id = 2;
153
+ */
154
+ this.chainId = 0;
155
+ /**
156
+ * @generated from field: string campaign_name = 3;
157
+ */
158
+ this.campaignName = "";
159
+ /**
160
+ * @generated from field: string sponsor_name = 4;
161
+ */
162
+ this.sponsorName = "";
163
+ /**
164
+ * @generated from field: string sponsor_logo_url = 5;
165
+ */
166
+ this.sponsorLogoUrl = "";
167
+ proto3.util.initPartial(data, this);
168
+ }
169
+ static fromBinary(bytes, options) {
170
+ return new SponsoredTransaction().fromBinary(bytes, options);
171
+ }
172
+ static fromJson(jsonValue, options) {
173
+ return new SponsoredTransaction().fromJson(jsonValue, options);
174
+ }
175
+ static fromJsonString(jsonString, options) {
176
+ return new SponsoredTransaction().fromJsonString(jsonString, options);
177
+ }
178
+ static equals(a, b) {
179
+ return proto3.util.equals(SponsoredTransaction, a, b);
180
+ }
181
+ }
182
+ SponsoredTransaction.runtime = proto3;
183
+ SponsoredTransaction.typeName = "uniswap.platformservice.v1.SponsoredTransaction";
184
+ SponsoredTransaction.fields = proto3.util.newFieldList(() => [
185
+ { no: 1, name: "transaction_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
+ { no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
187
+ { no: 3, name: "campaign_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
188
+ { no: 4, name: "sponsor_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
189
+ { no: 5, name: "sponsor_logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
190
+ ]);
74
191
  /**
75
192
  * @generated from message uniswap.platformservice.v1.SponsorshipCampaign
76
193
  */
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.23",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },