@uniswap/client-trading 0.1.2 → 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.
- package/dist/trading/v1/api-tradingService_connectquery.d.ts +41 -27
- package/dist/trading/v1/api-tradingService_connectquery.js +42 -28
- package/dist/trading/v1/api_connect.d.ts +31 -21
- package/dist/trading/v1/api_connect.js +32 -22
- package/dist/trading/v1/api_pb.d.ts +411 -150
- package/dist/trading/v1/api_pb.js +513 -195
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.
|
|
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
|
|
@@ -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
|
*/
|
|
@@ -1362,88 +1365,6 @@ SendResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1362
1365
|
{ no: 4, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1363
1366
|
{ no: 5, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
1364
1367
|
]);
|
|
1365
|
-
/**
|
|
1366
|
-
* @generated from message trading.v1.ClaimLPRewardsRequest
|
|
1367
|
-
*/
|
|
1368
|
-
export class ClaimLPRewardsRequest extends Message {
|
|
1369
|
-
constructor(data) {
|
|
1370
|
-
super();
|
|
1371
|
-
/**
|
|
1372
|
-
* @generated from field: string wallet_address = 1;
|
|
1373
|
-
*/
|
|
1374
|
-
this.walletAddress = "";
|
|
1375
|
-
/**
|
|
1376
|
-
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
1377
|
-
*/
|
|
1378
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1379
|
-
/**
|
|
1380
|
-
* @generated from field: repeated string tokens = 3;
|
|
1381
|
-
*/
|
|
1382
|
-
this.tokens = [];
|
|
1383
|
-
/**
|
|
1384
|
-
* @generated from field: trading.v1.Distributor distributor = 4;
|
|
1385
|
-
*/
|
|
1386
|
-
this.distributor = Distributor.MERKLE;
|
|
1387
|
-
/**
|
|
1388
|
-
* @generated from field: bool simulate_transaction = 5;
|
|
1389
|
-
*/
|
|
1390
|
-
this.simulateTransaction = false;
|
|
1391
|
-
proto3.util.initPartial(data, this);
|
|
1392
|
-
}
|
|
1393
|
-
static fromBinary(bytes, options) {
|
|
1394
|
-
return new ClaimLPRewardsRequest().fromBinary(bytes, options);
|
|
1395
|
-
}
|
|
1396
|
-
static fromJson(jsonValue, options) {
|
|
1397
|
-
return new ClaimLPRewardsRequest().fromJson(jsonValue, options);
|
|
1398
|
-
}
|
|
1399
|
-
static fromJsonString(jsonString, options) {
|
|
1400
|
-
return new ClaimLPRewardsRequest().fromJsonString(jsonString, options);
|
|
1401
|
-
}
|
|
1402
|
-
static equals(a, b) {
|
|
1403
|
-
return proto3.util.equals(ClaimLPRewardsRequest, a, b);
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
ClaimLPRewardsRequest.runtime = proto3;
|
|
1407
|
-
ClaimLPRewardsRequest.typeName = "trading.v1.ClaimLPRewardsRequest";
|
|
1408
|
-
ClaimLPRewardsRequest.fields = proto3.util.newFieldList(() => [
|
|
1409
|
-
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1410
|
-
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1411
|
-
{ no: 3, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1412
|
-
{ no: 4, name: "distributor", kind: "enum", T: proto3.getEnumType(Distributor) },
|
|
1413
|
-
{ no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1414
|
-
]);
|
|
1415
|
-
/**
|
|
1416
|
-
* @generated from message trading.v1.ClaimLPRewardsResponse
|
|
1417
|
-
*/
|
|
1418
|
-
export class ClaimLPRewardsResponse extends Message {
|
|
1419
|
-
constructor(data) {
|
|
1420
|
-
super();
|
|
1421
|
-
/**
|
|
1422
|
-
* @generated from field: string request_id = 1;
|
|
1423
|
-
*/
|
|
1424
|
-
this.requestId = "";
|
|
1425
|
-
proto3.util.initPartial(data, this);
|
|
1426
|
-
}
|
|
1427
|
-
static fromBinary(bytes, options) {
|
|
1428
|
-
return new ClaimLPRewardsResponse().fromBinary(bytes, options);
|
|
1429
|
-
}
|
|
1430
|
-
static fromJson(jsonValue, options) {
|
|
1431
|
-
return new ClaimLPRewardsResponse().fromJson(jsonValue, options);
|
|
1432
|
-
}
|
|
1433
|
-
static fromJsonString(jsonString, options) {
|
|
1434
|
-
return new ClaimLPRewardsResponse().fromJsonString(jsonString, options);
|
|
1435
|
-
}
|
|
1436
|
-
static equals(a, b) {
|
|
1437
|
-
return proto3.util.equals(ClaimLPRewardsResponse, a, b);
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
ClaimLPRewardsResponse.runtime = proto3;
|
|
1441
|
-
ClaimLPRewardsResponse.typeName = "trading.v1.ClaimLPRewardsResponse";
|
|
1442
|
-
ClaimLPRewardsResponse.fields = proto3.util.newFieldList(() => [
|
|
1443
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1444
|
-
{ no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
|
|
1445
|
-
{ no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1446
|
-
]);
|
|
1447
1368
|
/**
|
|
1448
1369
|
* @generated from message trading.v1.CheckApprovalLPRequest
|
|
1449
1370
|
*/
|
|
@@ -3228,6 +3149,10 @@ export class SwappableTokensRequest extends Message {
|
|
|
3228
3149
|
* @generated from field: trading.v1.ChainId token_in_chain_id = 2;
|
|
3229
3150
|
*/
|
|
3230
3151
|
this.tokenInChainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
3152
|
+
/**
|
|
3153
|
+
* @generated from field: repeated trading.v1.ChainId chain_blocklist = 5;
|
|
3154
|
+
*/
|
|
3155
|
+
this.chainBlocklist = [];
|
|
3231
3156
|
proto3.util.initPartial(data, this);
|
|
3232
3157
|
}
|
|
3233
3158
|
static fromBinary(bytes, options) {
|
|
@@ -3248,6 +3173,9 @@ SwappableTokensRequest.typeName = "trading.v1.SwappableTokensRequest";
|
|
|
3248
3173
|
SwappableTokensRequest.fields = proto3.util.newFieldList(() => [
|
|
3249
3174
|
{ no: 1, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3250
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 },
|
|
3251
3179
|
]);
|
|
3252
3180
|
/**
|
|
3253
3181
|
* @generated from message trading.v1.SwappableTokensResponse
|
|
@@ -6547,6 +6475,10 @@ export class CheckApprovalResponse extends Message {
|
|
|
6547
6475
|
* @generated from field: string request_id = 1;
|
|
6548
6476
|
*/
|
|
6549
6477
|
this.requestId = "";
|
|
6478
|
+
/**
|
|
6479
|
+
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 6;
|
|
6480
|
+
*/
|
|
6481
|
+
this.gasEstimates = [];
|
|
6550
6482
|
proto3.util.initPartial(data, this);
|
|
6551
6483
|
}
|
|
6552
6484
|
static fromBinary(bytes, options) {
|
|
@@ -6570,6 +6502,7 @@ CheckApprovalResponse.fields = proto3.util.newFieldList(() => [
|
|
|
6570
6502
|
{ no: 3, name: "cancel", kind: "message", T: TransactionRequest },
|
|
6571
6503
|
{ no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6572
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 },
|
|
6573
6506
|
]);
|
|
6574
6507
|
/**
|
|
6575
6508
|
* @generated from message trading.v1.PriorityOrderInfo
|
|
@@ -6706,6 +6639,40 @@ PriorityQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6706
6639
|
{ no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6707
6640
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6708
6641
|
]);
|
|
6642
|
+
/**
|
|
6643
|
+
* @generated from message trading.v1.TruncatedPlanStep
|
|
6644
|
+
*/
|
|
6645
|
+
export class TruncatedPlanStep extends Message {
|
|
6646
|
+
constructor(data) {
|
|
6647
|
+
super();
|
|
6648
|
+
/**
|
|
6649
|
+
* @generated from field: trading.v1.PlanStepType step_type = 1;
|
|
6650
|
+
*/
|
|
6651
|
+
this.stepType = PlanStepType.CLASSIC;
|
|
6652
|
+
proto3.util.initPartial(data, this);
|
|
6653
|
+
}
|
|
6654
|
+
static fromBinary(bytes, options) {
|
|
6655
|
+
return new TruncatedPlanStep().fromBinary(bytes, options);
|
|
6656
|
+
}
|
|
6657
|
+
static fromJson(jsonValue, options) {
|
|
6658
|
+
return new TruncatedPlanStep().fromJson(jsonValue, options);
|
|
6659
|
+
}
|
|
6660
|
+
static fromJsonString(jsonString, options) {
|
|
6661
|
+
return new TruncatedPlanStep().fromJsonString(jsonString, options);
|
|
6662
|
+
}
|
|
6663
|
+
static equals(a, b) {
|
|
6664
|
+
return proto3.util.equals(TruncatedPlanStep, a, b);
|
|
6665
|
+
}
|
|
6666
|
+
}
|
|
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 },
|
|
6675
|
+
]);
|
|
6709
6676
|
/**
|
|
6710
6677
|
* @generated from message trading.v1.ChainedQuote
|
|
6711
6678
|
*/
|
|
@@ -6736,6 +6703,14 @@ export class ChainedQuote extends Message {
|
|
|
6736
6703
|
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 8;
|
|
6737
6704
|
*/
|
|
6738
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 = [];
|
|
6739
6714
|
proto3.util.initPartial(data, this);
|
|
6740
6715
|
}
|
|
6741
6716
|
static fromBinary(bytes, options) {
|
|
@@ -6767,6 +6742,9 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6767
6742
|
{ no: 11, name: "gas_fee_quote", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6768
6743
|
{ no: 12, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6769
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 },
|
|
6770
6748
|
]);
|
|
6771
6749
|
/**
|
|
6772
6750
|
* @generated from message trading.v1.PermitTransferFromData
|
|
@@ -7667,9 +7645,9 @@ export class PlanStep extends Message {
|
|
|
7667
7645
|
constructor(data) {
|
|
7668
7646
|
super();
|
|
7669
7647
|
/**
|
|
7670
|
-
* @generated from field: string
|
|
7648
|
+
* @generated from field: string step_index = 1;
|
|
7671
7649
|
*/
|
|
7672
|
-
this.
|
|
7650
|
+
this.stepIndex = "";
|
|
7673
7651
|
/**
|
|
7674
7652
|
* @generated from field: trading.v1.PlanStep.Method method = 2;
|
|
7675
7653
|
*/
|
|
@@ -7688,6 +7666,10 @@ export class PlanStep extends Message {
|
|
|
7688
7666
|
* @generated from field: trading.v1.PlanStep.StepStatus status = 5;
|
|
7689
7667
|
*/
|
|
7690
7668
|
this.status = PlanStep_StepStatus.NOT_READY;
|
|
7669
|
+
/**
|
|
7670
|
+
* @generated from field: trading.v1.PlanStepType step_type = 15;
|
|
7671
|
+
*/
|
|
7672
|
+
this.stepType = PlanStepType.CLASSIC;
|
|
7691
7673
|
proto3.util.initPartial(data, this);
|
|
7692
7674
|
}
|
|
7693
7675
|
static fromBinary(bytes, options) {
|
|
@@ -7706,7 +7688,7 @@ export class PlanStep extends Message {
|
|
|
7706
7688
|
PlanStep.runtime = proto3;
|
|
7707
7689
|
PlanStep.typeName = "trading.v1.PlanStep";
|
|
7708
7690
|
PlanStep.fields = proto3.util.newFieldList(() => [
|
|
7709
|
-
{ no: 1, name: "
|
|
7691
|
+
{ no: 1, name: "step_index", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7710
7692
|
{ no: 2, name: "method", kind: "enum", T: proto3.getEnumType(PlanStep_Method) },
|
|
7711
7693
|
{ no: 3, name: "payload_type", kind: "enum", T: proto3.getEnumType(PlanStep_PayloadType) },
|
|
7712
7694
|
{ no: 4, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -7720,7 +7702,7 @@ PlanStep.fields = proto3.util.newFieldList(() => [
|
|
|
7720
7702
|
{ no: 12, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7721
7703
|
{ no: 13, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7722
7704
|
{ no: 14, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7723
|
-
{ no: 15, name: "
|
|
7705
|
+
{ no: 15, name: "step_type", kind: "enum", T: proto3.getEnumType(PlanStepType) },
|
|
7724
7706
|
{ no: 16, name: "gas_use_estimate", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7725
7707
|
{ no: 17, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7726
7708
|
{ no: 18, name: "gas_fee_quote", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -7870,11 +7852,47 @@ CreatePlanRequest.typeName = "trading.v1.CreatePlanRequest";
|
|
|
7870
7852
|
CreatePlanRequest.fields = proto3.util.newFieldList(() => [
|
|
7871
7853
|
{ no: 1, name: "routing", kind: "enum", T: proto3.getEnumType(SwapType) },
|
|
7872
7854
|
{ no: 2, name: "quote", kind: "message", T: ChainedQuote },
|
|
7855
|
+
{ no: 3, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
7873
7856
|
]);
|
|
7874
7857
|
/**
|
|
7875
|
-
* @generated from message trading.v1.
|
|
7858
|
+
* @generated from message trading.v1.GetPlanRequest
|
|
7876
7859
|
*/
|
|
7877
|
-
export class
|
|
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 {
|
|
7878
7896
|
constructor(data) {
|
|
7879
7897
|
super();
|
|
7880
7898
|
/**
|
|
@@ -7898,9 +7916,9 @@ export class CreatePlanResponse extends Message {
|
|
|
7898
7916
|
*/
|
|
7899
7917
|
this.quoteId = "";
|
|
7900
7918
|
/**
|
|
7901
|
-
* @generated from field: trading.v1.
|
|
7919
|
+
* @generated from field: trading.v1.PlanResponse.PlanStatus status = 6;
|
|
7902
7920
|
*/
|
|
7903
|
-
this.status =
|
|
7921
|
+
this.status = PlanResponse_PlanStatus.ACTIVE;
|
|
7904
7922
|
/**
|
|
7905
7923
|
* @generated from field: repeated trading.v1.PlanStep steps = 7;
|
|
7906
7924
|
*/
|
|
@@ -7917,61 +7935,69 @@ export class CreatePlanResponse extends Message {
|
|
|
7917
7935
|
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12;
|
|
7918
7936
|
*/
|
|
7919
7937
|
this.gasStrategies = [];
|
|
7938
|
+
/**
|
|
7939
|
+
* @generated from field: repeated trading.v1.Protocols protocols = 13;
|
|
7940
|
+
*/
|
|
7941
|
+
this.protocols = [];
|
|
7920
7942
|
proto3.util.initPartial(data, this);
|
|
7921
7943
|
}
|
|
7922
7944
|
static fromBinary(bytes, options) {
|
|
7923
|
-
return new
|
|
7945
|
+
return new PlanResponse().fromBinary(bytes, options);
|
|
7924
7946
|
}
|
|
7925
7947
|
static fromJson(jsonValue, options) {
|
|
7926
|
-
return new
|
|
7948
|
+
return new PlanResponse().fromJson(jsonValue, options);
|
|
7927
7949
|
}
|
|
7928
7950
|
static fromJsonString(jsonString, options) {
|
|
7929
|
-
return new
|
|
7951
|
+
return new PlanResponse().fromJsonString(jsonString, options);
|
|
7930
7952
|
}
|
|
7931
7953
|
static equals(a, b) {
|
|
7932
|
-
return proto3.util.equals(
|
|
7954
|
+
return proto3.util.equals(PlanResponse, a, b);
|
|
7933
7955
|
}
|
|
7934
7956
|
}
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7957
|
+
PlanResponse.runtime = proto3;
|
|
7958
|
+
PlanResponse.typeName = "trading.v1.PlanResponse";
|
|
7959
|
+
PlanResponse.fields = proto3.util.newFieldList(() => [
|
|
7938
7960
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7939
7961
|
{ no: 2, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7940
7962
|
{ no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7941
7963
|
{ no: 4, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7942
7964
|
{ no: 5, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7943
|
-
{ no: 6, name: "status", kind: "enum", T: proto3.getEnumType(
|
|
7965
|
+
{ no: 6, name: "status", kind: "enum", T: proto3.getEnumType(PlanResponse_PlanStatus) },
|
|
7944
7966
|
{ no: 7, name: "steps", kind: "message", T: PlanStep, repeated: true },
|
|
7945
7967
|
{ no: 8, name: "current_step_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
7946
7968
|
{ no: 9, name: "expected_output", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7947
7969
|
{ no: 10, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7948
7970
|
{ no: 11, name: "time_estimate_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
7949
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 },
|
|
7950
7976
|
]);
|
|
7951
7977
|
/**
|
|
7952
|
-
* @generated from enum trading.v1.
|
|
7978
|
+
* @generated from enum trading.v1.PlanResponse.PlanStatus
|
|
7953
7979
|
*/
|
|
7954
|
-
export var
|
|
7955
|
-
(function (
|
|
7980
|
+
export var PlanResponse_PlanStatus;
|
|
7981
|
+
(function (PlanResponse_PlanStatus) {
|
|
7956
7982
|
/**
|
|
7957
7983
|
* @generated from enum value: ACTIVE = 0;
|
|
7958
7984
|
*/
|
|
7959
|
-
|
|
7985
|
+
PlanResponse_PlanStatus[PlanResponse_PlanStatus["ACTIVE"] = 0] = "ACTIVE";
|
|
7960
7986
|
/**
|
|
7961
7987
|
* @generated from enum value: IN_PROGRESS = 1;
|
|
7962
7988
|
*/
|
|
7963
|
-
|
|
7989
|
+
PlanResponse_PlanStatus[PlanResponse_PlanStatus["IN_PROGRESS"] = 1] = "IN_PROGRESS";
|
|
7964
7990
|
/**
|
|
7965
7991
|
* @generated from enum value: COMPLETED = 2;
|
|
7966
7992
|
*/
|
|
7967
|
-
|
|
7993
|
+
PlanResponse_PlanStatus[PlanResponse_PlanStatus["COMPLETED"] = 2] = "COMPLETED";
|
|
7968
7994
|
/**
|
|
7969
7995
|
* @generated from enum value: FAILED = 3;
|
|
7970
7996
|
*/
|
|
7971
|
-
|
|
7972
|
-
})(
|
|
7973
|
-
// Retrieve enum metadata with: proto3.getEnumType(
|
|
7974
|
-
proto3.util.setEnumType(
|
|
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", [
|
|
7975
8001
|
{ no: 0, name: "ACTIVE" },
|
|
7976
8002
|
{ no: 1, name: "IN_PROGRESS" },
|
|
7977
8003
|
{ no: 2, name: "COMPLETED" },
|
|
@@ -8044,3 +8070,295 @@ DocsResponse.fields = proto3.util.newFieldList(() => [
|
|
|
8044
8070
|
{ no: 5, name: "components", kind: "message", T: Struct },
|
|
8045
8071
|
{ no: 6, name: "security", kind: "message", T: Struct, repeated: true },
|
|
8046
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
|
+
]);
|