@uniswap/client-trading 0.1.9 → 0.2.0

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.
@@ -1,5 +1,5 @@
1
1
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
- import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
2
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc trading.v1.tradingService.Quote
5
5
  */
@@ -112,20 +112,6 @@ export declare const order: {
112
112
  readonly typeName: "trading.v1.tradingService";
113
113
  };
114
114
  };
115
- /**
116
- * @generated from rpc trading.v1.tradingService.Send
117
- */
118
- export declare const send: {
119
- readonly localName: "send";
120
- readonly name: "Send";
121
- readonly kind: MethodKind.Unary;
122
- readonly I: typeof SendRequest;
123
- readonly O: typeof SendResponse;
124
- readonly idempotency: MethodIdempotency.NoSideEffects;
125
- readonly service: {
126
- readonly typeName: "trading.v1.tradingService";
127
- };
128
- };
129
115
  /**
130
116
  * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
131
117
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
- import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
6
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc trading.v1.tradingService.Quote
9
9
  */
@@ -116,20 +116,6 @@ export const order = {
116
116
  typeName: "trading.v1.tradingService"
117
117
  }
118
118
  };
119
- /**
120
- * @generated from rpc trading.v1.tradingService.Send
121
- */
122
- export const send = {
123
- localName: "send",
124
- name: "Send",
125
- kind: MethodKind.Unary,
126
- I: SendRequest,
127
- O: SendResponse,
128
- idempotency: MethodIdempotency.NoSideEffects,
129
- service: {
130
- typeName: "trading.v1.tradingService"
131
- }
132
- };
133
119
  /**
134
120
  * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
135
121
  */
@@ -1,4 +1,4 @@
1
- import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
1
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
2
2
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service trading.v1.tradingService
@@ -86,16 +86,6 @@ export declare const tradingService: {
86
86
  readonly kind: MethodKind.Unary;
87
87
  readonly idempotency: MethodIdempotency.NoSideEffects;
88
88
  };
89
- /**
90
- * @generated from rpc trading.v1.tradingService.Send
91
- */
92
- readonly send: {
93
- readonly name: "Send";
94
- readonly I: typeof SendRequest;
95
- readonly O: typeof SendResponse;
96
- readonly kind: MethodKind.Unary;
97
- readonly idempotency: MethodIdempotency.NoSideEffects;
98
- };
99
89
  /**
100
90
  * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
101
91
  */
@@ -2,7 +2,7 @@
2
2
  // @generated from file trading/v1/api.proto (package trading.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
5
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
6
6
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service trading.v1.tradingService
@@ -90,16 +90,6 @@ export const tradingService = {
90
90
  kind: MethodKind.Unary,
91
91
  idempotency: MethodIdempotency.NoSideEffects,
92
92
  },
93
- /**
94
- * @generated from rpc trading.v1.tradingService.Send
95
- */
96
- send: {
97
- name: "Send",
98
- I: SendRequest,
99
- O: SendResponse,
100
- kind: MethodKind.Unary,
101
- idempotency: MethodIdempotency.NoSideEffects,
102
- },
103
93
  /**
104
94
  * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
105
95
  */
@@ -985,80 +985,6 @@ export declare class PaymasterServiceContext extends Message<PaymasterServiceCon
985
985
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterServiceContext;
986
986
  static equals(a: PaymasterServiceContext | PlainMessage<PaymasterServiceContext> | undefined, b: PaymasterServiceContext | PlainMessage<PaymasterServiceContext> | undefined): boolean;
987
987
  }
988
- /**
989
- * @generated from message trading.v1.SendRequest
990
- */
991
- export declare class SendRequest extends Message<SendRequest> {
992
- /**
993
- * @generated from field: string sender = 1;
994
- */
995
- sender: string;
996
- /**
997
- * @generated from field: string recipient = 2;
998
- */
999
- recipient: string;
1000
- /**
1001
- * @generated from field: trading.v1.ChainId chain_id = 3;
1002
- */
1003
- chainId: ChainId;
1004
- /**
1005
- * @generated from field: string token = 4;
1006
- */
1007
- token: string;
1008
- /**
1009
- * @generated from field: string amount = 5;
1010
- */
1011
- amount: string;
1012
- /**
1013
- * @generated from field: optional trading.v1.Urgency urgency = 6;
1014
- */
1015
- urgency?: Urgency;
1016
- /**
1017
- * @generated from field: repeated trading.v1.GasStrategy gas_strategies = 7;
1018
- */
1019
- gasStrategies: GasStrategy[];
1020
- constructor(data?: PartialMessage<SendRequest>);
1021
- static readonly runtime: typeof proto3;
1022
- static readonly typeName = "trading.v1.SendRequest";
1023
- static readonly fields: FieldList;
1024
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendRequest;
1025
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendRequest;
1026
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendRequest;
1027
- static equals(a: SendRequest | PlainMessage<SendRequest> | undefined, b: SendRequest | PlainMessage<SendRequest> | undefined): boolean;
1028
- }
1029
- /**
1030
- * @generated from message trading.v1.SendResponse
1031
- */
1032
- export declare class SendResponse extends Message<SendResponse> {
1033
- /**
1034
- * @generated from field: string request_id = 1;
1035
- */
1036
- requestId: string;
1037
- /**
1038
- * @generated from field: optional trading.v1.TransactionRequest send = 2;
1039
- */
1040
- send?: TransactionRequest;
1041
- /**
1042
- * @generated from field: optional string gas_fee = 3;
1043
- */
1044
- gasFee?: string;
1045
- /**
1046
- * @generated from field: optional string gas_fee_usd = 4;
1047
- */
1048
- gasFeeUsd?: string;
1049
- /**
1050
- * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 5;
1051
- */
1052
- gasEstimates: GasEstimate[];
1053
- constructor(data?: PartialMessage<SendResponse>);
1054
- static readonly runtime: typeof proto3;
1055
- static readonly typeName = "trading.v1.SendResponse";
1056
- static readonly fields: FieldList;
1057
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendResponse;
1058
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendResponse;
1059
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendResponse;
1060
- static equals(a: SendResponse | PlainMessage<SendResponse> | undefined, b: SendResponse | PlainMessage<SendResponse> | undefined): boolean;
1061
- }
1062
988
  /**
1063
989
  * @generated from message trading.v1.V4Position
1064
990
  */
@@ -1254,100 +1254,6 @@ PaymasterServiceContext.typeName = "trading.v1.PaymasterServiceContext";
1254
1254
  PaymasterServiceContext.fields = proto3.util.newFieldList(() => [
1255
1255
  { no: 1, name: "sponsorship", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1256
1256
  ]);
1257
- /**
1258
- * @generated from message trading.v1.SendRequest
1259
- */
1260
- export class SendRequest extends Message {
1261
- constructor(data) {
1262
- super();
1263
- /**
1264
- * @generated from field: string sender = 1;
1265
- */
1266
- this.sender = "";
1267
- /**
1268
- * @generated from field: string recipient = 2;
1269
- */
1270
- this.recipient = "";
1271
- /**
1272
- * @generated from field: trading.v1.ChainId chain_id = 3;
1273
- */
1274
- this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1275
- /**
1276
- * @generated from field: string token = 4;
1277
- */
1278
- this.token = "";
1279
- /**
1280
- * @generated from field: string amount = 5;
1281
- */
1282
- this.amount = "";
1283
- /**
1284
- * @generated from field: repeated trading.v1.GasStrategy gas_strategies = 7;
1285
- */
1286
- this.gasStrategies = [];
1287
- proto3.util.initPartial(data, this);
1288
- }
1289
- static fromBinary(bytes, options) {
1290
- return new SendRequest().fromBinary(bytes, options);
1291
- }
1292
- static fromJson(jsonValue, options) {
1293
- return new SendRequest().fromJson(jsonValue, options);
1294
- }
1295
- static fromJsonString(jsonString, options) {
1296
- return new SendRequest().fromJsonString(jsonString, options);
1297
- }
1298
- static equals(a, b) {
1299
- return proto3.util.equals(SendRequest, a, b);
1300
- }
1301
- }
1302
- SendRequest.runtime = proto3;
1303
- SendRequest.typeName = "trading.v1.SendRequest";
1304
- SendRequest.fields = proto3.util.newFieldList(() => [
1305
- { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1306
- { no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1307
- { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1308
- { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1309
- { no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1310
- { no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
1311
- { no: 7, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
1312
- ]);
1313
- /**
1314
- * @generated from message trading.v1.SendResponse
1315
- */
1316
- export class SendResponse extends Message {
1317
- constructor(data) {
1318
- super();
1319
- /**
1320
- * @generated from field: string request_id = 1;
1321
- */
1322
- this.requestId = "";
1323
- /**
1324
- * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 5;
1325
- */
1326
- this.gasEstimates = [];
1327
- proto3.util.initPartial(data, this);
1328
- }
1329
- static fromBinary(bytes, options) {
1330
- return new SendResponse().fromBinary(bytes, options);
1331
- }
1332
- static fromJson(jsonValue, options) {
1333
- return new SendResponse().fromJson(jsonValue, options);
1334
- }
1335
- static fromJsonString(jsonString, options) {
1336
- return new SendResponse().fromJsonString(jsonString, options);
1337
- }
1338
- static equals(a, b) {
1339
- return proto3.util.equals(SendResponse, a, b);
1340
- }
1341
- }
1342
- SendResponse.runtime = proto3;
1343
- SendResponse.typeName = "trading.v1.SendResponse";
1344
- SendResponse.fields = proto3.util.newFieldList(() => [
1345
- { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1346
- { no: 2, name: "send", kind: "message", T: TransactionRequest, opt: true },
1347
- { no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1348
- { no: 4, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1349
- { no: 5, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
1350
- ]);
1351
1257
  /**
1352
1258
  * @generated from message trading.v1.V4Position
1353
1259
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },