@uniswap/client-trading 0.4.1 → 0.4.4
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/trading/v1/api_pb.d.ts +73 -53
- package/dist/trading/v1/api_pb.js +58 -53
- package/package.json +1 -1
|
@@ -137,7 +137,11 @@ export declare enum ChainId {
|
|
|
137
137
|
/**
|
|
138
138
|
* @generated from enum value: TEMPO = 4217;
|
|
139
139
|
*/
|
|
140
|
-
TEMPO = 4217
|
|
140
|
+
TEMPO = 4217,
|
|
141
|
+
/**
|
|
142
|
+
* @generated from enum value: ROBINHOOD = 4663;
|
|
143
|
+
*/
|
|
144
|
+
ROBINHOOD = 4663
|
|
141
145
|
}
|
|
142
146
|
/**
|
|
143
147
|
* @generated from enum trading.v1.Protocols
|
|
@@ -719,27 +723,6 @@ export declare class UserOperation extends Message<UserOperation> {
|
|
|
719
723
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserOperation;
|
|
720
724
|
static equals(a: UserOperation | PlainMessage<UserOperation> | undefined, b: UserOperation | PlainMessage<UserOperation> | undefined): boolean;
|
|
721
725
|
}
|
|
722
|
-
/**
|
|
723
|
-
* @generated from message trading.v1.SponsorMetadata
|
|
724
|
-
*/
|
|
725
|
-
export declare class SponsorMetadata extends Message<SponsorMetadata> {
|
|
726
|
-
/**
|
|
727
|
-
* @generated from field: string name = 1;
|
|
728
|
-
*/
|
|
729
|
-
name: string;
|
|
730
|
-
/**
|
|
731
|
-
* @generated from field: optional string icon = 2;
|
|
732
|
-
*/
|
|
733
|
-
icon?: string;
|
|
734
|
-
constructor(data?: PartialMessage<SponsorMetadata>);
|
|
735
|
-
static readonly runtime: typeof proto3;
|
|
736
|
-
static readonly typeName = "trading.v1.SponsorMetadata";
|
|
737
|
-
static readonly fields: FieldList;
|
|
738
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorMetadata;
|
|
739
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
740
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
741
|
-
static equals(a: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined, b: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined): boolean;
|
|
742
|
-
}
|
|
743
726
|
/**
|
|
744
727
|
* @generated from message trading.v1.Encode4337Response
|
|
745
728
|
*/
|
|
@@ -753,7 +736,7 @@ export declare class Encode4337Response extends Message<Encode4337Response> {
|
|
|
753
736
|
*/
|
|
754
737
|
userOperation?: UserOperation;
|
|
755
738
|
/**
|
|
756
|
-
* @generated from field: trading.v1.SponsorMetadata sponsor_metadata = 3;
|
|
739
|
+
* @generated from field: optional trading.v1.SponsorMetadata sponsor_metadata = 3;
|
|
757
740
|
*/
|
|
758
741
|
sponsorMetadata?: SponsorMetadata;
|
|
759
742
|
/**
|
|
@@ -818,6 +801,10 @@ export declare class Swap4337Request extends Message<Swap4337Request> {
|
|
|
818
801
|
* @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 7;
|
|
819
802
|
*/
|
|
820
803
|
eip7702Auth?: Eip7702Authorization;
|
|
804
|
+
/**
|
|
805
|
+
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 8;
|
|
806
|
+
*/
|
|
807
|
+
sponsorshipInfo?: SponsorshipInfo;
|
|
821
808
|
constructor(data?: PartialMessage<Swap4337Request>);
|
|
822
809
|
static readonly runtime: typeof proto3;
|
|
823
810
|
static readonly typeName = "trading.v1.Swap4337Request";
|
|
@@ -847,6 +834,10 @@ export declare class Swap4337Response extends Message<Swap4337Response> {
|
|
|
847
834
|
* @generated from field: optional string gas_sponsorship_rejection_reason = 4;
|
|
848
835
|
*/
|
|
849
836
|
gasSponsorshipRejectionReason?: string;
|
|
837
|
+
/**
|
|
838
|
+
* @generated from field: optional trading.v1.PaymasterServiceContext paymaster_service_context = 5;
|
|
839
|
+
*/
|
|
840
|
+
paymasterServiceContext?: PaymasterServiceContext;
|
|
850
841
|
constructor(data?: PartialMessage<Swap4337Response>);
|
|
851
842
|
static readonly runtime: typeof proto3;
|
|
852
843
|
static readonly typeName = "trading.v1.Swap4337Response";
|
|
@@ -901,6 +892,10 @@ export declare class Swap5792Request extends Message<Swap5792Request> {
|
|
|
901
892
|
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 7;
|
|
902
893
|
*/
|
|
903
894
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
895
|
+
/**
|
|
896
|
+
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 8;
|
|
897
|
+
*/
|
|
898
|
+
sponsorshipInfo?: SponsorshipInfo;
|
|
904
899
|
constructor(data?: PartialMessage<Swap5792Request>);
|
|
905
900
|
static readonly runtime: typeof proto3;
|
|
906
901
|
static readonly typeName = "trading.v1.Swap5792Request";
|
|
@@ -2076,7 +2071,7 @@ export declare class AggregatedOutput extends Message<AggregatedOutput> {
|
|
|
2076
2071
|
*/
|
|
2077
2072
|
recipient: string;
|
|
2078
2073
|
/**
|
|
2079
|
-
* @generated from field:
|
|
2074
|
+
* @generated from field: double bps = 4;
|
|
2080
2075
|
*/
|
|
2081
2076
|
bps: number;
|
|
2082
2077
|
/**
|
|
@@ -2198,7 +2193,7 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2198
2193
|
*/
|
|
2199
2194
|
aggregatedOutputs: AggregatedOutput[];
|
|
2200
2195
|
/**
|
|
2201
|
-
* @generated from field: optional
|
|
2196
|
+
* @generated from field: optional double portion_bips = 22;
|
|
2202
2197
|
*/
|
|
2203
2198
|
portionBips?: number;
|
|
2204
2199
|
/**
|
|
@@ -2209,10 +2204,6 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2209
2204
|
* @generated from field: optional string portion_recipient = 24;
|
|
2210
2205
|
*/
|
|
2211
2206
|
portionRecipient?: string;
|
|
2212
|
-
/**
|
|
2213
|
-
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 25;
|
|
2214
|
-
*/
|
|
2215
|
-
sponsorshipInfo?: SponsorshipInfo;
|
|
2216
2207
|
/**
|
|
2217
2208
|
* @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
|
|
2218
2209
|
*/
|
|
@@ -3188,10 +3179,6 @@ export declare class WrapUnwrapQuote extends Message<WrapUnwrapQuote> {
|
|
|
3188
3179
|
* @generated from field: optional string max_priority_fee_per_gas = 13;
|
|
3189
3180
|
*/
|
|
3190
3181
|
maxPriorityFeePerGas?: string;
|
|
3191
|
-
/**
|
|
3192
|
-
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 14;
|
|
3193
|
-
*/
|
|
3194
|
-
sponsorshipInfo?: SponsorshipInfo;
|
|
3195
3182
|
constructor(data?: PartialMessage<WrapUnwrapQuote>);
|
|
3196
3183
|
static readonly runtime: typeof proto3;
|
|
3197
3184
|
static readonly typeName = "trading.v1.WrapUnwrapQuote";
|
|
@@ -3441,6 +3428,10 @@ export declare class GetSwapsRequest extends Message<GetSwapsRequest> {
|
|
|
3441
3428
|
* @generated from field: repeated string user_op_hashes = 3;
|
|
3442
3429
|
*/
|
|
3443
3430
|
userOpHashes: string[];
|
|
3431
|
+
/**
|
|
3432
|
+
* @generated from field: optional string swapper = 4;
|
|
3433
|
+
*/
|
|
3434
|
+
swapper?: string;
|
|
3444
3435
|
constructor(data?: PartialMessage<GetSwapsRequest>);
|
|
3445
3436
|
static readonly runtime: typeof proto3;
|
|
3446
3437
|
static readonly typeName = "trading.v1.GetSwapsRequest";
|
|
@@ -3499,6 +3490,14 @@ export declare class SwapResult extends Message<SwapResult> {
|
|
|
3499
3490
|
* @generated from field: trading.v1.SwapResult.HashType hash_type = 6;
|
|
3500
3491
|
*/
|
|
3501
3492
|
hashType: SwapResult_HashType;
|
|
3493
|
+
/**
|
|
3494
|
+
* @generated from field: optional string paymaster = 7;
|
|
3495
|
+
*/
|
|
3496
|
+
paymaster?: string;
|
|
3497
|
+
/**
|
|
3498
|
+
* @generated from field: optional trading.v1.SponsorMetadata sponsorship = 8;
|
|
3499
|
+
*/
|
|
3500
|
+
sponsorship?: SponsorMetadata;
|
|
3502
3501
|
constructor(data?: PartialMessage<SwapResult>);
|
|
3503
3502
|
static readonly runtime: typeof proto3;
|
|
3504
3503
|
static readonly typeName = "trading.v1.SwapResult";
|
|
@@ -4618,10 +4617,6 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
|
4618
4617
|
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 19;
|
|
4619
4618
|
*/
|
|
4620
4619
|
gasEstimates: GasEstimate[];
|
|
4621
|
-
/**
|
|
4622
|
-
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 20;
|
|
4623
|
-
*/
|
|
4624
|
-
sponsorshipInfo?: SponsorshipInfo;
|
|
4625
4620
|
constructor(data?: PartialMessage<BridgeQuote>);
|
|
4626
4621
|
static readonly runtime: typeof proto3;
|
|
4627
4622
|
static readonly typeName = "trading.v1.BridgeQuote";
|
|
@@ -4729,7 +4724,7 @@ export declare class DutchLimitQuote extends Message<DutchLimitQuote> {
|
|
|
4729
4724
|
*/
|
|
4730
4725
|
aggregatedOutputs: AggregatedOutput[];
|
|
4731
4726
|
/**
|
|
4732
|
-
* @generated from field: optional
|
|
4727
|
+
* @generated from field: optional double portion_bips = 8;
|
|
4733
4728
|
*/
|
|
4734
4729
|
portionBips?: number;
|
|
4735
4730
|
/**
|
|
@@ -4847,7 +4842,7 @@ export declare class DutchLimitV2Quote extends Message<DutchLimitV2Quote> {
|
|
|
4847
4842
|
*/
|
|
4848
4843
|
aggregatedOutputs: AggregatedOutput[];
|
|
4849
4844
|
/**
|
|
4850
|
-
* @generated from field: optional
|
|
4845
|
+
* @generated from field: optional double portion_bips = 9;
|
|
4851
4846
|
*/
|
|
4852
4847
|
portionBips?: number;
|
|
4853
4848
|
/**
|
|
@@ -4977,7 +4972,7 @@ export declare class DutchLimitV3Quote extends Message<DutchLimitV3Quote> {
|
|
|
4977
4972
|
*/
|
|
4978
4973
|
aggregatedOutputs: AggregatedOutput[];
|
|
4979
4974
|
/**
|
|
4980
|
-
* @generated from field: optional
|
|
4975
|
+
* @generated from field: optional double portion_bips = 11;
|
|
4981
4976
|
*/
|
|
4982
4977
|
portionBips?: number;
|
|
4983
4978
|
/**
|
|
@@ -5276,7 +5271,7 @@ export declare class PriorityQuote extends Message<PriorityQuote> {
|
|
|
5276
5271
|
*/
|
|
5277
5272
|
aggregatedOutputs: AggregatedOutput[];
|
|
5278
5273
|
/**
|
|
5279
|
-
* @generated from field: optional
|
|
5274
|
+
* @generated from field: optional double portion_bips = 11;
|
|
5280
5275
|
*/
|
|
5281
5276
|
portionBips?: number;
|
|
5282
5277
|
/**
|
|
@@ -6740,25 +6735,46 @@ export declare class WalletInfo extends Message<WalletInfo> {
|
|
|
6740
6735
|
static equals(a: WalletInfo | PlainMessage<WalletInfo> | undefined, b: WalletInfo | PlainMessage<WalletInfo> | undefined): boolean;
|
|
6741
6736
|
}
|
|
6742
6737
|
/**
|
|
6743
|
-
* @generated from message trading.v1.
|
|
6738
|
+
* @generated from message trading.v1.SponsorMetadata
|
|
6739
|
+
*/
|
|
6740
|
+
export declare class SponsorMetadata extends Message<SponsorMetadata> {
|
|
6741
|
+
/**
|
|
6742
|
+
* @generated from field: optional string name = 1;
|
|
6743
|
+
*/
|
|
6744
|
+
name?: string;
|
|
6745
|
+
/**
|
|
6746
|
+
* @generated from field: optional string icon = 2;
|
|
6747
|
+
*/
|
|
6748
|
+
icon?: string;
|
|
6749
|
+
constructor(data?: PartialMessage<SponsorMetadata>);
|
|
6750
|
+
static readonly runtime: typeof proto3;
|
|
6751
|
+
static readonly typeName = "trading.v1.SponsorMetadata";
|
|
6752
|
+
static readonly fields: FieldList;
|
|
6753
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorMetadata;
|
|
6754
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
6755
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
6756
|
+
static equals(a: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined, b: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined): boolean;
|
|
6757
|
+
}
|
|
6758
|
+
/**
|
|
6759
|
+
* @generated from message trading.v1.CampaignDetails
|
|
6744
6760
|
*/
|
|
6745
|
-
export declare class
|
|
6761
|
+
export declare class CampaignDetails extends Message<CampaignDetails> {
|
|
6746
6762
|
/**
|
|
6747
6763
|
* @generated from field: optional string name = 1;
|
|
6748
6764
|
*/
|
|
6749
6765
|
name?: string;
|
|
6750
6766
|
/**
|
|
6751
|
-
* @generated from field: optional string
|
|
6767
|
+
* @generated from field: optional string description = 2;
|
|
6752
6768
|
*/
|
|
6753
|
-
|
|
6754
|
-
constructor(data?: PartialMessage<
|
|
6769
|
+
description?: string;
|
|
6770
|
+
constructor(data?: PartialMessage<CampaignDetails>);
|
|
6755
6771
|
static readonly runtime: typeof proto3;
|
|
6756
|
-
static readonly typeName = "trading.v1.
|
|
6772
|
+
static readonly typeName = "trading.v1.CampaignDetails";
|
|
6757
6773
|
static readonly fields: FieldList;
|
|
6758
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
6759
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
6760
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
6761
|
-
static equals(a:
|
|
6774
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CampaignDetails;
|
|
6775
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CampaignDetails;
|
|
6776
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CampaignDetails;
|
|
6777
|
+
static equals(a: CampaignDetails | PlainMessage<CampaignDetails> | undefined, b: CampaignDetails | PlainMessage<CampaignDetails> | undefined): boolean;
|
|
6762
6778
|
}
|
|
6763
6779
|
/**
|
|
6764
6780
|
* @generated from message trading.v1.SponsorshipInfo
|
|
@@ -6773,9 +6789,13 @@ export declare class SponsorshipInfo extends Message<SponsorshipInfo> {
|
|
|
6773
6789
|
*/
|
|
6774
6790
|
rejectionReason?: string;
|
|
6775
6791
|
/**
|
|
6776
|
-
* @generated from field: optional trading.v1.
|
|
6792
|
+
* @generated from field: optional trading.v1.SponsorMetadata sponsor_metadata = 3;
|
|
6793
|
+
*/
|
|
6794
|
+
sponsorMetadata?: SponsorMetadata;
|
|
6795
|
+
/**
|
|
6796
|
+
* @generated from field: optional trading.v1.CampaignDetails campaign = 4;
|
|
6777
6797
|
*/
|
|
6778
|
-
|
|
6798
|
+
campaign?: CampaignDetails;
|
|
6779
6799
|
constructor(data?: PartialMessage<SponsorshipInfo>);
|
|
6780
6800
|
static readonly runtime: typeof proto3;
|
|
6781
6801
|
static readonly typeName = "trading.v1.SponsorshipInfo";
|
|
@@ -157,6 +157,10 @@ export var ChainId;
|
|
|
157
157
|
* @generated from enum value: TEMPO = 4217;
|
|
158
158
|
*/
|
|
159
159
|
ChainId[ChainId["TEMPO"] = 4217] = "TEMPO";
|
|
160
|
+
/**
|
|
161
|
+
* @generated from enum value: ROBINHOOD = 4663;
|
|
162
|
+
*/
|
|
163
|
+
ChainId[ChainId["ROBINHOOD"] = 4663] = "ROBINHOOD";
|
|
160
164
|
})(ChainId || (ChainId = {}));
|
|
161
165
|
// Retrieve enum metadata with: proto3.getEnumType(ChainId)
|
|
162
166
|
proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
@@ -184,6 +188,7 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
|
184
188
|
{ no: 59144, name: "LINEA" },
|
|
185
189
|
{ no: 4326, name: "MEGAETH" },
|
|
186
190
|
{ no: 4217, name: "TEMPO" },
|
|
191
|
+
{ no: 4663, name: "ROBINHOOD" },
|
|
187
192
|
]);
|
|
188
193
|
/**
|
|
189
194
|
* @generated from enum trading.v1.Protocols
|
|
@@ -960,37 +965,6 @@ UserOperation.fields = proto3.util.newFieldList(() => [
|
|
|
960
965
|
{ no: 15, name: "factory", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
961
966
|
{ no: 16, name: "factory_data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
962
967
|
]);
|
|
963
|
-
/**
|
|
964
|
-
* @generated from message trading.v1.SponsorMetadata
|
|
965
|
-
*/
|
|
966
|
-
export class SponsorMetadata extends Message {
|
|
967
|
-
constructor(data) {
|
|
968
|
-
super();
|
|
969
|
-
/**
|
|
970
|
-
* @generated from field: string name = 1;
|
|
971
|
-
*/
|
|
972
|
-
this.name = "";
|
|
973
|
-
proto3.util.initPartial(data, this);
|
|
974
|
-
}
|
|
975
|
-
static fromBinary(bytes, options) {
|
|
976
|
-
return new SponsorMetadata().fromBinary(bytes, options);
|
|
977
|
-
}
|
|
978
|
-
static fromJson(jsonValue, options) {
|
|
979
|
-
return new SponsorMetadata().fromJson(jsonValue, options);
|
|
980
|
-
}
|
|
981
|
-
static fromJsonString(jsonString, options) {
|
|
982
|
-
return new SponsorMetadata().fromJsonString(jsonString, options);
|
|
983
|
-
}
|
|
984
|
-
static equals(a, b) {
|
|
985
|
-
return proto3.util.equals(SponsorMetadata, a, b);
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
SponsorMetadata.runtime = proto3;
|
|
989
|
-
SponsorMetadata.typeName = "trading.v1.SponsorMetadata";
|
|
990
|
-
SponsorMetadata.fields = proto3.util.newFieldList(() => [
|
|
991
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
992
|
-
{ no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
993
|
-
]);
|
|
994
968
|
/**
|
|
995
969
|
* @generated from message trading.v1.Encode4337Response
|
|
996
970
|
*/
|
|
@@ -1025,7 +999,7 @@ Encode4337Response.typeName = "trading.v1.Encode4337Response";
|
|
|
1025
999
|
Encode4337Response.fields = proto3.util.newFieldList(() => [
|
|
1026
1000
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1027
1001
|
{ no: 2, name: "user_operation", kind: "message", T: UserOperation },
|
|
1028
|
-
{ no: 3, name: "sponsor_metadata", kind: "message", T: SponsorMetadata },
|
|
1002
|
+
{ no: 3, name: "sponsor_metadata", kind: "message", T: SponsorMetadata, opt: true },
|
|
1029
1003
|
{ no: 4, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1030
1004
|
{ no: 5, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1031
1005
|
]);
|
|
@@ -1072,6 +1046,7 @@ Swap4337Request.fields = proto3.util.newFieldList(() => [
|
|
|
1072
1046
|
{ no: 5, name: "permit_data", kind: "message", T: PermitSingleData, opt: true },
|
|
1073
1047
|
{ no: 6, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1074
1048
|
{ no: 7, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
1049
|
+
{ no: 8, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
1075
1050
|
]);
|
|
1076
1051
|
/**
|
|
1077
1052
|
* @generated from message trading.v1.Swap4337Response
|
|
@@ -1109,6 +1084,7 @@ Swap4337Response.fields = proto3.util.newFieldList(() => [
|
|
|
1109
1084
|
{ no: 2, name: "user_operation", kind: "message", T: UserOperation },
|
|
1110
1085
|
{ no: 3, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1111
1086
|
{ no: 4, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1087
|
+
{ no: 5, name: "paymaster_service_context", kind: "message", T: PaymasterServiceContext, opt: true },
|
|
1112
1088
|
]);
|
|
1113
1089
|
/**
|
|
1114
1090
|
* @generated from message trading.v1.Swap5792Request
|
|
@@ -1149,6 +1125,7 @@ Swap5792Request.fields = proto3.util.newFieldList(() => [
|
|
|
1149
1125
|
{ no: 5, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1150
1126
|
{ no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
1151
1127
|
{ no: 7, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
1128
|
+
{ no: 8, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
1152
1129
|
]);
|
|
1153
1130
|
/**
|
|
1154
1131
|
* @generated from message trading.v1.Swap5792Response
|
|
@@ -2484,7 +2461,7 @@ export class AggregatedOutput extends Message {
|
|
|
2484
2461
|
*/
|
|
2485
2462
|
this.recipient = "";
|
|
2486
2463
|
/**
|
|
2487
|
-
* @generated from field:
|
|
2464
|
+
* @generated from field: double bps = 4;
|
|
2488
2465
|
*/
|
|
2489
2466
|
this.bps = 0;
|
|
2490
2467
|
proto3.util.initPartial(data, this);
|
|
@@ -2508,7 +2485,7 @@ AggregatedOutput.fields = proto3.util.newFieldList(() => [
|
|
|
2508
2485
|
{ no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2509
2486
|
{ no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2510
2487
|
{ no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2511
|
-
{ no: 4, name: "bps", kind: "scalar", T:
|
|
2488
|
+
{ no: 4, name: "bps", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
2512
2489
|
{ no: 5, name: "min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2513
2490
|
]);
|
|
2514
2491
|
/**
|
|
@@ -2622,10 +2599,9 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
|
|
|
2622
2599
|
{ no: 19, name: "tx_failure_reasons", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2623
2600
|
{ no: 20, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
2624
2601
|
{ no: 21, name: "aggregated_outputs", kind: "message", T: AggregatedOutput, repeated: true },
|
|
2625
|
-
{ no: 22, name: "portion_bips", kind: "scalar", T:
|
|
2602
|
+
{ no: 22, name: "portion_bips", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
2626
2603
|
{ no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2627
2604
|
{ no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2628
|
-
{ no: 25, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
2629
2605
|
{ no: 26, name: "swap_steps", kind: "message", T: SwapStep, repeated: true },
|
|
2630
2606
|
]);
|
|
2631
2607
|
/**
|
|
@@ -3872,7 +3848,6 @@ WrapUnwrapQuote.fields = proto3.util.newFieldList(() => [
|
|
|
3872
3848
|
{ no: 11, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3873
3849
|
{ no: 12, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3874
3850
|
{ no: 13, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3875
|
-
{ no: 14, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
3876
3851
|
]);
|
|
3877
3852
|
/**
|
|
3878
3853
|
* @generated from message trading.v1.SwapRequest
|
|
@@ -4103,6 +4078,7 @@ GetSwapsRequest.fields = proto3.util.newFieldList(() => [
|
|
|
4103
4078
|
{ no: 1, name: "tx_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
4104
4079
|
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
4105
4080
|
{ no: 3, name: "user_op_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
4081
|
+
{ no: 4, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4106
4082
|
]);
|
|
4107
4083
|
/**
|
|
4108
4084
|
* @generated from message trading.v1.GetSwapsResponse
|
|
@@ -4185,6 +4161,8 @@ SwapResult.fields = proto3.util.newFieldList(() => [
|
|
|
4185
4161
|
{ no: 4, name: "swap_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4186
4162
|
{ no: 5, name: "user_op_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4187
4163
|
{ no: 6, name: "hash_type", kind: "enum", T: proto3.getEnumType(SwapResult_HashType) },
|
|
4164
|
+
{ no: 7, name: "paymaster", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4165
|
+
{ no: 8, name: "sponsorship", kind: "message", T: SponsorMetadata, opt: true },
|
|
4188
4166
|
]);
|
|
4189
4167
|
/**
|
|
4190
4168
|
* @generated from enum trading.v1.SwapResult.SwapStatus
|
|
@@ -5495,7 +5473,6 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
|
|
|
5495
5473
|
{ no: 17, name: "fill_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
5496
5474
|
{ no: 18, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5497
5475
|
{ no: 19, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
5498
|
-
{ no: 20, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
5499
5476
|
]);
|
|
5500
5477
|
/**
|
|
5501
5478
|
* @generated from message trading.v1.DutchLimitOrderInfo
|
|
@@ -5626,7 +5603,7 @@ DutchLimitQuote.fields = proto3.util.newFieldList(() => [
|
|
|
5626
5603
|
{ no: 5, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5627
5604
|
{ no: 6, name: "classic_gas_use_estimate_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5628
5605
|
{ no: 7, name: "aggregated_outputs", kind: "message", T: AggregatedOutput, repeated: true },
|
|
5629
|
-
{ no: 8, name: "portion_bips", kind: "scalar", T:
|
|
5606
|
+
{ no: 8, name: "portion_bips", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
5630
5607
|
{ no: 9, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5631
5608
|
{ no: 10, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5632
5609
|
{ no: 11, name: "input", kind: "message", T: QuoteInput },
|
|
@@ -5755,7 +5732,7 @@ DutchLimitV2Quote.fields = proto3.util.newFieldList(() => [
|
|
|
5755
5732
|
{ no: 6, name: "classic_gas_use_estimate_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5756
5733
|
{ no: 7, name: "deadline_buffer_secs", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
5757
5734
|
{ no: 8, name: "aggregated_outputs", kind: "message", T: AggregatedOutput, repeated: true },
|
|
5758
|
-
{ no: 9, name: "portion_bips", kind: "scalar", T:
|
|
5735
|
+
{ no: 9, name: "portion_bips", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
5759
5736
|
{ no: 10, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5760
5737
|
{ no: 11, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5761
5738
|
{ no: 12, name: "input", kind: "message", T: QuoteInput },
|
|
@@ -5891,7 +5868,7 @@ DutchLimitV3Quote.fields = proto3.util.newFieldList(() => [
|
|
|
5891
5868
|
{ no: 8, name: "expected_amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5892
5869
|
{ no: 9, name: "expected_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5893
5870
|
{ no: 10, name: "aggregated_outputs", kind: "message", T: AggregatedOutput, repeated: true },
|
|
5894
|
-
{ no: 11, name: "portion_bips", kind: "scalar", T:
|
|
5871
|
+
{ no: 11, name: "portion_bips", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
5895
5872
|
{ no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5896
5873
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5897
5874
|
{ no: 14, name: "input", kind: "message", T: QuoteInput },
|
|
@@ -6230,7 +6207,7 @@ PriorityQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6230
6207
|
{ no: 8, name: "expected_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6231
6208
|
{ no: 9, name: "classic_gas_use_estimate_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6232
6209
|
{ no: 10, name: "aggregated_outputs", kind: "message", T: AggregatedOutput, repeated: true },
|
|
6233
|
-
{ no: 11, name: "portion_bips", kind: "scalar", T:
|
|
6210
|
+
{ no: 11, name: "portion_bips", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6234
6211
|
{ no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6235
6212
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6236
6213
|
{ no: 14, name: "input", kind: "message", T: QuoteInput },
|
|
@@ -7976,31 +7953,58 @@ WalletInfo.fields = proto3.util.newFieldList(() => [
|
|
|
7976
7953
|
{ no: 3, name: "rdns", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7977
7954
|
]);
|
|
7978
7955
|
/**
|
|
7979
|
-
* @generated from message trading.v1.
|
|
7956
|
+
* @generated from message trading.v1.SponsorMetadata
|
|
7957
|
+
*/
|
|
7958
|
+
export class SponsorMetadata extends Message {
|
|
7959
|
+
constructor(data) {
|
|
7960
|
+
super();
|
|
7961
|
+
proto3.util.initPartial(data, this);
|
|
7962
|
+
}
|
|
7963
|
+
static fromBinary(bytes, options) {
|
|
7964
|
+
return new SponsorMetadata().fromBinary(bytes, options);
|
|
7965
|
+
}
|
|
7966
|
+
static fromJson(jsonValue, options) {
|
|
7967
|
+
return new SponsorMetadata().fromJson(jsonValue, options);
|
|
7968
|
+
}
|
|
7969
|
+
static fromJsonString(jsonString, options) {
|
|
7970
|
+
return new SponsorMetadata().fromJsonString(jsonString, options);
|
|
7971
|
+
}
|
|
7972
|
+
static equals(a, b) {
|
|
7973
|
+
return proto3.util.equals(SponsorMetadata, a, b);
|
|
7974
|
+
}
|
|
7975
|
+
}
|
|
7976
|
+
SponsorMetadata.runtime = proto3;
|
|
7977
|
+
SponsorMetadata.typeName = "trading.v1.SponsorMetadata";
|
|
7978
|
+
SponsorMetadata.fields = proto3.util.newFieldList(() => [
|
|
7979
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7980
|
+
{ no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7981
|
+
]);
|
|
7982
|
+
/**
|
|
7983
|
+
* @generated from message trading.v1.CampaignDetails
|
|
7980
7984
|
*/
|
|
7981
|
-
export class
|
|
7985
|
+
export class CampaignDetails extends Message {
|
|
7982
7986
|
constructor(data) {
|
|
7983
7987
|
super();
|
|
7984
7988
|
proto3.util.initPartial(data, this);
|
|
7985
7989
|
}
|
|
7986
7990
|
static fromBinary(bytes, options) {
|
|
7987
|
-
return new
|
|
7991
|
+
return new CampaignDetails().fromBinary(bytes, options);
|
|
7988
7992
|
}
|
|
7989
7993
|
static fromJson(jsonValue, options) {
|
|
7990
|
-
return new
|
|
7994
|
+
return new CampaignDetails().fromJson(jsonValue, options);
|
|
7991
7995
|
}
|
|
7992
7996
|
static fromJsonString(jsonString, options) {
|
|
7993
|
-
return new
|
|
7997
|
+
return new CampaignDetails().fromJsonString(jsonString, options);
|
|
7994
7998
|
}
|
|
7995
7999
|
static equals(a, b) {
|
|
7996
|
-
return proto3.util.equals(
|
|
8000
|
+
return proto3.util.equals(CampaignDetails, a, b);
|
|
7997
8001
|
}
|
|
7998
8002
|
}
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8003
|
+
CampaignDetails.runtime = proto3;
|
|
8004
|
+
CampaignDetails.typeName = "trading.v1.CampaignDetails";
|
|
8005
|
+
CampaignDetails.fields = proto3.util.newFieldList(() => [
|
|
8002
8006
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
8003
|
-
{ no: 2, name: "
|
|
8007
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
8004
8008
|
]);
|
|
8005
8009
|
/**
|
|
8006
8010
|
* @generated from message trading.v1.SponsorshipInfo
|
|
@@ -8028,5 +8032,6 @@ SponsorshipInfo.typeName = "trading.v1.SponsorshipInfo";
|
|
|
8028
8032
|
SponsorshipInfo.fields = proto3.util.newFieldList(() => [
|
|
8029
8033
|
{ no: 1, name: "sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
8030
8034
|
{ no: 2, name: "rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
8031
|
-
{ no: 3, name: "
|
|
8035
|
+
{ no: 3, name: "sponsor_metadata", kind: "message", T: SponsorMetadata, opt: true },
|
|
8036
|
+
{ no: 4, name: "campaign", kind: "message", T: CampaignDetails, opt: true },
|
|
8032
8037
|
]);
|