@uniswap/client-platform-service 0.0.21 → 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.
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService-GasFeeSponsorshipService_connectquery.d.ts +18 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService-GasFeeSponsorshipService_connectquery.js +18 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_connect.d.ts +14 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_connect.js +14 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_pb.d.ts +104 -12
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_pb.js +144 -13
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -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.
|
|
52
|
+
* @generated from field: repeated uniswap.platformservice.v1.SponsorshipCampaign campaigns = 1;
|
|
53
53
|
*/
|
|
54
|
-
campaigns:
|
|
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,89 @@ 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.
|
|
65
|
+
* @generated from message uniswap.platformservice.v1.ListSponsoredTransactionsByWalletRequest
|
|
66
66
|
*/
|
|
67
|
-
export declare class
|
|
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
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @generated from message uniswap.platformservice.v1.SponsorshipCampaign
|
|
146
|
+
*/
|
|
147
|
+
export declare class SponsorshipCampaign extends Message<SponsorshipCampaign> {
|
|
68
148
|
/**
|
|
69
149
|
* Machine-readable unique identifier, e.g. "unichain-free-swap-2026-q1".
|
|
70
150
|
*
|
|
@@ -79,13 +159,13 @@ export declare class Campaign extends Message<Campaign> {
|
|
|
79
159
|
*/
|
|
80
160
|
description: string;
|
|
81
161
|
/**
|
|
82
|
-
* All criteria must match (AND logic).
|
|
162
|
+
* All criteria must match (AND logic). Server-side eligibility config — clients can ignore.
|
|
83
163
|
*
|
|
84
164
|
* @generated from field: repeated uniswap.platformservice.v1.Criterion criteria = 3;
|
|
85
165
|
*/
|
|
86
166
|
criteria: Criterion[];
|
|
87
167
|
/**
|
|
88
|
-
* @generated from oneof uniswap.platformservice.v1.
|
|
168
|
+
* @generated from oneof uniswap.platformservice.v1.SponsorshipCampaign.policyId
|
|
89
169
|
*/
|
|
90
170
|
policyId: {
|
|
91
171
|
/**
|
|
@@ -97,14 +177,26 @@ export declare class Campaign extends Message<Campaign> {
|
|
|
97
177
|
case: undefined;
|
|
98
178
|
value?: undefined;
|
|
99
179
|
};
|
|
100
|
-
|
|
180
|
+
/**
|
|
181
|
+
* Display name of the sponsor brand shown to end users, e.g. "Uniswap", "Polymarket".
|
|
182
|
+
*
|
|
183
|
+
* @generated from field: string sponsor_name = 5;
|
|
184
|
+
*/
|
|
185
|
+
sponsorName: string;
|
|
186
|
+
/**
|
|
187
|
+
* URL to the sponsor's logo for client display.
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: string sponsor_logo_url = 6;
|
|
190
|
+
*/
|
|
191
|
+
sponsorLogoUrl: string;
|
|
192
|
+
constructor(data?: PartialMessage<SponsorshipCampaign>);
|
|
101
193
|
static readonly runtime: typeof proto3;
|
|
102
|
-
static readonly typeName = "uniswap.platformservice.v1.
|
|
194
|
+
static readonly typeName = "uniswap.platformservice.v1.SponsorshipCampaign";
|
|
103
195
|
static readonly fields: FieldList;
|
|
104
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
105
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
106
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
107
|
-
static equals(a:
|
|
196
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorshipCampaign;
|
|
197
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorshipCampaign;
|
|
198
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorshipCampaign;
|
|
199
|
+
static equals(a: SponsorshipCampaign | PlainMessage<SponsorshipCampaign> | undefined, b: SponsorshipCampaign | PlainMessage<SponsorshipCampaign> | undefined): boolean;
|
|
108
200
|
}
|
|
109
201
|
/**
|
|
110
202
|
* @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.
|
|
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,129 @@ 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:
|
|
72
|
+
{ no: 1, name: "campaigns", kind: "message", T: SponsorshipCampaign, repeated: true },
|
|
73
73
|
]);
|
|
74
74
|
/**
|
|
75
|
-
* @generated from message uniswap.platformservice.v1.
|
|
75
|
+
* @generated from message uniswap.platformservice.v1.ListSponsoredTransactionsByWalletRequest
|
|
76
76
|
*/
|
|
77
|
-
export class
|
|
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
|
+
]);
|
|
191
|
+
/**
|
|
192
|
+
* @generated from message uniswap.platformservice.v1.SponsorshipCampaign
|
|
193
|
+
*/
|
|
194
|
+
export class SponsorshipCampaign extends Message {
|
|
78
195
|
constructor(data) {
|
|
79
196
|
super();
|
|
80
197
|
/**
|
|
@@ -91,37 +208,51 @@ export class Campaign extends Message {
|
|
|
91
208
|
*/
|
|
92
209
|
this.description = "";
|
|
93
210
|
/**
|
|
94
|
-
* All criteria must match (AND logic).
|
|
211
|
+
* All criteria must match (AND logic). Server-side eligibility config — clients can ignore.
|
|
95
212
|
*
|
|
96
213
|
* @generated from field: repeated uniswap.platformservice.v1.Criterion criteria = 3;
|
|
97
214
|
*/
|
|
98
215
|
this.criteria = [];
|
|
99
216
|
/**
|
|
100
|
-
* @generated from oneof uniswap.platformservice.v1.
|
|
217
|
+
* @generated from oneof uniswap.platformservice.v1.SponsorshipCampaign.policyId
|
|
101
218
|
*/
|
|
102
219
|
this.policyId = { case: undefined };
|
|
220
|
+
/**
|
|
221
|
+
* Display name of the sponsor brand shown to end users, e.g. "Uniswap", "Polymarket".
|
|
222
|
+
*
|
|
223
|
+
* @generated from field: string sponsor_name = 5;
|
|
224
|
+
*/
|
|
225
|
+
this.sponsorName = "";
|
|
226
|
+
/**
|
|
227
|
+
* URL to the sponsor's logo for client display.
|
|
228
|
+
*
|
|
229
|
+
* @generated from field: string sponsor_logo_url = 6;
|
|
230
|
+
*/
|
|
231
|
+
this.sponsorLogoUrl = "";
|
|
103
232
|
proto3.util.initPartial(data, this);
|
|
104
233
|
}
|
|
105
234
|
static fromBinary(bytes, options) {
|
|
106
|
-
return new
|
|
235
|
+
return new SponsorshipCampaign().fromBinary(bytes, options);
|
|
107
236
|
}
|
|
108
237
|
static fromJson(jsonValue, options) {
|
|
109
|
-
return new
|
|
238
|
+
return new SponsorshipCampaign().fromJson(jsonValue, options);
|
|
110
239
|
}
|
|
111
240
|
static fromJsonString(jsonString, options) {
|
|
112
|
-
return new
|
|
241
|
+
return new SponsorshipCampaign().fromJsonString(jsonString, options);
|
|
113
242
|
}
|
|
114
243
|
static equals(a, b) {
|
|
115
|
-
return proto3.util.equals(
|
|
244
|
+
return proto3.util.equals(SponsorshipCampaign, a, b);
|
|
116
245
|
}
|
|
117
246
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
247
|
+
SponsorshipCampaign.runtime = proto3;
|
|
248
|
+
SponsorshipCampaign.typeName = "uniswap.platformservice.v1.SponsorshipCampaign";
|
|
249
|
+
SponsorshipCampaign.fields = proto3.util.newFieldList(() => [
|
|
121
250
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
122
251
|
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
123
252
|
{ no: 3, name: "criteria", kind: "message", T: Criterion, repeated: true },
|
|
124
253
|
{ no: 4, name: "alchemy_policy_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "policyId" },
|
|
254
|
+
{ no: 5, name: "sponsor_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
255
|
+
{ no: 6, name: "sponsor_logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
125
256
|
]);
|
|
126
257
|
/**
|
|
127
258
|
* @generated from message uniswap.platformservice.v1.Criterion
|