@uniswap/client-trading 0.4.4 → 0.5.1
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 +25 -1
- package/dist/trading/v1/api_pb.js +14 -0
- package/package.json +1 -1
|
@@ -141,7 +141,11 @@ export declare enum ChainId {
|
|
|
141
141
|
/**
|
|
142
142
|
* @generated from enum value: ROBINHOOD = 4663;
|
|
143
143
|
*/
|
|
144
|
-
ROBINHOOD = 4663
|
|
144
|
+
ROBINHOOD = 4663,
|
|
145
|
+
/**
|
|
146
|
+
* @generated from enum value: ARC = 5042;
|
|
147
|
+
*/
|
|
148
|
+
ARC = 5042
|
|
145
149
|
}
|
|
146
150
|
/**
|
|
147
151
|
* @generated from enum trading.v1.Protocols
|
|
@@ -637,6 +641,10 @@ export declare class Encode4337Request extends Message<Encode4337Request> {
|
|
|
637
641
|
* @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 6;
|
|
638
642
|
*/
|
|
639
643
|
eip7702Auth?: Eip7702Authorization;
|
|
644
|
+
/**
|
|
645
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 7;
|
|
646
|
+
*/
|
|
647
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
640
648
|
constructor(data?: PartialMessage<Encode4337Request>);
|
|
641
649
|
static readonly runtime: typeof proto3;
|
|
642
650
|
static readonly typeName = "trading.v1.Encode4337Request";
|
|
@@ -805,6 +813,10 @@ export declare class Swap4337Request extends Message<Swap4337Request> {
|
|
|
805
813
|
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 8;
|
|
806
814
|
*/
|
|
807
815
|
sponsorshipInfo?: SponsorshipInfo;
|
|
816
|
+
/**
|
|
817
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 9;
|
|
818
|
+
*/
|
|
819
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
808
820
|
constructor(data?: PartialMessage<Swap4337Request>);
|
|
809
821
|
static readonly runtime: typeof proto3;
|
|
810
822
|
static readonly typeName = "trading.v1.Swap4337Request";
|
|
@@ -3262,6 +3274,10 @@ export declare class SwapRequest extends Message<SwapRequest> {
|
|
|
3262
3274
|
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 14;
|
|
3263
3275
|
*/
|
|
3264
3276
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
3277
|
+
/**
|
|
3278
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 15;
|
|
3279
|
+
*/
|
|
3280
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
3265
3281
|
constructor(data?: PartialMessage<SwapRequest>);
|
|
3266
3282
|
static readonly runtime: typeof proto3;
|
|
3267
3283
|
static readonly typeName = "trading.v1.SwapRequest";
|
|
@@ -3374,6 +3390,10 @@ export declare class Swap7702Request extends Message<Swap7702Request> {
|
|
|
3374
3390
|
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 11;
|
|
3375
3391
|
*/
|
|
3376
3392
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
3393
|
+
/**
|
|
3394
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 12;
|
|
3395
|
+
*/
|
|
3396
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
3377
3397
|
constructor(data?: PartialMessage<Swap7702Request>);
|
|
3378
3398
|
static readonly runtime: typeof proto3;
|
|
3379
3399
|
static readonly typeName = "trading.v1.Swap7702Request";
|
|
@@ -5156,6 +5176,10 @@ export declare class PermissionsResult extends Message<PermissionsResult> {
|
|
|
5156
5176
|
* @generated from field: optional string kyc_url = 5;
|
|
5157
5177
|
*/
|
|
5158
5178
|
kycUrl?: string;
|
|
5179
|
+
/**
|
|
5180
|
+
* @generated from field: string issuer = 6;
|
|
5181
|
+
*/
|
|
5182
|
+
issuer: string;
|
|
5159
5183
|
constructor(data?: PartialMessage<PermissionsResult>);
|
|
5160
5184
|
static readonly runtime: typeof proto3;
|
|
5161
5185
|
static readonly typeName = "trading.v1.PermissionsResult";
|
|
@@ -161,6 +161,10 @@ export var ChainId;
|
|
|
161
161
|
* @generated from enum value: ROBINHOOD = 4663;
|
|
162
162
|
*/
|
|
163
163
|
ChainId[ChainId["ROBINHOOD"] = 4663] = "ROBINHOOD";
|
|
164
|
+
/**
|
|
165
|
+
* @generated from enum value: ARC = 5042;
|
|
166
|
+
*/
|
|
167
|
+
ChainId[ChainId["ARC"] = 5042] = "ARC";
|
|
164
168
|
})(ChainId || (ChainId = {}));
|
|
165
169
|
// Retrieve enum metadata with: proto3.getEnumType(ChainId)
|
|
166
170
|
proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
@@ -189,6 +193,7 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
|
189
193
|
{ no: 4326, name: "MEGAETH" },
|
|
190
194
|
{ no: 4217, name: "TEMPO" },
|
|
191
195
|
{ no: 4663, name: "ROBINHOOD" },
|
|
196
|
+
{ no: 5042, name: "ARC" },
|
|
192
197
|
]);
|
|
193
198
|
/**
|
|
194
199
|
* @generated from enum trading.v1.Protocols
|
|
@@ -887,6 +892,7 @@ Encode4337Request.fields = proto3.util.newFieldList(() => [
|
|
|
887
892
|
{ no: 4, name: "paymaster_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
888
893
|
{ no: 5, name: "paymaster_service_context", kind: "message", T: Struct },
|
|
889
894
|
{ no: 6, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
895
|
+
{ no: 7, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
890
896
|
]);
|
|
891
897
|
/**
|
|
892
898
|
* @generated from message trading.v1.UserOperation
|
|
@@ -1047,6 +1053,7 @@ Swap4337Request.fields = proto3.util.newFieldList(() => [
|
|
|
1047
1053
|
{ no: 6, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1048
1054
|
{ no: 7, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
1049
1055
|
{ no: 8, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
1056
|
+
{ no: 9, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
1050
1057
|
]);
|
|
1051
1058
|
/**
|
|
1052
1059
|
* @generated from message trading.v1.Swap4337Response
|
|
@@ -3896,6 +3903,7 @@ SwapRequest.fields = proto3.util.newFieldList(() => [
|
|
|
3896
3903
|
{ no: 12, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
3897
3904
|
{ no: 13, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
3898
3905
|
{ no: 14, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
3906
|
+
{ no: 15, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
3899
3907
|
]);
|
|
3900
3908
|
/**
|
|
3901
3909
|
* @generated from message trading.v1.SwapResponse
|
|
@@ -4001,6 +4009,7 @@ Swap7702Request.fields = proto3.util.newFieldList(() => [
|
|
|
4001
4009
|
{ no: 9, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
4002
4010
|
{ no: 10, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
4003
4011
|
{ no: 11, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
4012
|
+
{ no: 12, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
4004
4013
|
]);
|
|
4005
4014
|
/**
|
|
4006
4015
|
* @generated from message trading.v1.Swap7702Response
|
|
@@ -6052,6 +6061,10 @@ export class PermissionsResult extends Message {
|
|
|
6052
6061
|
* @generated from field: bool is_permissioned = 2;
|
|
6053
6062
|
*/
|
|
6054
6063
|
this.isPermissioned = false;
|
|
6064
|
+
/**
|
|
6065
|
+
* @generated from field: string issuer = 6;
|
|
6066
|
+
*/
|
|
6067
|
+
this.issuer = "";
|
|
6055
6068
|
proto3.util.initPartial(data, this);
|
|
6056
6069
|
}
|
|
6057
6070
|
static fromBinary(bytes, options) {
|
|
@@ -6075,6 +6088,7 @@ PermissionsResult.fields = proto3.util.newFieldList(() => [
|
|
|
6075
6088
|
{ no: 3, name: "is_allowlisted", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
6076
6089
|
{ no: 4, name: "adapter_token_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6077
6090
|
{ no: 5, name: "kyc_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6091
|
+
{ no: 6, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6078
6092
|
]);
|
|
6079
6093
|
/**
|
|
6080
6094
|
* @generated from message trading.v1.PriorityOrderInfo
|