@uniswap/client-trading 0.1.1 → 0.1.2
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 +43 -1
- package/dist/trading/v1/api-tradingService_connectquery.js +43 -1
- package/dist/trading/v1/api_connect.d.ts +31 -1
- package/dist/trading/v1/api_connect.js +31 -1
- package/dist/trading/v1/api_pb.d.ts +535 -13
- package/dist/trading/v1/api_pb.js +557 -11
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file trading/v1/api.proto (package trading.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { 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
|
*/
|
|
@@ -1033,6 +1033,8 @@ Swap5792Response.fields = proto3.util.newFieldList(() => [
|
|
|
1033
1033
|
{ no: 4, name: "calls", kind: "message", T: TransactionRequest5792, repeated: true },
|
|
1034
1034
|
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1035
1035
|
{ no: 6, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
1036
|
+
{ no: 7, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1037
|
+
{ no: 8, name: "public_key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1036
1038
|
]);
|
|
1037
1039
|
/**
|
|
1038
1040
|
* @generated from message trading.v1.PoolInfoRequest
|
|
@@ -1185,8 +1187,8 @@ PoolInformation.fields = proto3.util.newFieldList(() => [
|
|
|
1185
1187
|
{ no: 13, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1186
1188
|
{ no: 14, name: "sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1187
1189
|
{ no: 15, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1188
|
-
{ no: 16, name: "
|
|
1189
|
-
{ no: 17, name: "
|
|
1190
|
+
{ no: 16, name: "token_0_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1191
|
+
{ no: 17, name: "token_1_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1190
1192
|
]);
|
|
1191
1193
|
/**
|
|
1192
1194
|
* @generated from message trading.v1.PoolReferenceByProtocol
|
|
@@ -3440,6 +3442,7 @@ GasStrategy.fields = proto3.util.newFieldList(() => [
|
|
|
3440
3442
|
{ no: 7, name: "base_fee_history_window", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
3441
3443
|
{ no: 8, name: "min_priority_fee_ratio_of_base_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
3442
3444
|
{ no: 9, name: "threshold_to_inflate_last_block_base_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
3445
|
+
{ no: 10, name: "display_limit_inflation_factor", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
3443
3446
|
]);
|
|
3444
3447
|
/**
|
|
3445
3448
|
* @generated from message trading.v1.QuoteRequest
|
|
@@ -3582,14 +3585,15 @@ QuoteResponse.fields = proto3.util.newFieldList(() => [
|
|
|
3582
3585
|
{ no: 9, name: "dutch_limit_v3_quote", kind: "message", T: DutchLimitV3Quote, oneof: "quote" },
|
|
3583
3586
|
{ no: 10, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "quote" },
|
|
3584
3587
|
{ no: 11, name: "priority_quote", kind: "message", T: PriorityQuote, oneof: "quote" },
|
|
3585
|
-
{ no: 12, name: "
|
|
3586
|
-
{ no: 13, name: "
|
|
3587
|
-
{ no: 14, name: "
|
|
3588
|
-
{ no: 15, name: "
|
|
3589
|
-
{ no: 16, name: "
|
|
3590
|
-
{ no: 17, name: "
|
|
3591
|
-
{ no: 18, name: "
|
|
3592
|
-
{ no: 19, name: "
|
|
3588
|
+
{ no: 12, name: "chained_quote", kind: "message", T: ChainedQuote, oneof: "quote" },
|
|
3589
|
+
{ no: 13, name: "permit_single_data", kind: "message", T: PermitSingleData, oneof: "permit_data" },
|
|
3590
|
+
{ no: 14, name: "permit_transfer_from_data", kind: "message", T: PermitTransferFromData, oneof: "permit_data" },
|
|
3591
|
+
{ no: 15, name: "dutch_limit_permit_data", kind: "message", T: DutchLimitPermitData, oneof: "permit_data" },
|
|
3592
|
+
{ no: 16, name: "dutch_limit_v2_permit_data", kind: "message", T: DutchLimitV2PermitData, oneof: "permit_data" },
|
|
3593
|
+
{ no: 17, name: "dutch_limit_v3_permit_data", kind: "message", T: DutchLimitV3PermitData, oneof: "permit_data" },
|
|
3594
|
+
{ no: 18, name: "priority_permit_data", kind: "message", T: PriorityPermitData, oneof: "permit_data" },
|
|
3595
|
+
{ no: 19, name: "permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
3596
|
+
{ no: 20, name: "permit_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3593
3597
|
]);
|
|
3594
3598
|
/**
|
|
3595
3599
|
* @generated from message trading.v1.ClassicInput
|
|
@@ -4582,6 +4586,102 @@ SwapResponse.fields = proto3.util.newFieldList(() => [
|
|
|
4582
4586
|
{ no: 6, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4583
4587
|
{ no: 7, name: "public_key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4584
4588
|
]);
|
|
4589
|
+
/**
|
|
4590
|
+
* @generated from message trading.v1.Swap7702Request
|
|
4591
|
+
*/
|
|
4592
|
+
export class Swap7702Request extends Message {
|
|
4593
|
+
constructor(data) {
|
|
4594
|
+
super();
|
|
4595
|
+
/**
|
|
4596
|
+
* @generated from oneof trading.v1.Swap7702Request.quote
|
|
4597
|
+
*/
|
|
4598
|
+
this.quote = { case: undefined };
|
|
4599
|
+
/**
|
|
4600
|
+
* @generated from field: string smart_contract_delegation_address = 5;
|
|
4601
|
+
*/
|
|
4602
|
+
this.smartContractDelegationAddress = "";
|
|
4603
|
+
/**
|
|
4604
|
+
* @generated from field: bool include_gas_info = 6;
|
|
4605
|
+
*/
|
|
4606
|
+
this.includeGasInfo = false;
|
|
4607
|
+
/**
|
|
4608
|
+
* @generated from field: bool simulate_transaction = 7;
|
|
4609
|
+
*/
|
|
4610
|
+
this.simulateTransaction = false;
|
|
4611
|
+
/**
|
|
4612
|
+
* @generated from field: int64 deadline = 8;
|
|
4613
|
+
*/
|
|
4614
|
+
this.deadline = protoInt64.zero;
|
|
4615
|
+
/**
|
|
4616
|
+
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 10;
|
|
4617
|
+
*/
|
|
4618
|
+
this.gasStrategies = [];
|
|
4619
|
+
proto3.util.initPartial(data, this);
|
|
4620
|
+
}
|
|
4621
|
+
static fromBinary(bytes, options) {
|
|
4622
|
+
return new Swap7702Request().fromBinary(bytes, options);
|
|
4623
|
+
}
|
|
4624
|
+
static fromJson(jsonValue, options) {
|
|
4625
|
+
return new Swap7702Request().fromJson(jsonValue, options);
|
|
4626
|
+
}
|
|
4627
|
+
static fromJsonString(jsonString, options) {
|
|
4628
|
+
return new Swap7702Request().fromJsonString(jsonString, options);
|
|
4629
|
+
}
|
|
4630
|
+
static equals(a, b) {
|
|
4631
|
+
return proto3.util.equals(Swap7702Request, a, b);
|
|
4632
|
+
}
|
|
4633
|
+
}
|
|
4634
|
+
Swap7702Request.runtime = proto3;
|
|
4635
|
+
Swap7702Request.typeName = "trading.v1.Swap7702Request";
|
|
4636
|
+
Swap7702Request.fields = proto3.util.newFieldList(() => [
|
|
4637
|
+
{ no: 1, name: "classic_quote", kind: "message", T: ClassicQuote, oneof: "quote" },
|
|
4638
|
+
{ no: 2, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "quote" },
|
|
4639
|
+
{ no: 3, name: "bridge_quote", kind: "message", T: BridgeQuote, oneof: "quote" },
|
|
4640
|
+
{ no: 4, name: "permit_data", kind: "message", T: PermitSingleData, opt: true },
|
|
4641
|
+
{ no: 5, name: "smart_contract_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4642
|
+
{ no: 6, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
4643
|
+
{ no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
4644
|
+
{ no: 8, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
4645
|
+
{ no: 9, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
4646
|
+
{ no: 10, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
4647
|
+
]);
|
|
4648
|
+
/**
|
|
4649
|
+
* @generated from message trading.v1.Swap7702Response
|
|
4650
|
+
*/
|
|
4651
|
+
export class Swap7702Response extends Message {
|
|
4652
|
+
constructor(data) {
|
|
4653
|
+
super();
|
|
4654
|
+
/**
|
|
4655
|
+
* @generated from field: string request_id = 1;
|
|
4656
|
+
*/
|
|
4657
|
+
this.requestId = "";
|
|
4658
|
+
/**
|
|
4659
|
+
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 4;
|
|
4660
|
+
*/
|
|
4661
|
+
this.gasEstimates = [];
|
|
4662
|
+
proto3.util.initPartial(data, this);
|
|
4663
|
+
}
|
|
4664
|
+
static fromBinary(bytes, options) {
|
|
4665
|
+
return new Swap7702Response().fromBinary(bytes, options);
|
|
4666
|
+
}
|
|
4667
|
+
static fromJson(jsonValue, options) {
|
|
4668
|
+
return new Swap7702Response().fromJson(jsonValue, options);
|
|
4669
|
+
}
|
|
4670
|
+
static fromJsonString(jsonString, options) {
|
|
4671
|
+
return new Swap7702Response().fromJsonString(jsonString, options);
|
|
4672
|
+
}
|
|
4673
|
+
static equals(a, b) {
|
|
4674
|
+
return proto3.util.equals(Swap7702Response, a, b);
|
|
4675
|
+
}
|
|
4676
|
+
}
|
|
4677
|
+
Swap7702Response.runtime = proto3;
|
|
4678
|
+
Swap7702Response.typeName = "trading.v1.Swap7702Response";
|
|
4679
|
+
Swap7702Response.fields = proto3.util.newFieldList(() => [
|
|
4680
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4681
|
+
{ no: 2, name: "swap", kind: "message", T: TransactionRequest },
|
|
4682
|
+
{ no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4683
|
+
{ no: 4, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
4684
|
+
]);
|
|
4585
4685
|
/**
|
|
4586
4686
|
* @generated from message trading.v1.GetSwapsRequest
|
|
4587
4687
|
*/
|
|
@@ -6606,6 +6706,68 @@ PriorityQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6606
6706
|
{ no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6607
6707
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6608
6708
|
]);
|
|
6709
|
+
/**
|
|
6710
|
+
* @generated from message trading.v1.ChainedQuote
|
|
6711
|
+
*/
|
|
6712
|
+
export class ChainedQuote extends Message {
|
|
6713
|
+
constructor(data) {
|
|
6714
|
+
super();
|
|
6715
|
+
/**
|
|
6716
|
+
* @generated from field: trading.v1.ChainId token_in_chain_id = 1;
|
|
6717
|
+
*/
|
|
6718
|
+
this.tokenInChainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
6719
|
+
/**
|
|
6720
|
+
* @generated from field: trading.v1.ChainId token_out_chain_id = 2;
|
|
6721
|
+
*/
|
|
6722
|
+
this.tokenOutChainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
6723
|
+
/**
|
|
6724
|
+
* @generated from field: string swapper = 3;
|
|
6725
|
+
*/
|
|
6726
|
+
this.swapper = "";
|
|
6727
|
+
/**
|
|
6728
|
+
* @generated from field: trading.v1.TradeType trade_type = 6;
|
|
6729
|
+
*/
|
|
6730
|
+
this.tradeType = TradeType.EXACT_INPUT;
|
|
6731
|
+
/**
|
|
6732
|
+
* @generated from field: string quote_id = 7;
|
|
6733
|
+
*/
|
|
6734
|
+
this.quoteId = "";
|
|
6735
|
+
/**
|
|
6736
|
+
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 8;
|
|
6737
|
+
*/
|
|
6738
|
+
this.gasEstimates = [];
|
|
6739
|
+
proto3.util.initPartial(data, this);
|
|
6740
|
+
}
|
|
6741
|
+
static fromBinary(bytes, options) {
|
|
6742
|
+
return new ChainedQuote().fromBinary(bytes, options);
|
|
6743
|
+
}
|
|
6744
|
+
static fromJson(jsonValue, options) {
|
|
6745
|
+
return new ChainedQuote().fromJson(jsonValue, options);
|
|
6746
|
+
}
|
|
6747
|
+
static fromJsonString(jsonString, options) {
|
|
6748
|
+
return new ChainedQuote().fromJsonString(jsonString, options);
|
|
6749
|
+
}
|
|
6750
|
+
static equals(a, b) {
|
|
6751
|
+
return proto3.util.equals(ChainedQuote, a, b);
|
|
6752
|
+
}
|
|
6753
|
+
}
|
|
6754
|
+
ChainedQuote.runtime = proto3;
|
|
6755
|
+
ChainedQuote.typeName = "trading.v1.ChainedQuote";
|
|
6756
|
+
ChainedQuote.fields = proto3.util.newFieldList(() => [
|
|
6757
|
+
{ no: 1, name: "token_in_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
6758
|
+
{ no: 2, name: "token_out_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
6759
|
+
{ no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6760
|
+
{ no: 4, name: "input", kind: "message", T: ClassicInput },
|
|
6761
|
+
{ no: 5, name: "output", kind: "message", T: ClassicOutput },
|
|
6762
|
+
{ no: 6, name: "trade_type", kind: "enum", T: proto3.getEnumType(TradeType) },
|
|
6763
|
+
{ no: 7, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6764
|
+
{ no: 8, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
6765
|
+
{ no: 9, name: "gas_use_estimate", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6766
|
+
{ no: 10, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6767
|
+
{ no: 11, name: "gas_fee_quote", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6768
|
+
{ no: 12, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6769
|
+
{ no: 13, name: "time_estimate_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
6770
|
+
]);
|
|
6609
6771
|
/**
|
|
6610
6772
|
* @generated from message trading.v1.PermitTransferFromData
|
|
6611
6773
|
*/
|
|
@@ -7498,3 +7660,387 @@ DelegationDetails.fields = proto3.util.newFieldList(() => [
|
|
|
7498
7660
|
{ no: 2, name: "current_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7499
7661
|
{ no: 3, name: "latest_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7500
7662
|
]);
|
|
7663
|
+
/**
|
|
7664
|
+
* @generated from message trading.v1.PlanStep
|
|
7665
|
+
*/
|
|
7666
|
+
export class PlanStep extends Message {
|
|
7667
|
+
constructor(data) {
|
|
7668
|
+
super();
|
|
7669
|
+
/**
|
|
7670
|
+
* @generated from field: string step_id = 1;
|
|
7671
|
+
*/
|
|
7672
|
+
this.stepId = "";
|
|
7673
|
+
/**
|
|
7674
|
+
* @generated from field: trading.v1.PlanStep.Method method = 2;
|
|
7675
|
+
*/
|
|
7676
|
+
this.method = PlanStep_Method.SEND_TX;
|
|
7677
|
+
/**
|
|
7678
|
+
* @generated from field: trading.v1.PlanStep.PayloadType payload_type = 3;
|
|
7679
|
+
*/
|
|
7680
|
+
this.payloadType = PlanStep_PayloadType.TX;
|
|
7681
|
+
/**
|
|
7682
|
+
* JSON serialized payload
|
|
7683
|
+
*
|
|
7684
|
+
* @generated from field: string payload = 4;
|
|
7685
|
+
*/
|
|
7686
|
+
this.payload = "";
|
|
7687
|
+
/**
|
|
7688
|
+
* @generated from field: trading.v1.PlanStep.StepStatus status = 5;
|
|
7689
|
+
*/
|
|
7690
|
+
this.status = PlanStep_StepStatus.NOT_READY;
|
|
7691
|
+
proto3.util.initPartial(data, this);
|
|
7692
|
+
}
|
|
7693
|
+
static fromBinary(bytes, options) {
|
|
7694
|
+
return new PlanStep().fromBinary(bytes, options);
|
|
7695
|
+
}
|
|
7696
|
+
static fromJson(jsonValue, options) {
|
|
7697
|
+
return new PlanStep().fromJson(jsonValue, options);
|
|
7698
|
+
}
|
|
7699
|
+
static fromJsonString(jsonString, options) {
|
|
7700
|
+
return new PlanStep().fromJsonString(jsonString, options);
|
|
7701
|
+
}
|
|
7702
|
+
static equals(a, b) {
|
|
7703
|
+
return proto3.util.equals(PlanStep, a, b);
|
|
7704
|
+
}
|
|
7705
|
+
}
|
|
7706
|
+
PlanStep.runtime = proto3;
|
|
7707
|
+
PlanStep.typeName = "trading.v1.PlanStep";
|
|
7708
|
+
PlanStep.fields = proto3.util.newFieldList(() => [
|
|
7709
|
+
{ no: 1, name: "step_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7710
|
+
{ no: 2, name: "method", kind: "enum", T: proto3.getEnumType(PlanStep_Method) },
|
|
7711
|
+
{ no: 3, name: "payload_type", kind: "enum", T: proto3.getEnumType(PlanStep_PayloadType) },
|
|
7712
|
+
{ no: 4, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7713
|
+
{ no: 5, name: "status", kind: "enum", T: proto3.getEnumType(PlanStep_StepStatus) },
|
|
7714
|
+
{ no: 6, name: "proof", kind: "message", T: PlanStep_StepProof, opt: true },
|
|
7715
|
+
{ no: 7, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7716
|
+
{ no: 8, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7717
|
+
{ no: 9, name: "token_in_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
7718
|
+
{ no: 10, name: "token_out_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
7719
|
+
{ no: 11, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7720
|
+
{ no: 12, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7721
|
+
{ no: 13, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7722
|
+
{ no: 14, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7723
|
+
{ no: 15, name: "step_swap_type", kind: "enum", T: proto3.getEnumType(SwapType), opt: true },
|
|
7724
|
+
{ no: 16, name: "gas_use_estimate", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7725
|
+
{ no: 17, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7726
|
+
{ no: 18, name: "gas_fee_quote", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7727
|
+
{ no: 19, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7728
|
+
{ no: 20, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7729
|
+
{ no: 21, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7730
|
+
{ no: 22, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7731
|
+
{ no: 23, name: "routing_step_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7732
|
+
]);
|
|
7733
|
+
/**
|
|
7734
|
+
* @generated from enum trading.v1.PlanStep.StepStatus
|
|
7735
|
+
*/
|
|
7736
|
+
export var PlanStep_StepStatus;
|
|
7737
|
+
(function (PlanStep_StepStatus) {
|
|
7738
|
+
/**
|
|
7739
|
+
* @generated from enum value: NOT_READY = 0;
|
|
7740
|
+
*/
|
|
7741
|
+
PlanStep_StepStatus[PlanStep_StepStatus["NOT_READY"] = 0] = "NOT_READY";
|
|
7742
|
+
/**
|
|
7743
|
+
* @generated from enum value: AWAITING_ACTION = 1;
|
|
7744
|
+
*/
|
|
7745
|
+
PlanStep_StepStatus[PlanStep_StepStatus["AWAITING_ACTION"] = 1] = "AWAITING_ACTION";
|
|
7746
|
+
/**
|
|
7747
|
+
* @generated from enum value: IN_PROGRESS = 2;
|
|
7748
|
+
*/
|
|
7749
|
+
PlanStep_StepStatus[PlanStep_StepStatus["IN_PROGRESS"] = 2] = "IN_PROGRESS";
|
|
7750
|
+
/**
|
|
7751
|
+
* @generated from enum value: COMPLETE = 3;
|
|
7752
|
+
*/
|
|
7753
|
+
PlanStep_StepStatus[PlanStep_StepStatus["COMPLETE"] = 3] = "COMPLETE";
|
|
7754
|
+
/**
|
|
7755
|
+
* @generated from enum value: STEP_ERROR = 4;
|
|
7756
|
+
*/
|
|
7757
|
+
PlanStep_StepStatus[PlanStep_StepStatus["STEP_ERROR"] = 4] = "STEP_ERROR";
|
|
7758
|
+
})(PlanStep_StepStatus || (PlanStep_StepStatus = {}));
|
|
7759
|
+
// Retrieve enum metadata with: proto3.getEnumType(PlanStep_StepStatus)
|
|
7760
|
+
proto3.util.setEnumType(PlanStep_StepStatus, "trading.v1.PlanStep.StepStatus", [
|
|
7761
|
+
{ no: 0, name: "NOT_READY" },
|
|
7762
|
+
{ no: 1, name: "AWAITING_ACTION" },
|
|
7763
|
+
{ no: 2, name: "IN_PROGRESS" },
|
|
7764
|
+
{ no: 3, name: "COMPLETE" },
|
|
7765
|
+
{ no: 4, name: "STEP_ERROR" },
|
|
7766
|
+
]);
|
|
7767
|
+
/**
|
|
7768
|
+
* @generated from enum trading.v1.PlanStep.Method
|
|
7769
|
+
*/
|
|
7770
|
+
export var PlanStep_Method;
|
|
7771
|
+
(function (PlanStep_Method) {
|
|
7772
|
+
/**
|
|
7773
|
+
* @generated from enum value: SEND_TX = 0;
|
|
7774
|
+
*/
|
|
7775
|
+
PlanStep_Method[PlanStep_Method["SEND_TX"] = 0] = "SEND_TX";
|
|
7776
|
+
/**
|
|
7777
|
+
* @generated from enum value: SIGN_MSG = 1;
|
|
7778
|
+
*/
|
|
7779
|
+
PlanStep_Method[PlanStep_Method["SIGN_MSG"] = 1] = "SIGN_MSG";
|
|
7780
|
+
/**
|
|
7781
|
+
* @generated from enum value: SEND_CALLS = 2;
|
|
7782
|
+
*/
|
|
7783
|
+
PlanStep_Method[PlanStep_Method["SEND_CALLS"] = 2] = "SEND_CALLS";
|
|
7784
|
+
})(PlanStep_Method || (PlanStep_Method = {}));
|
|
7785
|
+
// Retrieve enum metadata with: proto3.getEnumType(PlanStep_Method)
|
|
7786
|
+
proto3.util.setEnumType(PlanStep_Method, "trading.v1.PlanStep.Method", [
|
|
7787
|
+
{ no: 0, name: "SEND_TX" },
|
|
7788
|
+
{ no: 1, name: "SIGN_MSG" },
|
|
7789
|
+
{ no: 2, name: "SEND_CALLS" },
|
|
7790
|
+
]);
|
|
7791
|
+
/**
|
|
7792
|
+
* @generated from enum trading.v1.PlanStep.PayloadType
|
|
7793
|
+
*/
|
|
7794
|
+
export var PlanStep_PayloadType;
|
|
7795
|
+
(function (PlanStep_PayloadType) {
|
|
7796
|
+
/**
|
|
7797
|
+
* @generated from enum value: TX = 0;
|
|
7798
|
+
*/
|
|
7799
|
+
PlanStep_PayloadType[PlanStep_PayloadType["TX"] = 0] = "TX";
|
|
7800
|
+
/**
|
|
7801
|
+
* @generated from enum value: EIP_712 = 1;
|
|
7802
|
+
*/
|
|
7803
|
+
PlanStep_PayloadType[PlanStep_PayloadType["EIP_712"] = 1] = "EIP_712";
|
|
7804
|
+
/**
|
|
7805
|
+
* @generated from enum value: EIP_5792 = 2;
|
|
7806
|
+
*/
|
|
7807
|
+
PlanStep_PayloadType[PlanStep_PayloadType["EIP_5792"] = 2] = "EIP_5792";
|
|
7808
|
+
})(PlanStep_PayloadType || (PlanStep_PayloadType = {}));
|
|
7809
|
+
// Retrieve enum metadata with: proto3.getEnumType(PlanStep_PayloadType)
|
|
7810
|
+
proto3.util.setEnumType(PlanStep_PayloadType, "trading.v1.PlanStep.PayloadType", [
|
|
7811
|
+
{ no: 0, name: "TX" },
|
|
7812
|
+
{ no: 1, name: "EIP_712" },
|
|
7813
|
+
{ no: 2, name: "EIP_5792" },
|
|
7814
|
+
]);
|
|
7815
|
+
/**
|
|
7816
|
+
* @generated from message trading.v1.PlanStep.StepProof
|
|
7817
|
+
*/
|
|
7818
|
+
export class PlanStep_StepProof extends Message {
|
|
7819
|
+
constructor(data) {
|
|
7820
|
+
super();
|
|
7821
|
+
proto3.util.initPartial(data, this);
|
|
7822
|
+
}
|
|
7823
|
+
static fromBinary(bytes, options) {
|
|
7824
|
+
return new PlanStep_StepProof().fromBinary(bytes, options);
|
|
7825
|
+
}
|
|
7826
|
+
static fromJson(jsonValue, options) {
|
|
7827
|
+
return new PlanStep_StepProof().fromJson(jsonValue, options);
|
|
7828
|
+
}
|
|
7829
|
+
static fromJsonString(jsonString, options) {
|
|
7830
|
+
return new PlanStep_StepProof().fromJsonString(jsonString, options);
|
|
7831
|
+
}
|
|
7832
|
+
static equals(a, b) {
|
|
7833
|
+
return proto3.util.equals(PlanStep_StepProof, a, b);
|
|
7834
|
+
}
|
|
7835
|
+
}
|
|
7836
|
+
PlanStep_StepProof.runtime = proto3;
|
|
7837
|
+
PlanStep_StepProof.typeName = "trading.v1.PlanStep.StepProof";
|
|
7838
|
+
PlanStep_StepProof.fields = proto3.util.newFieldList(() => [
|
|
7839
|
+
{ no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7840
|
+
{ no: 2, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7841
|
+
{ no: 3, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7842
|
+
]);
|
|
7843
|
+
/**
|
|
7844
|
+
* @generated from message trading.v1.CreatePlanRequest
|
|
7845
|
+
*/
|
|
7846
|
+
export class CreatePlanRequest extends Message {
|
|
7847
|
+
constructor(data) {
|
|
7848
|
+
super();
|
|
7849
|
+
/**
|
|
7850
|
+
* @generated from field: trading.v1.SwapType routing = 1;
|
|
7851
|
+
*/
|
|
7852
|
+
this.routing = SwapType.CLASSIC;
|
|
7853
|
+
proto3.util.initPartial(data, this);
|
|
7854
|
+
}
|
|
7855
|
+
static fromBinary(bytes, options) {
|
|
7856
|
+
return new CreatePlanRequest().fromBinary(bytes, options);
|
|
7857
|
+
}
|
|
7858
|
+
static fromJson(jsonValue, options) {
|
|
7859
|
+
return new CreatePlanRequest().fromJson(jsonValue, options);
|
|
7860
|
+
}
|
|
7861
|
+
static fromJsonString(jsonString, options) {
|
|
7862
|
+
return new CreatePlanRequest().fromJsonString(jsonString, options);
|
|
7863
|
+
}
|
|
7864
|
+
static equals(a, b) {
|
|
7865
|
+
return proto3.util.equals(CreatePlanRequest, a, b);
|
|
7866
|
+
}
|
|
7867
|
+
}
|
|
7868
|
+
CreatePlanRequest.runtime = proto3;
|
|
7869
|
+
CreatePlanRequest.typeName = "trading.v1.CreatePlanRequest";
|
|
7870
|
+
CreatePlanRequest.fields = proto3.util.newFieldList(() => [
|
|
7871
|
+
{ no: 1, name: "routing", kind: "enum", T: proto3.getEnumType(SwapType) },
|
|
7872
|
+
{ no: 2, name: "quote", kind: "message", T: ChainedQuote },
|
|
7873
|
+
]);
|
|
7874
|
+
/**
|
|
7875
|
+
* @generated from message trading.v1.CreatePlanResponse
|
|
7876
|
+
*/
|
|
7877
|
+
export class CreatePlanResponse extends Message {
|
|
7878
|
+
constructor(data) {
|
|
7879
|
+
super();
|
|
7880
|
+
/**
|
|
7881
|
+
* @generated from field: string request_id = 1;
|
|
7882
|
+
*/
|
|
7883
|
+
this.requestId = "";
|
|
7884
|
+
/**
|
|
7885
|
+
* @generated from field: string plan_id = 2;
|
|
7886
|
+
*/
|
|
7887
|
+
this.planId = "";
|
|
7888
|
+
/**
|
|
7889
|
+
* @generated from field: string swapper = 3;
|
|
7890
|
+
*/
|
|
7891
|
+
this.swapper = "";
|
|
7892
|
+
/**
|
|
7893
|
+
* @generated from field: string recipient = 4;
|
|
7894
|
+
*/
|
|
7895
|
+
this.recipient = "";
|
|
7896
|
+
/**
|
|
7897
|
+
* @generated from field: string quote_id = 5;
|
|
7898
|
+
*/
|
|
7899
|
+
this.quoteId = "";
|
|
7900
|
+
/**
|
|
7901
|
+
* @generated from field: trading.v1.CreatePlanResponse.PlanStatus status = 6;
|
|
7902
|
+
*/
|
|
7903
|
+
this.status = CreatePlanResponse_PlanStatus.ACTIVE;
|
|
7904
|
+
/**
|
|
7905
|
+
* @generated from field: repeated trading.v1.PlanStep steps = 7;
|
|
7906
|
+
*/
|
|
7907
|
+
this.steps = [];
|
|
7908
|
+
/**
|
|
7909
|
+
* @generated from field: int32 current_step_index = 8;
|
|
7910
|
+
*/
|
|
7911
|
+
this.currentStepIndex = 0;
|
|
7912
|
+
/**
|
|
7913
|
+
* @generated from field: string expected_output = 9;
|
|
7914
|
+
*/
|
|
7915
|
+
this.expectedOutput = "";
|
|
7916
|
+
/**
|
|
7917
|
+
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12;
|
|
7918
|
+
*/
|
|
7919
|
+
this.gasStrategies = [];
|
|
7920
|
+
proto3.util.initPartial(data, this);
|
|
7921
|
+
}
|
|
7922
|
+
static fromBinary(bytes, options) {
|
|
7923
|
+
return new CreatePlanResponse().fromBinary(bytes, options);
|
|
7924
|
+
}
|
|
7925
|
+
static fromJson(jsonValue, options) {
|
|
7926
|
+
return new CreatePlanResponse().fromJson(jsonValue, options);
|
|
7927
|
+
}
|
|
7928
|
+
static fromJsonString(jsonString, options) {
|
|
7929
|
+
return new CreatePlanResponse().fromJsonString(jsonString, options);
|
|
7930
|
+
}
|
|
7931
|
+
static equals(a, b) {
|
|
7932
|
+
return proto3.util.equals(CreatePlanResponse, a, b);
|
|
7933
|
+
}
|
|
7934
|
+
}
|
|
7935
|
+
CreatePlanResponse.runtime = proto3;
|
|
7936
|
+
CreatePlanResponse.typeName = "trading.v1.CreatePlanResponse";
|
|
7937
|
+
CreatePlanResponse.fields = proto3.util.newFieldList(() => [
|
|
7938
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7939
|
+
{ no: 2, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7940
|
+
{ no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7941
|
+
{ no: 4, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7942
|
+
{ no: 5, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7943
|
+
{ no: 6, name: "status", kind: "enum", T: proto3.getEnumType(CreatePlanResponse_PlanStatus) },
|
|
7944
|
+
{ no: 7, name: "steps", kind: "message", T: PlanStep, repeated: true },
|
|
7945
|
+
{ no: 8, name: "current_step_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
7946
|
+
{ no: 9, name: "expected_output", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7947
|
+
{ no: 10, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7948
|
+
{ no: 11, name: "time_estimate_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
7949
|
+
{ no: 12, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
7950
|
+
]);
|
|
7951
|
+
/**
|
|
7952
|
+
* @generated from enum trading.v1.CreatePlanResponse.PlanStatus
|
|
7953
|
+
*/
|
|
7954
|
+
export var CreatePlanResponse_PlanStatus;
|
|
7955
|
+
(function (CreatePlanResponse_PlanStatus) {
|
|
7956
|
+
/**
|
|
7957
|
+
* @generated from enum value: ACTIVE = 0;
|
|
7958
|
+
*/
|
|
7959
|
+
CreatePlanResponse_PlanStatus[CreatePlanResponse_PlanStatus["ACTIVE"] = 0] = "ACTIVE";
|
|
7960
|
+
/**
|
|
7961
|
+
* @generated from enum value: IN_PROGRESS = 1;
|
|
7962
|
+
*/
|
|
7963
|
+
CreatePlanResponse_PlanStatus[CreatePlanResponse_PlanStatus["IN_PROGRESS"] = 1] = "IN_PROGRESS";
|
|
7964
|
+
/**
|
|
7965
|
+
* @generated from enum value: COMPLETED = 2;
|
|
7966
|
+
*/
|
|
7967
|
+
CreatePlanResponse_PlanStatus[CreatePlanResponse_PlanStatus["COMPLETED"] = 2] = "COMPLETED";
|
|
7968
|
+
/**
|
|
7969
|
+
* @generated from enum value: FAILED = 3;
|
|
7970
|
+
*/
|
|
7971
|
+
CreatePlanResponse_PlanStatus[CreatePlanResponse_PlanStatus["FAILED"] = 3] = "FAILED";
|
|
7972
|
+
})(CreatePlanResponse_PlanStatus || (CreatePlanResponse_PlanStatus = {}));
|
|
7973
|
+
// Retrieve enum metadata with: proto3.getEnumType(CreatePlanResponse_PlanStatus)
|
|
7974
|
+
proto3.util.setEnumType(CreatePlanResponse_PlanStatus, "trading.v1.CreatePlanResponse.PlanStatus", [
|
|
7975
|
+
{ no: 0, name: "ACTIVE" },
|
|
7976
|
+
{ no: 1, name: "IN_PROGRESS" },
|
|
7977
|
+
{ no: 2, name: "COMPLETED" },
|
|
7978
|
+
{ no: 3, name: "FAILED" },
|
|
7979
|
+
]);
|
|
7980
|
+
/**
|
|
7981
|
+
* @generated from message trading.v1.DocsRequest
|
|
7982
|
+
*/
|
|
7983
|
+
export class DocsRequest extends Message {
|
|
7984
|
+
constructor(data) {
|
|
7985
|
+
super();
|
|
7986
|
+
proto3.util.initPartial(data, this);
|
|
7987
|
+
}
|
|
7988
|
+
static fromBinary(bytes, options) {
|
|
7989
|
+
return new DocsRequest().fromBinary(bytes, options);
|
|
7990
|
+
}
|
|
7991
|
+
static fromJson(jsonValue, options) {
|
|
7992
|
+
return new DocsRequest().fromJson(jsonValue, options);
|
|
7993
|
+
}
|
|
7994
|
+
static fromJsonString(jsonString, options) {
|
|
7995
|
+
return new DocsRequest().fromJsonString(jsonString, options);
|
|
7996
|
+
}
|
|
7997
|
+
static equals(a, b) {
|
|
7998
|
+
return proto3.util.equals(DocsRequest, a, b);
|
|
7999
|
+
}
|
|
8000
|
+
}
|
|
8001
|
+
DocsRequest.runtime = proto3;
|
|
8002
|
+
DocsRequest.typeName = "trading.v1.DocsRequest";
|
|
8003
|
+
DocsRequest.fields = proto3.util.newFieldList(() => []);
|
|
8004
|
+
/**
|
|
8005
|
+
* @generated from message trading.v1.DocsResponse
|
|
8006
|
+
*/
|
|
8007
|
+
export class DocsResponse extends Message {
|
|
8008
|
+
constructor(data) {
|
|
8009
|
+
super();
|
|
8010
|
+
/**
|
|
8011
|
+
* @generated from field: string openapi = 1;
|
|
8012
|
+
*/
|
|
8013
|
+
this.openapi = "";
|
|
8014
|
+
/**
|
|
8015
|
+
* @generated from field: repeated google.protobuf.Struct servers = 2;
|
|
8016
|
+
*/
|
|
8017
|
+
this.servers = [];
|
|
8018
|
+
/**
|
|
8019
|
+
* @generated from field: repeated google.protobuf.Struct security = 6;
|
|
8020
|
+
*/
|
|
8021
|
+
this.security = [];
|
|
8022
|
+
proto3.util.initPartial(data, this);
|
|
8023
|
+
}
|
|
8024
|
+
static fromBinary(bytes, options) {
|
|
8025
|
+
return new DocsResponse().fromBinary(bytes, options);
|
|
8026
|
+
}
|
|
8027
|
+
static fromJson(jsonValue, options) {
|
|
8028
|
+
return new DocsResponse().fromJson(jsonValue, options);
|
|
8029
|
+
}
|
|
8030
|
+
static fromJsonString(jsonString, options) {
|
|
8031
|
+
return new DocsResponse().fromJsonString(jsonString, options);
|
|
8032
|
+
}
|
|
8033
|
+
static equals(a, b) {
|
|
8034
|
+
return proto3.util.equals(DocsResponse, a, b);
|
|
8035
|
+
}
|
|
8036
|
+
}
|
|
8037
|
+
DocsResponse.runtime = proto3;
|
|
8038
|
+
DocsResponse.typeName = "trading.v1.DocsResponse";
|
|
8039
|
+
DocsResponse.fields = proto3.util.newFieldList(() => [
|
|
8040
|
+
{ no: 1, name: "openapi", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
8041
|
+
{ no: 2, name: "servers", kind: "message", T: Struct, repeated: true },
|
|
8042
|
+
{ no: 3, name: "info", kind: "message", T: Struct },
|
|
8043
|
+
{ no: 4, name: "paths", kind: "message", T: Struct },
|
|
8044
|
+
{ no: 5, name: "components", kind: "message", T: Struct },
|
|
8045
|
+
{ no: 6, name: "security", kind: "message", T: Struct, repeated: true },
|
|
8046
|
+
]);
|