@uniswap/client-trading 0.1.1 → 0.1.3

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,8 +1,8 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file trading/v1/api.proto (package trading.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
5
+ import { Message, proto3, protoInt64, Struct } from "@bufbuild/protobuf";
6
6
  /**
7
7
  * @generated from enum trading.v1.OnChainStatus
8
8
  */
@@ -27,20 +27,6 @@ proto3.util.setEnumType(OnChainStatus, "trading.v1.OnChainStatus", [
27
27
  { no: 1, name: "SUCCESS" },
28
28
  { no: 2, name: "FAILED" },
29
29
  ]);
30
- /**
31
- * @generated from enum trading.v1.Distributor
32
- */
33
- export var Distributor;
34
- (function (Distributor) {
35
- /**
36
- * @generated from enum value: MERKLE = 0;
37
- */
38
- Distributor[Distributor["MERKLE"] = 0] = "MERKLE";
39
- })(Distributor || (Distributor = {}));
40
- // Retrieve enum metadata with: proto3.getEnumType(Distributor)
41
- proto3.util.setEnumType(Distributor, "trading.v1.Distributor", [
42
- { no: 0, name: "MERKLE" },
43
- ]);
44
30
  /**
45
31
  * @generated from enum trading.v1.IndependentToken
46
32
  */
@@ -182,6 +168,10 @@ export var ChainId;
182
168
  * @generated from enum value: MONAD_TESTNET = 10143;
183
169
  */
184
170
  ChainId[ChainId["MONAD_TESTNET"] = 10143] = "MONAD_TESTNET";
171
+ /**
172
+ * @generated from enum value: MONAD = 143;
173
+ */
174
+ ChainId[ChainId["MONAD"] = 143] = "MONAD";
185
175
  /**
186
176
  * @generated from enum value: BASE_SEPOLIA = 84532;
187
177
  */
@@ -194,6 +184,10 @@ export var ChainId;
194
184
  * @generated from enum value: SONEIUM = 1868;
195
185
  */
196
186
  ChainId[ChainId["SONEIUM"] = 1868] = "SONEIUM";
187
+ /**
188
+ * @generated from enum value: XLAYER = 196;
189
+ */
190
+ ChainId[ChainId["XLAYER"] = 196] = "XLAYER";
197
191
  })(ChainId || (ChainId = {}));
198
192
  // Retrieve enum metadata with: proto3.getEnumType(ChainId)
199
193
  proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
@@ -213,9 +207,11 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
213
207
  { no: 1301, name: "UNICHAIN_SEPOLIA" },
214
208
  { no: 480, name: "WORLDCHAIN" },
215
209
  { no: 10143, name: "MONAD_TESTNET" },
210
+ { no: 143, name: "MONAD" },
216
211
  { no: 84532, name: "BASE_SEPOLIA" },
217
212
  { no: 130, name: "UNICHAIN" },
218
213
  { no: 1868, name: "SONEIUM" },
214
+ { no: 196, name: "XLAYER" },
219
215
  ]);
220
216
  /**
221
217
  * @generated from enum trading.v1.Protocols
@@ -459,6 +455,85 @@ proto3.util.setEnumType(SwapType, "trading.v1.SwapType", [
459
455
  { no: 9, name: "QUICKROUTE" },
460
456
  { no: 10, name: "CHAINED" },
461
457
  ]);
458
+ /**
459
+ * @generated from enum trading.v1.PlanStepType
460
+ */
461
+ export var PlanStepType;
462
+ (function (PlanStepType) {
463
+ /**
464
+ * @generated from enum value: PLAN_STEP_TYPE_CLASSIC = 0;
465
+ */
466
+ PlanStepType[PlanStepType["CLASSIC"] = 0] = "CLASSIC";
467
+ /**
468
+ * @generated from enum value: PLAN_STEP_TYPE_DUTCH_LIMIT = 1;
469
+ */
470
+ PlanStepType[PlanStepType["DUTCH_LIMIT"] = 1] = "DUTCH_LIMIT";
471
+ /**
472
+ * @generated from enum value: PLAN_STEP_TYPE_DUTCH_V2 = 2;
473
+ */
474
+ PlanStepType[PlanStepType["DUTCH_V2"] = 2] = "DUTCH_V2";
475
+ /**
476
+ * @generated from enum value: PLAN_STEP_TYPE_LIMIT_ORDER = 3;
477
+ */
478
+ PlanStepType[PlanStepType["LIMIT_ORDER"] = 3] = "LIMIT_ORDER";
479
+ /**
480
+ * @generated from enum value: PLAN_STEP_TYPE_WRAP = 4;
481
+ */
482
+ PlanStepType[PlanStepType["WRAP"] = 4] = "WRAP";
483
+ /**
484
+ * @generated from enum value: PLAN_STEP_TYPE_UNWRAP = 5;
485
+ */
486
+ PlanStepType[PlanStepType["UNWRAP"] = 5] = "UNWRAP";
487
+ /**
488
+ * @generated from enum value: PLAN_STEP_TYPE_BRIDGE = 6;
489
+ */
490
+ PlanStepType[PlanStepType["BRIDGE"] = 6] = "BRIDGE";
491
+ /**
492
+ * @generated from enum value: PLAN_STEP_TYPE_PRIORITY = 7;
493
+ */
494
+ PlanStepType[PlanStepType["PRIORITY"] = 7] = "PRIORITY";
495
+ /**
496
+ * @generated from enum value: PLAN_STEP_TYPE_DUTCH_V3 = 8;
497
+ */
498
+ PlanStepType[PlanStepType["DUTCH_V3"] = 8] = "DUTCH_V3";
499
+ /**
500
+ * @generated from enum value: PLAN_STEP_TYPE_QUICKROUTE = 9;
501
+ */
502
+ PlanStepType[PlanStepType["QUICKROUTE"] = 9] = "QUICKROUTE";
503
+ /**
504
+ * @generated from enum value: PLAN_STEP_TYPE_CHAINED = 10;
505
+ */
506
+ PlanStepType[PlanStepType["CHAINED"] = 10] = "CHAINED";
507
+ /**
508
+ * @generated from enum value: PLAN_STEP_TYPE_APPROVAL_TXN = 11;
509
+ */
510
+ PlanStepType[PlanStepType["APPROVAL_TXN"] = 11] = "APPROVAL_TXN";
511
+ /**
512
+ * @generated from enum value: PLAN_STEP_TYPE_APPROVAL_PERMIT = 12;
513
+ */
514
+ PlanStepType[PlanStepType["APPROVAL_PERMIT"] = 12] = "APPROVAL_PERMIT";
515
+ /**
516
+ * @generated from enum value: PLAN_STEP_TYPE_RESET_APPROVAL_TXN = 13;
517
+ */
518
+ PlanStepType[PlanStepType["RESET_APPROVAL_TXN"] = 13] = "RESET_APPROVAL_TXN";
519
+ })(PlanStepType || (PlanStepType = {}));
520
+ // Retrieve enum metadata with: proto3.getEnumType(PlanStepType)
521
+ proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
522
+ { no: 0, name: "PLAN_STEP_TYPE_CLASSIC" },
523
+ { no: 1, name: "PLAN_STEP_TYPE_DUTCH_LIMIT" },
524
+ { no: 2, name: "PLAN_STEP_TYPE_DUTCH_V2" },
525
+ { no: 3, name: "PLAN_STEP_TYPE_LIMIT_ORDER" },
526
+ { no: 4, name: "PLAN_STEP_TYPE_WRAP" },
527
+ { no: 5, name: "PLAN_STEP_TYPE_UNWRAP" },
528
+ { no: 6, name: "PLAN_STEP_TYPE_BRIDGE" },
529
+ { no: 7, name: "PLAN_STEP_TYPE_PRIORITY" },
530
+ { no: 8, name: "PLAN_STEP_TYPE_DUTCH_V3" },
531
+ { no: 9, name: "PLAN_STEP_TYPE_QUICKROUTE" },
532
+ { no: 10, name: "PLAN_STEP_TYPE_CHAINED" },
533
+ { no: 11, name: "PLAN_STEP_TYPE_APPROVAL_TXN" },
534
+ { no: 12, name: "PLAN_STEP_TYPE_APPROVAL_PERMIT" },
535
+ { no: 13, name: "PLAN_STEP_TYPE_RESET_APPROVAL_TXN" },
536
+ ]);
462
537
  /**
463
538
  * @generated from enum trading.v1.PoolType
464
539
  */
@@ -683,78 +758,6 @@ proto3.util.setEnumType(OrderType, "trading.v1.OrderType", [
683
758
  { no: 3, name: "OrderType_PRIORITY" },
684
759
  { no: 4, name: "OrderType_DUTCH_V3" },
685
760
  ]);
686
- /**
687
- * @generated from message trading.v1.MigrateV2ToV3LPPositionRequest
688
- */
689
- export class MigrateV2ToV3LPPositionRequest extends Message {
690
- constructor(data) {
691
- super();
692
- /**
693
- * @generated from field: string wallet_address = 1;
694
- */
695
- this.walletAddress = "";
696
- /**
697
- * @generated from field: trading.v1.ChainId chain_id = 2;
698
- */
699
- this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
700
- proto3.util.initPartial(data, this);
701
- }
702
- static fromBinary(bytes, options) {
703
- return new MigrateV2ToV3LPPositionRequest().fromBinary(bytes, options);
704
- }
705
- static fromJson(jsonValue, options) {
706
- return new MigrateV2ToV3LPPositionRequest().fromJson(jsonValue, options);
707
- }
708
- static fromJsonString(jsonString, options) {
709
- return new MigrateV2ToV3LPPositionRequest().fromJsonString(jsonString, options);
710
- }
711
- static equals(a, b) {
712
- return proto3.util.equals(MigrateV2ToV3LPPositionRequest, a, b);
713
- }
714
- }
715
- MigrateV2ToV3LPPositionRequest.runtime = proto3;
716
- MigrateV2ToV3LPPositionRequest.typeName = "trading.v1.MigrateV2ToV3LPPositionRequest";
717
- MigrateV2ToV3LPPositionRequest.fields = proto3.util.newFieldList(() => [
718
- { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
719
- { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
720
- { no: 3, name: "v3_params", kind: "message", T: V3Position },
721
- { no: 4, name: "slippage_bps", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
722
- { no: 5, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
723
- { no: 6, name: "refund_as_eth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
724
- { no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
725
- ]);
726
- /**
727
- * @generated from message trading.v1.MigrateV2ToV3LPPositionResponse
728
- */
729
- export class MigrateV2ToV3LPPositionResponse extends Message {
730
- constructor(data) {
731
- super();
732
- /**
733
- * @generated from field: string request_id = 1;
734
- */
735
- this.requestId = "";
736
- proto3.util.initPartial(data, this);
737
- }
738
- static fromBinary(bytes, options) {
739
- return new MigrateV2ToV3LPPositionResponse().fromBinary(bytes, options);
740
- }
741
- static fromJson(jsonValue, options) {
742
- return new MigrateV2ToV3LPPositionResponse().fromJson(jsonValue, options);
743
- }
744
- static fromJsonString(jsonString, options) {
745
- return new MigrateV2ToV3LPPositionResponse().fromJsonString(jsonString, options);
746
- }
747
- static equals(a, b) {
748
- return proto3.util.equals(MigrateV2ToV3LPPositionResponse, a, b);
749
- }
750
- }
751
- MigrateV2ToV3LPPositionResponse.runtime = proto3;
752
- MigrateV2ToV3LPPositionResponse.typeName = "trading.v1.MigrateV2ToV3LPPositionResponse";
753
- MigrateV2ToV3LPPositionResponse.fields = proto3.util.newFieldList(() => [
754
- { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
755
- { no: 2, name: "migrate", kind: "message", T: TransactionRequest },
756
- { no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
757
- ]);
758
761
  /**
759
762
  * @generated from message trading.v1.GetLPPriceDiscrepancyRequest
760
763
  */
@@ -1033,6 +1036,8 @@ Swap5792Response.fields = proto3.util.newFieldList(() => [
1033
1036
  { no: 4, name: "calls", kind: "message", T: TransactionRequest5792, repeated: true },
1034
1037
  { no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1035
1038
  { no: 6, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
1039
+ { no: 7, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1040
+ { no: 8, name: "public_key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1036
1041
  ]);
1037
1042
  /**
1038
1043
  * @generated from message trading.v1.PoolInfoRequest
@@ -1185,8 +1190,8 @@ PoolInformation.fields = proto3.util.newFieldList(() => [
1185
1190
  { no: 13, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1186
1191
  { no: 14, name: "sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1187
1192
  { no: 15, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1188
- { no: 16, name: "token_A_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1189
- { no: 17, name: "token_B_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1193
+ { no: 16, name: "token_0_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1194
+ { no: 17, name: "token_1_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1190
1195
  ]);
1191
1196
  /**
1192
1197
  * @generated from message trading.v1.PoolReferenceByProtocol
@@ -1360,88 +1365,6 @@ SendResponse.fields = proto3.util.newFieldList(() => [
1360
1365
  { no: 4, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1361
1366
  { no: 5, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
1362
1367
  ]);
1363
- /**
1364
- * @generated from message trading.v1.ClaimLPRewardsRequest
1365
- */
1366
- export class ClaimLPRewardsRequest extends Message {
1367
- constructor(data) {
1368
- super();
1369
- /**
1370
- * @generated from field: string wallet_address = 1;
1371
- */
1372
- this.walletAddress = "";
1373
- /**
1374
- * @generated from field: trading.v1.ChainId chain_id = 2;
1375
- */
1376
- this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1377
- /**
1378
- * @generated from field: repeated string tokens = 3;
1379
- */
1380
- this.tokens = [];
1381
- /**
1382
- * @generated from field: trading.v1.Distributor distributor = 4;
1383
- */
1384
- this.distributor = Distributor.MERKLE;
1385
- /**
1386
- * @generated from field: bool simulate_transaction = 5;
1387
- */
1388
- this.simulateTransaction = false;
1389
- proto3.util.initPartial(data, this);
1390
- }
1391
- static fromBinary(bytes, options) {
1392
- return new ClaimLPRewardsRequest().fromBinary(bytes, options);
1393
- }
1394
- static fromJson(jsonValue, options) {
1395
- return new ClaimLPRewardsRequest().fromJson(jsonValue, options);
1396
- }
1397
- static fromJsonString(jsonString, options) {
1398
- return new ClaimLPRewardsRequest().fromJsonString(jsonString, options);
1399
- }
1400
- static equals(a, b) {
1401
- return proto3.util.equals(ClaimLPRewardsRequest, a, b);
1402
- }
1403
- }
1404
- ClaimLPRewardsRequest.runtime = proto3;
1405
- ClaimLPRewardsRequest.typeName = "trading.v1.ClaimLPRewardsRequest";
1406
- ClaimLPRewardsRequest.fields = proto3.util.newFieldList(() => [
1407
- { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1408
- { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1409
- { no: 3, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1410
- { no: 4, name: "distributor", kind: "enum", T: proto3.getEnumType(Distributor) },
1411
- { no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1412
- ]);
1413
- /**
1414
- * @generated from message trading.v1.ClaimLPRewardsResponse
1415
- */
1416
- export class ClaimLPRewardsResponse extends Message {
1417
- constructor(data) {
1418
- super();
1419
- /**
1420
- * @generated from field: string request_id = 1;
1421
- */
1422
- this.requestId = "";
1423
- proto3.util.initPartial(data, this);
1424
- }
1425
- static fromBinary(bytes, options) {
1426
- return new ClaimLPRewardsResponse().fromBinary(bytes, options);
1427
- }
1428
- static fromJson(jsonValue, options) {
1429
- return new ClaimLPRewardsResponse().fromJson(jsonValue, options);
1430
- }
1431
- static fromJsonString(jsonString, options) {
1432
- return new ClaimLPRewardsResponse().fromJsonString(jsonString, options);
1433
- }
1434
- static equals(a, b) {
1435
- return proto3.util.equals(ClaimLPRewardsResponse, a, b);
1436
- }
1437
- }
1438
- ClaimLPRewardsResponse.runtime = proto3;
1439
- ClaimLPRewardsResponse.typeName = "trading.v1.ClaimLPRewardsResponse";
1440
- ClaimLPRewardsResponse.fields = proto3.util.newFieldList(() => [
1441
- { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1442
- { no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
1443
- { no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1444
- ]);
1445
1368
  /**
1446
1369
  * @generated from message trading.v1.CheckApprovalLPRequest
1447
1370
  */
@@ -3226,6 +3149,10 @@ export class SwappableTokensRequest extends Message {
3226
3149
  * @generated from field: trading.v1.ChainId token_in_chain_id = 2;
3227
3150
  */
3228
3151
  this.tokenInChainId = ChainId.CHAIN_ID_UNSPECIFIED;
3152
+ /**
3153
+ * @generated from field: repeated trading.v1.ChainId chain_blocklist = 5;
3154
+ */
3155
+ this.chainBlocklist = [];
3229
3156
  proto3.util.initPartial(data, this);
3230
3157
  }
3231
3158
  static fromBinary(bytes, options) {
@@ -3246,6 +3173,9 @@ SwappableTokensRequest.typeName = "trading.v1.SwappableTokensRequest";
3246
3173
  SwappableTokensRequest.fields = proto3.util.newFieldList(() => [
3247
3174
  { no: 1, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3248
3175
  { no: 2, name: "token_in_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
3176
+ { no: 3, name: "client_version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3177
+ { no: 4, name: "client_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3178
+ { no: 5, name: "chain_blocklist", kind: "enum", T: proto3.getEnumType(ChainId), repeated: true },
3249
3179
  ]);
3250
3180
  /**
3251
3181
  * @generated from message trading.v1.SwappableTokensResponse
@@ -3440,6 +3370,7 @@ GasStrategy.fields = proto3.util.newFieldList(() => [
3440
3370
  { no: 7, name: "base_fee_history_window", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
3441
3371
  { no: 8, name: "min_priority_fee_ratio_of_base_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
3442
3372
  { no: 9, name: "threshold_to_inflate_last_block_base_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
3373
+ { no: 10, name: "display_limit_inflation_factor", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
3443
3374
  ]);
3444
3375
  /**
3445
3376
  * @generated from message trading.v1.QuoteRequest
@@ -3582,14 +3513,15 @@ QuoteResponse.fields = proto3.util.newFieldList(() => [
3582
3513
  { no: 9, name: "dutch_limit_v3_quote", kind: "message", T: DutchLimitV3Quote, oneof: "quote" },
3583
3514
  { no: 10, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "quote" },
3584
3515
  { no: 11, name: "priority_quote", kind: "message", T: PriorityQuote, oneof: "quote" },
3585
- { no: 12, name: "permit_single_data", kind: "message", T: PermitSingleData, oneof: "permit_data" },
3586
- { no: 13, name: "permit_transfer_from_data", kind: "message", T: PermitTransferFromData, oneof: "permit_data" },
3587
- { no: 14, name: "dutch_limit_permit_data", kind: "message", T: DutchLimitPermitData, oneof: "permit_data" },
3588
- { no: 15, name: "dutch_limit_v2_permit_data", kind: "message", T: DutchLimitV2PermitData, oneof: "permit_data" },
3589
- { no: 16, name: "dutch_limit_v3_permit_data", kind: "message", T: DutchLimitV3PermitData, oneof: "permit_data" },
3590
- { no: 17, name: "priority_permit_data", kind: "message", T: PriorityPermitData, oneof: "permit_data" },
3591
- { no: 18, name: "permit_transaction", kind: "message", T: TransactionRequest, opt: true },
3592
- { no: 19, name: "permit_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3516
+ { no: 12, name: "chained_quote", kind: "message", T: ChainedQuote, oneof: "quote" },
3517
+ { no: 13, name: "permit_single_data", kind: "message", T: PermitSingleData, oneof: "permit_data" },
3518
+ { no: 14, name: "permit_transfer_from_data", kind: "message", T: PermitTransferFromData, oneof: "permit_data" },
3519
+ { no: 15, name: "dutch_limit_permit_data", kind: "message", T: DutchLimitPermitData, oneof: "permit_data" },
3520
+ { no: 16, name: "dutch_limit_v2_permit_data", kind: "message", T: DutchLimitV2PermitData, oneof: "permit_data" },
3521
+ { no: 17, name: "dutch_limit_v3_permit_data", kind: "message", T: DutchLimitV3PermitData, oneof: "permit_data" },
3522
+ { no: 18, name: "priority_permit_data", kind: "message", T: PriorityPermitData, oneof: "permit_data" },
3523
+ { no: 19, name: "permit_transaction", kind: "message", T: TransactionRequest, opt: true },
3524
+ { no: 20, name: "permit_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3593
3525
  ]);
3594
3526
  /**
3595
3527
  * @generated from message trading.v1.ClassicInput
@@ -4582,6 +4514,102 @@ SwapResponse.fields = proto3.util.newFieldList(() => [
4582
4514
  { no: 6, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4583
4515
  { no: 7, name: "public_key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4584
4516
  ]);
4517
+ /**
4518
+ * @generated from message trading.v1.Swap7702Request
4519
+ */
4520
+ export class Swap7702Request extends Message {
4521
+ constructor(data) {
4522
+ super();
4523
+ /**
4524
+ * @generated from oneof trading.v1.Swap7702Request.quote
4525
+ */
4526
+ this.quote = { case: undefined };
4527
+ /**
4528
+ * @generated from field: string smart_contract_delegation_address = 5;
4529
+ */
4530
+ this.smartContractDelegationAddress = "";
4531
+ /**
4532
+ * @generated from field: bool include_gas_info = 6;
4533
+ */
4534
+ this.includeGasInfo = false;
4535
+ /**
4536
+ * @generated from field: bool simulate_transaction = 7;
4537
+ */
4538
+ this.simulateTransaction = false;
4539
+ /**
4540
+ * @generated from field: int64 deadline = 8;
4541
+ */
4542
+ this.deadline = protoInt64.zero;
4543
+ /**
4544
+ * @generated from field: repeated trading.v1.GasStrategy gas_strategies = 10;
4545
+ */
4546
+ this.gasStrategies = [];
4547
+ proto3.util.initPartial(data, this);
4548
+ }
4549
+ static fromBinary(bytes, options) {
4550
+ return new Swap7702Request().fromBinary(bytes, options);
4551
+ }
4552
+ static fromJson(jsonValue, options) {
4553
+ return new Swap7702Request().fromJson(jsonValue, options);
4554
+ }
4555
+ static fromJsonString(jsonString, options) {
4556
+ return new Swap7702Request().fromJsonString(jsonString, options);
4557
+ }
4558
+ static equals(a, b) {
4559
+ return proto3.util.equals(Swap7702Request, a, b);
4560
+ }
4561
+ }
4562
+ Swap7702Request.runtime = proto3;
4563
+ Swap7702Request.typeName = "trading.v1.Swap7702Request";
4564
+ Swap7702Request.fields = proto3.util.newFieldList(() => [
4565
+ { no: 1, name: "classic_quote", kind: "message", T: ClassicQuote, oneof: "quote" },
4566
+ { no: 2, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "quote" },
4567
+ { no: 3, name: "bridge_quote", kind: "message", T: BridgeQuote, oneof: "quote" },
4568
+ { no: 4, name: "permit_data", kind: "message", T: PermitSingleData, opt: true },
4569
+ { no: 5, name: "smart_contract_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4570
+ { no: 6, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
4571
+ { no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
4572
+ { no: 8, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
4573
+ { no: 9, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
4574
+ { no: 10, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
4575
+ ]);
4576
+ /**
4577
+ * @generated from message trading.v1.Swap7702Response
4578
+ */
4579
+ export class Swap7702Response extends Message {
4580
+ constructor(data) {
4581
+ super();
4582
+ /**
4583
+ * @generated from field: string request_id = 1;
4584
+ */
4585
+ this.requestId = "";
4586
+ /**
4587
+ * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 4;
4588
+ */
4589
+ this.gasEstimates = [];
4590
+ proto3.util.initPartial(data, this);
4591
+ }
4592
+ static fromBinary(bytes, options) {
4593
+ return new Swap7702Response().fromBinary(bytes, options);
4594
+ }
4595
+ static fromJson(jsonValue, options) {
4596
+ return new Swap7702Response().fromJson(jsonValue, options);
4597
+ }
4598
+ static fromJsonString(jsonString, options) {
4599
+ return new Swap7702Response().fromJsonString(jsonString, options);
4600
+ }
4601
+ static equals(a, b) {
4602
+ return proto3.util.equals(Swap7702Response, a, b);
4603
+ }
4604
+ }
4605
+ Swap7702Response.runtime = proto3;
4606
+ Swap7702Response.typeName = "trading.v1.Swap7702Response";
4607
+ Swap7702Response.fields = proto3.util.newFieldList(() => [
4608
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4609
+ { no: 2, name: "swap", kind: "message", T: TransactionRequest },
4610
+ { no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4611
+ { no: 4, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
4612
+ ]);
4585
4613
  /**
4586
4614
  * @generated from message trading.v1.GetSwapsRequest
4587
4615
  */
@@ -6447,6 +6475,10 @@ export class CheckApprovalResponse extends Message {
6447
6475
  * @generated from field: string request_id = 1;
6448
6476
  */
6449
6477
  this.requestId = "";
6478
+ /**
6479
+ * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 6;
6480
+ */
6481
+ this.gasEstimates = [];
6450
6482
  proto3.util.initPartial(data, this);
6451
6483
  }
6452
6484
  static fromBinary(bytes, options) {
@@ -6470,6 +6502,7 @@ CheckApprovalResponse.fields = proto3.util.newFieldList(() => [
6470
6502
  { no: 3, name: "cancel", kind: "message", T: TransactionRequest },
6471
6503
  { no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6472
6504
  { no: 5, name: "cancel_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6505
+ { no: 6, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
6473
6506
  ]);
6474
6507
  /**
6475
6508
  * @generated from message trading.v1.PriorityOrderInfo
@@ -6607,47 +6640,154 @@ PriorityQuote.fields = proto3.util.newFieldList(() => [
6607
6640
  { no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6608
6641
  ]);
6609
6642
  /**
6610
- * @generated from message trading.v1.PermitTransferFromData
6643
+ * @generated from message trading.v1.TruncatedPlanStep
6611
6644
  */
6612
- export class PermitTransferFromData extends Message {
6645
+ export class TruncatedPlanStep extends Message {
6613
6646
  constructor(data) {
6614
6647
  super();
6615
6648
  /**
6616
- * @generated from field: map<string, trading.v1.TypeFieldArray> types = 2;
6649
+ * @generated from field: trading.v1.PlanStepType step_type = 1;
6617
6650
  */
6618
- this.types = {};
6651
+ this.stepType = PlanStepType.CLASSIC;
6619
6652
  proto3.util.initPartial(data, this);
6620
6653
  }
6621
6654
  static fromBinary(bytes, options) {
6622
- return new PermitTransferFromData().fromBinary(bytes, options);
6655
+ return new TruncatedPlanStep().fromBinary(bytes, options);
6623
6656
  }
6624
6657
  static fromJson(jsonValue, options) {
6625
- return new PermitTransferFromData().fromJson(jsonValue, options);
6658
+ return new TruncatedPlanStep().fromJson(jsonValue, options);
6626
6659
  }
6627
6660
  static fromJsonString(jsonString, options) {
6628
- return new PermitTransferFromData().fromJsonString(jsonString, options);
6661
+ return new TruncatedPlanStep().fromJsonString(jsonString, options);
6629
6662
  }
6630
6663
  static equals(a, b) {
6631
- return proto3.util.equals(PermitTransferFromData, a, b);
6664
+ return proto3.util.equals(TruncatedPlanStep, a, b);
6632
6665
  }
6633
6666
  }
6634
- PermitTransferFromData.runtime = proto3;
6635
- PermitTransferFromData.typeName = "trading.v1.PermitTransferFromData";
6636
- PermitTransferFromData.fields = proto3.util.newFieldList(() => [
6637
- { no: 1, name: "domain", kind: "message", T: Domain },
6638
- { no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
6639
- { no: 3, name: "values", kind: "message", T: PermitTransferFrom },
6667
+ TruncatedPlanStep.runtime = proto3;
6668
+ TruncatedPlanStep.typeName = "trading.v1.TruncatedPlanStep";
6669
+ TruncatedPlanStep.fields = proto3.util.newFieldList(() => [
6670
+ { no: 1, name: "step_type", kind: "enum", T: proto3.getEnumType(PlanStepType) },
6671
+ { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6672
+ { no: 3, name: "token_in_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
6673
+ { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6674
+ { no: 5, name: "token_out_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
6640
6675
  ]);
6641
6676
  /**
6642
- * @generated from message trading.v1.TypeFieldArray
6677
+ * @generated from message trading.v1.ChainedQuote
6643
6678
  */
6644
- export class TypeFieldArray extends Message {
6679
+ export class ChainedQuote extends Message {
6645
6680
  constructor(data) {
6646
6681
  super();
6647
6682
  /**
6648
- * @generated from field: repeated trading.v1.TypeField fields = 1;
6683
+ * @generated from field: trading.v1.ChainId token_in_chain_id = 1;
6649
6684
  */
6650
- this.fields = [];
6685
+ this.tokenInChainId = ChainId.CHAIN_ID_UNSPECIFIED;
6686
+ /**
6687
+ * @generated from field: trading.v1.ChainId token_out_chain_id = 2;
6688
+ */
6689
+ this.tokenOutChainId = ChainId.CHAIN_ID_UNSPECIFIED;
6690
+ /**
6691
+ * @generated from field: string swapper = 3;
6692
+ */
6693
+ this.swapper = "";
6694
+ /**
6695
+ * @generated from field: trading.v1.TradeType trade_type = 6;
6696
+ */
6697
+ this.tradeType = TradeType.EXACT_INPUT;
6698
+ /**
6699
+ * @generated from field: string quote_id = 7;
6700
+ */
6701
+ this.quoteId = "";
6702
+ /**
6703
+ * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 8;
6704
+ */
6705
+ this.gasEstimates = [];
6706
+ /**
6707
+ * @generated from field: repeated trading.v1.Protocols protocols = 14;
6708
+ */
6709
+ this.protocols = [];
6710
+ /**
6711
+ * @generated from field: repeated trading.v1.TruncatedPlanStep steps = 16;
6712
+ */
6713
+ this.steps = [];
6714
+ proto3.util.initPartial(data, this);
6715
+ }
6716
+ static fromBinary(bytes, options) {
6717
+ return new ChainedQuote().fromBinary(bytes, options);
6718
+ }
6719
+ static fromJson(jsonValue, options) {
6720
+ return new ChainedQuote().fromJson(jsonValue, options);
6721
+ }
6722
+ static fromJsonString(jsonString, options) {
6723
+ return new ChainedQuote().fromJsonString(jsonString, options);
6724
+ }
6725
+ static equals(a, b) {
6726
+ return proto3.util.equals(ChainedQuote, a, b);
6727
+ }
6728
+ }
6729
+ ChainedQuote.runtime = proto3;
6730
+ ChainedQuote.typeName = "trading.v1.ChainedQuote";
6731
+ ChainedQuote.fields = proto3.util.newFieldList(() => [
6732
+ { no: 1, name: "token_in_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
6733
+ { no: 2, name: "token_out_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
6734
+ { no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6735
+ { no: 4, name: "input", kind: "message", T: ClassicInput },
6736
+ { no: 5, name: "output", kind: "message", T: ClassicOutput },
6737
+ { no: 6, name: "trade_type", kind: "enum", T: proto3.getEnumType(TradeType) },
6738
+ { no: 7, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6739
+ { no: 8, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
6740
+ { no: 9, name: "gas_use_estimate", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6741
+ { no: 10, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6742
+ { no: 11, name: "gas_fee_quote", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6743
+ { no: 12, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6744
+ { no: 13, name: "time_estimate_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
6745
+ { no: 14, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols), repeated: true },
6746
+ { no: 15, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
6747
+ { no: 16, name: "steps", kind: "message", T: TruncatedPlanStep, repeated: true },
6748
+ ]);
6749
+ /**
6750
+ * @generated from message trading.v1.PermitTransferFromData
6751
+ */
6752
+ export class PermitTransferFromData extends Message {
6753
+ constructor(data) {
6754
+ super();
6755
+ /**
6756
+ * @generated from field: map<string, trading.v1.TypeFieldArray> types = 2;
6757
+ */
6758
+ this.types = {};
6759
+ proto3.util.initPartial(data, this);
6760
+ }
6761
+ static fromBinary(bytes, options) {
6762
+ return new PermitTransferFromData().fromBinary(bytes, options);
6763
+ }
6764
+ static fromJson(jsonValue, options) {
6765
+ return new PermitTransferFromData().fromJson(jsonValue, options);
6766
+ }
6767
+ static fromJsonString(jsonString, options) {
6768
+ return new PermitTransferFromData().fromJsonString(jsonString, options);
6769
+ }
6770
+ static equals(a, b) {
6771
+ return proto3.util.equals(PermitTransferFromData, a, b);
6772
+ }
6773
+ }
6774
+ PermitTransferFromData.runtime = proto3;
6775
+ PermitTransferFromData.typeName = "trading.v1.PermitTransferFromData";
6776
+ PermitTransferFromData.fields = proto3.util.newFieldList(() => [
6777
+ { no: 1, name: "domain", kind: "message", T: Domain },
6778
+ { no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
6779
+ { no: 3, name: "values", kind: "message", T: PermitTransferFrom },
6780
+ ]);
6781
+ /**
6782
+ * @generated from message trading.v1.TypeFieldArray
6783
+ */
6784
+ export class TypeFieldArray extends Message {
6785
+ constructor(data) {
6786
+ super();
6787
+ /**
6788
+ * @generated from field: repeated trading.v1.TypeField fields = 1;
6789
+ */
6790
+ this.fields = [];
6651
6791
  proto3.util.initPartial(data, this);
6652
6792
  }
6653
6793
  static fromBinary(bytes, options) {
@@ -7498,3 +7638,727 @@ DelegationDetails.fields = proto3.util.newFieldList(() => [
7498
7638
  { no: 2, name: "current_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7499
7639
  { no: 3, name: "latest_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7500
7640
  ]);
7641
+ /**
7642
+ * @generated from message trading.v1.PlanStep
7643
+ */
7644
+ export class PlanStep extends Message {
7645
+ constructor(data) {
7646
+ super();
7647
+ /**
7648
+ * @generated from field: string step_index = 1;
7649
+ */
7650
+ this.stepIndex = "";
7651
+ /**
7652
+ * @generated from field: trading.v1.PlanStep.Method method = 2;
7653
+ */
7654
+ this.method = PlanStep_Method.SEND_TX;
7655
+ /**
7656
+ * @generated from field: trading.v1.PlanStep.PayloadType payload_type = 3;
7657
+ */
7658
+ this.payloadType = PlanStep_PayloadType.TX;
7659
+ /**
7660
+ * JSON serialized payload
7661
+ *
7662
+ * @generated from field: string payload = 4;
7663
+ */
7664
+ this.payload = "";
7665
+ /**
7666
+ * @generated from field: trading.v1.PlanStep.StepStatus status = 5;
7667
+ */
7668
+ this.status = PlanStep_StepStatus.NOT_READY;
7669
+ /**
7670
+ * @generated from field: trading.v1.PlanStepType step_type = 15;
7671
+ */
7672
+ this.stepType = PlanStepType.CLASSIC;
7673
+ proto3.util.initPartial(data, this);
7674
+ }
7675
+ static fromBinary(bytes, options) {
7676
+ return new PlanStep().fromBinary(bytes, options);
7677
+ }
7678
+ static fromJson(jsonValue, options) {
7679
+ return new PlanStep().fromJson(jsonValue, options);
7680
+ }
7681
+ static fromJsonString(jsonString, options) {
7682
+ return new PlanStep().fromJsonString(jsonString, options);
7683
+ }
7684
+ static equals(a, b) {
7685
+ return proto3.util.equals(PlanStep, a, b);
7686
+ }
7687
+ }
7688
+ PlanStep.runtime = proto3;
7689
+ PlanStep.typeName = "trading.v1.PlanStep";
7690
+ PlanStep.fields = proto3.util.newFieldList(() => [
7691
+ { no: 1, name: "step_index", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7692
+ { no: 2, name: "method", kind: "enum", T: proto3.getEnumType(PlanStep_Method) },
7693
+ { no: 3, name: "payload_type", kind: "enum", T: proto3.getEnumType(PlanStep_PayloadType) },
7694
+ { no: 4, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7695
+ { no: 5, name: "status", kind: "enum", T: proto3.getEnumType(PlanStep_StepStatus) },
7696
+ { no: 6, name: "proof", kind: "message", T: PlanStep_StepProof, opt: true },
7697
+ { no: 7, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7698
+ { no: 8, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7699
+ { no: 9, name: "token_in_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
7700
+ { no: 10, name: "token_out_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
7701
+ { no: 11, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7702
+ { no: 12, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7703
+ { no: 13, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7704
+ { no: 14, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7705
+ { no: 15, name: "step_type", kind: "enum", T: proto3.getEnumType(PlanStepType) },
7706
+ { no: 16, name: "gas_use_estimate", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7707
+ { no: 17, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7708
+ { no: 18, name: "gas_fee_quote", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7709
+ { no: 19, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7710
+ { no: 20, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7711
+ { no: 21, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7712
+ { no: 22, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7713
+ { no: 23, name: "routing_step_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7714
+ ]);
7715
+ /**
7716
+ * @generated from enum trading.v1.PlanStep.StepStatus
7717
+ */
7718
+ export var PlanStep_StepStatus;
7719
+ (function (PlanStep_StepStatus) {
7720
+ /**
7721
+ * @generated from enum value: NOT_READY = 0;
7722
+ */
7723
+ PlanStep_StepStatus[PlanStep_StepStatus["NOT_READY"] = 0] = "NOT_READY";
7724
+ /**
7725
+ * @generated from enum value: AWAITING_ACTION = 1;
7726
+ */
7727
+ PlanStep_StepStatus[PlanStep_StepStatus["AWAITING_ACTION"] = 1] = "AWAITING_ACTION";
7728
+ /**
7729
+ * @generated from enum value: IN_PROGRESS = 2;
7730
+ */
7731
+ PlanStep_StepStatus[PlanStep_StepStatus["IN_PROGRESS"] = 2] = "IN_PROGRESS";
7732
+ /**
7733
+ * @generated from enum value: COMPLETE = 3;
7734
+ */
7735
+ PlanStep_StepStatus[PlanStep_StepStatus["COMPLETE"] = 3] = "COMPLETE";
7736
+ /**
7737
+ * @generated from enum value: STEP_ERROR = 4;
7738
+ */
7739
+ PlanStep_StepStatus[PlanStep_StepStatus["STEP_ERROR"] = 4] = "STEP_ERROR";
7740
+ })(PlanStep_StepStatus || (PlanStep_StepStatus = {}));
7741
+ // Retrieve enum metadata with: proto3.getEnumType(PlanStep_StepStatus)
7742
+ proto3.util.setEnumType(PlanStep_StepStatus, "trading.v1.PlanStep.StepStatus", [
7743
+ { no: 0, name: "NOT_READY" },
7744
+ { no: 1, name: "AWAITING_ACTION" },
7745
+ { no: 2, name: "IN_PROGRESS" },
7746
+ { no: 3, name: "COMPLETE" },
7747
+ { no: 4, name: "STEP_ERROR" },
7748
+ ]);
7749
+ /**
7750
+ * @generated from enum trading.v1.PlanStep.Method
7751
+ */
7752
+ export var PlanStep_Method;
7753
+ (function (PlanStep_Method) {
7754
+ /**
7755
+ * @generated from enum value: SEND_TX = 0;
7756
+ */
7757
+ PlanStep_Method[PlanStep_Method["SEND_TX"] = 0] = "SEND_TX";
7758
+ /**
7759
+ * @generated from enum value: SIGN_MSG = 1;
7760
+ */
7761
+ PlanStep_Method[PlanStep_Method["SIGN_MSG"] = 1] = "SIGN_MSG";
7762
+ /**
7763
+ * @generated from enum value: SEND_CALLS = 2;
7764
+ */
7765
+ PlanStep_Method[PlanStep_Method["SEND_CALLS"] = 2] = "SEND_CALLS";
7766
+ })(PlanStep_Method || (PlanStep_Method = {}));
7767
+ // Retrieve enum metadata with: proto3.getEnumType(PlanStep_Method)
7768
+ proto3.util.setEnumType(PlanStep_Method, "trading.v1.PlanStep.Method", [
7769
+ { no: 0, name: "SEND_TX" },
7770
+ { no: 1, name: "SIGN_MSG" },
7771
+ { no: 2, name: "SEND_CALLS" },
7772
+ ]);
7773
+ /**
7774
+ * @generated from enum trading.v1.PlanStep.PayloadType
7775
+ */
7776
+ export var PlanStep_PayloadType;
7777
+ (function (PlanStep_PayloadType) {
7778
+ /**
7779
+ * @generated from enum value: TX = 0;
7780
+ */
7781
+ PlanStep_PayloadType[PlanStep_PayloadType["TX"] = 0] = "TX";
7782
+ /**
7783
+ * @generated from enum value: EIP_712 = 1;
7784
+ */
7785
+ PlanStep_PayloadType[PlanStep_PayloadType["EIP_712"] = 1] = "EIP_712";
7786
+ /**
7787
+ * @generated from enum value: EIP_5792 = 2;
7788
+ */
7789
+ PlanStep_PayloadType[PlanStep_PayloadType["EIP_5792"] = 2] = "EIP_5792";
7790
+ })(PlanStep_PayloadType || (PlanStep_PayloadType = {}));
7791
+ // Retrieve enum metadata with: proto3.getEnumType(PlanStep_PayloadType)
7792
+ proto3.util.setEnumType(PlanStep_PayloadType, "trading.v1.PlanStep.PayloadType", [
7793
+ { no: 0, name: "TX" },
7794
+ { no: 1, name: "EIP_712" },
7795
+ { no: 2, name: "EIP_5792" },
7796
+ ]);
7797
+ /**
7798
+ * @generated from message trading.v1.PlanStep.StepProof
7799
+ */
7800
+ export class PlanStep_StepProof extends Message {
7801
+ constructor(data) {
7802
+ super();
7803
+ proto3.util.initPartial(data, this);
7804
+ }
7805
+ static fromBinary(bytes, options) {
7806
+ return new PlanStep_StepProof().fromBinary(bytes, options);
7807
+ }
7808
+ static fromJson(jsonValue, options) {
7809
+ return new PlanStep_StepProof().fromJson(jsonValue, options);
7810
+ }
7811
+ static fromJsonString(jsonString, options) {
7812
+ return new PlanStep_StepProof().fromJsonString(jsonString, options);
7813
+ }
7814
+ static equals(a, b) {
7815
+ return proto3.util.equals(PlanStep_StepProof, a, b);
7816
+ }
7817
+ }
7818
+ PlanStep_StepProof.runtime = proto3;
7819
+ PlanStep_StepProof.typeName = "trading.v1.PlanStep.StepProof";
7820
+ PlanStep_StepProof.fields = proto3.util.newFieldList(() => [
7821
+ { no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7822
+ { no: 2, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7823
+ { no: 3, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7824
+ ]);
7825
+ /**
7826
+ * @generated from message trading.v1.CreatePlanRequest
7827
+ */
7828
+ export class CreatePlanRequest extends Message {
7829
+ constructor(data) {
7830
+ super();
7831
+ /**
7832
+ * @generated from field: trading.v1.SwapType routing = 1;
7833
+ */
7834
+ this.routing = SwapType.CLASSIC;
7835
+ proto3.util.initPartial(data, this);
7836
+ }
7837
+ static fromBinary(bytes, options) {
7838
+ return new CreatePlanRequest().fromBinary(bytes, options);
7839
+ }
7840
+ static fromJson(jsonValue, options) {
7841
+ return new CreatePlanRequest().fromJson(jsonValue, options);
7842
+ }
7843
+ static fromJsonString(jsonString, options) {
7844
+ return new CreatePlanRequest().fromJsonString(jsonString, options);
7845
+ }
7846
+ static equals(a, b) {
7847
+ return proto3.util.equals(CreatePlanRequest, a, b);
7848
+ }
7849
+ }
7850
+ CreatePlanRequest.runtime = proto3;
7851
+ CreatePlanRequest.typeName = "trading.v1.CreatePlanRequest";
7852
+ CreatePlanRequest.fields = proto3.util.newFieldList(() => [
7853
+ { no: 1, name: "routing", kind: "enum", T: proto3.getEnumType(SwapType) },
7854
+ { no: 2, name: "quote", kind: "message", T: ChainedQuote },
7855
+ { no: 3, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
7856
+ ]);
7857
+ /**
7858
+ * @generated from message trading.v1.GetPlanRequest
7859
+ */
7860
+ export class GetPlanRequest extends Message {
7861
+ constructor(data) {
7862
+ super();
7863
+ /**
7864
+ * @generated from field: string plan_id = 1;
7865
+ */
7866
+ this.planId = "";
7867
+ /**
7868
+ * @generated from field: bool force_refresh = 2;
7869
+ */
7870
+ this.forceRefresh = false;
7871
+ proto3.util.initPartial(data, this);
7872
+ }
7873
+ static fromBinary(bytes, options) {
7874
+ return new GetPlanRequest().fromBinary(bytes, options);
7875
+ }
7876
+ static fromJson(jsonValue, options) {
7877
+ return new GetPlanRequest().fromJson(jsonValue, options);
7878
+ }
7879
+ static fromJsonString(jsonString, options) {
7880
+ return new GetPlanRequest().fromJsonString(jsonString, options);
7881
+ }
7882
+ static equals(a, b) {
7883
+ return proto3.util.equals(GetPlanRequest, a, b);
7884
+ }
7885
+ }
7886
+ GetPlanRequest.runtime = proto3;
7887
+ GetPlanRequest.typeName = "trading.v1.GetPlanRequest";
7888
+ GetPlanRequest.fields = proto3.util.newFieldList(() => [
7889
+ { no: 1, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7890
+ { no: 2, name: "force_refresh", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
7891
+ ]);
7892
+ /**
7893
+ * @generated from message trading.v1.PlanResponse
7894
+ */
7895
+ export class PlanResponse extends Message {
7896
+ constructor(data) {
7897
+ super();
7898
+ /**
7899
+ * @generated from field: string request_id = 1;
7900
+ */
7901
+ this.requestId = "";
7902
+ /**
7903
+ * @generated from field: string plan_id = 2;
7904
+ */
7905
+ this.planId = "";
7906
+ /**
7907
+ * @generated from field: string swapper = 3;
7908
+ */
7909
+ this.swapper = "";
7910
+ /**
7911
+ * @generated from field: string recipient = 4;
7912
+ */
7913
+ this.recipient = "";
7914
+ /**
7915
+ * @generated from field: string quote_id = 5;
7916
+ */
7917
+ this.quoteId = "";
7918
+ /**
7919
+ * @generated from field: trading.v1.PlanResponse.PlanStatus status = 6;
7920
+ */
7921
+ this.status = PlanResponse_PlanStatus.ACTIVE;
7922
+ /**
7923
+ * @generated from field: repeated trading.v1.PlanStep steps = 7;
7924
+ */
7925
+ this.steps = [];
7926
+ /**
7927
+ * @generated from field: int32 current_step_index = 8;
7928
+ */
7929
+ this.currentStepIndex = 0;
7930
+ /**
7931
+ * @generated from field: string expected_output = 9;
7932
+ */
7933
+ this.expectedOutput = "";
7934
+ /**
7935
+ * @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12;
7936
+ */
7937
+ this.gasStrategies = [];
7938
+ /**
7939
+ * @generated from field: repeated trading.v1.Protocols protocols = 13;
7940
+ */
7941
+ this.protocols = [];
7942
+ proto3.util.initPartial(data, this);
7943
+ }
7944
+ static fromBinary(bytes, options) {
7945
+ return new PlanResponse().fromBinary(bytes, options);
7946
+ }
7947
+ static fromJson(jsonValue, options) {
7948
+ return new PlanResponse().fromJson(jsonValue, options);
7949
+ }
7950
+ static fromJsonString(jsonString, options) {
7951
+ return new PlanResponse().fromJsonString(jsonString, options);
7952
+ }
7953
+ static equals(a, b) {
7954
+ return proto3.util.equals(PlanResponse, a, b);
7955
+ }
7956
+ }
7957
+ PlanResponse.runtime = proto3;
7958
+ PlanResponse.typeName = "trading.v1.PlanResponse";
7959
+ PlanResponse.fields = proto3.util.newFieldList(() => [
7960
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7961
+ { no: 2, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7962
+ { no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7963
+ { no: 4, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7964
+ { no: 5, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7965
+ { no: 6, name: "status", kind: "enum", T: proto3.getEnumType(PlanResponse_PlanStatus) },
7966
+ { no: 7, name: "steps", kind: "message", T: PlanStep, repeated: true },
7967
+ { no: 8, name: "current_step_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
7968
+ { no: 9, name: "expected_output", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7969
+ { no: 10, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7970
+ { no: 11, name: "time_estimate_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
7971
+ { no: 12, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
7972
+ { no: 13, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols), repeated: true },
7973
+ { no: 14, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
7974
+ { no: 15, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7975
+ { no: 16, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
7976
+ ]);
7977
+ /**
7978
+ * @generated from enum trading.v1.PlanResponse.PlanStatus
7979
+ */
7980
+ export var PlanResponse_PlanStatus;
7981
+ (function (PlanResponse_PlanStatus) {
7982
+ /**
7983
+ * @generated from enum value: ACTIVE = 0;
7984
+ */
7985
+ PlanResponse_PlanStatus[PlanResponse_PlanStatus["ACTIVE"] = 0] = "ACTIVE";
7986
+ /**
7987
+ * @generated from enum value: IN_PROGRESS = 1;
7988
+ */
7989
+ PlanResponse_PlanStatus[PlanResponse_PlanStatus["IN_PROGRESS"] = 1] = "IN_PROGRESS";
7990
+ /**
7991
+ * @generated from enum value: COMPLETED = 2;
7992
+ */
7993
+ PlanResponse_PlanStatus[PlanResponse_PlanStatus["COMPLETED"] = 2] = "COMPLETED";
7994
+ /**
7995
+ * @generated from enum value: FAILED = 3;
7996
+ */
7997
+ PlanResponse_PlanStatus[PlanResponse_PlanStatus["FAILED"] = 3] = "FAILED";
7998
+ })(PlanResponse_PlanStatus || (PlanResponse_PlanStatus = {}));
7999
+ // Retrieve enum metadata with: proto3.getEnumType(PlanResponse_PlanStatus)
8000
+ proto3.util.setEnumType(PlanResponse_PlanStatus, "trading.v1.PlanResponse.PlanStatus", [
8001
+ { no: 0, name: "ACTIVE" },
8002
+ { no: 1, name: "IN_PROGRESS" },
8003
+ { no: 2, name: "COMPLETED" },
8004
+ { no: 3, name: "FAILED" },
8005
+ ]);
8006
+ /**
8007
+ * @generated from message trading.v1.DocsRequest
8008
+ */
8009
+ export class DocsRequest extends Message {
8010
+ constructor(data) {
8011
+ super();
8012
+ proto3.util.initPartial(data, this);
8013
+ }
8014
+ static fromBinary(bytes, options) {
8015
+ return new DocsRequest().fromBinary(bytes, options);
8016
+ }
8017
+ static fromJson(jsonValue, options) {
8018
+ return new DocsRequest().fromJson(jsonValue, options);
8019
+ }
8020
+ static fromJsonString(jsonString, options) {
8021
+ return new DocsRequest().fromJsonString(jsonString, options);
8022
+ }
8023
+ static equals(a, b) {
8024
+ return proto3.util.equals(DocsRequest, a, b);
8025
+ }
8026
+ }
8027
+ DocsRequest.runtime = proto3;
8028
+ DocsRequest.typeName = "trading.v1.DocsRequest";
8029
+ DocsRequest.fields = proto3.util.newFieldList(() => []);
8030
+ /**
8031
+ * @generated from message trading.v1.DocsResponse
8032
+ */
8033
+ export class DocsResponse extends Message {
8034
+ constructor(data) {
8035
+ super();
8036
+ /**
8037
+ * @generated from field: string openapi = 1;
8038
+ */
8039
+ this.openapi = "";
8040
+ /**
8041
+ * @generated from field: repeated google.protobuf.Struct servers = 2;
8042
+ */
8043
+ this.servers = [];
8044
+ /**
8045
+ * @generated from field: repeated google.protobuf.Struct security = 6;
8046
+ */
8047
+ this.security = [];
8048
+ proto3.util.initPartial(data, this);
8049
+ }
8050
+ static fromBinary(bytes, options) {
8051
+ return new DocsResponse().fromBinary(bytes, options);
8052
+ }
8053
+ static fromJson(jsonValue, options) {
8054
+ return new DocsResponse().fromJson(jsonValue, options);
8055
+ }
8056
+ static fromJsonString(jsonString, options) {
8057
+ return new DocsResponse().fromJsonString(jsonString, options);
8058
+ }
8059
+ static equals(a, b) {
8060
+ return proto3.util.equals(DocsResponse, a, b);
8061
+ }
8062
+ }
8063
+ DocsResponse.runtime = proto3;
8064
+ DocsResponse.typeName = "trading.v1.DocsResponse";
8065
+ DocsResponse.fields = proto3.util.newFieldList(() => [
8066
+ { no: 1, name: "openapi", kind: "scalar", T: 9 /* ScalarType.STRING */ },
8067
+ { no: 2, name: "servers", kind: "message", T: Struct, repeated: true },
8068
+ { no: 3, name: "info", kind: "message", T: Struct },
8069
+ { no: 4, name: "paths", kind: "message", T: Struct },
8070
+ { no: 5, name: "components", kind: "message", T: Struct },
8071
+ { no: 6, name: "security", kind: "message", T: Struct, repeated: true },
8072
+ ]);
8073
+ /**
8074
+ * @generated from message trading.v1.UpdatePlanRequest
8075
+ */
8076
+ export class UpdatePlanRequest extends Message {
8077
+ constructor(data) {
8078
+ super();
8079
+ /**
8080
+ * @generated from field: string plan_id = 1;
8081
+ */
8082
+ this.planId = "";
8083
+ /**
8084
+ * @generated from field: repeated trading.v1.PlanStepUpdate steps = 2;
8085
+ */
8086
+ this.steps = [];
8087
+ proto3.util.initPartial(data, this);
8088
+ }
8089
+ static fromBinary(bytes, options) {
8090
+ return new UpdatePlanRequest().fromBinary(bytes, options);
8091
+ }
8092
+ static fromJson(jsonValue, options) {
8093
+ return new UpdatePlanRequest().fromJson(jsonValue, options);
8094
+ }
8095
+ static fromJsonString(jsonString, options) {
8096
+ return new UpdatePlanRequest().fromJsonString(jsonString, options);
8097
+ }
8098
+ static equals(a, b) {
8099
+ return proto3.util.equals(UpdatePlanRequest, a, b);
8100
+ }
8101
+ }
8102
+ UpdatePlanRequest.runtime = proto3;
8103
+ UpdatePlanRequest.typeName = "trading.v1.UpdatePlanRequest";
8104
+ UpdatePlanRequest.fields = proto3.util.newFieldList(() => [
8105
+ { no: 1, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
8106
+ { no: 2, name: "steps", kind: "message", T: PlanStepUpdate, repeated: true },
8107
+ ]);
8108
+ /**
8109
+ * @generated from message trading.v1.PlanStepUpdate
8110
+ */
8111
+ export class PlanStepUpdate extends Message {
8112
+ constructor(data) {
8113
+ super();
8114
+ /**
8115
+ * @generated from field: int32 step_index = 1;
8116
+ */
8117
+ this.stepIndex = 0;
8118
+ proto3.util.initPartial(data, this);
8119
+ }
8120
+ static fromBinary(bytes, options) {
8121
+ return new PlanStepUpdate().fromBinary(bytes, options);
8122
+ }
8123
+ static fromJson(jsonValue, options) {
8124
+ return new PlanStepUpdate().fromJson(jsonValue, options);
8125
+ }
8126
+ static fromJsonString(jsonString, options) {
8127
+ return new PlanStepUpdate().fromJsonString(jsonString, options);
8128
+ }
8129
+ static equals(a, b) {
8130
+ return proto3.util.equals(PlanStepUpdate, a, b);
8131
+ }
8132
+ }
8133
+ PlanStepUpdate.runtime = proto3;
8134
+ PlanStepUpdate.typeName = "trading.v1.PlanStepUpdate";
8135
+ PlanStepUpdate.fields = proto3.util.newFieldList(() => [
8136
+ { no: 1, name: "step_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
8137
+ { no: 2, name: "proof", kind: "message", T: PlanStep_StepProof },
8138
+ ]);
8139
+ /**
8140
+ * @generated from message trading.v1.GetPlansRequest
8141
+ */
8142
+ export class GetPlansRequest extends Message {
8143
+ constructor(data) {
8144
+ super();
8145
+ /**
8146
+ * @generated from field: string swapper = 1;
8147
+ */
8148
+ this.swapper = "";
8149
+ proto3.util.initPartial(data, this);
8150
+ }
8151
+ static fromBinary(bytes, options) {
8152
+ return new GetPlansRequest().fromBinary(bytes, options);
8153
+ }
8154
+ static fromJson(jsonValue, options) {
8155
+ return new GetPlansRequest().fromJson(jsonValue, options);
8156
+ }
8157
+ static fromJsonString(jsonString, options) {
8158
+ return new GetPlansRequest().fromJsonString(jsonString, options);
8159
+ }
8160
+ static equals(a, b) {
8161
+ return proto3.util.equals(GetPlansRequest, a, b);
8162
+ }
8163
+ }
8164
+ GetPlansRequest.runtime = proto3;
8165
+ GetPlansRequest.typeName = "trading.v1.GetPlansRequest";
8166
+ GetPlansRequest.fields = proto3.util.newFieldList(() => [
8167
+ { no: 1, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
8168
+ { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
8169
+ { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8170
+ { no: 4, name: "min_timestamp", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8171
+ { no: 5, name: "max_timestamp", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8172
+ ]);
8173
+ /**
8174
+ * @generated from message trading.v1.GetPlansResponse
8175
+ */
8176
+ export class GetPlansResponse extends Message {
8177
+ constructor(data) {
8178
+ super();
8179
+ /**
8180
+ * @generated from field: string request_id = 1;
8181
+ */
8182
+ this.requestId = "";
8183
+ /**
8184
+ * @generated from field: repeated trading.v1.PlanResponse plans = 2;
8185
+ */
8186
+ this.plans = [];
8187
+ proto3.util.initPartial(data, this);
8188
+ }
8189
+ static fromBinary(bytes, options) {
8190
+ return new GetPlansResponse().fromBinary(bytes, options);
8191
+ }
8192
+ static fromJson(jsonValue, options) {
8193
+ return new GetPlansResponse().fromJson(jsonValue, options);
8194
+ }
8195
+ static fromJsonString(jsonString, options) {
8196
+ return new GetPlansResponse().fromJsonString(jsonString, options);
8197
+ }
8198
+ static equals(a, b) {
8199
+ return proto3.util.equals(GetPlansResponse, a, b);
8200
+ }
8201
+ }
8202
+ GetPlansResponse.runtime = proto3;
8203
+ GetPlansResponse.typeName = "trading.v1.GetPlansResponse";
8204
+ GetPlansResponse.fields = proto3.util.newFieldList(() => [
8205
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
8206
+ { no: 2, name: "plans", kind: "message", T: PlanResponse, repeated: true },
8207
+ { no: 3, name: "next_cursor", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8208
+ ]);
8209
+ /**
8210
+ * WalletExecutionContext based on CAIP-25 Standard
8211
+ *
8212
+ * @generated from message trading.v1.WalletExecutionContext
8213
+ */
8214
+ export class WalletExecutionContext extends Message {
8215
+ constructor(data) {
8216
+ super();
8217
+ /**
8218
+ * @generated from field: map<string, trading.v1.ScopeData> scopes = 1;
8219
+ */
8220
+ this.scopes = {};
8221
+ proto3.util.initPartial(data, this);
8222
+ }
8223
+ static fromBinary(bytes, options) {
8224
+ return new WalletExecutionContext().fromBinary(bytes, options);
8225
+ }
8226
+ static fromJson(jsonValue, options) {
8227
+ return new WalletExecutionContext().fromJson(jsonValue, options);
8228
+ }
8229
+ static fromJsonString(jsonString, options) {
8230
+ return new WalletExecutionContext().fromJsonString(jsonString, options);
8231
+ }
8232
+ static equals(a, b) {
8233
+ return proto3.util.equals(WalletExecutionContext, a, b);
8234
+ }
8235
+ }
8236
+ WalletExecutionContext.runtime = proto3;
8237
+ WalletExecutionContext.typeName = "trading.v1.WalletExecutionContext";
8238
+ WalletExecutionContext.fields = proto3.util.newFieldList(() => [
8239
+ { no: 1, name: "scopes", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: ScopeData } },
8240
+ { no: 2, name: "properties", kind: "message", T: WalletProperties, opt: true },
8241
+ ]);
8242
+ /**
8243
+ * @generated from message trading.v1.ScopeData
8244
+ */
8245
+ export class ScopeData extends Message {
8246
+ constructor(data) {
8247
+ super();
8248
+ /**
8249
+ * @generated from field: repeated string accounts = 1;
8250
+ */
8251
+ this.accounts = [];
8252
+ /**
8253
+ * @generated from field: repeated string methods = 2;
8254
+ */
8255
+ this.methods = [];
8256
+ /**
8257
+ * @generated from field: repeated string chains = 4;
8258
+ */
8259
+ this.chains = [];
8260
+ proto3.util.initPartial(data, this);
8261
+ }
8262
+ static fromBinary(bytes, options) {
8263
+ return new ScopeData().fromBinary(bytes, options);
8264
+ }
8265
+ static fromJson(jsonValue, options) {
8266
+ return new ScopeData().fromJson(jsonValue, options);
8267
+ }
8268
+ static fromJsonString(jsonString, options) {
8269
+ return new ScopeData().fromJsonString(jsonString, options);
8270
+ }
8271
+ static equals(a, b) {
8272
+ return proto3.util.equals(ScopeData, a, b);
8273
+ }
8274
+ }
8275
+ ScopeData.runtime = proto3;
8276
+ ScopeData.typeName = "trading.v1.ScopeData";
8277
+ ScopeData.fields = proto3.util.newFieldList(() => [
8278
+ { no: 1, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
8279
+ { no: 2, name: "methods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
8280
+ { no: 3, name: "capabilities", kind: "message", T: Struct, opt: true },
8281
+ { no: 4, name: "chains", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
8282
+ { no: 5, name: "client_context", kind: "message", T: ClientContext, opt: true },
8283
+ ]);
8284
+ /**
8285
+ * @generated from message trading.v1.ClientContext
8286
+ */
8287
+ export class ClientContext extends Message {
8288
+ constructor(data) {
8289
+ super();
8290
+ proto3.util.initPartial(data, this);
8291
+ }
8292
+ static fromBinary(bytes, options) {
8293
+ return new ClientContext().fromBinary(bytes, options);
8294
+ }
8295
+ static fromJson(jsonValue, options) {
8296
+ return new ClientContext().fromJson(jsonValue, options);
8297
+ }
8298
+ static fromJsonString(jsonString, options) {
8299
+ return new ClientContext().fromJsonString(jsonString, options);
8300
+ }
8301
+ static equals(a, b) {
8302
+ return proto3.util.equals(ClientContext, a, b);
8303
+ }
8304
+ }
8305
+ ClientContext.runtime = proto3;
8306
+ ClientContext.typeName = "trading.v1.ClientContext";
8307
+ ClientContext.fields = proto3.util.newFieldList(() => [
8308
+ { no: 1, name: "direct_private_key_access", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
8309
+ { no: 2, name: "next_evm_upgrade_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8310
+ ]);
8311
+ /**
8312
+ * @generated from message trading.v1.WalletProperties
8313
+ */
8314
+ export class WalletProperties extends Message {
8315
+ constructor(data) {
8316
+ super();
8317
+ proto3.util.initPartial(data, this);
8318
+ }
8319
+ static fromBinary(bytes, options) {
8320
+ return new WalletProperties().fromBinary(bytes, options);
8321
+ }
8322
+ static fromJson(jsonValue, options) {
8323
+ return new WalletProperties().fromJson(jsonValue, options);
8324
+ }
8325
+ static fromJsonString(jsonString, options) {
8326
+ return new WalletProperties().fromJsonString(jsonString, options);
8327
+ }
8328
+ static equals(a, b) {
8329
+ return proto3.util.equals(WalletProperties, a, b);
8330
+ }
8331
+ }
8332
+ WalletProperties.runtime = proto3;
8333
+ WalletProperties.typeName = "trading.v1.WalletProperties";
8334
+ WalletProperties.fields = proto3.util.newFieldList(() => [
8335
+ { no: 1, name: "wallet_info", kind: "message", T: WalletInfo, opt: true },
8336
+ ]);
8337
+ /**
8338
+ * @generated from message trading.v1.WalletInfo
8339
+ */
8340
+ export class WalletInfo extends Message {
8341
+ constructor(data) {
8342
+ super();
8343
+ proto3.util.initPartial(data, this);
8344
+ }
8345
+ static fromBinary(bytes, options) {
8346
+ return new WalletInfo().fromBinary(bytes, options);
8347
+ }
8348
+ static fromJson(jsonValue, options) {
8349
+ return new WalletInfo().fromJson(jsonValue, options);
8350
+ }
8351
+ static fromJsonString(jsonString, options) {
8352
+ return new WalletInfo().fromJsonString(jsonString, options);
8353
+ }
8354
+ static equals(a, b) {
8355
+ return proto3.util.equals(WalletInfo, a, b);
8356
+ }
8357
+ }
8358
+ WalletInfo.runtime = proto3;
8359
+ WalletInfo.typeName = "trading.v1.WalletInfo";
8360
+ WalletInfo.fields = proto3.util.newFieldList(() => [
8361
+ { no: 1, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8362
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8363
+ { no: 3, name: "rdns", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
8364
+ ]);