@uniswap/client-trading 0.11.21 → 0.11.22
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 +30 -8
- package/dist/trading/v1/api_pb.js +19 -8
- package/package.json +1 -1
|
@@ -8935,15 +8935,15 @@ export declare class MarginExecutionLeg extends Message<MarginExecutionLeg> {
|
|
|
8935
8935
|
static equals(a: MarginExecutionLeg | PlainMessage<MarginExecutionLeg> | undefined, b: MarginExecutionLeg | PlainMessage<MarginExecutionLeg> | undefined): boolean;
|
|
8936
8936
|
}
|
|
8937
8937
|
/**
|
|
8938
|
-
* The wallet-side
|
|
8939
|
-
* swap, so the funding leg reads natively rather than inventing a
|
|
8940
|
-
* swap-quote vocabulary.
|
|
8938
|
+
* The wallet-side funding as priced, in the same shape /quote uses for an
|
|
8939
|
+
* ordinary swap, so the funding leg reads natively rather than inventing a
|
|
8940
|
+
* fourth swap-quote vocabulary.
|
|
8941
8941
|
*
|
|
8942
|
-
* Present IFF
|
|
8943
|
-
*
|
|
8944
|
-
* caller already holds the collateral
|
|
8945
|
-
* funding
|
|
8946
|
-
* same amount describes no trade.
|
|
8942
|
+
* Present IFF funding was actually priced: a swap on the position's chain, or a
|
|
8943
|
+
* route from another chain. Absent when the action moves no equity, and absent
|
|
8944
|
+
* when the caller already holds the collateral on the position's chain: paying
|
|
8945
|
+
* in the collateral itself needs no funding, and a block whose input and output
|
|
8946
|
+
* name the same token and the same amount describes no trade.
|
|
8947
8947
|
*
|
|
8948
8948
|
* 7 was auto_slippage: a request-side mode, never an answer. What a caller
|
|
8949
8949
|
* needs back is the percent it RESOLVED to, which slippage_tolerance already
|
|
@@ -8989,6 +8989,28 @@ export declare class MarginFunding extends Message<MarginFunding> {
|
|
|
8989
8989
|
* @generated from field: optional double price_impact = 10;
|
|
8990
8990
|
*/
|
|
8991
8991
|
priceImpact?: number;
|
|
8992
|
+
/**
|
|
8993
|
+
* The funding's steps in order, as /quote reports a chained route's: the
|
|
8994
|
+
* approvals the swapper still needs, then the route. Present whenever this
|
|
8995
|
+
* block is.
|
|
8996
|
+
*
|
|
8997
|
+
* @generated from field: repeated trading.v1.TruncatedPlanStep steps = 11;
|
|
8998
|
+
*/
|
|
8999
|
+
steps: TruncatedPlanStep[];
|
|
9000
|
+
/**
|
|
9001
|
+
* Cross-chain pay-in only: estimated milliseconds to complete the funding
|
|
9002
|
+
* steps.
|
|
9003
|
+
*
|
|
9004
|
+
* @generated from field: optional int32 time_estimate_ms = 12;
|
|
9005
|
+
*/
|
|
9006
|
+
timeEstimateMs?: number;
|
|
9007
|
+
/**
|
|
9008
|
+
* Cross-chain pay-in only: decimal USD, the gas of every funding step on both
|
|
9009
|
+
* chains.
|
|
9010
|
+
*
|
|
9011
|
+
* @generated from field: optional string gas_fee_usd = 13;
|
|
9012
|
+
*/
|
|
9013
|
+
gasFeeUsd?: string;
|
|
8992
9014
|
constructor(data?: PartialMessage<MarginFunding>);
|
|
8993
9015
|
static readonly runtime: typeof proto3;
|
|
8994
9016
|
static readonly typeName = "trading.v1.MarginFunding";
|
|
@@ -10298,15 +10298,15 @@ MarginExecutionLeg.fields = proto3.util.newFieldList(() => [
|
|
|
10298
10298
|
{ no: 3, name: "operations", kind: "message", T: MarginOperation, repeated: true },
|
|
10299
10299
|
]);
|
|
10300
10300
|
/**
|
|
10301
|
-
* The wallet-side
|
|
10302
|
-
* swap, so the funding leg reads natively rather than inventing a
|
|
10303
|
-
* swap-quote vocabulary.
|
|
10301
|
+
* The wallet-side funding as priced, in the same shape /quote uses for an
|
|
10302
|
+
* ordinary swap, so the funding leg reads natively rather than inventing a
|
|
10303
|
+
* fourth swap-quote vocabulary.
|
|
10304
10304
|
*
|
|
10305
|
-
* Present IFF
|
|
10306
|
-
*
|
|
10307
|
-
* caller already holds the collateral
|
|
10308
|
-
* funding
|
|
10309
|
-
* same amount describes no trade.
|
|
10305
|
+
* Present IFF funding was actually priced: a swap on the position's chain, or a
|
|
10306
|
+
* route from another chain. Absent when the action moves no equity, and absent
|
|
10307
|
+
* when the caller already holds the collateral on the position's chain: paying
|
|
10308
|
+
* in the collateral itself needs no funding, and a block whose input and output
|
|
10309
|
+
* name the same token and the same amount describes no trade.
|
|
10310
10310
|
*
|
|
10311
10311
|
* 7 was auto_slippage: a request-side mode, never an answer. What a caller
|
|
10312
10312
|
* needs back is the percent it RESOLVED to, which slippage_tolerance already
|
|
@@ -10324,6 +10324,14 @@ export class MarginFunding extends Message {
|
|
|
10324
10324
|
* @generated from field: int32 token_in_chain_id = 1;
|
|
10325
10325
|
*/
|
|
10326
10326
|
this.tokenInChainId = 0;
|
|
10327
|
+
/**
|
|
10328
|
+
* The funding's steps in order, as /quote reports a chained route's: the
|
|
10329
|
+
* approvals the swapper still needs, then the route. Present whenever this
|
|
10330
|
+
* block is.
|
|
10331
|
+
*
|
|
10332
|
+
* @generated from field: repeated trading.v1.TruncatedPlanStep steps = 11;
|
|
10333
|
+
*/
|
|
10334
|
+
this.steps = [];
|
|
10327
10335
|
proto3.util.initPartial(data, this);
|
|
10328
10336
|
}
|
|
10329
10337
|
static fromBinary(bytes, options) {
|
|
@@ -10348,6 +10356,9 @@ MarginFunding.fields = proto3.util.newFieldList(() => [
|
|
|
10348
10356
|
{ no: 6, name: "slippage_tolerance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
10349
10357
|
{ no: 9, name: "min_bridge_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
10350
10358
|
{ no: 10, name: "price_impact", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
10359
|
+
{ no: 11, name: "steps", kind: "message", T: TruncatedPlanStep, repeated: true },
|
|
10360
|
+
{ no: 12, name: "time_estimate_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
10361
|
+
{ no: 13, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
10351
10362
|
]);
|
|
10352
10363
|
/**
|
|
10353
10364
|
* Everything POST /plan needs, and nothing it does not. This subtree is what a
|