@uniswap/client-platform-service 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,8 +6,8 @@ import { Message, proto3, Timestamp, Value } from "@bufbuild/protobuf";
|
|
|
6
6
|
export declare class ListEligibleGasFeeSponsorshipCampaignsRequest extends Message<ListEligibleGasFeeSponsorshipCampaignsRequest> {
|
|
7
7
|
/**
|
|
8
8
|
* The user-intended on-chain action being evaluated for sponsorship.
|
|
9
|
-
* Variants cover swap/wrap/bridge today; additional types such as
|
|
10
|
-
* provision will be added as new cases.
|
|
9
|
+
* Variants cover swap/wrap/bridge/approval today; additional types such as
|
|
10
|
+
* liquidity provision will be added as new cases.
|
|
11
11
|
*
|
|
12
12
|
* @generated from oneof uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest.intent
|
|
13
13
|
*/
|
|
@@ -29,6 +29,12 @@ export declare class ListEligibleGasFeeSponsorshipCampaignsRequest extends Messa
|
|
|
29
29
|
*/
|
|
30
30
|
value: BridgeQuote;
|
|
31
31
|
case: "bridgeQuote";
|
|
32
|
+
} | {
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: uniswap.platformservice.v1.ApprovalIntent approval_intent = 4;
|
|
35
|
+
*/
|
|
36
|
+
value: ApprovalIntent;
|
|
37
|
+
case: "approvalIntent";
|
|
32
38
|
} | {
|
|
33
39
|
case: undefined;
|
|
34
40
|
value?: undefined;
|
|
@@ -424,6 +430,40 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
|
424
430
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BridgeQuote;
|
|
425
431
|
static equals(a: BridgeQuote | PlainMessage<BridgeQuote> | undefined, b: BridgeQuote | PlainMessage<BridgeQuote> | undefined): boolean;
|
|
426
432
|
}
|
|
433
|
+
/**
|
|
434
|
+
* An ERC-20 approval being evaluated for sponsorship — the gasless precursor
|
|
435
|
+
* to a sponsored swap. Always same-chain (a token approval can't cross
|
|
436
|
+
* chains). `spender` is the contract being granted the allowance (e.g. the
|
|
437
|
+
* Universal Router or Permit2).
|
|
438
|
+
*
|
|
439
|
+
* @generated from message uniswap.platformservice.v1.ApprovalIntent
|
|
440
|
+
*/
|
|
441
|
+
export declare class ApprovalIntent extends Message<ApprovalIntent> {
|
|
442
|
+
/**
|
|
443
|
+
* @generated from field: uint32 chain_id = 1;
|
|
444
|
+
*/
|
|
445
|
+
chainId: number;
|
|
446
|
+
/**
|
|
447
|
+
* @generated from field: string swapper = 2;
|
|
448
|
+
*/
|
|
449
|
+
swapper: string;
|
|
450
|
+
/**
|
|
451
|
+
* @generated from field: string token = 3;
|
|
452
|
+
*/
|
|
453
|
+
token: string;
|
|
454
|
+
/**
|
|
455
|
+
* @generated from field: string spender = 4;
|
|
456
|
+
*/
|
|
457
|
+
spender: string;
|
|
458
|
+
constructor(data?: PartialMessage<ApprovalIntent>);
|
|
459
|
+
static readonly runtime: typeof proto3;
|
|
460
|
+
static readonly typeName = "uniswap.platformservice.v1.ApprovalIntent";
|
|
461
|
+
static readonly fields: FieldList;
|
|
462
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApprovalIntent;
|
|
463
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApprovalIntent;
|
|
464
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApprovalIntent;
|
|
465
|
+
static equals(a: ApprovalIntent | PlainMessage<ApprovalIntent> | undefined, b: ApprovalIntent | PlainMessage<ApprovalIntent> | undefined): boolean;
|
|
466
|
+
}
|
|
427
467
|
/**
|
|
428
468
|
* Standard JSON-RPC envelope for paymaster-only methods.
|
|
429
469
|
*
|
|
@@ -11,8 +11,8 @@ export class ListEligibleGasFeeSponsorshipCampaignsRequest extends Message {
|
|
|
11
11
|
super();
|
|
12
12
|
/**
|
|
13
13
|
* The user-intended on-chain action being evaluated for sponsorship.
|
|
14
|
-
* Variants cover swap/wrap/bridge today; additional types such as
|
|
15
|
-
* provision will be added as new cases.
|
|
14
|
+
* Variants cover swap/wrap/bridge/approval today; additional types such as
|
|
15
|
+
* liquidity provision will be added as new cases.
|
|
16
16
|
*
|
|
17
17
|
* @generated from oneof uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest.intent
|
|
18
18
|
*/
|
|
@@ -38,6 +38,7 @@ ListEligibleGasFeeSponsorshipCampaignsRequest.fields = proto3.util.newFieldList(
|
|
|
38
38
|
{ no: 1, name: "classic_quote", kind: "message", T: ClassicQuote, oneof: "intent" },
|
|
39
39
|
{ no: 2, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "intent" },
|
|
40
40
|
{ no: 3, name: "bridge_quote", kind: "message", T: BridgeQuote, oneof: "intent" },
|
|
41
|
+
{ no: 4, name: "approval_intent", kind: "message", T: ApprovalIntent, oneof: "intent" },
|
|
41
42
|
]);
|
|
42
43
|
/**
|
|
43
44
|
* @generated from message uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsResponse
|
|
@@ -563,6 +564,56 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
|
|
|
563
564
|
{ no: 4, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
564
565
|
{ no: 5, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
565
566
|
]);
|
|
567
|
+
/**
|
|
568
|
+
* An ERC-20 approval being evaluated for sponsorship — the gasless precursor
|
|
569
|
+
* to a sponsored swap. Always same-chain (a token approval can't cross
|
|
570
|
+
* chains). `spender` is the contract being granted the allowance (e.g. the
|
|
571
|
+
* Universal Router or Permit2).
|
|
572
|
+
*
|
|
573
|
+
* @generated from message uniswap.platformservice.v1.ApprovalIntent
|
|
574
|
+
*/
|
|
575
|
+
export class ApprovalIntent extends Message {
|
|
576
|
+
constructor(data) {
|
|
577
|
+
super();
|
|
578
|
+
/**
|
|
579
|
+
* @generated from field: uint32 chain_id = 1;
|
|
580
|
+
*/
|
|
581
|
+
this.chainId = 0;
|
|
582
|
+
/**
|
|
583
|
+
* @generated from field: string swapper = 2;
|
|
584
|
+
*/
|
|
585
|
+
this.swapper = "";
|
|
586
|
+
/**
|
|
587
|
+
* @generated from field: string token = 3;
|
|
588
|
+
*/
|
|
589
|
+
this.token = "";
|
|
590
|
+
/**
|
|
591
|
+
* @generated from field: string spender = 4;
|
|
592
|
+
*/
|
|
593
|
+
this.spender = "";
|
|
594
|
+
proto3.util.initPartial(data, this);
|
|
595
|
+
}
|
|
596
|
+
static fromBinary(bytes, options) {
|
|
597
|
+
return new ApprovalIntent().fromBinary(bytes, options);
|
|
598
|
+
}
|
|
599
|
+
static fromJson(jsonValue, options) {
|
|
600
|
+
return new ApprovalIntent().fromJson(jsonValue, options);
|
|
601
|
+
}
|
|
602
|
+
static fromJsonString(jsonString, options) {
|
|
603
|
+
return new ApprovalIntent().fromJsonString(jsonString, options);
|
|
604
|
+
}
|
|
605
|
+
static equals(a, b) {
|
|
606
|
+
return proto3.util.equals(ApprovalIntent, a, b);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
ApprovalIntent.runtime = proto3;
|
|
610
|
+
ApprovalIntent.typeName = "uniswap.platformservice.v1.ApprovalIntent";
|
|
611
|
+
ApprovalIntent.fields = proto3.util.newFieldList(() => [
|
|
612
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
613
|
+
{ no: 2, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
614
|
+
{ no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
615
|
+
{ no: 4, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
616
|
+
]);
|
|
566
617
|
/**
|
|
567
618
|
* Standard JSON-RPC envelope for paymaster-only methods.
|
|
568
619
|
*
|