@uniswap/client-trading 0.1.5 → 0.1.6

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, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, 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, SendRequest, SendResponse, 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
  */
@@ -168,6 +168,20 @@ export declare const encode7702: {
168
168
  readonly typeName: "trading.v1.tradingService";
169
169
  };
170
170
  };
171
+ /**
172
+ * @generated from rpc trading.v1.tradingService.Encode4337
173
+ */
174
+ export declare const encode4337: {
175
+ readonly localName: "encode4337";
176
+ readonly name: "Encode4337";
177
+ readonly kind: MethodKind.Unary;
178
+ readonly I: typeof Encode4337Request;
179
+ readonly O: typeof Encode4337Response;
180
+ readonly idempotency: MethodIdempotency.NoSideEffects;
181
+ readonly service: {
182
+ readonly typeName: "trading.v1.tradingService";
183
+ };
184
+ };
171
185
  /**
172
186
  * @generated from rpc trading.v1.tradingService.CreatePlan
173
187
  */
@@ -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, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, 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, SendRequest, SendResponse, 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
  */
@@ -172,6 +172,20 @@ export const encode7702 = {
172
172
  typeName: "trading.v1.tradingService"
173
173
  }
174
174
  };
175
+ /**
176
+ * @generated from rpc trading.v1.tradingService.Encode4337
177
+ */
178
+ export const encode4337 = {
179
+ localName: "encode4337",
180
+ name: "Encode4337",
181
+ kind: MethodKind.Unary,
182
+ I: Encode4337Request,
183
+ O: Encode4337Response,
184
+ idempotency: MethodIdempotency.NoSideEffects,
185
+ service: {
186
+ typeName: "trading.v1.tradingService"
187
+ }
188
+ };
175
189
  /**
176
190
  * @generated from rpc trading.v1.tradingService.CreatePlan
177
191
  */
@@ -1,4 +1,4 @@
1
- import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, 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, SendRequest, SendResponse, 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
@@ -126,6 +126,16 @@ export declare const tradingService: {
126
126
  readonly kind: MethodKind.Unary;
127
127
  readonly idempotency: MethodIdempotency.NoSideEffects;
128
128
  };
129
+ /**
130
+ * @generated from rpc trading.v1.tradingService.Encode4337
131
+ */
132
+ readonly encode4337: {
133
+ readonly name: "Encode4337";
134
+ readonly I: typeof Encode4337Request;
135
+ readonly O: typeof Encode4337Response;
136
+ readonly kind: MethodKind.Unary;
137
+ readonly idempotency: MethodIdempotency.NoSideEffects;
138
+ };
129
139
  /**
130
140
  * @generated from rpc trading.v1.tradingService.CreatePlan
131
141
  */
@@ -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, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, 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, SendRequest, SendResponse, 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
@@ -130,6 +130,16 @@ export const tradingService = {
130
130
  kind: MethodKind.Unary,
131
131
  idempotency: MethodIdempotency.NoSideEffects,
132
132
  },
133
+ /**
134
+ * @generated from rpc trading.v1.tradingService.Encode4337
135
+ */
136
+ encode4337: {
137
+ name: "Encode4337",
138
+ I: Encode4337Request,
139
+ O: Encode4337Response,
140
+ kind: MethodKind.Unary,
141
+ idempotency: MethodIdempotency.NoSideEffects,
142
+ },
133
143
  /**
134
144
  * @generated from rpc trading.v1.tradingService.CreatePlan
135
145
  */
@@ -125,7 +125,15 @@ export declare enum ChainId {
125
125
  /**
126
126
  * @generated from enum value: XLAYER = 196;
127
127
  */
128
- XLAYER = 196
128
+ XLAYER = 196,
129
+ /**
130
+ * @generated from enum value: LINEA = 59144;
131
+ */
132
+ LINEA = 59144,
133
+ /**
134
+ * @generated from enum value: TEMPO = 4217;
135
+ */
136
+ TEMPO = 4217
129
137
  }
130
138
  /**
131
139
  * @generated from enum trading.v1.Protocols
@@ -552,6 +560,215 @@ export declare class Encode7702Response extends Message<Encode7702Response> {
552
560
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode7702Response;
553
561
  static equals(a: Encode7702Response | PlainMessage<Encode7702Response> | undefined, b: Encode7702Response | PlainMessage<Encode7702Response> | undefined): boolean;
554
562
  }
563
+ /**
564
+ * @generated from message trading.v1.Eip7702Authorization
565
+ */
566
+ export declare class Eip7702Authorization extends Message<Eip7702Authorization> {
567
+ /**
568
+ * @generated from field: string address = 1;
569
+ */
570
+ address: string;
571
+ /**
572
+ * @generated from field: string chain_id = 2;
573
+ */
574
+ chainId: string;
575
+ /**
576
+ * @generated from field: string nonce = 3;
577
+ */
578
+ nonce: string;
579
+ /**
580
+ * @generated from field: string r = 4;
581
+ */
582
+ r: string;
583
+ /**
584
+ * @generated from field: string s = 5;
585
+ */
586
+ s: string;
587
+ /**
588
+ * @generated from field: string v = 6;
589
+ */
590
+ v: string;
591
+ /**
592
+ * @generated from field: string y_parity = 7;
593
+ */
594
+ yParity: string;
595
+ constructor(data?: PartialMessage<Eip7702Authorization>);
596
+ static readonly runtime: typeof proto3;
597
+ static readonly typeName = "trading.v1.Eip7702Authorization";
598
+ static readonly fields: FieldList;
599
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Eip7702Authorization;
600
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Eip7702Authorization;
601
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Eip7702Authorization;
602
+ static equals(a: Eip7702Authorization | PlainMessage<Eip7702Authorization> | undefined, b: Eip7702Authorization | PlainMessage<Eip7702Authorization> | undefined): boolean;
603
+ }
604
+ /**
605
+ * @generated from message trading.v1.Encode4337Request
606
+ */
607
+ export declare class Encode4337Request extends Message<Encode4337Request> {
608
+ /**
609
+ * @generated from field: repeated trading.v1.TransactionRequest calls = 1;
610
+ */
611
+ calls: TransactionRequest[];
612
+ /**
613
+ * @generated from field: string sender = 2;
614
+ */
615
+ sender: string;
616
+ /**
617
+ * @generated from field: trading.v1.ChainId chain_id = 3;
618
+ */
619
+ chainId: ChainId;
620
+ /**
621
+ * @generated from field: string paymaster_url = 4;
622
+ */
623
+ paymasterUrl: string;
624
+ /**
625
+ * @generated from field: google.protobuf.Struct paymaster_service_context = 5;
626
+ */
627
+ paymasterServiceContext?: Struct;
628
+ /**
629
+ * @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 6;
630
+ */
631
+ eip7702Auth?: Eip7702Authorization;
632
+ constructor(data?: PartialMessage<Encode4337Request>);
633
+ static readonly runtime: typeof proto3;
634
+ static readonly typeName = "trading.v1.Encode4337Request";
635
+ static readonly fields: FieldList;
636
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encode4337Request;
637
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encode4337Request;
638
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode4337Request;
639
+ static equals(a: Encode4337Request | PlainMessage<Encode4337Request> | undefined, b: Encode4337Request | PlainMessage<Encode4337Request> | undefined): boolean;
640
+ }
641
+ /**
642
+ * @generated from message trading.v1.UserOperation
643
+ */
644
+ export declare class UserOperation extends Message<UserOperation> {
645
+ /**
646
+ * @generated from field: string sender = 1;
647
+ */
648
+ sender: string;
649
+ /**
650
+ * @generated from field: string nonce = 2;
651
+ */
652
+ nonce: string;
653
+ /**
654
+ * @generated from field: string call_data = 3;
655
+ */
656
+ callData: string;
657
+ /**
658
+ * @generated from field: string call_gas_limit = 4;
659
+ */
660
+ callGasLimit: string;
661
+ /**
662
+ * @generated from field: string verification_gas_limit = 5;
663
+ */
664
+ verificationGasLimit: string;
665
+ /**
666
+ * @generated from field: string pre_verification_gas = 6;
667
+ */
668
+ preVerificationGas: string;
669
+ /**
670
+ * @generated from field: string max_fee_per_gas = 7;
671
+ */
672
+ maxFeePerGas: string;
673
+ /**
674
+ * @generated from field: string max_priority_fee_per_gas = 8;
675
+ */
676
+ maxPriorityFeePerGas: string;
677
+ /**
678
+ * @generated from field: string paymaster = 9;
679
+ */
680
+ paymaster: string;
681
+ /**
682
+ * @generated from field: string paymaster_verification_gas_limit = 10;
683
+ */
684
+ paymasterVerificationGasLimit: string;
685
+ /**
686
+ * @generated from field: string paymaster_post_op_gas_limit = 11;
687
+ */
688
+ paymasterPostOpGasLimit: string;
689
+ /**
690
+ * @generated from field: string paymaster_data = 12;
691
+ */
692
+ paymasterData: string;
693
+ /**
694
+ * @generated from field: string signature = 13;
695
+ */
696
+ signature: string;
697
+ /**
698
+ * @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 14;
699
+ */
700
+ eip7702Auth?: Eip7702Authorization;
701
+ /**
702
+ * @generated from field: optional string factory = 15;
703
+ */
704
+ factory?: string;
705
+ /**
706
+ * @generated from field: optional string factory_data = 16;
707
+ */
708
+ factoryData?: string;
709
+ constructor(data?: PartialMessage<UserOperation>);
710
+ static readonly runtime: typeof proto3;
711
+ static readonly typeName = "trading.v1.UserOperation";
712
+ static readonly fields: FieldList;
713
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserOperation;
714
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserOperation;
715
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserOperation;
716
+ static equals(a: UserOperation | PlainMessage<UserOperation> | undefined, b: UserOperation | PlainMessage<UserOperation> | undefined): boolean;
717
+ }
718
+ /**
719
+ * @generated from message trading.v1.SponsorMetadata
720
+ */
721
+ export declare class SponsorMetadata extends Message<SponsorMetadata> {
722
+ /**
723
+ * @generated from field: string name = 1;
724
+ */
725
+ name: string;
726
+ /**
727
+ * @generated from field: string icon = 2;
728
+ */
729
+ icon: string;
730
+ constructor(data?: PartialMessage<SponsorMetadata>);
731
+ static readonly runtime: typeof proto3;
732
+ static readonly typeName = "trading.v1.SponsorMetadata";
733
+ static readonly fields: FieldList;
734
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorMetadata;
735
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorMetadata;
736
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorMetadata;
737
+ static equals(a: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined, b: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined): boolean;
738
+ }
739
+ /**
740
+ * @generated from message trading.v1.Encode4337Response
741
+ */
742
+ export declare class Encode4337Response extends Message<Encode4337Response> {
743
+ /**
744
+ * @generated from field: string request_id = 1;
745
+ */
746
+ requestId: string;
747
+ /**
748
+ * @generated from field: trading.v1.UserOperation user_operation = 2;
749
+ */
750
+ userOperation?: UserOperation;
751
+ /**
752
+ * @generated from field: trading.v1.SponsorMetadata sponsor_metadata = 3;
753
+ */
754
+ sponsorMetadata?: SponsorMetadata;
755
+ /**
756
+ * @generated from field: bool gas_sponsored = 4;
757
+ */
758
+ gasSponsored: boolean;
759
+ /**
760
+ * @generated from field: string fallback_reason = 5;
761
+ */
762
+ fallbackReason: string;
763
+ constructor(data?: PartialMessage<Encode4337Response>);
764
+ static readonly runtime: typeof proto3;
765
+ static readonly typeName = "trading.v1.Encode4337Response";
766
+ static readonly fields: FieldList;
767
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encode4337Response;
768
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encode4337Response;
769
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode4337Response;
770
+ static equals(a: Encode4337Response | PlainMessage<Encode4337Response> | undefined, b: Encode4337Response | PlainMessage<Encode4337Response> | undefined): boolean;
771
+ }
555
772
  /**
556
773
  * @generated from message trading.v1.Swap5792Request
557
774
  */
@@ -1218,6 +1435,10 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
1218
1435
  * @generated from field: repeated trading.v1.IntegratorFee integrator_fees = 20;
1219
1436
  */
1220
1437
  integratorFees: IntegratorFee[];
1438
+ /**
1439
+ * @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 21;
1440
+ */
1441
+ walletExecutionContext?: WalletExecutionContext;
1221
1442
  constructor(data?: PartialMessage<QuoteRequest>);
1222
1443
  static readonly runtime: typeof proto3;
1223
1444
  static readonly typeName = "trading.v1.QuoteRequest";
@@ -1366,6 +1587,10 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
1366
1587
  * @generated from field: optional string permit_gas_fee = 20;
1367
1588
  */
1368
1589
  permitGasFee?: string;
1590
+ /**
1591
+ * @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 21;
1592
+ */
1593
+ sponsorshipInfo?: SponsorshipInfo;
1369
1594
  constructor(data?: PartialMessage<QuoteResponse>);
1370
1595
  static readonly runtime: typeof proto3;
1371
1596
  static readonly typeName = "trading.v1.QuoteResponse";
@@ -1495,6 +1720,10 @@ export declare class V2PoolInRoute extends Message<V2PoolInRoute> {
1495
1720
  * @generated from field: optional string amount_out = 8;
1496
1721
  */
1497
1722
  amountOut?: string;
1723
+ /**
1724
+ * @generated from field: optional string max_hop_slippage = 9;
1725
+ */
1726
+ maxHopSlippage?: string;
1498
1727
  constructor(data?: PartialMessage<V2PoolInRoute>);
1499
1728
  static readonly runtime: typeof proto3;
1500
1729
  static readonly typeName = "trading.v1.V2PoolInRoute";
@@ -1548,6 +1777,10 @@ export declare class V3PoolInRoute extends Message<V3PoolInRoute> {
1548
1777
  * @generated from field: optional string amount_out = 10;
1549
1778
  */
1550
1779
  amountOut?: string;
1780
+ /**
1781
+ * @generated from field: optional string max_hop_slippage = 11;
1782
+ */
1783
+ maxHopSlippage?: string;
1551
1784
  constructor(data?: PartialMessage<V3PoolInRoute>);
1552
1785
  static readonly runtime: typeof proto3;
1553
1786
  static readonly typeName = "trading.v1.V3PoolInRoute";
@@ -1609,6 +1842,10 @@ export declare class V4PoolInRoute extends Message<V4PoolInRoute> {
1609
1842
  * @generated from field: optional string amount_out = 12;
1610
1843
  */
1611
1844
  amountOut?: string;
1845
+ /**
1846
+ * @generated from field: optional string max_hop_slippage = 13;
1847
+ */
1848
+ maxHopSlippage?: string;
1612
1849
  constructor(data?: PartialMessage<V4PoolInRoute>);
1613
1850
  static readonly runtime: typeof proto3;
1614
1851
  static readonly typeName = "trading.v1.V4PoolInRoute";
@@ -2387,6 +2624,10 @@ export declare class GetSwapsRequest extends Message<GetSwapsRequest> {
2387
2624
  * @generated from field: trading.v1.ChainId chain_id = 2;
2388
2625
  */
2389
2626
  chainId: ChainId;
2627
+ /**
2628
+ * @generated from field: repeated string user_op_hashes = 3;
2629
+ */
2630
+ userOpHashes: string[];
2390
2631
  constructor(data?: PartialMessage<GetSwapsRequest>);
2391
2632
  static readonly runtime: typeof proto3;
2392
2633
  static readonly typeName = "trading.v1.GetSwapsRequest";
@@ -2437,6 +2678,14 @@ export declare class SwapResult extends Message<SwapResult> {
2437
2678
  * @generated from field: optional string swap_id = 4;
2438
2679
  */
2439
2680
  swapId?: string;
2681
+ /**
2682
+ * @generated from field: optional string user_op_hash = 5;
2683
+ */
2684
+ userOpHash?: string;
2685
+ /**
2686
+ * @generated from field: trading.v1.SwapResult.HashType hash_type = 6;
2687
+ */
2688
+ hashType: SwapResult_HashType;
2440
2689
  constructor(data?: PartialMessage<SwapResult>);
2441
2690
  static readonly runtime: typeof proto3;
2442
2691
  static readonly typeName = "trading.v1.SwapResult";
@@ -2475,6 +2724,23 @@ export declare enum SwapResult_SwapStatus {
2475
2724
  */
2476
2725
  EXPIRED = 5
2477
2726
  }
2727
+ /**
2728
+ * @generated from enum trading.v1.SwapResult.HashType
2729
+ */
2730
+ export declare enum SwapResult_HashType {
2731
+ /**
2732
+ * @generated from enum value: HASH_TYPE_UNSPECIFIED = 0;
2733
+ */
2734
+ HASH_TYPE_UNSPECIFIED = 0,
2735
+ /**
2736
+ * @generated from enum value: TX = 1;
2737
+ */
2738
+ TX = 1,
2739
+ /**
2740
+ * @generated from enum value: USER_OP = 2;
2741
+ */
2742
+ USER_OP = 2
2743
+ }
2478
2744
  /**
2479
2745
  * @generated from message trading.v1.Customer
2480
2746
  */
@@ -5545,3 +5811,49 @@ export declare class WalletInfo extends Message<WalletInfo> {
5545
5811
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WalletInfo;
5546
5812
  static equals(a: WalletInfo | PlainMessage<WalletInfo> | undefined, b: WalletInfo | PlainMessage<WalletInfo> | undefined): boolean;
5547
5813
  }
5814
+ /**
5815
+ * @generated from message trading.v1.SponsorSummary
5816
+ */
5817
+ export declare class SponsorSummary extends Message<SponsorSummary> {
5818
+ /**
5819
+ * @generated from field: optional string name = 1;
5820
+ */
5821
+ name?: string;
5822
+ /**
5823
+ * @generated from field: optional string logo_url = 2;
5824
+ */
5825
+ logoUrl?: string;
5826
+ constructor(data?: PartialMessage<SponsorSummary>);
5827
+ static readonly runtime: typeof proto3;
5828
+ static readonly typeName = "trading.v1.SponsorSummary";
5829
+ static readonly fields: FieldList;
5830
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorSummary;
5831
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorSummary;
5832
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorSummary;
5833
+ static equals(a: SponsorSummary | PlainMessage<SponsorSummary> | undefined, b: SponsorSummary | PlainMessage<SponsorSummary> | undefined): boolean;
5834
+ }
5835
+ /**
5836
+ * @generated from message trading.v1.SponsorshipInfo
5837
+ */
5838
+ export declare class SponsorshipInfo extends Message<SponsorshipInfo> {
5839
+ /**
5840
+ * @generated from field: bool sponsored = 1;
5841
+ */
5842
+ sponsored: boolean;
5843
+ /**
5844
+ * @generated from field: optional string rejection_reason = 2;
5845
+ */
5846
+ rejectionReason?: string;
5847
+ /**
5848
+ * @generated from field: optional trading.v1.SponsorSummary sponsor = 3;
5849
+ */
5850
+ sponsor?: SponsorSummary;
5851
+ constructor(data?: PartialMessage<SponsorshipInfo>);
5852
+ static readonly runtime: typeof proto3;
5853
+ static readonly typeName = "trading.v1.SponsorshipInfo";
5854
+ static readonly fields: FieldList;
5855
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorshipInfo;
5856
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorshipInfo;
5857
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorshipInfo;
5858
+ static equals(a: SponsorshipInfo | PlainMessage<SponsorshipInfo> | undefined, b: SponsorshipInfo | PlainMessage<SponsorshipInfo> | undefined): boolean;
5859
+ }
@@ -145,6 +145,14 @@ export var ChainId;
145
145
  * @generated from enum value: XLAYER = 196;
146
146
  */
147
147
  ChainId[ChainId["XLAYER"] = 196] = "XLAYER";
148
+ /**
149
+ * @generated from enum value: LINEA = 59144;
150
+ */
151
+ ChainId[ChainId["LINEA"] = 59144] = "LINEA";
152
+ /**
153
+ * @generated from enum value: TEMPO = 4217;
154
+ */
155
+ ChainId[ChainId["TEMPO"] = 4217] = "TEMPO";
148
156
  })(ChainId || (ChainId = {}));
149
157
  // Retrieve enum metadata with: proto3.getEnumType(ChainId)
150
158
  proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
@@ -169,6 +177,8 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
169
177
  { no: 130, name: "UNICHAIN" },
170
178
  { no: 1868, name: "SONEIUM" },
171
179
  { no: 196, name: "XLAYER" },
180
+ { no: 59144, name: "LINEA" },
181
+ { no: 4217, name: "TEMPO" },
172
182
  ]);
173
183
  /**
174
184
  * @generated from enum trading.v1.Protocols
@@ -761,6 +771,283 @@ Encode7702Response.fields = proto3.util.newFieldList(() => [
761
771
  { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
762
772
  { no: 2, name: "encoded_transaction", kind: "message", T: TransactionRequest },
763
773
  ]);
774
+ /**
775
+ * @generated from message trading.v1.Eip7702Authorization
776
+ */
777
+ export class Eip7702Authorization extends Message {
778
+ constructor(data) {
779
+ super();
780
+ /**
781
+ * @generated from field: string address = 1;
782
+ */
783
+ this.address = "";
784
+ /**
785
+ * @generated from field: string chain_id = 2;
786
+ */
787
+ this.chainId = "";
788
+ /**
789
+ * @generated from field: string nonce = 3;
790
+ */
791
+ this.nonce = "";
792
+ /**
793
+ * @generated from field: string r = 4;
794
+ */
795
+ this.r = "";
796
+ /**
797
+ * @generated from field: string s = 5;
798
+ */
799
+ this.s = "";
800
+ /**
801
+ * @generated from field: string v = 6;
802
+ */
803
+ this.v = "";
804
+ /**
805
+ * @generated from field: string y_parity = 7;
806
+ */
807
+ this.yParity = "";
808
+ proto3.util.initPartial(data, this);
809
+ }
810
+ static fromBinary(bytes, options) {
811
+ return new Eip7702Authorization().fromBinary(bytes, options);
812
+ }
813
+ static fromJson(jsonValue, options) {
814
+ return new Eip7702Authorization().fromJson(jsonValue, options);
815
+ }
816
+ static fromJsonString(jsonString, options) {
817
+ return new Eip7702Authorization().fromJsonString(jsonString, options);
818
+ }
819
+ static equals(a, b) {
820
+ return proto3.util.equals(Eip7702Authorization, a, b);
821
+ }
822
+ }
823
+ Eip7702Authorization.runtime = proto3;
824
+ Eip7702Authorization.typeName = "trading.v1.Eip7702Authorization";
825
+ Eip7702Authorization.fields = proto3.util.newFieldList(() => [
826
+ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
827
+ { no: 2, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
828
+ { no: 3, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
829
+ { no: 4, name: "r", kind: "scalar", T: 9 /* ScalarType.STRING */ },
830
+ { no: 5, name: "s", kind: "scalar", T: 9 /* ScalarType.STRING */ },
831
+ { no: 6, name: "v", kind: "scalar", T: 9 /* ScalarType.STRING */ },
832
+ { no: 7, name: "y_parity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
833
+ ]);
834
+ /**
835
+ * @generated from message trading.v1.Encode4337Request
836
+ */
837
+ export class Encode4337Request extends Message {
838
+ constructor(data) {
839
+ super();
840
+ /**
841
+ * @generated from field: repeated trading.v1.TransactionRequest calls = 1;
842
+ */
843
+ this.calls = [];
844
+ /**
845
+ * @generated from field: string sender = 2;
846
+ */
847
+ this.sender = "";
848
+ /**
849
+ * @generated from field: trading.v1.ChainId chain_id = 3;
850
+ */
851
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
852
+ /**
853
+ * @generated from field: string paymaster_url = 4;
854
+ */
855
+ this.paymasterUrl = "";
856
+ proto3.util.initPartial(data, this);
857
+ }
858
+ static fromBinary(bytes, options) {
859
+ return new Encode4337Request().fromBinary(bytes, options);
860
+ }
861
+ static fromJson(jsonValue, options) {
862
+ return new Encode4337Request().fromJson(jsonValue, options);
863
+ }
864
+ static fromJsonString(jsonString, options) {
865
+ return new Encode4337Request().fromJsonString(jsonString, options);
866
+ }
867
+ static equals(a, b) {
868
+ return proto3.util.equals(Encode4337Request, a, b);
869
+ }
870
+ }
871
+ Encode4337Request.runtime = proto3;
872
+ Encode4337Request.typeName = "trading.v1.Encode4337Request";
873
+ Encode4337Request.fields = proto3.util.newFieldList(() => [
874
+ { no: 1, name: "calls", kind: "message", T: TransactionRequest, repeated: true },
875
+ { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
876
+ { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
877
+ { no: 4, name: "paymaster_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
878
+ { no: 5, name: "paymaster_service_context", kind: "message", T: Struct },
879
+ { no: 6, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
880
+ ]);
881
+ /**
882
+ * @generated from message trading.v1.UserOperation
883
+ */
884
+ export class UserOperation extends Message {
885
+ constructor(data) {
886
+ super();
887
+ /**
888
+ * @generated from field: string sender = 1;
889
+ */
890
+ this.sender = "";
891
+ /**
892
+ * @generated from field: string nonce = 2;
893
+ */
894
+ this.nonce = "";
895
+ /**
896
+ * @generated from field: string call_data = 3;
897
+ */
898
+ this.callData = "";
899
+ /**
900
+ * @generated from field: string call_gas_limit = 4;
901
+ */
902
+ this.callGasLimit = "";
903
+ /**
904
+ * @generated from field: string verification_gas_limit = 5;
905
+ */
906
+ this.verificationGasLimit = "";
907
+ /**
908
+ * @generated from field: string pre_verification_gas = 6;
909
+ */
910
+ this.preVerificationGas = "";
911
+ /**
912
+ * @generated from field: string max_fee_per_gas = 7;
913
+ */
914
+ this.maxFeePerGas = "";
915
+ /**
916
+ * @generated from field: string max_priority_fee_per_gas = 8;
917
+ */
918
+ this.maxPriorityFeePerGas = "";
919
+ /**
920
+ * @generated from field: string paymaster = 9;
921
+ */
922
+ this.paymaster = "";
923
+ /**
924
+ * @generated from field: string paymaster_verification_gas_limit = 10;
925
+ */
926
+ this.paymasterVerificationGasLimit = "";
927
+ /**
928
+ * @generated from field: string paymaster_post_op_gas_limit = 11;
929
+ */
930
+ this.paymasterPostOpGasLimit = "";
931
+ /**
932
+ * @generated from field: string paymaster_data = 12;
933
+ */
934
+ this.paymasterData = "";
935
+ /**
936
+ * @generated from field: string signature = 13;
937
+ */
938
+ this.signature = "";
939
+ proto3.util.initPartial(data, this);
940
+ }
941
+ static fromBinary(bytes, options) {
942
+ return new UserOperation().fromBinary(bytes, options);
943
+ }
944
+ static fromJson(jsonValue, options) {
945
+ return new UserOperation().fromJson(jsonValue, options);
946
+ }
947
+ static fromJsonString(jsonString, options) {
948
+ return new UserOperation().fromJsonString(jsonString, options);
949
+ }
950
+ static equals(a, b) {
951
+ return proto3.util.equals(UserOperation, a, b);
952
+ }
953
+ }
954
+ UserOperation.runtime = proto3;
955
+ UserOperation.typeName = "trading.v1.UserOperation";
956
+ UserOperation.fields = proto3.util.newFieldList(() => [
957
+ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
958
+ { no: 2, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
959
+ { no: 3, name: "call_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
960
+ { no: 4, name: "call_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
961
+ { no: 5, name: "verification_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
962
+ { no: 6, name: "pre_verification_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ },
963
+ { no: 7, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ },
964
+ { no: 8, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ },
965
+ { no: 9, name: "paymaster", kind: "scalar", T: 9 /* ScalarType.STRING */ },
966
+ { no: 10, name: "paymaster_verification_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
967
+ { no: 11, name: "paymaster_post_op_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
968
+ { no: 12, name: "paymaster_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
969
+ { no: 13, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
970
+ { no: 14, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
971
+ { no: 15, name: "factory", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
972
+ { no: 16, name: "factory_data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
973
+ ]);
974
+ /**
975
+ * @generated from message trading.v1.SponsorMetadata
976
+ */
977
+ export class SponsorMetadata extends Message {
978
+ constructor(data) {
979
+ super();
980
+ /**
981
+ * @generated from field: string name = 1;
982
+ */
983
+ this.name = "";
984
+ /**
985
+ * @generated from field: string icon = 2;
986
+ */
987
+ this.icon = "";
988
+ proto3.util.initPartial(data, this);
989
+ }
990
+ static fromBinary(bytes, options) {
991
+ return new SponsorMetadata().fromBinary(bytes, options);
992
+ }
993
+ static fromJson(jsonValue, options) {
994
+ return new SponsorMetadata().fromJson(jsonValue, options);
995
+ }
996
+ static fromJsonString(jsonString, options) {
997
+ return new SponsorMetadata().fromJsonString(jsonString, options);
998
+ }
999
+ static equals(a, b) {
1000
+ return proto3.util.equals(SponsorMetadata, a, b);
1001
+ }
1002
+ }
1003
+ SponsorMetadata.runtime = proto3;
1004
+ SponsorMetadata.typeName = "trading.v1.SponsorMetadata";
1005
+ SponsorMetadata.fields = proto3.util.newFieldList(() => [
1006
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1007
+ { no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1008
+ ]);
1009
+ /**
1010
+ * @generated from message trading.v1.Encode4337Response
1011
+ */
1012
+ export class Encode4337Response extends Message {
1013
+ constructor(data) {
1014
+ super();
1015
+ /**
1016
+ * @generated from field: string request_id = 1;
1017
+ */
1018
+ this.requestId = "";
1019
+ /**
1020
+ * @generated from field: bool gas_sponsored = 4;
1021
+ */
1022
+ this.gasSponsored = false;
1023
+ /**
1024
+ * @generated from field: string fallback_reason = 5;
1025
+ */
1026
+ this.fallbackReason = "";
1027
+ proto3.util.initPartial(data, this);
1028
+ }
1029
+ static fromBinary(bytes, options) {
1030
+ return new Encode4337Response().fromBinary(bytes, options);
1031
+ }
1032
+ static fromJson(jsonValue, options) {
1033
+ return new Encode4337Response().fromJson(jsonValue, options);
1034
+ }
1035
+ static fromJsonString(jsonString, options) {
1036
+ return new Encode4337Response().fromJsonString(jsonString, options);
1037
+ }
1038
+ static equals(a, b) {
1039
+ return proto3.util.equals(Encode4337Response, a, b);
1040
+ }
1041
+ }
1042
+ Encode4337Response.runtime = proto3;
1043
+ Encode4337Response.typeName = "trading.v1.Encode4337Response";
1044
+ Encode4337Response.fields = proto3.util.newFieldList(() => [
1045
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1046
+ { no: 2, name: "user_operation", kind: "message", T: UserOperation },
1047
+ { no: 3, name: "sponsor_metadata", kind: "message", T: SponsorMetadata },
1048
+ { no: 4, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1049
+ { no: 5, name: "fallback_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1050
+ ]);
764
1051
  /**
765
1052
  * @generated from message trading.v1.Swap5792Request
766
1053
  */
@@ -1604,6 +1891,7 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
1604
1891
  { no: 18, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1605
1892
  { no: 19, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
1606
1893
  { no: 20, name: "integrator_fees", kind: "message", T: IntegratorFee, repeated: true },
1894
+ { no: 21, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
1607
1895
  ]);
1608
1896
  /**
1609
1897
  * @generated from message trading.v1.IntegratorFee
@@ -1698,6 +1986,7 @@ QuoteResponse.fields = proto3.util.newFieldList(() => [
1698
1986
  { no: 18, name: "priority_permit_data", kind: "message", T: PriorityPermitData, oneof: "permit_data" },
1699
1987
  { no: 19, name: "permit_transaction", kind: "message", T: TransactionRequest, opt: true },
1700
1988
  { no: 20, name: "permit_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1989
+ { no: 21, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
1701
1990
  ]);
1702
1991
  /**
1703
1992
  * @generated from message trading.v1.ClassicInput
@@ -1846,6 +2135,7 @@ V2PoolInRoute.fields = proto3.util.newFieldList(() => [
1846
2135
  { no: 6, name: "reserve1", kind: "message", T: V2Reserve },
1847
2136
  { no: 7, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1848
2137
  { no: 8, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2138
+ { no: 9, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1849
2139
  ]);
1850
2140
  /**
1851
2141
  * @generated from message trading.v1.V3PoolInRoute
@@ -1905,6 +2195,7 @@ V3PoolInRoute.fields = proto3.util.newFieldList(() => [
1905
2195
  { no: 8, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1906
2196
  { no: 9, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1907
2197
  { no: 10, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2198
+ { no: 11, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1908
2199
  ]);
1909
2200
  /**
1910
2201
  * @generated from message trading.v1.V4PoolInRoute
@@ -1974,6 +2265,7 @@ V4PoolInRoute.fields = proto3.util.newFieldList(() => [
1974
2265
  { no: 10, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1975
2266
  { no: 11, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1976
2267
  { no: 12, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2268
+ { no: 13, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1977
2269
  ]);
1978
2270
  /**
1979
2271
  * @generated from message trading.v1.TokenInRoute
@@ -2800,6 +3092,10 @@ export class GetSwapsRequest extends Message {
2800
3092
  * @generated from field: trading.v1.ChainId chain_id = 2;
2801
3093
  */
2802
3094
  this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
3095
+ /**
3096
+ * @generated from field: repeated string user_op_hashes = 3;
3097
+ */
3098
+ this.userOpHashes = [];
2803
3099
  proto3.util.initPartial(data, this);
2804
3100
  }
2805
3101
  static fromBinary(bytes, options) {
@@ -2820,6 +3116,7 @@ GetSwapsRequest.typeName = "trading.v1.GetSwapsRequest";
2820
3116
  GetSwapsRequest.fields = proto3.util.newFieldList(() => [
2821
3117
  { no: 1, name: "tx_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2822
3118
  { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
3119
+ { no: 3, name: "user_op_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2823
3120
  ]);
2824
3121
  /**
2825
3122
  * @generated from message trading.v1.GetSwapsResponse
@@ -2874,6 +3171,10 @@ export class SwapResult extends Message {
2874
3171
  * @generated from field: string tx_hash = 3;
2875
3172
  */
2876
3173
  this.txHash = "";
3174
+ /**
3175
+ * @generated from field: trading.v1.SwapResult.HashType hash_type = 6;
3176
+ */
3177
+ this.hashType = SwapResult_HashType.HASH_TYPE_UNSPECIFIED;
2877
3178
  proto3.util.initPartial(data, this);
2878
3179
  }
2879
3180
  static fromBinary(bytes, options) {
@@ -2896,6 +3197,8 @@ SwapResult.fields = proto3.util.newFieldList(() => [
2896
3197
  { no: 2, name: "swap_type", kind: "enum", T: proto3.getEnumType(SwapType) },
2897
3198
  { no: 3, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2898
3199
  { no: 4, name: "swap_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3200
+ { no: 5, name: "user_op_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3201
+ { no: 6, name: "hash_type", kind: "enum", T: proto3.getEnumType(SwapResult_HashType) },
2899
3202
  ]);
2900
3203
  /**
2901
3204
  * @generated from enum trading.v1.SwapResult.SwapStatus
@@ -2936,6 +3239,30 @@ proto3.util.setEnumType(SwapResult_SwapStatus, "trading.v1.SwapResult.SwapStatus
2936
3239
  { no: 4, name: "FAILED" },
2937
3240
  { no: 5, name: "EXPIRED" },
2938
3241
  ]);
3242
+ /**
3243
+ * @generated from enum trading.v1.SwapResult.HashType
3244
+ */
3245
+ export var SwapResult_HashType;
3246
+ (function (SwapResult_HashType) {
3247
+ /**
3248
+ * @generated from enum value: HASH_TYPE_UNSPECIFIED = 0;
3249
+ */
3250
+ SwapResult_HashType[SwapResult_HashType["HASH_TYPE_UNSPECIFIED"] = 0] = "HASH_TYPE_UNSPECIFIED";
3251
+ /**
3252
+ * @generated from enum value: TX = 1;
3253
+ */
3254
+ SwapResult_HashType[SwapResult_HashType["TX"] = 1] = "TX";
3255
+ /**
3256
+ * @generated from enum value: USER_OP = 2;
3257
+ */
3258
+ SwapResult_HashType[SwapResult_HashType["USER_OP"] = 2] = "USER_OP";
3259
+ })(SwapResult_HashType || (SwapResult_HashType = {}));
3260
+ // Retrieve enum metadata with: proto3.getEnumType(SwapResult_HashType)
3261
+ proto3.util.setEnumType(SwapResult_HashType, "trading.v1.SwapResult.HashType", [
3262
+ { no: 0, name: "HASH_TYPE_UNSPECIFIED" },
3263
+ { no: 1, name: "TX" },
3264
+ { no: 2, name: "USER_OP" },
3265
+ ]);
2939
3266
  /**
2940
3267
  * @generated from message trading.v1.Customer
2941
3268
  */
@@ -6552,3 +6879,62 @@ WalletInfo.fields = proto3.util.newFieldList(() => [
6552
6879
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6553
6880
  { no: 3, name: "rdns", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6554
6881
  ]);
6882
+ /**
6883
+ * @generated from message trading.v1.SponsorSummary
6884
+ */
6885
+ export class SponsorSummary extends Message {
6886
+ constructor(data) {
6887
+ super();
6888
+ proto3.util.initPartial(data, this);
6889
+ }
6890
+ static fromBinary(bytes, options) {
6891
+ return new SponsorSummary().fromBinary(bytes, options);
6892
+ }
6893
+ static fromJson(jsonValue, options) {
6894
+ return new SponsorSummary().fromJson(jsonValue, options);
6895
+ }
6896
+ static fromJsonString(jsonString, options) {
6897
+ return new SponsorSummary().fromJsonString(jsonString, options);
6898
+ }
6899
+ static equals(a, b) {
6900
+ return proto3.util.equals(SponsorSummary, a, b);
6901
+ }
6902
+ }
6903
+ SponsorSummary.runtime = proto3;
6904
+ SponsorSummary.typeName = "trading.v1.SponsorSummary";
6905
+ SponsorSummary.fields = proto3.util.newFieldList(() => [
6906
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6907
+ { no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6908
+ ]);
6909
+ /**
6910
+ * @generated from message trading.v1.SponsorshipInfo
6911
+ */
6912
+ export class SponsorshipInfo extends Message {
6913
+ constructor(data) {
6914
+ super();
6915
+ /**
6916
+ * @generated from field: bool sponsored = 1;
6917
+ */
6918
+ this.sponsored = false;
6919
+ proto3.util.initPartial(data, this);
6920
+ }
6921
+ static fromBinary(bytes, options) {
6922
+ return new SponsorshipInfo().fromBinary(bytes, options);
6923
+ }
6924
+ static fromJson(jsonValue, options) {
6925
+ return new SponsorshipInfo().fromJson(jsonValue, options);
6926
+ }
6927
+ static fromJsonString(jsonString, options) {
6928
+ return new SponsorshipInfo().fromJsonString(jsonString, options);
6929
+ }
6930
+ static equals(a, b) {
6931
+ return proto3.util.equals(SponsorshipInfo, a, b);
6932
+ }
6933
+ }
6934
+ SponsorshipInfo.runtime = proto3;
6935
+ SponsorshipInfo.typeName = "trading.v1.SponsorshipInfo";
6936
+ SponsorshipInfo.fields = proto3.util.newFieldList(() => [
6937
+ { no: 1, name: "sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
6938
+ { no: 2, name: "rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6939
+ { no: 3, name: "sponsor", kind: "message", T: SponsorSummary, opt: true },
6940
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },