@uniswap/client-platform-service 0.0.20 → 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.
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService-GasFeeSponsorshipService_connectquery.d.ts +14 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService-GasFeeSponsorshipService_connectquery.js +14 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_connect.d.ts +10 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_connect.js +10 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_pb.d.ts +141 -12
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_pb.js +159 -13
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
2
|
+
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
|
|
5
5
|
*/
|
|
@@ -13,3 +13,16 @@ export declare const listEligibleGasFeeSponsorshipCampaigns: {
|
|
|
13
13
|
readonly typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService";
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.PaymasterRpcCall
|
|
18
|
+
*/
|
|
19
|
+
export declare const paymasterRpcCall: {
|
|
20
|
+
readonly localName: "paymasterRpcCall";
|
|
21
|
+
readonly name: "PaymasterRpcCall";
|
|
22
|
+
readonly kind: MethodKind.Unary;
|
|
23
|
+
readonly I: typeof PaymasterRpcCallRequest;
|
|
24
|
+
readonly O: typeof PaymasterRpcCallResponse;
|
|
25
|
+
readonly service: {
|
|
26
|
+
readonly typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
6
|
+
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
|
|
9
9
|
*/
|
|
@@ -17,3 +17,16 @@ export const listEligibleGasFeeSponsorshipCampaigns = {
|
|
|
17
17
|
typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService"
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.PaymasterRpcCall
|
|
22
|
+
*/
|
|
23
|
+
export const paymasterRpcCall = {
|
|
24
|
+
localName: "paymasterRpcCall",
|
|
25
|
+
name: "PaymasterRpcCall",
|
|
26
|
+
kind: MethodKind.Unary,
|
|
27
|
+
I: PaymasterRpcCallRequest,
|
|
28
|
+
O: PaymasterRpcCallResponse,
|
|
29
|
+
service: {
|
|
30
|
+
typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
1
|
+
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service uniswap.platformservice.v1.GasFeeSponsorshipService
|
|
@@ -15,5 +15,14 @@ export declare const GasFeeSponsorshipService: {
|
|
|
15
15
|
readonly O: typeof ListEligibleGasFeeSponsorshipCampaignsResponse;
|
|
16
16
|
readonly kind: MethodKind.Unary;
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.PaymasterRpcCall
|
|
20
|
+
*/
|
|
21
|
+
readonly paymasterRpcCall: {
|
|
22
|
+
readonly name: "PaymasterRpcCall";
|
|
23
|
+
readonly I: typeof PaymasterRpcCallRequest;
|
|
24
|
+
readonly O: typeof PaymasterRpcCallResponse;
|
|
25
|
+
readonly kind: MethodKind.Unary;
|
|
26
|
+
};
|
|
18
27
|
};
|
|
19
28
|
};
|
|
@@ -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 } from "./gasFeeSponsorshipService_pb.js";
|
|
5
|
+
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service uniswap.platformservice.v1.GasFeeSponsorshipService
|
|
@@ -19,5 +19,14 @@ export const GasFeeSponsorshipService = {
|
|
|
19
19
|
O: ListEligibleGasFeeSponsorshipCampaignsResponse,
|
|
20
20
|
kind: MethodKind.Unary,
|
|
21
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.PaymasterRpcCall
|
|
24
|
+
*/
|
|
25
|
+
paymasterRpcCall: {
|
|
26
|
+
name: "PaymasterRpcCall",
|
|
27
|
+
I: PaymasterRpcCallRequest,
|
|
28
|
+
O: PaymasterRpcCallResponse,
|
|
29
|
+
kind: MethodKind.Unary,
|
|
30
|
+
},
|
|
22
31
|
}
|
|
23
32
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3, Timestamp, Value } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from message uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest
|
|
5
5
|
*/
|
|
@@ -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,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.
|
|
65
|
+
* @generated from message uniswap.platformservice.v1.SponsorshipCampaign
|
|
66
66
|
*/
|
|
67
|
-
export declare class
|
|
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,19 +79,44 @@ 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.SponsorshipCampaign.policyId
|
|
89
|
+
*/
|
|
90
|
+
policyId: {
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: string alchemy_policy_id = 4;
|
|
93
|
+
*/
|
|
94
|
+
value: string;
|
|
95
|
+
case: "alchemyPolicyId";
|
|
96
|
+
} | {
|
|
97
|
+
case: undefined;
|
|
98
|
+
value?: undefined;
|
|
99
|
+
};
|
|
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>);
|
|
88
113
|
static readonly runtime: typeof proto3;
|
|
89
|
-
static readonly typeName = "uniswap.platformservice.v1.
|
|
114
|
+
static readonly typeName = "uniswap.platformservice.v1.SponsorshipCampaign";
|
|
90
115
|
static readonly fields: FieldList;
|
|
91
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
92
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
93
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
94
|
-
static equals(a:
|
|
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;
|
|
95
120
|
}
|
|
96
121
|
/**
|
|
97
122
|
* @generated from message uniswap.platformservice.v1.Criterion
|
|
@@ -319,3 +344,107 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
|
319
344
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BridgeQuote;
|
|
320
345
|
static equals(a: BridgeQuote | PlainMessage<BridgeQuote> | undefined, b: BridgeQuote | PlainMessage<BridgeQuote> | undefined): boolean;
|
|
321
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Standard JSON-RPC envelope for paymaster-only methods.
|
|
349
|
+
*
|
|
350
|
+
* `method` is restricted to the paymaster RPC family — anything outside this
|
|
351
|
+
* allow-list is rejected at the BL layer:
|
|
352
|
+
* - pm_getPaymasterStubData (EIP-7677)
|
|
353
|
+
* - pm_getPaymasterData (EIP-7677)
|
|
354
|
+
* - pm_sponsorUserOperation (Pimlico combined sponsor + sign)
|
|
355
|
+
* - alchemy_requestGasAndPaymasterAndData (Alchemy combined)
|
|
356
|
+
* - additional vendor methods may be added; keep the list in BL.
|
|
357
|
+
*
|
|
358
|
+
* Field semantics match unirpc-v2 UniRpcRequest:
|
|
359
|
+
* - `id` is `optional int32` so id=0 survives proto3 JSON serialization
|
|
360
|
+
* (default scalars get dropped without explicit presence; viem's HTTP
|
|
361
|
+
* transport starts numbering at 0, breaking id correlation otherwise).
|
|
362
|
+
*
|
|
363
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcCallRequest
|
|
364
|
+
*/
|
|
365
|
+
export declare class PaymasterRpcCallRequest extends Message<PaymasterRpcCallRequest> {
|
|
366
|
+
/**
|
|
367
|
+
* @generated from field: string jsonrpc = 1;
|
|
368
|
+
*/
|
|
369
|
+
jsonrpc: string;
|
|
370
|
+
/**
|
|
371
|
+
* @generated from field: optional int32 id = 2;
|
|
372
|
+
*/
|
|
373
|
+
id?: number;
|
|
374
|
+
/**
|
|
375
|
+
* @generated from field: string method = 3;
|
|
376
|
+
*/
|
|
377
|
+
method: string;
|
|
378
|
+
/**
|
|
379
|
+
* @generated from field: google.protobuf.Value params = 4;
|
|
380
|
+
*/
|
|
381
|
+
params?: Value;
|
|
382
|
+
constructor(data?: PartialMessage<PaymasterRpcCallRequest>);
|
|
383
|
+
static readonly runtime: typeof proto3;
|
|
384
|
+
static readonly typeName = "uniswap.platformservice.v1.PaymasterRpcCallRequest";
|
|
385
|
+
static readonly fields: FieldList;
|
|
386
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymasterRpcCallRequest;
|
|
387
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymasterRpcCallRequest;
|
|
388
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterRpcCallRequest;
|
|
389
|
+
static equals(a: PaymasterRpcCallRequest | PlainMessage<PaymasterRpcCallRequest> | undefined, b: PaymasterRpcCallRequest | PlainMessage<PaymasterRpcCallRequest> | undefined): boolean;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcCallResponse
|
|
393
|
+
*/
|
|
394
|
+
export declare class PaymasterRpcCallResponse extends Message<PaymasterRpcCallResponse> {
|
|
395
|
+
/**
|
|
396
|
+
* @generated from field: string jsonrpc = 1;
|
|
397
|
+
*/
|
|
398
|
+
jsonrpc: string;
|
|
399
|
+
/**
|
|
400
|
+
* @generated from field: optional int32 id = 2;
|
|
401
|
+
*/
|
|
402
|
+
id?: number;
|
|
403
|
+
/**
|
|
404
|
+
* @generated from field: google.protobuf.Value result = 3;
|
|
405
|
+
*/
|
|
406
|
+
result?: Value;
|
|
407
|
+
/**
|
|
408
|
+
* @generated from field: uniswap.platformservice.v1.PaymasterRpcError error = 4;
|
|
409
|
+
*/
|
|
410
|
+
error?: PaymasterRpcError;
|
|
411
|
+
constructor(data?: PartialMessage<PaymasterRpcCallResponse>);
|
|
412
|
+
static readonly runtime: typeof proto3;
|
|
413
|
+
static readonly typeName = "uniswap.platformservice.v1.PaymasterRpcCallResponse";
|
|
414
|
+
static readonly fields: FieldList;
|
|
415
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymasterRpcCallResponse;
|
|
416
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymasterRpcCallResponse;
|
|
417
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterRpcCallResponse;
|
|
418
|
+
static equals(a: PaymasterRpcCallResponse | PlainMessage<PaymasterRpcCallResponse> | undefined, b: PaymasterRpcCallResponse | PlainMessage<PaymasterRpcCallResponse> | undefined): boolean;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* JSON-RPC error object — code/message/data mirror the spec.
|
|
422
|
+
* `code` ranges:
|
|
423
|
+
* -32700 .. -32603 reserved JSON-RPC parse / invalid-request errors
|
|
424
|
+
* -32000 .. -32099 application-defined server errors (sponsorship denied,
|
|
425
|
+
* campaign exhausted, calldata mismatch, etc.)
|
|
426
|
+
*
|
|
427
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcError
|
|
428
|
+
*/
|
|
429
|
+
export declare class PaymasterRpcError extends Message<PaymasterRpcError> {
|
|
430
|
+
/**
|
|
431
|
+
* @generated from field: int32 code = 1;
|
|
432
|
+
*/
|
|
433
|
+
code: number;
|
|
434
|
+
/**
|
|
435
|
+
* @generated from field: string message = 2;
|
|
436
|
+
*/
|
|
437
|
+
message: string;
|
|
438
|
+
/**
|
|
439
|
+
* @generated from field: google.protobuf.Value data = 3;
|
|
440
|
+
*/
|
|
441
|
+
data?: Value;
|
|
442
|
+
constructor(data?: PartialMessage<PaymasterRpcError>);
|
|
443
|
+
static readonly runtime: typeof proto3;
|
|
444
|
+
static readonly typeName = "uniswap.platformservice.v1.PaymasterRpcError";
|
|
445
|
+
static readonly fields: FieldList;
|
|
446
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymasterRpcError;
|
|
447
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymasterRpcError;
|
|
448
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterRpcError;
|
|
449
|
+
static equals(a: PaymasterRpcError | PlainMessage<PaymasterRpcError> | undefined, b: PaymasterRpcError | PlainMessage<PaymasterRpcError> | undefined): boolean;
|
|
450
|
+
}
|
|
@@ -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 { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
5
|
+
import { Message, proto3, Timestamp, Value } from "@bufbuild/protobuf";
|
|
6
6
|
/**
|
|
7
7
|
* @generated from message uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest
|
|
8
8
|
*/
|
|
@@ -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,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:
|
|
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.SponsorshipCampaign
|
|
76
76
|
*/
|
|
77
|
-
export class
|
|
77
|
+
export class SponsorshipCampaign extends Message {
|
|
78
78
|
constructor(data) {
|
|
79
79
|
super();
|
|
80
80
|
/**
|
|
@@ -91,32 +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
|
+
/**
|
|
100
|
+
* @generated from oneof uniswap.platformservice.v1.SponsorshipCampaign.policyId
|
|
101
|
+
*/
|
|
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 = "";
|
|
99
115
|
proto3.util.initPartial(data, this);
|
|
100
116
|
}
|
|
101
117
|
static fromBinary(bytes, options) {
|
|
102
|
-
return new
|
|
118
|
+
return new SponsorshipCampaign().fromBinary(bytes, options);
|
|
103
119
|
}
|
|
104
120
|
static fromJson(jsonValue, options) {
|
|
105
|
-
return new
|
|
121
|
+
return new SponsorshipCampaign().fromJson(jsonValue, options);
|
|
106
122
|
}
|
|
107
123
|
static fromJsonString(jsonString, options) {
|
|
108
|
-
return new
|
|
124
|
+
return new SponsorshipCampaign().fromJsonString(jsonString, options);
|
|
109
125
|
}
|
|
110
126
|
static equals(a, b) {
|
|
111
|
-
return proto3.util.equals(
|
|
127
|
+
return proto3.util.equals(SponsorshipCampaign, a, b);
|
|
112
128
|
}
|
|
113
129
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
130
|
+
SponsorshipCampaign.runtime = proto3;
|
|
131
|
+
SponsorshipCampaign.typeName = "uniswap.platformservice.v1.SponsorshipCampaign";
|
|
132
|
+
SponsorshipCampaign.fields = proto3.util.newFieldList(() => [
|
|
117
133
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
118
134
|
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
119
135
|
{ no: 3, name: "criteria", kind: "message", T: Criterion, repeated: true },
|
|
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 */ },
|
|
120
139
|
]);
|
|
121
140
|
/**
|
|
122
141
|
* @generated from message uniswap.platformservice.v1.Criterion
|
|
@@ -427,3 +446,130 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
|
|
|
427
446
|
{ no: 4, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
428
447
|
{ no: 5, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
429
448
|
]);
|
|
449
|
+
/**
|
|
450
|
+
* Standard JSON-RPC envelope for paymaster-only methods.
|
|
451
|
+
*
|
|
452
|
+
* `method` is restricted to the paymaster RPC family — anything outside this
|
|
453
|
+
* allow-list is rejected at the BL layer:
|
|
454
|
+
* - pm_getPaymasterStubData (EIP-7677)
|
|
455
|
+
* - pm_getPaymasterData (EIP-7677)
|
|
456
|
+
* - pm_sponsorUserOperation (Pimlico combined sponsor + sign)
|
|
457
|
+
* - alchemy_requestGasAndPaymasterAndData (Alchemy combined)
|
|
458
|
+
* - additional vendor methods may be added; keep the list in BL.
|
|
459
|
+
*
|
|
460
|
+
* Field semantics match unirpc-v2 UniRpcRequest:
|
|
461
|
+
* - `id` is `optional int32` so id=0 survives proto3 JSON serialization
|
|
462
|
+
* (default scalars get dropped without explicit presence; viem's HTTP
|
|
463
|
+
* transport starts numbering at 0, breaking id correlation otherwise).
|
|
464
|
+
*
|
|
465
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcCallRequest
|
|
466
|
+
*/
|
|
467
|
+
export class PaymasterRpcCallRequest extends Message {
|
|
468
|
+
constructor(data) {
|
|
469
|
+
super();
|
|
470
|
+
/**
|
|
471
|
+
* @generated from field: string jsonrpc = 1;
|
|
472
|
+
*/
|
|
473
|
+
this.jsonrpc = "";
|
|
474
|
+
/**
|
|
475
|
+
* @generated from field: string method = 3;
|
|
476
|
+
*/
|
|
477
|
+
this.method = "";
|
|
478
|
+
proto3.util.initPartial(data, this);
|
|
479
|
+
}
|
|
480
|
+
static fromBinary(bytes, options) {
|
|
481
|
+
return new PaymasterRpcCallRequest().fromBinary(bytes, options);
|
|
482
|
+
}
|
|
483
|
+
static fromJson(jsonValue, options) {
|
|
484
|
+
return new PaymasterRpcCallRequest().fromJson(jsonValue, options);
|
|
485
|
+
}
|
|
486
|
+
static fromJsonString(jsonString, options) {
|
|
487
|
+
return new PaymasterRpcCallRequest().fromJsonString(jsonString, options);
|
|
488
|
+
}
|
|
489
|
+
static equals(a, b) {
|
|
490
|
+
return proto3.util.equals(PaymasterRpcCallRequest, a, b);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
PaymasterRpcCallRequest.runtime = proto3;
|
|
494
|
+
PaymasterRpcCallRequest.typeName = "uniswap.platformservice.v1.PaymasterRpcCallRequest";
|
|
495
|
+
PaymasterRpcCallRequest.fields = proto3.util.newFieldList(() => [
|
|
496
|
+
{ no: 1, name: "jsonrpc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
497
|
+
{ no: 2, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
498
|
+
{ no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
499
|
+
{ no: 4, name: "params", kind: "message", T: Value },
|
|
500
|
+
]);
|
|
501
|
+
/**
|
|
502
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcCallResponse
|
|
503
|
+
*/
|
|
504
|
+
export class PaymasterRpcCallResponse extends Message {
|
|
505
|
+
constructor(data) {
|
|
506
|
+
super();
|
|
507
|
+
/**
|
|
508
|
+
* @generated from field: string jsonrpc = 1;
|
|
509
|
+
*/
|
|
510
|
+
this.jsonrpc = "";
|
|
511
|
+
proto3.util.initPartial(data, this);
|
|
512
|
+
}
|
|
513
|
+
static fromBinary(bytes, options) {
|
|
514
|
+
return new PaymasterRpcCallResponse().fromBinary(bytes, options);
|
|
515
|
+
}
|
|
516
|
+
static fromJson(jsonValue, options) {
|
|
517
|
+
return new PaymasterRpcCallResponse().fromJson(jsonValue, options);
|
|
518
|
+
}
|
|
519
|
+
static fromJsonString(jsonString, options) {
|
|
520
|
+
return new PaymasterRpcCallResponse().fromJsonString(jsonString, options);
|
|
521
|
+
}
|
|
522
|
+
static equals(a, b) {
|
|
523
|
+
return proto3.util.equals(PaymasterRpcCallResponse, a, b);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
PaymasterRpcCallResponse.runtime = proto3;
|
|
527
|
+
PaymasterRpcCallResponse.typeName = "uniswap.platformservice.v1.PaymasterRpcCallResponse";
|
|
528
|
+
PaymasterRpcCallResponse.fields = proto3.util.newFieldList(() => [
|
|
529
|
+
{ no: 1, name: "jsonrpc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
530
|
+
{ no: 2, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
531
|
+
{ no: 3, name: "result", kind: "message", T: Value },
|
|
532
|
+
{ no: 4, name: "error", kind: "message", T: PaymasterRpcError },
|
|
533
|
+
]);
|
|
534
|
+
/**
|
|
535
|
+
* JSON-RPC error object — code/message/data mirror the spec.
|
|
536
|
+
* `code` ranges:
|
|
537
|
+
* -32700 .. -32603 reserved JSON-RPC parse / invalid-request errors
|
|
538
|
+
* -32000 .. -32099 application-defined server errors (sponsorship denied,
|
|
539
|
+
* campaign exhausted, calldata mismatch, etc.)
|
|
540
|
+
*
|
|
541
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcError
|
|
542
|
+
*/
|
|
543
|
+
export class PaymasterRpcError extends Message {
|
|
544
|
+
constructor(data) {
|
|
545
|
+
super();
|
|
546
|
+
/**
|
|
547
|
+
* @generated from field: int32 code = 1;
|
|
548
|
+
*/
|
|
549
|
+
this.code = 0;
|
|
550
|
+
/**
|
|
551
|
+
* @generated from field: string message = 2;
|
|
552
|
+
*/
|
|
553
|
+
this.message = "";
|
|
554
|
+
proto3.util.initPartial(data, this);
|
|
555
|
+
}
|
|
556
|
+
static fromBinary(bytes, options) {
|
|
557
|
+
return new PaymasterRpcError().fromBinary(bytes, options);
|
|
558
|
+
}
|
|
559
|
+
static fromJson(jsonValue, options) {
|
|
560
|
+
return new PaymasterRpcError().fromJson(jsonValue, options);
|
|
561
|
+
}
|
|
562
|
+
static fromJsonString(jsonString, options) {
|
|
563
|
+
return new PaymasterRpcError().fromJsonString(jsonString, options);
|
|
564
|
+
}
|
|
565
|
+
static equals(a, b) {
|
|
566
|
+
return proto3.util.equals(PaymasterRpcError, a, b);
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
PaymasterRpcError.runtime = proto3;
|
|
570
|
+
PaymasterRpcError.typeName = "uniswap.platformservice.v1.PaymasterRpcError";
|
|
571
|
+
PaymasterRpcError.fields = proto3.util.newFieldList(() => [
|
|
572
|
+
{ no: 1, name: "code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
573
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
574
|
+
{ no: 3, name: "data", kind: "message", T: Value },
|
|
575
|
+
]);
|