@uniswap/client-trading 0.11.1 → 0.11.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_pb.d.ts +54 -16
- package/dist/trading/v1/api_pb.js +39 -10
- package/package.json +1 -1
|
@@ -812,6 +812,25 @@ export declare enum MarginPositionStatus {
|
|
|
812
812
|
*/
|
|
813
813
|
PARTIALLY_LIQUIDATED = 3
|
|
814
814
|
}
|
|
815
|
+
/**
|
|
816
|
+
* Bridge vendor serving a bridge route.
|
|
817
|
+
*
|
|
818
|
+
* @generated from enum trading.v1.BridgeProvider
|
|
819
|
+
*/
|
|
820
|
+
export declare enum BridgeProvider {
|
|
821
|
+
/**
|
|
822
|
+
* @generated from enum value: BRIDGE_PROVIDER_UNSPECIFIED = 0;
|
|
823
|
+
*/
|
|
824
|
+
UNSPECIFIED = 0,
|
|
825
|
+
/**
|
|
826
|
+
* @generated from enum value: BRIDGE_PROVIDER_ACROSS = 1;
|
|
827
|
+
*/
|
|
828
|
+
ACROSS = 1,
|
|
829
|
+
/**
|
|
830
|
+
* @generated from enum value: BRIDGE_PROVIDER_RELAY = 2;
|
|
831
|
+
*/
|
|
832
|
+
RELAY = 2
|
|
833
|
+
}
|
|
815
834
|
/**
|
|
816
835
|
* @generated from message trading.v1.Encode7702Request
|
|
817
836
|
*/
|
|
@@ -5571,6 +5590,23 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
|
5571
5590
|
* @generated from field: optional double price_difference = 21;
|
|
5572
5591
|
*/
|
|
5573
5592
|
priceDifference?: number;
|
|
5593
|
+
/**
|
|
5594
|
+
* @generated from field: optional trading.v1.BridgeProvider provider = 22;
|
|
5595
|
+
*/
|
|
5596
|
+
provider?: BridgeProvider;
|
|
5597
|
+
/**
|
|
5598
|
+
* Deposit built by the provider (Relay); absent for Across, whose
|
|
5599
|
+
* deposit /swap encodes. /swap returns it byte-exact.
|
|
5600
|
+
*
|
|
5601
|
+
* @generated from field: optional trading.v1.TransactionRequest transaction_request = 23;
|
|
5602
|
+
*/
|
|
5603
|
+
transactionRequest?: TransactionRequest;
|
|
5604
|
+
/**
|
|
5605
|
+
* ERC-20 spender this quote needs approved; absent for native input.
|
|
5606
|
+
*
|
|
5607
|
+
* @generated from field: optional string approval_spender = 24;
|
|
5608
|
+
*/
|
|
5609
|
+
approvalSpender?: string;
|
|
5574
5610
|
constructor(data?: PartialMessage<BridgeQuote>);
|
|
5575
5611
|
static readonly runtime: typeof proto3;
|
|
5576
5612
|
static readonly typeName = "trading.v1.BridgeQuote";
|
|
@@ -7305,9 +7341,9 @@ export declare class CreatePlanRequest extends Message<CreatePlanRequest> {
|
|
|
7305
7341
|
earnIntent?: EarnIntent;
|
|
7306
7342
|
/**
|
|
7307
7343
|
* The margin quote, echoed back. Exactly one of `quote` and `margin_quote`
|
|
7308
|
-
* is accepted. Every bound and the pool are re-derived from the venue here
|
|
7309
|
-
*
|
|
7310
|
-
*
|
|
7344
|
+
* is accepted. Every bound and the pool are re-derived from the venue here,
|
|
7345
|
+
* and a re-derived max_debt_in or max_collateral_in is never looser than the
|
|
7346
|
+
* one echoed, since that is the bound the caller agreed to.
|
|
7311
7347
|
*
|
|
7312
7348
|
* @generated from field: optional trading.v1.MarginQuoteResponse margin_quote = 6;
|
|
7313
7349
|
*/
|
|
@@ -7960,7 +7996,8 @@ export declare class MarginMarketVenue extends Message<MarginMarketVenue> {
|
|
|
7960
7996
|
*/
|
|
7961
7997
|
adapter: string;
|
|
7962
7998
|
/**
|
|
7963
|
-
* Morpho's market id. Absent where the (adapter,
|
|
7999
|
+
* Morpho's market id, as the adapter reports it. Absent where the (adapter,
|
|
8000
|
+
* pair) IS the market, or when the adapter's market could not be read.
|
|
7964
8001
|
*
|
|
7965
8002
|
* @generated from field: optional string venue_market_id = 3;
|
|
7966
8003
|
*/
|
|
@@ -7988,7 +8025,7 @@ export declare class MarginMarketVenue extends Message<MarginMarketVenue> {
|
|
|
7988
8025
|
borrowRate?: string;
|
|
7989
8026
|
/**
|
|
7990
8027
|
* Absent until the venue's liquidity is read, which is NOT the same as a
|
|
7991
|
-
* market with nothing left to lend.
|
|
8028
|
+
* market with nothing left to lend. Always absent on AAVE_V4.
|
|
7992
8029
|
*
|
|
7993
8030
|
* @generated from field: optional string available_borrow_liquidity = 7;
|
|
7994
8031
|
*/
|
|
@@ -8021,18 +8058,18 @@ export declare class MarginMarketRow extends Message<MarginMarketRow> {
|
|
|
8021
8058
|
*/
|
|
8022
8059
|
direction: MarginDirection;
|
|
8023
8060
|
/**
|
|
8024
|
-
* The venue behind max_leverage
|
|
8025
|
-
*
|
|
8061
|
+
* The venue behind max_leverage: the one that goes furthest. Not necessarily
|
|
8062
|
+
* the venue a quote opens on, which is the cheapest venue that can carry the
|
|
8063
|
+
* requested leverage and lend the required amount.
|
|
8026
8064
|
*
|
|
8027
8065
|
* @generated from field: trading.v1.MarginVenue headline_venue = 4;
|
|
8028
8066
|
*/
|
|
8029
8067
|
headlineVenue: MarginVenue;
|
|
8030
8068
|
/**
|
|
8031
|
-
* The furthest this market goes, across every venue carrying it
|
|
8032
|
-
*
|
|
8033
|
-
*
|
|
8034
|
-
*
|
|
8035
|
-
* they come with.
|
|
8069
|
+
* The furthest this market goes, across every venue carrying it: the policy
|
|
8070
|
+
* ceiling the quote refuses above. A quote under it can still refuse once
|
|
8071
|
+
* its swap is priced. Rates and LTVs differ per venue, so both live on
|
|
8072
|
+
* `venues` beside the ceiling they come with.
|
|
8036
8073
|
*
|
|
8037
8074
|
* @generated from field: string max_leverage = 5;
|
|
8038
8075
|
*/
|
|
@@ -8509,7 +8546,8 @@ export declare class MarginOperation extends Message<MarginOperation> {
|
|
|
8509
8546
|
*/
|
|
8510
8547
|
minHopPrice?: string;
|
|
8511
8548
|
/**
|
|
8512
|
-
* This operation's quoted fill
|
|
8549
|
+
* This operation's quoted fill. POST /plan measures drift against
|
|
8550
|
+
* max_debt_in / max_collateral_in, not this.
|
|
8513
8551
|
*
|
|
8514
8552
|
* @generated from field: optional string effective_price = 9;
|
|
8515
8553
|
*/
|
|
@@ -9076,9 +9114,9 @@ export declare class MarginPositionsResponse extends Message<MarginPositionsResp
|
|
|
9076
9114
|
nextCursor?: string;
|
|
9077
9115
|
/**
|
|
9078
9116
|
* 4 was incomplete_opens, deleted unpopulated before launch (#13445).
|
|
9079
|
-
* Serializes as [] when the read
|
|
9080
|
-
* "not read": a degraded read logs
|
|
9081
|
-
*
|
|
9117
|
+
* First page only; a cursor page carries []. Serializes as [] when the read
|
|
9118
|
+
* ran and found nothing. It cannot express "not read": a degraded read logs
|
|
9119
|
+
* a warning and reports empty.
|
|
9082
9120
|
*
|
|
9083
9121
|
* @generated from field: repeated trading.v1.MarginPendingPlan pending_plans = 5;
|
|
9084
9122
|
*/
|
|
@@ -1097,6 +1097,32 @@ proto3.util.setEnumType(MarginPositionStatus, "trading.v1.MarginPositionStatus",
|
|
|
1097
1097
|
{ no: 2, name: "LIQUIDATED" },
|
|
1098
1098
|
{ no: 3, name: "PARTIALLY_LIQUIDATED" },
|
|
1099
1099
|
]);
|
|
1100
|
+
/**
|
|
1101
|
+
* Bridge vendor serving a bridge route.
|
|
1102
|
+
*
|
|
1103
|
+
* @generated from enum trading.v1.BridgeProvider
|
|
1104
|
+
*/
|
|
1105
|
+
export var BridgeProvider;
|
|
1106
|
+
(function (BridgeProvider) {
|
|
1107
|
+
/**
|
|
1108
|
+
* @generated from enum value: BRIDGE_PROVIDER_UNSPECIFIED = 0;
|
|
1109
|
+
*/
|
|
1110
|
+
BridgeProvider[BridgeProvider["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
1111
|
+
/**
|
|
1112
|
+
* @generated from enum value: BRIDGE_PROVIDER_ACROSS = 1;
|
|
1113
|
+
*/
|
|
1114
|
+
BridgeProvider[BridgeProvider["ACROSS"] = 1] = "ACROSS";
|
|
1115
|
+
/**
|
|
1116
|
+
* @generated from enum value: BRIDGE_PROVIDER_RELAY = 2;
|
|
1117
|
+
*/
|
|
1118
|
+
BridgeProvider[BridgeProvider["RELAY"] = 2] = "RELAY";
|
|
1119
|
+
})(BridgeProvider || (BridgeProvider = {}));
|
|
1120
|
+
// Retrieve enum metadata with: proto3.getEnumType(BridgeProvider)
|
|
1121
|
+
proto3.util.setEnumType(BridgeProvider, "trading.v1.BridgeProvider", [
|
|
1122
|
+
{ no: 0, name: "BRIDGE_PROVIDER_UNSPECIFIED" },
|
|
1123
|
+
{ no: 1, name: "BRIDGE_PROVIDER_ACROSS" },
|
|
1124
|
+
{ no: 2, name: "BRIDGE_PROVIDER_RELAY" },
|
|
1125
|
+
]);
|
|
1100
1126
|
/**
|
|
1101
1127
|
* @generated from message trading.v1.Encode7702Request
|
|
1102
1128
|
*/
|
|
@@ -6583,6 +6609,9 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6583
6609
|
{ no: 18, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6584
6610
|
{ no: 19, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
6585
6611
|
{ no: 21, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6612
|
+
{ no: 22, name: "provider", kind: "enum", T: proto3.getEnumType(BridgeProvider), opt: true },
|
|
6613
|
+
{ no: 23, name: "transaction_request", kind: "message", T: TransactionRequest, opt: true },
|
|
6614
|
+
{ no: 24, name: "approval_spender", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6586
6615
|
]);
|
|
6587
6616
|
/**
|
|
6588
6617
|
* @generated from message trading.v1.DutchLimitOrderInfo
|
|
@@ -9397,18 +9426,18 @@ export class MarginMarketRow extends Message {
|
|
|
9397
9426
|
*/
|
|
9398
9427
|
this.direction = MarginDirection.LONG;
|
|
9399
9428
|
/**
|
|
9400
|
-
* The venue behind max_leverage
|
|
9401
|
-
*
|
|
9429
|
+
* The venue behind max_leverage: the one that goes furthest. Not necessarily
|
|
9430
|
+
* the venue a quote opens on, which is the cheapest venue that can carry the
|
|
9431
|
+
* requested leverage and lend the required amount.
|
|
9402
9432
|
*
|
|
9403
9433
|
* @generated from field: trading.v1.MarginVenue headline_venue = 4;
|
|
9404
9434
|
*/
|
|
9405
9435
|
this.headlineVenue = MarginVenue.MORPHO;
|
|
9406
9436
|
/**
|
|
9407
|
-
* The furthest this market goes, across every venue carrying it
|
|
9408
|
-
*
|
|
9409
|
-
*
|
|
9410
|
-
*
|
|
9411
|
-
* they come with.
|
|
9437
|
+
* The furthest this market goes, across every venue carrying it: the policy
|
|
9438
|
+
* ceiling the quote refuses above. A quote under it can still refuse once
|
|
9439
|
+
* its swap is priced. Rates and LTVs differ per venue, so both live on
|
|
9440
|
+
* `venues` beside the ceiling they come with.
|
|
9412
9441
|
*
|
|
9413
9442
|
* @generated from field: string max_leverage = 5;
|
|
9414
9443
|
*/
|
|
@@ -10378,9 +10407,9 @@ export class MarginPositionsResponse extends Message {
|
|
|
10378
10407
|
this.positions = [];
|
|
10379
10408
|
/**
|
|
10380
10409
|
* 4 was incomplete_opens, deleted unpopulated before launch (#13445).
|
|
10381
|
-
* Serializes as [] when the read
|
|
10382
|
-
* "not read": a degraded read logs
|
|
10383
|
-
*
|
|
10410
|
+
* First page only; a cursor page carries []. Serializes as [] when the read
|
|
10411
|
+
* ran and found nothing. It cannot express "not read": a degraded read logs
|
|
10412
|
+
* a warning and reports empty.
|
|
10384
10413
|
*
|
|
10385
10414
|
* @generated from field: repeated trading.v1.MarginPendingPlan pending_plans = 5;
|
|
10386
10415
|
*/
|