@uniswap/client-platform-service 0.0.17 → 0.0.20
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/apiKeyService_pb.d.ts +26 -2
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +11 -5
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService-GasFeeSponsorshipService_connectquery.d.ts +15 -0
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService-GasFeeSponsorshipService_connectquery.js +19 -0
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_connect.d.ts +19 -0
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_connect.js +23 -0
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_pb.d.ts +321 -0
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_pb.js +429 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +3 -2
- package/dist/uniswap/platformservice/v1/organizationService_pb.js +3 -2
- package/package.json +1 -1
|
@@ -163,6 +163,13 @@ export declare class IntrospectResponse extends Message<IntrospectResponse> {
|
|
|
163
163
|
* @generated from field: optional uniswap.platformservice.v1.RateLimitConfig rate_limit_config = 7;
|
|
164
164
|
*/
|
|
165
165
|
rateLimitConfig?: RateLimitConfig;
|
|
166
|
+
/**
|
|
167
|
+
* Customer name from the API-Customer table (e.g. "web", "Talos", "e2e-ci").
|
|
168
|
+
* Forwarded to downstream services via x-common-data header.
|
|
169
|
+
*
|
|
170
|
+
* @generated from field: optional string name = 8;
|
|
171
|
+
*/
|
|
172
|
+
name?: string;
|
|
166
173
|
constructor(data?: PartialMessage<IntrospectResponse>);
|
|
167
174
|
static readonly runtime: typeof proto3;
|
|
168
175
|
static readonly typeName = "uniswap.platformservice.v1.IntrospectResponse";
|
|
@@ -363,6 +370,14 @@ export declare class ApiKeyDataStruct extends Message<ApiKeyDataStruct> {
|
|
|
363
370
|
* @generated from field: google.protobuf.Timestamp creation_time = 9;
|
|
364
371
|
*/
|
|
365
372
|
creationTime?: Timestamp;
|
|
373
|
+
/**
|
|
374
|
+
* @generated from field: optional string analytics_id = 10;
|
|
375
|
+
*/
|
|
376
|
+
analyticsId?: string;
|
|
377
|
+
/**
|
|
378
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyTier tier = 11;
|
|
379
|
+
*/
|
|
380
|
+
tier?: ApiKeyTier;
|
|
366
381
|
constructor(data?: PartialMessage<ApiKeyDataStruct>);
|
|
367
382
|
static readonly runtime: typeof proto3;
|
|
368
383
|
static readonly typeName = "uniswap.platformservice.v1.ApiKeyDataStruct";
|
|
@@ -511,6 +526,7 @@ export declare class InternalModifyApiKeyResponse extends Message<InternalModify
|
|
|
511
526
|
/**
|
|
512
527
|
* Internal Modify API Key V2 request/response (VPN-restricted admin endpoint)
|
|
513
528
|
* Identifies key by hashed_api_key; no cap on rate_limit_config (admin override).
|
|
529
|
+
* tier is optional; if omitted, the existing tier is preserved.
|
|
514
530
|
*
|
|
515
531
|
* @generated from message uniswap.platformservice.v1.InternalModifyApiKeyV2Request
|
|
516
532
|
*/
|
|
@@ -520,9 +536,13 @@ export declare class InternalModifyApiKeyV2Request extends Message<InternalModif
|
|
|
520
536
|
*/
|
|
521
537
|
hashedApiKey: string;
|
|
522
538
|
/**
|
|
523
|
-
* @generated from field: int32 target_rps = 2;
|
|
539
|
+
* @generated from field: optional int32 target_rps = 2;
|
|
540
|
+
*/
|
|
541
|
+
targetRps?: number;
|
|
542
|
+
/**
|
|
543
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyTier tier = 3;
|
|
524
544
|
*/
|
|
525
|
-
|
|
545
|
+
tier?: ApiKeyTier;
|
|
526
546
|
constructor(data?: PartialMessage<InternalModifyApiKeyV2Request>);
|
|
527
547
|
static readonly runtime: typeof proto3;
|
|
528
548
|
static readonly typeName = "uniswap.platformservice.v1.InternalModifyApiKeyV2Request";
|
|
@@ -666,6 +686,10 @@ export declare class InternalMigrateRequest extends Message<InternalMigrateReque
|
|
|
666
686
|
* @generated from field: string email = 2;
|
|
667
687
|
*/
|
|
668
688
|
email: string;
|
|
689
|
+
/**
|
|
690
|
+
* @generated from field: string raw_api_key = 3;
|
|
691
|
+
*/
|
|
692
|
+
rawApiKey: string;
|
|
669
693
|
constructor(data?: PartialMessage<InternalMigrateRequest>);
|
|
670
694
|
static readonly runtime: typeof proto3;
|
|
671
695
|
static readonly typeName = "uniswap.platformservice.v1.InternalMigrateRequest";
|
|
@@ -248,6 +248,7 @@ IntrospectResponse.fields = proto3.util.newFieldList(() => [
|
|
|
248
248
|
{ no: 5, name: "analytics_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
249
249
|
{ no: 6, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier) },
|
|
250
250
|
{ no: 7, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
|
|
251
|
+
{ no: 8, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
251
252
|
]);
|
|
252
253
|
/**
|
|
253
254
|
* Create API Key request/response
|
|
@@ -511,6 +512,8 @@ ApiKeyDataStruct.fields = proto3.util.newFieldList(() => [
|
|
|
511
512
|
{ no: 7, name: "rate_limit_config", kind: "message", T: RateLimitConfig },
|
|
512
513
|
{ no: 8, name: "last_modified_at", kind: "message", T: Timestamp },
|
|
513
514
|
{ no: 9, name: "creation_time", kind: "message", T: Timestamp },
|
|
515
|
+
{ no: 10, name: "analytics_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
516
|
+
{ no: 11, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier), opt: true },
|
|
514
517
|
]);
|
|
515
518
|
/**
|
|
516
519
|
* @generated from message uniswap.platformservice.v1.ListApiKeyRequest
|
|
@@ -720,6 +723,7 @@ InternalModifyApiKeyResponse.fields = proto3.util.newFieldList(() => []);
|
|
|
720
723
|
/**
|
|
721
724
|
* Internal Modify API Key V2 request/response (VPN-restricted admin endpoint)
|
|
722
725
|
* Identifies key by hashed_api_key; no cap on rate_limit_config (admin override).
|
|
726
|
+
* tier is optional; if omitted, the existing tier is preserved.
|
|
723
727
|
*
|
|
724
728
|
* @generated from message uniswap.platformservice.v1.InternalModifyApiKeyV2Request
|
|
725
729
|
*/
|
|
@@ -730,10 +734,6 @@ export class InternalModifyApiKeyV2Request extends Message {
|
|
|
730
734
|
* @generated from field: string hashed_api_key = 1;
|
|
731
735
|
*/
|
|
732
736
|
this.hashedApiKey = "";
|
|
733
|
-
/**
|
|
734
|
-
* @generated from field: int32 target_rps = 2;
|
|
735
|
-
*/
|
|
736
|
-
this.targetRps = 0;
|
|
737
737
|
proto3.util.initPartial(data, this);
|
|
738
738
|
}
|
|
739
739
|
static fromBinary(bytes, options) {
|
|
@@ -753,7 +753,8 @@ InternalModifyApiKeyV2Request.runtime = proto3;
|
|
|
753
753
|
InternalModifyApiKeyV2Request.typeName = "uniswap.platformservice.v1.InternalModifyApiKeyV2Request";
|
|
754
754
|
InternalModifyApiKeyV2Request.fields = proto3.util.newFieldList(() => [
|
|
755
755
|
{ no: 1, name: "hashed_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
756
|
-
{ no: 2, name: "target_rps", kind: "scalar", T: 5 /* ScalarType.INT32
|
|
756
|
+
{ no: 2, name: "target_rps", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
757
|
+
{ no: 3, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier), opt: true },
|
|
757
758
|
]);
|
|
758
759
|
/**
|
|
759
760
|
* @generated from message uniswap.platformservice.v1.InternalModifyApiKeyV2Response
|
|
@@ -977,6 +978,10 @@ export class InternalMigrateRequest extends Message {
|
|
|
977
978
|
* @generated from field: string email = 2;
|
|
978
979
|
*/
|
|
979
980
|
this.email = "";
|
|
981
|
+
/**
|
|
982
|
+
* @generated from field: string raw_api_key = 3;
|
|
983
|
+
*/
|
|
984
|
+
this.rawApiKey = "";
|
|
980
985
|
proto3.util.initPartial(data, this);
|
|
981
986
|
}
|
|
982
987
|
static fromBinary(bytes, options) {
|
|
@@ -997,6 +1002,7 @@ InternalMigrateRequest.typeName = "uniswap.platformservice.v1.InternalMigrateReq
|
|
|
997
1002
|
InternalMigrateRequest.fields = proto3.util.newFieldList(() => [
|
|
998
1003
|
{ no: 1, name: "analytics_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
999
1004
|
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1005
|
+
{ no: 3, name: "raw_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1000
1006
|
]);
|
|
1001
1007
|
/**
|
|
1002
1008
|
* @generated from message uniswap.platformservice.v1.InternalMigrateResponse
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
|
|
5
|
+
*/
|
|
6
|
+
export declare const listEligibleGasFeeSponsorshipCampaigns: {
|
|
7
|
+
readonly localName: "listEligibleGasFeeSponsorshipCampaigns";
|
|
8
|
+
readonly name: "ListEligibleGasFeeSponsorshipCampaigns";
|
|
9
|
+
readonly kind: MethodKind.Unary;
|
|
10
|
+
readonly I: typeof ListEligibleGasFeeSponsorshipCampaignsRequest;
|
|
11
|
+
readonly O: typeof ListEligibleGasFeeSponsorshipCampaignsResponse;
|
|
12
|
+
readonly service: {
|
|
13
|
+
readonly typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/gasFeeSponsorshipService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
|
|
9
|
+
*/
|
|
10
|
+
export const listEligibleGasFeeSponsorshipCampaigns = {
|
|
11
|
+
localName: "listEligibleGasFeeSponsorshipCampaigns",
|
|
12
|
+
name: "ListEligibleGasFeeSponsorshipCampaigns",
|
|
13
|
+
kind: MethodKind.Unary,
|
|
14
|
+
I: ListEligibleGasFeeSponsorshipCampaignsRequest,
|
|
15
|
+
O: ListEligibleGasFeeSponsorshipCampaignsResponse,
|
|
16
|
+
service: {
|
|
17
|
+
typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from service uniswap.platformservice.v1.GasFeeSponsorshipService
|
|
5
|
+
*/
|
|
6
|
+
export declare const GasFeeSponsorshipService: {
|
|
7
|
+
readonly typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
|
|
11
|
+
*/
|
|
12
|
+
readonly listEligibleGasFeeSponsorshipCampaigns: {
|
|
13
|
+
readonly name: "ListEligibleGasFeeSponsorshipCampaigns";
|
|
14
|
+
readonly I: typeof ListEligibleGasFeeSponsorshipCampaignsRequest;
|
|
15
|
+
readonly O: typeof ListEligibleGasFeeSponsorshipCampaignsResponse;
|
|
16
|
+
readonly kind: MethodKind.Unary;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/gasFeeSponsorshipService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from service uniswap.platformservice.v1.GasFeeSponsorshipService
|
|
9
|
+
*/
|
|
10
|
+
export const GasFeeSponsorshipService = {
|
|
11
|
+
typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService",
|
|
12
|
+
methods: {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
|
|
15
|
+
*/
|
|
16
|
+
listEligibleGasFeeSponsorshipCampaigns: {
|
|
17
|
+
name: "ListEligibleGasFeeSponsorshipCampaigns",
|
|
18
|
+
I: ListEligibleGasFeeSponsorshipCampaignsRequest,
|
|
19
|
+
O: ListEligibleGasFeeSponsorshipCampaignsResponse,
|
|
20
|
+
kind: MethodKind.Unary,
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest
|
|
5
|
+
*/
|
|
6
|
+
export declare class ListEligibleGasFeeSponsorshipCampaignsRequest extends Message<ListEligibleGasFeeSponsorshipCampaignsRequest> {
|
|
7
|
+
/**
|
|
8
|
+
* The user-intended on-chain action being evaluated for sponsorship.
|
|
9
|
+
* Variants cover swap/wrap/bridge today; additional types such as liquidity
|
|
10
|
+
* provision will be added as new cases.
|
|
11
|
+
*
|
|
12
|
+
* @generated from oneof uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest.intent
|
|
13
|
+
*/
|
|
14
|
+
intent: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: uniswap.platformservice.v1.ClassicQuote classic_quote = 1;
|
|
17
|
+
*/
|
|
18
|
+
value: ClassicQuote;
|
|
19
|
+
case: "classicQuote";
|
|
20
|
+
} | {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: uniswap.platformservice.v1.WrapUnwrapQuote wrap_unwrap_quote = 2;
|
|
23
|
+
*/
|
|
24
|
+
value: WrapUnwrapQuote;
|
|
25
|
+
case: "wrapUnwrapQuote";
|
|
26
|
+
} | {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: uniswap.platformservice.v1.BridgeQuote bridge_quote = 3;
|
|
29
|
+
*/
|
|
30
|
+
value: BridgeQuote;
|
|
31
|
+
case: "bridgeQuote";
|
|
32
|
+
} | {
|
|
33
|
+
case: undefined;
|
|
34
|
+
value?: undefined;
|
|
35
|
+
};
|
|
36
|
+
constructor(data?: PartialMessage<ListEligibleGasFeeSponsorshipCampaignsRequest>);
|
|
37
|
+
static readonly runtime: typeof proto3;
|
|
38
|
+
static readonly typeName = "uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest";
|
|
39
|
+
static readonly fields: FieldList;
|
|
40
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEligibleGasFeeSponsorshipCampaignsRequest;
|
|
41
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEligibleGasFeeSponsorshipCampaignsRequest;
|
|
42
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEligibleGasFeeSponsorshipCampaignsRequest;
|
|
43
|
+
static equals(a: ListEligibleGasFeeSponsorshipCampaignsRequest | PlainMessage<ListEligibleGasFeeSponsorshipCampaignsRequest> | undefined, b: ListEligibleGasFeeSponsorshipCampaignsRequest | PlainMessage<ListEligibleGasFeeSponsorshipCampaignsRequest> | undefined): boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @generated from message uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsResponse
|
|
47
|
+
*/
|
|
48
|
+
export declare class ListEligibleGasFeeSponsorshipCampaignsResponse extends Message<ListEligibleGasFeeSponsorshipCampaignsResponse> {
|
|
49
|
+
/**
|
|
50
|
+
* Eligible campaigns, sorted by priority.
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: repeated uniswap.platformservice.v1.Campaign campaigns = 1;
|
|
53
|
+
*/
|
|
54
|
+
campaigns: Campaign[];
|
|
55
|
+
constructor(data?: PartialMessage<ListEligibleGasFeeSponsorshipCampaignsResponse>);
|
|
56
|
+
static readonly runtime: typeof proto3;
|
|
57
|
+
static readonly typeName = "uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsResponse";
|
|
58
|
+
static readonly fields: FieldList;
|
|
59
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEligibleGasFeeSponsorshipCampaignsResponse;
|
|
60
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEligibleGasFeeSponsorshipCampaignsResponse;
|
|
61
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEligibleGasFeeSponsorshipCampaignsResponse;
|
|
62
|
+
static equals(a: ListEligibleGasFeeSponsorshipCampaignsResponse | PlainMessage<ListEligibleGasFeeSponsorshipCampaignsResponse> | undefined, b: ListEligibleGasFeeSponsorshipCampaignsResponse | PlainMessage<ListEligibleGasFeeSponsorshipCampaignsResponse> | undefined): boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @generated from message uniswap.platformservice.v1.Campaign
|
|
66
|
+
*/
|
|
67
|
+
export declare class Campaign extends Message<Campaign> {
|
|
68
|
+
/**
|
|
69
|
+
* Machine-readable unique identifier, e.g. "unichain-free-swap-2026-q1".
|
|
70
|
+
*
|
|
71
|
+
* @generated from field: string name = 1;
|
|
72
|
+
*/
|
|
73
|
+
name: string;
|
|
74
|
+
/**
|
|
75
|
+
* Human-readable description.
|
|
76
|
+
* Example: "Free gas for Unichain swaps in Q1 2026"
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: string description = 2;
|
|
79
|
+
*/
|
|
80
|
+
description: string;
|
|
81
|
+
/**
|
|
82
|
+
* All criteria must match (AND logic).
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: repeated uniswap.platformservice.v1.Criterion criteria = 3;
|
|
85
|
+
*/
|
|
86
|
+
criteria: Criterion[];
|
|
87
|
+
constructor(data?: PartialMessage<Campaign>);
|
|
88
|
+
static readonly runtime: typeof proto3;
|
|
89
|
+
static readonly typeName = "uniswap.platformservice.v1.Campaign";
|
|
90
|
+
static readonly fields: FieldList;
|
|
91
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Campaign;
|
|
92
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Campaign;
|
|
93
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Campaign;
|
|
94
|
+
static equals(a: Campaign | PlainMessage<Campaign> | undefined, b: Campaign | PlainMessage<Campaign> | undefined): boolean;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @generated from message uniswap.platformservice.v1.Criterion
|
|
98
|
+
*/
|
|
99
|
+
export declare class Criterion extends Message<Criterion> {
|
|
100
|
+
/**
|
|
101
|
+
* @generated from oneof uniswap.platformservice.v1.Criterion.criterion
|
|
102
|
+
*/
|
|
103
|
+
criterion: {
|
|
104
|
+
/**
|
|
105
|
+
* @generated from field: uniswap.platformservice.v1.SameChainSwapOrWrapUnwrapOn same_chain_swap_or_wrap_unwrap_on = 1;
|
|
106
|
+
*/
|
|
107
|
+
value: SameChainSwapOrWrapUnwrapOn;
|
|
108
|
+
case: "sameChainSwapOrWrapUnwrapOn";
|
|
109
|
+
} | {
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: uniswap.platformservice.v1.AlwaysReject always_reject = 2;
|
|
112
|
+
*/
|
|
113
|
+
value: AlwaysReject;
|
|
114
|
+
case: "alwaysReject";
|
|
115
|
+
} | {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from field: uniswap.platformservice.v1.MaxSponseesPerWallet max_sponsees_per_wallet = 3;
|
|
118
|
+
*/
|
|
119
|
+
value: MaxSponseesPerWallet;
|
|
120
|
+
case: "maxSponseesPerWallet";
|
|
121
|
+
} | {
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: uniswap.platformservice.v1.EffectiveTime effective_time = 4;
|
|
124
|
+
*/
|
|
125
|
+
value: EffectiveTime;
|
|
126
|
+
case: "effectiveTime";
|
|
127
|
+
} | {
|
|
128
|
+
case: undefined;
|
|
129
|
+
value?: undefined;
|
|
130
|
+
};
|
|
131
|
+
constructor(data?: PartialMessage<Criterion>);
|
|
132
|
+
static readonly runtime: typeof proto3;
|
|
133
|
+
static readonly typeName = "uniswap.platformservice.v1.Criterion";
|
|
134
|
+
static readonly fields: FieldList;
|
|
135
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Criterion;
|
|
136
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Criterion;
|
|
137
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Criterion;
|
|
138
|
+
static equals(a: Criterion | PlainMessage<Criterion> | undefined, b: Criterion | PlainMessage<Criterion> | undefined): boolean;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Matches same-chain classic swaps and wrap/unwrap operations on the listed chains.
|
|
142
|
+
* Cross-chain bridges never match.
|
|
143
|
+
*
|
|
144
|
+
* @generated from message uniswap.platformservice.v1.SameChainSwapOrWrapUnwrapOn
|
|
145
|
+
*/
|
|
146
|
+
export declare class SameChainSwapOrWrapUnwrapOn extends Message<SameChainSwapOrWrapUnwrapOn> {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
149
|
+
*/
|
|
150
|
+
chainIds: number[];
|
|
151
|
+
constructor(data?: PartialMessage<SameChainSwapOrWrapUnwrapOn>);
|
|
152
|
+
static readonly runtime: typeof proto3;
|
|
153
|
+
static readonly typeName = "uniswap.platformservice.v1.SameChainSwapOrWrapUnwrapOn";
|
|
154
|
+
static readonly fields: FieldList;
|
|
155
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SameChainSwapOrWrapUnwrapOn;
|
|
156
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SameChainSwapOrWrapUnwrapOn;
|
|
157
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SameChainSwapOrWrapUnwrapOn;
|
|
158
|
+
static equals(a: SameChainSwapOrWrapUnwrapOn | PlainMessage<SameChainSwapOrWrapUnwrapOn> | undefined, b: SameChainSwapOrWrapUnwrapOn | PlainMessage<SameChainSwapOrWrapUnwrapOn> | undefined): boolean;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Always evaluates to false. Useful for disabling a campaign without removing it from the list.
|
|
162
|
+
*
|
|
163
|
+
* @generated from message uniswap.platformservice.v1.AlwaysReject
|
|
164
|
+
*/
|
|
165
|
+
export declare class AlwaysReject extends Message<AlwaysReject> {
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: string reason = 1;
|
|
168
|
+
*/
|
|
169
|
+
reason: string;
|
|
170
|
+
constructor(data?: PartialMessage<AlwaysReject>);
|
|
171
|
+
static readonly runtime: typeof proto3;
|
|
172
|
+
static readonly typeName = "uniswap.platformservice.v1.AlwaysReject";
|
|
173
|
+
static readonly fields: FieldList;
|
|
174
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AlwaysReject;
|
|
175
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AlwaysReject;
|
|
176
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AlwaysReject;
|
|
177
|
+
static equals(a: AlwaysReject | PlainMessage<AlwaysReject> | undefined, b: AlwaysReject | PlainMessage<AlwaysReject> | undefined): boolean;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Caps the number of sponsorships a single wallet address can receive under
|
|
181
|
+
* this campaign. Wallet address is sourced from quote.swapper. Evaluated
|
|
182
|
+
* asynchronously against the GasFeeSponsee store (count non-expired/reverted
|
|
183
|
+
* entries where address == swapper and campaign_name == campaign.name).
|
|
184
|
+
*
|
|
185
|
+
* @generated from message uniswap.platformservice.v1.MaxSponseesPerWallet
|
|
186
|
+
*/
|
|
187
|
+
export declare class MaxSponseesPerWallet extends Message<MaxSponseesPerWallet> {
|
|
188
|
+
/**
|
|
189
|
+
* @generated from field: uint32 max_count = 1;
|
|
190
|
+
*/
|
|
191
|
+
maxCount: number;
|
|
192
|
+
constructor(data?: PartialMessage<MaxSponseesPerWallet>);
|
|
193
|
+
static readonly runtime: typeof proto3;
|
|
194
|
+
static readonly typeName = "uniswap.platformservice.v1.MaxSponseesPerWallet";
|
|
195
|
+
static readonly fields: FieldList;
|
|
196
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MaxSponseesPerWallet;
|
|
197
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MaxSponseesPerWallet;
|
|
198
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MaxSponseesPerWallet;
|
|
199
|
+
static equals(a: MaxSponseesPerWallet | PlainMessage<MaxSponseesPerWallet> | undefined, b: MaxSponseesPerWallet | PlainMessage<MaxSponseesPerWallet> | undefined): boolean;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Matches when now() falls within [start_at, expire_at).
|
|
203
|
+
* start_at inclusive — campaign becomes eligible AT this instant
|
|
204
|
+
* expire_at exclusive — campaign stops being eligible AT this instant
|
|
205
|
+
* Either bound is optional: omit start_at for "always been active",
|
|
206
|
+
* omit expire_at for "never expires". Both omitted → always matches.
|
|
207
|
+
*
|
|
208
|
+
* @generated from message uniswap.platformservice.v1.EffectiveTime
|
|
209
|
+
*/
|
|
210
|
+
export declare class EffectiveTime extends Message<EffectiveTime> {
|
|
211
|
+
/**
|
|
212
|
+
* @generated from field: optional google.protobuf.Timestamp start_at = 1;
|
|
213
|
+
*/
|
|
214
|
+
startAt?: Timestamp;
|
|
215
|
+
/**
|
|
216
|
+
* @generated from field: optional google.protobuf.Timestamp expire_at = 2;
|
|
217
|
+
*/
|
|
218
|
+
expireAt?: Timestamp;
|
|
219
|
+
constructor(data?: PartialMessage<EffectiveTime>);
|
|
220
|
+
static readonly runtime: typeof proto3;
|
|
221
|
+
static readonly typeName = "uniswap.platformservice.v1.EffectiveTime";
|
|
222
|
+
static readonly fields: FieldList;
|
|
223
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EffectiveTime;
|
|
224
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EffectiveTime;
|
|
225
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EffectiveTime;
|
|
226
|
+
static equals(a: EffectiveTime | PlainMessage<EffectiveTime> | undefined, b: EffectiveTime | PlainMessage<EffectiveTime> | undefined): boolean;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Slimmed copies of trading.v1 quote messages, keeping only fields used by
|
|
230
|
+
* sponsorship eligibility evaluation.
|
|
231
|
+
*
|
|
232
|
+
* @generated from message uniswap.platformservice.v1.ClassicQuote
|
|
233
|
+
*/
|
|
234
|
+
export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
235
|
+
/**
|
|
236
|
+
* @generated from field: uint32 chain_id = 1;
|
|
237
|
+
*/
|
|
238
|
+
chainId: number;
|
|
239
|
+
/**
|
|
240
|
+
* @generated from field: string swapper = 2;
|
|
241
|
+
*/
|
|
242
|
+
swapper: string;
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: string token_in = 3;
|
|
245
|
+
*/
|
|
246
|
+
tokenIn: string;
|
|
247
|
+
/**
|
|
248
|
+
* @generated from field: string token_out = 4;
|
|
249
|
+
*/
|
|
250
|
+
tokenOut: string;
|
|
251
|
+
constructor(data?: PartialMessage<ClassicQuote>);
|
|
252
|
+
static readonly runtime: typeof proto3;
|
|
253
|
+
static readonly typeName = "uniswap.platformservice.v1.ClassicQuote";
|
|
254
|
+
static readonly fields: FieldList;
|
|
255
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClassicQuote;
|
|
256
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClassicQuote;
|
|
257
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClassicQuote;
|
|
258
|
+
static equals(a: ClassicQuote | PlainMessage<ClassicQuote> | undefined, b: ClassicQuote | PlainMessage<ClassicQuote> | undefined): boolean;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* @generated from message uniswap.platformservice.v1.WrapUnwrapQuote
|
|
262
|
+
*/
|
|
263
|
+
export declare class WrapUnwrapQuote extends Message<WrapUnwrapQuote> {
|
|
264
|
+
/**
|
|
265
|
+
* @generated from field: uint32 chain_id = 1;
|
|
266
|
+
*/
|
|
267
|
+
chainId: number;
|
|
268
|
+
/**
|
|
269
|
+
* @generated from field: string swapper = 2;
|
|
270
|
+
*/
|
|
271
|
+
swapper: string;
|
|
272
|
+
/**
|
|
273
|
+
* @generated from field: string token_in = 3;
|
|
274
|
+
*/
|
|
275
|
+
tokenIn: string;
|
|
276
|
+
/**
|
|
277
|
+
* @generated from field: string token_out = 4;
|
|
278
|
+
*/
|
|
279
|
+
tokenOut: string;
|
|
280
|
+
constructor(data?: PartialMessage<WrapUnwrapQuote>);
|
|
281
|
+
static readonly runtime: typeof proto3;
|
|
282
|
+
static readonly typeName = "uniswap.platformservice.v1.WrapUnwrapQuote";
|
|
283
|
+
static readonly fields: FieldList;
|
|
284
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WrapUnwrapQuote;
|
|
285
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WrapUnwrapQuote;
|
|
286
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WrapUnwrapQuote;
|
|
287
|
+
static equals(a: WrapUnwrapQuote | PlainMessage<WrapUnwrapQuote> | undefined, b: WrapUnwrapQuote | PlainMessage<WrapUnwrapQuote> | undefined): boolean;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* @generated from message uniswap.platformservice.v1.BridgeQuote
|
|
291
|
+
*/
|
|
292
|
+
export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
293
|
+
/**
|
|
294
|
+
* @generated from field: uint32 chain_id = 1;
|
|
295
|
+
*/
|
|
296
|
+
chainId: number;
|
|
297
|
+
/**
|
|
298
|
+
* @generated from field: uint32 destination_chain_id = 2;
|
|
299
|
+
*/
|
|
300
|
+
destinationChainId: number;
|
|
301
|
+
/**
|
|
302
|
+
* @generated from field: string swapper = 3;
|
|
303
|
+
*/
|
|
304
|
+
swapper: string;
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: string token_in = 4;
|
|
307
|
+
*/
|
|
308
|
+
tokenIn: string;
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: string token_out = 5;
|
|
311
|
+
*/
|
|
312
|
+
tokenOut: string;
|
|
313
|
+
constructor(data?: PartialMessage<BridgeQuote>);
|
|
314
|
+
static readonly runtime: typeof proto3;
|
|
315
|
+
static readonly typeName = "uniswap.platformservice.v1.BridgeQuote";
|
|
316
|
+
static readonly fields: FieldList;
|
|
317
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BridgeQuote;
|
|
318
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BridgeQuote;
|
|
319
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BridgeQuote;
|
|
320
|
+
static equals(a: BridgeQuote | PlainMessage<BridgeQuote> | undefined, b: BridgeQuote | PlainMessage<BridgeQuote> | undefined): boolean;
|
|
321
|
+
}
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/gasFeeSponsorshipService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from message uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest
|
|
8
|
+
*/
|
|
9
|
+
export class ListEligibleGasFeeSponsorshipCampaignsRequest extends Message {
|
|
10
|
+
constructor(data) {
|
|
11
|
+
super();
|
|
12
|
+
/**
|
|
13
|
+
* The user-intended on-chain action being evaluated for sponsorship.
|
|
14
|
+
* Variants cover swap/wrap/bridge today; additional types such as liquidity
|
|
15
|
+
* provision will be added as new cases.
|
|
16
|
+
*
|
|
17
|
+
* @generated from oneof uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest.intent
|
|
18
|
+
*/
|
|
19
|
+
this.intent = { case: undefined };
|
|
20
|
+
proto3.util.initPartial(data, this);
|
|
21
|
+
}
|
|
22
|
+
static fromBinary(bytes, options) {
|
|
23
|
+
return new ListEligibleGasFeeSponsorshipCampaignsRequest().fromBinary(bytes, options);
|
|
24
|
+
}
|
|
25
|
+
static fromJson(jsonValue, options) {
|
|
26
|
+
return new ListEligibleGasFeeSponsorshipCampaignsRequest().fromJson(jsonValue, options);
|
|
27
|
+
}
|
|
28
|
+
static fromJsonString(jsonString, options) {
|
|
29
|
+
return new ListEligibleGasFeeSponsorshipCampaignsRequest().fromJsonString(jsonString, options);
|
|
30
|
+
}
|
|
31
|
+
static equals(a, b) {
|
|
32
|
+
return proto3.util.equals(ListEligibleGasFeeSponsorshipCampaignsRequest, a, b);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
ListEligibleGasFeeSponsorshipCampaignsRequest.runtime = proto3;
|
|
36
|
+
ListEligibleGasFeeSponsorshipCampaignsRequest.typeName = "uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsRequest";
|
|
37
|
+
ListEligibleGasFeeSponsorshipCampaignsRequest.fields = proto3.util.newFieldList(() => [
|
|
38
|
+
{ no: 1, name: "classic_quote", kind: "message", T: ClassicQuote, oneof: "intent" },
|
|
39
|
+
{ no: 2, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "intent" },
|
|
40
|
+
{ no: 3, name: "bridge_quote", kind: "message", T: BridgeQuote, oneof: "intent" },
|
|
41
|
+
]);
|
|
42
|
+
/**
|
|
43
|
+
* @generated from message uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsResponse
|
|
44
|
+
*/
|
|
45
|
+
export class ListEligibleGasFeeSponsorshipCampaignsResponse extends Message {
|
|
46
|
+
constructor(data) {
|
|
47
|
+
super();
|
|
48
|
+
/**
|
|
49
|
+
* Eligible campaigns, sorted by priority.
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: repeated uniswap.platformservice.v1.Campaign campaigns = 1;
|
|
52
|
+
*/
|
|
53
|
+
this.campaigns = [];
|
|
54
|
+
proto3.util.initPartial(data, this);
|
|
55
|
+
}
|
|
56
|
+
static fromBinary(bytes, options) {
|
|
57
|
+
return new ListEligibleGasFeeSponsorshipCampaignsResponse().fromBinary(bytes, options);
|
|
58
|
+
}
|
|
59
|
+
static fromJson(jsonValue, options) {
|
|
60
|
+
return new ListEligibleGasFeeSponsorshipCampaignsResponse().fromJson(jsonValue, options);
|
|
61
|
+
}
|
|
62
|
+
static fromJsonString(jsonString, options) {
|
|
63
|
+
return new ListEligibleGasFeeSponsorshipCampaignsResponse().fromJsonString(jsonString, options);
|
|
64
|
+
}
|
|
65
|
+
static equals(a, b) {
|
|
66
|
+
return proto3.util.equals(ListEligibleGasFeeSponsorshipCampaignsResponse, a, b);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
ListEligibleGasFeeSponsorshipCampaignsResponse.runtime = proto3;
|
|
70
|
+
ListEligibleGasFeeSponsorshipCampaignsResponse.typeName = "uniswap.platformservice.v1.ListEligibleGasFeeSponsorshipCampaignsResponse";
|
|
71
|
+
ListEligibleGasFeeSponsorshipCampaignsResponse.fields = proto3.util.newFieldList(() => [
|
|
72
|
+
{ no: 1, name: "campaigns", kind: "message", T: Campaign, repeated: true },
|
|
73
|
+
]);
|
|
74
|
+
/**
|
|
75
|
+
* @generated from message uniswap.platformservice.v1.Campaign
|
|
76
|
+
*/
|
|
77
|
+
export class Campaign extends Message {
|
|
78
|
+
constructor(data) {
|
|
79
|
+
super();
|
|
80
|
+
/**
|
|
81
|
+
* Machine-readable unique identifier, e.g. "unichain-free-swap-2026-q1".
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: string name = 1;
|
|
84
|
+
*/
|
|
85
|
+
this.name = "";
|
|
86
|
+
/**
|
|
87
|
+
* Human-readable description.
|
|
88
|
+
* Example: "Free gas for Unichain swaps in Q1 2026"
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: string description = 2;
|
|
91
|
+
*/
|
|
92
|
+
this.description = "";
|
|
93
|
+
/**
|
|
94
|
+
* All criteria must match (AND logic).
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: repeated uniswap.platformservice.v1.Criterion criteria = 3;
|
|
97
|
+
*/
|
|
98
|
+
this.criteria = [];
|
|
99
|
+
proto3.util.initPartial(data, this);
|
|
100
|
+
}
|
|
101
|
+
static fromBinary(bytes, options) {
|
|
102
|
+
return new Campaign().fromBinary(bytes, options);
|
|
103
|
+
}
|
|
104
|
+
static fromJson(jsonValue, options) {
|
|
105
|
+
return new Campaign().fromJson(jsonValue, options);
|
|
106
|
+
}
|
|
107
|
+
static fromJsonString(jsonString, options) {
|
|
108
|
+
return new Campaign().fromJsonString(jsonString, options);
|
|
109
|
+
}
|
|
110
|
+
static equals(a, b) {
|
|
111
|
+
return proto3.util.equals(Campaign, a, b);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
Campaign.runtime = proto3;
|
|
115
|
+
Campaign.typeName = "uniswap.platformservice.v1.Campaign";
|
|
116
|
+
Campaign.fields = proto3.util.newFieldList(() => [
|
|
117
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
118
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
119
|
+
{ no: 3, name: "criteria", kind: "message", T: Criterion, repeated: true },
|
|
120
|
+
]);
|
|
121
|
+
/**
|
|
122
|
+
* @generated from message uniswap.platformservice.v1.Criterion
|
|
123
|
+
*/
|
|
124
|
+
export class Criterion extends Message {
|
|
125
|
+
constructor(data) {
|
|
126
|
+
super();
|
|
127
|
+
/**
|
|
128
|
+
* @generated from oneof uniswap.platformservice.v1.Criterion.criterion
|
|
129
|
+
*/
|
|
130
|
+
this.criterion = { case: undefined };
|
|
131
|
+
proto3.util.initPartial(data, this);
|
|
132
|
+
}
|
|
133
|
+
static fromBinary(bytes, options) {
|
|
134
|
+
return new Criterion().fromBinary(bytes, options);
|
|
135
|
+
}
|
|
136
|
+
static fromJson(jsonValue, options) {
|
|
137
|
+
return new Criterion().fromJson(jsonValue, options);
|
|
138
|
+
}
|
|
139
|
+
static fromJsonString(jsonString, options) {
|
|
140
|
+
return new Criterion().fromJsonString(jsonString, options);
|
|
141
|
+
}
|
|
142
|
+
static equals(a, b) {
|
|
143
|
+
return proto3.util.equals(Criterion, a, b);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
Criterion.runtime = proto3;
|
|
147
|
+
Criterion.typeName = "uniswap.platformservice.v1.Criterion";
|
|
148
|
+
Criterion.fields = proto3.util.newFieldList(() => [
|
|
149
|
+
{ no: 1, name: "same_chain_swap_or_wrap_unwrap_on", kind: "message", T: SameChainSwapOrWrapUnwrapOn, oneof: "criterion" },
|
|
150
|
+
{ no: 2, name: "always_reject", kind: "message", T: AlwaysReject, oneof: "criterion" },
|
|
151
|
+
{ no: 3, name: "max_sponsees_per_wallet", kind: "message", T: MaxSponseesPerWallet, oneof: "criterion" },
|
|
152
|
+
{ no: 4, name: "effective_time", kind: "message", T: EffectiveTime, oneof: "criterion" },
|
|
153
|
+
]);
|
|
154
|
+
/**
|
|
155
|
+
* Matches same-chain classic swaps and wrap/unwrap operations on the listed chains.
|
|
156
|
+
* Cross-chain bridges never match.
|
|
157
|
+
*
|
|
158
|
+
* @generated from message uniswap.platformservice.v1.SameChainSwapOrWrapUnwrapOn
|
|
159
|
+
*/
|
|
160
|
+
export class SameChainSwapOrWrapUnwrapOn extends Message {
|
|
161
|
+
constructor(data) {
|
|
162
|
+
super();
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
165
|
+
*/
|
|
166
|
+
this.chainIds = [];
|
|
167
|
+
proto3.util.initPartial(data, this);
|
|
168
|
+
}
|
|
169
|
+
static fromBinary(bytes, options) {
|
|
170
|
+
return new SameChainSwapOrWrapUnwrapOn().fromBinary(bytes, options);
|
|
171
|
+
}
|
|
172
|
+
static fromJson(jsonValue, options) {
|
|
173
|
+
return new SameChainSwapOrWrapUnwrapOn().fromJson(jsonValue, options);
|
|
174
|
+
}
|
|
175
|
+
static fromJsonString(jsonString, options) {
|
|
176
|
+
return new SameChainSwapOrWrapUnwrapOn().fromJsonString(jsonString, options);
|
|
177
|
+
}
|
|
178
|
+
static equals(a, b) {
|
|
179
|
+
return proto3.util.equals(SameChainSwapOrWrapUnwrapOn, a, b);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
SameChainSwapOrWrapUnwrapOn.runtime = proto3;
|
|
183
|
+
SameChainSwapOrWrapUnwrapOn.typeName = "uniswap.platformservice.v1.SameChainSwapOrWrapUnwrapOn";
|
|
184
|
+
SameChainSwapOrWrapUnwrapOn.fields = proto3.util.newFieldList(() => [
|
|
185
|
+
{ no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
186
|
+
]);
|
|
187
|
+
/**
|
|
188
|
+
* Always evaluates to false. Useful for disabling a campaign without removing it from the list.
|
|
189
|
+
*
|
|
190
|
+
* @generated from message uniswap.platformservice.v1.AlwaysReject
|
|
191
|
+
*/
|
|
192
|
+
export class AlwaysReject extends Message {
|
|
193
|
+
constructor(data) {
|
|
194
|
+
super();
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: string reason = 1;
|
|
197
|
+
*/
|
|
198
|
+
this.reason = "";
|
|
199
|
+
proto3.util.initPartial(data, this);
|
|
200
|
+
}
|
|
201
|
+
static fromBinary(bytes, options) {
|
|
202
|
+
return new AlwaysReject().fromBinary(bytes, options);
|
|
203
|
+
}
|
|
204
|
+
static fromJson(jsonValue, options) {
|
|
205
|
+
return new AlwaysReject().fromJson(jsonValue, options);
|
|
206
|
+
}
|
|
207
|
+
static fromJsonString(jsonString, options) {
|
|
208
|
+
return new AlwaysReject().fromJsonString(jsonString, options);
|
|
209
|
+
}
|
|
210
|
+
static equals(a, b) {
|
|
211
|
+
return proto3.util.equals(AlwaysReject, a, b);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
AlwaysReject.runtime = proto3;
|
|
215
|
+
AlwaysReject.typeName = "uniswap.platformservice.v1.AlwaysReject";
|
|
216
|
+
AlwaysReject.fields = proto3.util.newFieldList(() => [
|
|
217
|
+
{ no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
218
|
+
]);
|
|
219
|
+
/**
|
|
220
|
+
* Caps the number of sponsorships a single wallet address can receive under
|
|
221
|
+
* this campaign. Wallet address is sourced from quote.swapper. Evaluated
|
|
222
|
+
* asynchronously against the GasFeeSponsee store (count non-expired/reverted
|
|
223
|
+
* entries where address == swapper and campaign_name == campaign.name).
|
|
224
|
+
*
|
|
225
|
+
* @generated from message uniswap.platformservice.v1.MaxSponseesPerWallet
|
|
226
|
+
*/
|
|
227
|
+
export class MaxSponseesPerWallet extends Message {
|
|
228
|
+
constructor(data) {
|
|
229
|
+
super();
|
|
230
|
+
/**
|
|
231
|
+
* @generated from field: uint32 max_count = 1;
|
|
232
|
+
*/
|
|
233
|
+
this.maxCount = 0;
|
|
234
|
+
proto3.util.initPartial(data, this);
|
|
235
|
+
}
|
|
236
|
+
static fromBinary(bytes, options) {
|
|
237
|
+
return new MaxSponseesPerWallet().fromBinary(bytes, options);
|
|
238
|
+
}
|
|
239
|
+
static fromJson(jsonValue, options) {
|
|
240
|
+
return new MaxSponseesPerWallet().fromJson(jsonValue, options);
|
|
241
|
+
}
|
|
242
|
+
static fromJsonString(jsonString, options) {
|
|
243
|
+
return new MaxSponseesPerWallet().fromJsonString(jsonString, options);
|
|
244
|
+
}
|
|
245
|
+
static equals(a, b) {
|
|
246
|
+
return proto3.util.equals(MaxSponseesPerWallet, a, b);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
MaxSponseesPerWallet.runtime = proto3;
|
|
250
|
+
MaxSponseesPerWallet.typeName = "uniswap.platformservice.v1.MaxSponseesPerWallet";
|
|
251
|
+
MaxSponseesPerWallet.fields = proto3.util.newFieldList(() => [
|
|
252
|
+
{ no: 1, name: "max_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
253
|
+
]);
|
|
254
|
+
/**
|
|
255
|
+
* Matches when now() falls within [start_at, expire_at).
|
|
256
|
+
* start_at inclusive — campaign becomes eligible AT this instant
|
|
257
|
+
* expire_at exclusive — campaign stops being eligible AT this instant
|
|
258
|
+
* Either bound is optional: omit start_at for "always been active",
|
|
259
|
+
* omit expire_at for "never expires". Both omitted → always matches.
|
|
260
|
+
*
|
|
261
|
+
* @generated from message uniswap.platformservice.v1.EffectiveTime
|
|
262
|
+
*/
|
|
263
|
+
export class EffectiveTime extends Message {
|
|
264
|
+
constructor(data) {
|
|
265
|
+
super();
|
|
266
|
+
proto3.util.initPartial(data, this);
|
|
267
|
+
}
|
|
268
|
+
static fromBinary(bytes, options) {
|
|
269
|
+
return new EffectiveTime().fromBinary(bytes, options);
|
|
270
|
+
}
|
|
271
|
+
static fromJson(jsonValue, options) {
|
|
272
|
+
return new EffectiveTime().fromJson(jsonValue, options);
|
|
273
|
+
}
|
|
274
|
+
static fromJsonString(jsonString, options) {
|
|
275
|
+
return new EffectiveTime().fromJsonString(jsonString, options);
|
|
276
|
+
}
|
|
277
|
+
static equals(a, b) {
|
|
278
|
+
return proto3.util.equals(EffectiveTime, a, b);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
EffectiveTime.runtime = proto3;
|
|
282
|
+
EffectiveTime.typeName = "uniswap.platformservice.v1.EffectiveTime";
|
|
283
|
+
EffectiveTime.fields = proto3.util.newFieldList(() => [
|
|
284
|
+
{ no: 1, name: "start_at", kind: "message", T: Timestamp, opt: true },
|
|
285
|
+
{ no: 2, name: "expire_at", kind: "message", T: Timestamp, opt: true },
|
|
286
|
+
]);
|
|
287
|
+
/**
|
|
288
|
+
* Slimmed copies of trading.v1 quote messages, keeping only fields used by
|
|
289
|
+
* sponsorship eligibility evaluation.
|
|
290
|
+
*
|
|
291
|
+
* @generated from message uniswap.platformservice.v1.ClassicQuote
|
|
292
|
+
*/
|
|
293
|
+
export class ClassicQuote extends Message {
|
|
294
|
+
constructor(data) {
|
|
295
|
+
super();
|
|
296
|
+
/**
|
|
297
|
+
* @generated from field: uint32 chain_id = 1;
|
|
298
|
+
*/
|
|
299
|
+
this.chainId = 0;
|
|
300
|
+
/**
|
|
301
|
+
* @generated from field: string swapper = 2;
|
|
302
|
+
*/
|
|
303
|
+
this.swapper = "";
|
|
304
|
+
/**
|
|
305
|
+
* @generated from field: string token_in = 3;
|
|
306
|
+
*/
|
|
307
|
+
this.tokenIn = "";
|
|
308
|
+
/**
|
|
309
|
+
* @generated from field: string token_out = 4;
|
|
310
|
+
*/
|
|
311
|
+
this.tokenOut = "";
|
|
312
|
+
proto3.util.initPartial(data, this);
|
|
313
|
+
}
|
|
314
|
+
static fromBinary(bytes, options) {
|
|
315
|
+
return new ClassicQuote().fromBinary(bytes, options);
|
|
316
|
+
}
|
|
317
|
+
static fromJson(jsonValue, options) {
|
|
318
|
+
return new ClassicQuote().fromJson(jsonValue, options);
|
|
319
|
+
}
|
|
320
|
+
static fromJsonString(jsonString, options) {
|
|
321
|
+
return new ClassicQuote().fromJsonString(jsonString, options);
|
|
322
|
+
}
|
|
323
|
+
static equals(a, b) {
|
|
324
|
+
return proto3.util.equals(ClassicQuote, a, b);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
ClassicQuote.runtime = proto3;
|
|
328
|
+
ClassicQuote.typeName = "uniswap.platformservice.v1.ClassicQuote";
|
|
329
|
+
ClassicQuote.fields = proto3.util.newFieldList(() => [
|
|
330
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
331
|
+
{ no: 2, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
332
|
+
{ no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
333
|
+
{ no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
334
|
+
]);
|
|
335
|
+
/**
|
|
336
|
+
* @generated from message uniswap.platformservice.v1.WrapUnwrapQuote
|
|
337
|
+
*/
|
|
338
|
+
export class WrapUnwrapQuote extends Message {
|
|
339
|
+
constructor(data) {
|
|
340
|
+
super();
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: uint32 chain_id = 1;
|
|
343
|
+
*/
|
|
344
|
+
this.chainId = 0;
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: string swapper = 2;
|
|
347
|
+
*/
|
|
348
|
+
this.swapper = "";
|
|
349
|
+
/**
|
|
350
|
+
* @generated from field: string token_in = 3;
|
|
351
|
+
*/
|
|
352
|
+
this.tokenIn = "";
|
|
353
|
+
/**
|
|
354
|
+
* @generated from field: string token_out = 4;
|
|
355
|
+
*/
|
|
356
|
+
this.tokenOut = "";
|
|
357
|
+
proto3.util.initPartial(data, this);
|
|
358
|
+
}
|
|
359
|
+
static fromBinary(bytes, options) {
|
|
360
|
+
return new WrapUnwrapQuote().fromBinary(bytes, options);
|
|
361
|
+
}
|
|
362
|
+
static fromJson(jsonValue, options) {
|
|
363
|
+
return new WrapUnwrapQuote().fromJson(jsonValue, options);
|
|
364
|
+
}
|
|
365
|
+
static fromJsonString(jsonString, options) {
|
|
366
|
+
return new WrapUnwrapQuote().fromJsonString(jsonString, options);
|
|
367
|
+
}
|
|
368
|
+
static equals(a, b) {
|
|
369
|
+
return proto3.util.equals(WrapUnwrapQuote, a, b);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
WrapUnwrapQuote.runtime = proto3;
|
|
373
|
+
WrapUnwrapQuote.typeName = "uniswap.platformservice.v1.WrapUnwrapQuote";
|
|
374
|
+
WrapUnwrapQuote.fields = proto3.util.newFieldList(() => [
|
|
375
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
376
|
+
{ no: 2, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
377
|
+
{ no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
378
|
+
{ no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
379
|
+
]);
|
|
380
|
+
/**
|
|
381
|
+
* @generated from message uniswap.platformservice.v1.BridgeQuote
|
|
382
|
+
*/
|
|
383
|
+
export class BridgeQuote extends Message {
|
|
384
|
+
constructor(data) {
|
|
385
|
+
super();
|
|
386
|
+
/**
|
|
387
|
+
* @generated from field: uint32 chain_id = 1;
|
|
388
|
+
*/
|
|
389
|
+
this.chainId = 0;
|
|
390
|
+
/**
|
|
391
|
+
* @generated from field: uint32 destination_chain_id = 2;
|
|
392
|
+
*/
|
|
393
|
+
this.destinationChainId = 0;
|
|
394
|
+
/**
|
|
395
|
+
* @generated from field: string swapper = 3;
|
|
396
|
+
*/
|
|
397
|
+
this.swapper = "";
|
|
398
|
+
/**
|
|
399
|
+
* @generated from field: string token_in = 4;
|
|
400
|
+
*/
|
|
401
|
+
this.tokenIn = "";
|
|
402
|
+
/**
|
|
403
|
+
* @generated from field: string token_out = 5;
|
|
404
|
+
*/
|
|
405
|
+
this.tokenOut = "";
|
|
406
|
+
proto3.util.initPartial(data, this);
|
|
407
|
+
}
|
|
408
|
+
static fromBinary(bytes, options) {
|
|
409
|
+
return new BridgeQuote().fromBinary(bytes, options);
|
|
410
|
+
}
|
|
411
|
+
static fromJson(jsonValue, options) {
|
|
412
|
+
return new BridgeQuote().fromJson(jsonValue, options);
|
|
413
|
+
}
|
|
414
|
+
static fromJsonString(jsonString, options) {
|
|
415
|
+
return new BridgeQuote().fromJsonString(jsonString, options);
|
|
416
|
+
}
|
|
417
|
+
static equals(a, b) {
|
|
418
|
+
return proto3.util.equals(BridgeQuote, a, b);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
BridgeQuote.runtime = proto3;
|
|
422
|
+
BridgeQuote.typeName = "uniswap.platformservice.v1.BridgeQuote";
|
|
423
|
+
BridgeQuote.fields = proto3.util.newFieldList(() => [
|
|
424
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
425
|
+
{ no: 2, name: "destination_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
426
|
+
{ no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
427
|
+
{ no: 4, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
428
|
+
{ no: 5, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
429
|
+
]);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { ApiKeyDataStruct } from "./apiKeyService_pb.js";
|
|
3
4
|
/**
|
|
4
5
|
* @generated from message uniswap.platformservice.v1.OrganizationServiceError
|
|
5
6
|
*/
|
|
@@ -325,9 +326,9 @@ export declare class InternalGetOrganizationResponse extends Message<InternalGet
|
|
|
325
326
|
*/
|
|
326
327
|
users: InternalOrgMember[];
|
|
327
328
|
/**
|
|
328
|
-
* @generated from field: repeated uniswap.platformservice.v1.
|
|
329
|
+
* @generated from field: repeated uniswap.platformservice.v1.ApiKeyDataStruct api_keys = 5;
|
|
329
330
|
*/
|
|
330
|
-
apiKeys:
|
|
331
|
+
apiKeys: ApiKeyDataStruct[];
|
|
331
332
|
constructor(data?: PartialMessage<InternalGetOrganizationResponse>);
|
|
332
333
|
static readonly runtime: typeof proto3;
|
|
333
334
|
static readonly typeName = "uniswap.platformservice.v1.InternalGetOrganizationResponse";
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { ApiKeyDataStruct } from "./apiKeyService_pb.js";
|
|
6
7
|
/**
|
|
7
8
|
* @generated from message uniswap.platformservice.v1.OrganizationServiceError
|
|
8
9
|
*/
|
|
@@ -486,7 +487,7 @@ export class InternalGetOrganizationResponse extends Message {
|
|
|
486
487
|
*/
|
|
487
488
|
this.users = [];
|
|
488
489
|
/**
|
|
489
|
-
* @generated from field: repeated uniswap.platformservice.v1.
|
|
490
|
+
* @generated from field: repeated uniswap.platformservice.v1.ApiKeyDataStruct api_keys = 5;
|
|
490
491
|
*/
|
|
491
492
|
this.apiKeys = [];
|
|
492
493
|
proto3.util.initPartial(data, this);
|
|
@@ -511,7 +512,7 @@ InternalGetOrganizationResponse.fields = proto3.util.newFieldList(() => [
|
|
|
511
512
|
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
512
513
|
{ no: 3, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
513
514
|
{ no: 4, name: "users", kind: "message", T: InternalOrgMember, repeated: true },
|
|
514
|
-
{ no: 5, name: "api_keys", kind: "message", T:
|
|
515
|
+
{ no: 5, name: "api_keys", kind: "message", T: ApiKeyDataStruct, repeated: true },
|
|
515
516
|
]);
|
|
516
517
|
/**
|
|
517
518
|
* @generated from message uniswap.platformservice.v1.InternalDeleteOrganizationRequest
|