@uniswap/client-platform-service 0.0.20 → 0.0.21
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 +118 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_pb.js +133 -1
- 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
|
*/
|
|
@@ -84,6 +84,19 @@ export declare class Campaign extends Message<Campaign> {
|
|
|
84
84
|
* @generated from field: repeated uniswap.platformservice.v1.Criterion criteria = 3;
|
|
85
85
|
*/
|
|
86
86
|
criteria: Criterion[];
|
|
87
|
+
/**
|
|
88
|
+
* @generated from oneof uniswap.platformservice.v1.Campaign.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
|
+
};
|
|
87
100
|
constructor(data?: PartialMessage<Campaign>);
|
|
88
101
|
static readonly runtime: typeof proto3;
|
|
89
102
|
static readonly typeName = "uniswap.platformservice.v1.Campaign";
|
|
@@ -319,3 +332,107 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
|
319
332
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BridgeQuote;
|
|
320
333
|
static equals(a: BridgeQuote | PlainMessage<BridgeQuote> | undefined, b: BridgeQuote | PlainMessage<BridgeQuote> | undefined): boolean;
|
|
321
334
|
}
|
|
335
|
+
/**
|
|
336
|
+
* Standard JSON-RPC envelope for paymaster-only methods.
|
|
337
|
+
*
|
|
338
|
+
* `method` is restricted to the paymaster RPC family — anything outside this
|
|
339
|
+
* allow-list is rejected at the BL layer:
|
|
340
|
+
* - pm_getPaymasterStubData (EIP-7677)
|
|
341
|
+
* - pm_getPaymasterData (EIP-7677)
|
|
342
|
+
* - pm_sponsorUserOperation (Pimlico combined sponsor + sign)
|
|
343
|
+
* - alchemy_requestGasAndPaymasterAndData (Alchemy combined)
|
|
344
|
+
* - additional vendor methods may be added; keep the list in BL.
|
|
345
|
+
*
|
|
346
|
+
* Field semantics match unirpc-v2 UniRpcRequest:
|
|
347
|
+
* - `id` is `optional int32` so id=0 survives proto3 JSON serialization
|
|
348
|
+
* (default scalars get dropped without explicit presence; viem's HTTP
|
|
349
|
+
* transport starts numbering at 0, breaking id correlation otherwise).
|
|
350
|
+
*
|
|
351
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcCallRequest
|
|
352
|
+
*/
|
|
353
|
+
export declare class PaymasterRpcCallRequest extends Message<PaymasterRpcCallRequest> {
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: string jsonrpc = 1;
|
|
356
|
+
*/
|
|
357
|
+
jsonrpc: string;
|
|
358
|
+
/**
|
|
359
|
+
* @generated from field: optional int32 id = 2;
|
|
360
|
+
*/
|
|
361
|
+
id?: number;
|
|
362
|
+
/**
|
|
363
|
+
* @generated from field: string method = 3;
|
|
364
|
+
*/
|
|
365
|
+
method: string;
|
|
366
|
+
/**
|
|
367
|
+
* @generated from field: google.protobuf.Value params = 4;
|
|
368
|
+
*/
|
|
369
|
+
params?: Value;
|
|
370
|
+
constructor(data?: PartialMessage<PaymasterRpcCallRequest>);
|
|
371
|
+
static readonly runtime: typeof proto3;
|
|
372
|
+
static readonly typeName = "uniswap.platformservice.v1.PaymasterRpcCallRequest";
|
|
373
|
+
static readonly fields: FieldList;
|
|
374
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymasterRpcCallRequest;
|
|
375
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymasterRpcCallRequest;
|
|
376
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterRpcCallRequest;
|
|
377
|
+
static equals(a: PaymasterRpcCallRequest | PlainMessage<PaymasterRpcCallRequest> | undefined, b: PaymasterRpcCallRequest | PlainMessage<PaymasterRpcCallRequest> | undefined): boolean;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcCallResponse
|
|
381
|
+
*/
|
|
382
|
+
export declare class PaymasterRpcCallResponse extends Message<PaymasterRpcCallResponse> {
|
|
383
|
+
/**
|
|
384
|
+
* @generated from field: string jsonrpc = 1;
|
|
385
|
+
*/
|
|
386
|
+
jsonrpc: string;
|
|
387
|
+
/**
|
|
388
|
+
* @generated from field: optional int32 id = 2;
|
|
389
|
+
*/
|
|
390
|
+
id?: number;
|
|
391
|
+
/**
|
|
392
|
+
* @generated from field: google.protobuf.Value result = 3;
|
|
393
|
+
*/
|
|
394
|
+
result?: Value;
|
|
395
|
+
/**
|
|
396
|
+
* @generated from field: uniswap.platformservice.v1.PaymasterRpcError error = 4;
|
|
397
|
+
*/
|
|
398
|
+
error?: PaymasterRpcError;
|
|
399
|
+
constructor(data?: PartialMessage<PaymasterRpcCallResponse>);
|
|
400
|
+
static readonly runtime: typeof proto3;
|
|
401
|
+
static readonly typeName = "uniswap.platformservice.v1.PaymasterRpcCallResponse";
|
|
402
|
+
static readonly fields: FieldList;
|
|
403
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymasterRpcCallResponse;
|
|
404
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymasterRpcCallResponse;
|
|
405
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterRpcCallResponse;
|
|
406
|
+
static equals(a: PaymasterRpcCallResponse | PlainMessage<PaymasterRpcCallResponse> | undefined, b: PaymasterRpcCallResponse | PlainMessage<PaymasterRpcCallResponse> | undefined): boolean;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* JSON-RPC error object — code/message/data mirror the spec.
|
|
410
|
+
* `code` ranges:
|
|
411
|
+
* -32700 .. -32603 reserved JSON-RPC parse / invalid-request errors
|
|
412
|
+
* -32000 .. -32099 application-defined server errors (sponsorship denied,
|
|
413
|
+
* campaign exhausted, calldata mismatch, etc.)
|
|
414
|
+
*
|
|
415
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcError
|
|
416
|
+
*/
|
|
417
|
+
export declare class PaymasterRpcError extends Message<PaymasterRpcError> {
|
|
418
|
+
/**
|
|
419
|
+
* @generated from field: int32 code = 1;
|
|
420
|
+
*/
|
|
421
|
+
code: number;
|
|
422
|
+
/**
|
|
423
|
+
* @generated from field: string message = 2;
|
|
424
|
+
*/
|
|
425
|
+
message: string;
|
|
426
|
+
/**
|
|
427
|
+
* @generated from field: google.protobuf.Value data = 3;
|
|
428
|
+
*/
|
|
429
|
+
data?: Value;
|
|
430
|
+
constructor(data?: PartialMessage<PaymasterRpcError>);
|
|
431
|
+
static readonly runtime: typeof proto3;
|
|
432
|
+
static readonly typeName = "uniswap.platformservice.v1.PaymasterRpcError";
|
|
433
|
+
static readonly fields: FieldList;
|
|
434
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymasterRpcError;
|
|
435
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymasterRpcError;
|
|
436
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterRpcError;
|
|
437
|
+
static equals(a: PaymasterRpcError | PlainMessage<PaymasterRpcError> | undefined, b: PaymasterRpcError | PlainMessage<PaymasterRpcError> | undefined): boolean;
|
|
438
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -96,6 +96,10 @@ export class Campaign extends Message {
|
|
|
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.Campaign.policyId
|
|
101
|
+
*/
|
|
102
|
+
this.policyId = { case: undefined };
|
|
99
103
|
proto3.util.initPartial(data, this);
|
|
100
104
|
}
|
|
101
105
|
static fromBinary(bytes, options) {
|
|
@@ -117,6 +121,7 @@ Campaign.fields = proto3.util.newFieldList(() => [
|
|
|
117
121
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
118
122
|
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
119
123
|
{ no: 3, name: "criteria", kind: "message", T: Criterion, repeated: true },
|
|
124
|
+
{ no: 4, name: "alchemy_policy_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "policyId" },
|
|
120
125
|
]);
|
|
121
126
|
/**
|
|
122
127
|
* @generated from message uniswap.platformservice.v1.Criterion
|
|
@@ -427,3 +432,130 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
|
|
|
427
432
|
{ no: 4, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
428
433
|
{ no: 5, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
429
434
|
]);
|
|
435
|
+
/**
|
|
436
|
+
* Standard JSON-RPC envelope for paymaster-only methods.
|
|
437
|
+
*
|
|
438
|
+
* `method` is restricted to the paymaster RPC family — anything outside this
|
|
439
|
+
* allow-list is rejected at the BL layer:
|
|
440
|
+
* - pm_getPaymasterStubData (EIP-7677)
|
|
441
|
+
* - pm_getPaymasterData (EIP-7677)
|
|
442
|
+
* - pm_sponsorUserOperation (Pimlico combined sponsor + sign)
|
|
443
|
+
* - alchemy_requestGasAndPaymasterAndData (Alchemy combined)
|
|
444
|
+
* - additional vendor methods may be added; keep the list in BL.
|
|
445
|
+
*
|
|
446
|
+
* Field semantics match unirpc-v2 UniRpcRequest:
|
|
447
|
+
* - `id` is `optional int32` so id=0 survives proto3 JSON serialization
|
|
448
|
+
* (default scalars get dropped without explicit presence; viem's HTTP
|
|
449
|
+
* transport starts numbering at 0, breaking id correlation otherwise).
|
|
450
|
+
*
|
|
451
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcCallRequest
|
|
452
|
+
*/
|
|
453
|
+
export class PaymasterRpcCallRequest extends Message {
|
|
454
|
+
constructor(data) {
|
|
455
|
+
super();
|
|
456
|
+
/**
|
|
457
|
+
* @generated from field: string jsonrpc = 1;
|
|
458
|
+
*/
|
|
459
|
+
this.jsonrpc = "";
|
|
460
|
+
/**
|
|
461
|
+
* @generated from field: string method = 3;
|
|
462
|
+
*/
|
|
463
|
+
this.method = "";
|
|
464
|
+
proto3.util.initPartial(data, this);
|
|
465
|
+
}
|
|
466
|
+
static fromBinary(bytes, options) {
|
|
467
|
+
return new PaymasterRpcCallRequest().fromBinary(bytes, options);
|
|
468
|
+
}
|
|
469
|
+
static fromJson(jsonValue, options) {
|
|
470
|
+
return new PaymasterRpcCallRequest().fromJson(jsonValue, options);
|
|
471
|
+
}
|
|
472
|
+
static fromJsonString(jsonString, options) {
|
|
473
|
+
return new PaymasterRpcCallRequest().fromJsonString(jsonString, options);
|
|
474
|
+
}
|
|
475
|
+
static equals(a, b) {
|
|
476
|
+
return proto3.util.equals(PaymasterRpcCallRequest, a, b);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
PaymasterRpcCallRequest.runtime = proto3;
|
|
480
|
+
PaymasterRpcCallRequest.typeName = "uniswap.platformservice.v1.PaymasterRpcCallRequest";
|
|
481
|
+
PaymasterRpcCallRequest.fields = proto3.util.newFieldList(() => [
|
|
482
|
+
{ no: 1, name: "jsonrpc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
483
|
+
{ no: 2, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
484
|
+
{ no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
485
|
+
{ no: 4, name: "params", kind: "message", T: Value },
|
|
486
|
+
]);
|
|
487
|
+
/**
|
|
488
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcCallResponse
|
|
489
|
+
*/
|
|
490
|
+
export class PaymasterRpcCallResponse extends Message {
|
|
491
|
+
constructor(data) {
|
|
492
|
+
super();
|
|
493
|
+
/**
|
|
494
|
+
* @generated from field: string jsonrpc = 1;
|
|
495
|
+
*/
|
|
496
|
+
this.jsonrpc = "";
|
|
497
|
+
proto3.util.initPartial(data, this);
|
|
498
|
+
}
|
|
499
|
+
static fromBinary(bytes, options) {
|
|
500
|
+
return new PaymasterRpcCallResponse().fromBinary(bytes, options);
|
|
501
|
+
}
|
|
502
|
+
static fromJson(jsonValue, options) {
|
|
503
|
+
return new PaymasterRpcCallResponse().fromJson(jsonValue, options);
|
|
504
|
+
}
|
|
505
|
+
static fromJsonString(jsonString, options) {
|
|
506
|
+
return new PaymasterRpcCallResponse().fromJsonString(jsonString, options);
|
|
507
|
+
}
|
|
508
|
+
static equals(a, b) {
|
|
509
|
+
return proto3.util.equals(PaymasterRpcCallResponse, a, b);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
PaymasterRpcCallResponse.runtime = proto3;
|
|
513
|
+
PaymasterRpcCallResponse.typeName = "uniswap.platformservice.v1.PaymasterRpcCallResponse";
|
|
514
|
+
PaymasterRpcCallResponse.fields = proto3.util.newFieldList(() => [
|
|
515
|
+
{ no: 1, name: "jsonrpc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
516
|
+
{ no: 2, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
517
|
+
{ no: 3, name: "result", kind: "message", T: Value },
|
|
518
|
+
{ no: 4, name: "error", kind: "message", T: PaymasterRpcError },
|
|
519
|
+
]);
|
|
520
|
+
/**
|
|
521
|
+
* JSON-RPC error object — code/message/data mirror the spec.
|
|
522
|
+
* `code` ranges:
|
|
523
|
+
* -32700 .. -32603 reserved JSON-RPC parse / invalid-request errors
|
|
524
|
+
* -32000 .. -32099 application-defined server errors (sponsorship denied,
|
|
525
|
+
* campaign exhausted, calldata mismatch, etc.)
|
|
526
|
+
*
|
|
527
|
+
* @generated from message uniswap.platformservice.v1.PaymasterRpcError
|
|
528
|
+
*/
|
|
529
|
+
export class PaymasterRpcError extends Message {
|
|
530
|
+
constructor(data) {
|
|
531
|
+
super();
|
|
532
|
+
/**
|
|
533
|
+
* @generated from field: int32 code = 1;
|
|
534
|
+
*/
|
|
535
|
+
this.code = 0;
|
|
536
|
+
/**
|
|
537
|
+
* @generated from field: string message = 2;
|
|
538
|
+
*/
|
|
539
|
+
this.message = "";
|
|
540
|
+
proto3.util.initPartial(data, this);
|
|
541
|
+
}
|
|
542
|
+
static fromBinary(bytes, options) {
|
|
543
|
+
return new PaymasterRpcError().fromBinary(bytes, options);
|
|
544
|
+
}
|
|
545
|
+
static fromJson(jsonValue, options) {
|
|
546
|
+
return new PaymasterRpcError().fromJson(jsonValue, options);
|
|
547
|
+
}
|
|
548
|
+
static fromJsonString(jsonString, options) {
|
|
549
|
+
return new PaymasterRpcError().fromJsonString(jsonString, options);
|
|
550
|
+
}
|
|
551
|
+
static equals(a, b) {
|
|
552
|
+
return proto3.util.equals(PaymasterRpcError, a, b);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
PaymasterRpcError.runtime = proto3;
|
|
556
|
+
PaymasterRpcError.typeName = "uniswap.platformservice.v1.PaymasterRpcError";
|
|
557
|
+
PaymasterRpcError.fields = proto3.util.newFieldList(() => [
|
|
558
|
+
{ no: 1, name: "code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
559
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
560
|
+
{ no: 3, name: "data", kind: "message", T: Value },
|
|
561
|
+
]);
|