@uniswap/client-trading 0.5.7 → 0.5.10
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 +188 -2
- package/dist/trading/v1/api_pb.js +196 -0
- package/package.json +1 -1
|
@@ -145,7 +145,11 @@ export declare enum ChainId {
|
|
|
145
145
|
/**
|
|
146
146
|
* @generated from enum value: ARC = 5042;
|
|
147
147
|
*/
|
|
148
|
-
ARC = 5042
|
|
148
|
+
ARC = 5042,
|
|
149
|
+
/**
|
|
150
|
+
* @generated from enum value: INK = 57073;
|
|
151
|
+
*/
|
|
152
|
+
INK = 57073
|
|
149
153
|
}
|
|
150
154
|
/**
|
|
151
155
|
* @generated from enum trading.v1.Protocols
|
|
@@ -366,7 +370,15 @@ export declare enum PlanStepType {
|
|
|
366
370
|
/**
|
|
367
371
|
* @generated from enum value: PLAN_STEP_TYPE_RESET_APPROVAL_TXN = 13;
|
|
368
372
|
*/
|
|
369
|
-
RESET_APPROVAL_TXN = 13
|
|
373
|
+
RESET_APPROVAL_TXN = 13,
|
|
374
|
+
/**
|
|
375
|
+
* @generated from enum value: PLAN_STEP_TYPE_VAULT_DEPOSIT = 14;
|
|
376
|
+
*/
|
|
377
|
+
VAULT_DEPOSIT = 14,
|
|
378
|
+
/**
|
|
379
|
+
* @generated from enum value: PLAN_STEP_TYPE_VAULT_WITHDRAW = 15;
|
|
380
|
+
*/
|
|
381
|
+
VAULT_WITHDRAW = 15
|
|
370
382
|
}
|
|
371
383
|
/**
|
|
372
384
|
* @generated from enum trading.v1.PoolType
|
|
@@ -1721,6 +1733,10 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
|
|
|
1721
1733
|
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 23;
|
|
1722
1734
|
*/
|
|
1723
1735
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
1736
|
+
/**
|
|
1737
|
+
* @generated from field: optional trading.v1.EarnIntent earn_intent = 24;
|
|
1738
|
+
*/
|
|
1739
|
+
earnIntent?: EarnIntent;
|
|
1724
1740
|
constructor(data?: PartialMessage<QuoteRequest>);
|
|
1725
1741
|
static readonly runtime: typeof proto3;
|
|
1726
1742
|
static readonly typeName = "trading.v1.QuoteRequest";
|
|
@@ -1730,6 +1746,146 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
|
|
|
1730
1746
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuoteRequest;
|
|
1731
1747
|
static equals(a: QuoteRequest | PlainMessage<QuoteRequest> | undefined, b: QuoteRequest | PlainMessage<QuoteRequest> | undefined): boolean;
|
|
1732
1748
|
}
|
|
1749
|
+
/**
|
|
1750
|
+
* @generated from message trading.v1.EarnIntent
|
|
1751
|
+
*/
|
|
1752
|
+
export declare class EarnIntent extends Message<EarnIntent> {
|
|
1753
|
+
/**
|
|
1754
|
+
* @generated from field: string action = 1;
|
|
1755
|
+
*/
|
|
1756
|
+
action: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* @generated from field: string vault = 2;
|
|
1759
|
+
*/
|
|
1760
|
+
vault: string;
|
|
1761
|
+
/**
|
|
1762
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
1763
|
+
*/
|
|
1764
|
+
chainId: ChainId;
|
|
1765
|
+
/**
|
|
1766
|
+
* @generated from field: optional string withdraw_mode = 4;
|
|
1767
|
+
*/
|
|
1768
|
+
withdrawMode?: string;
|
|
1769
|
+
constructor(data?: PartialMessage<EarnIntent>);
|
|
1770
|
+
static readonly runtime: typeof proto3;
|
|
1771
|
+
static readonly typeName = "trading.v1.EarnIntent";
|
|
1772
|
+
static readonly fields: FieldList;
|
|
1773
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnIntent;
|
|
1774
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnIntent;
|
|
1775
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnIntent;
|
|
1776
|
+
static equals(a: EarnIntent | PlainMessage<EarnIntent> | undefined, b: EarnIntent | PlainMessage<EarnIntent> | undefined): boolean;
|
|
1777
|
+
}
|
|
1778
|
+
/**
|
|
1779
|
+
* @generated from message trading.v1.EarnPreview
|
|
1780
|
+
*/
|
|
1781
|
+
export declare class EarnPreview extends Message<EarnPreview> {
|
|
1782
|
+
/**
|
|
1783
|
+
* @generated from field: string type = 1;
|
|
1784
|
+
*/
|
|
1785
|
+
type: string;
|
|
1786
|
+
/**
|
|
1787
|
+
* @generated from field: repeated trading.v1.EarnPreviewDepositAsset deposit_assets = 2;
|
|
1788
|
+
*/
|
|
1789
|
+
depositAssets: EarnPreviewDepositAsset[];
|
|
1790
|
+
/**
|
|
1791
|
+
* @generated from field: optional string estimated_shares_out = 3;
|
|
1792
|
+
*/
|
|
1793
|
+
estimatedSharesOut?: string;
|
|
1794
|
+
/**
|
|
1795
|
+
* @generated from field: optional string requested_assets_out = 4;
|
|
1796
|
+
*/
|
|
1797
|
+
requestedAssetsOut?: string;
|
|
1798
|
+
/**
|
|
1799
|
+
* @generated from field: optional string estimated_shares_in = 5;
|
|
1800
|
+
*/
|
|
1801
|
+
estimatedSharesIn?: string;
|
|
1802
|
+
/**
|
|
1803
|
+
* @generated from field: optional string max_redeemable_shares_in = 6;
|
|
1804
|
+
*/
|
|
1805
|
+
maxRedeemableSharesIn?: string;
|
|
1806
|
+
/**
|
|
1807
|
+
* @generated from field: optional string preview_assets_out = 7;
|
|
1808
|
+
*/
|
|
1809
|
+
previewAssetsOut?: string;
|
|
1810
|
+
constructor(data?: PartialMessage<EarnPreview>);
|
|
1811
|
+
static readonly runtime: typeof proto3;
|
|
1812
|
+
static readonly typeName = "trading.v1.EarnPreview";
|
|
1813
|
+
static readonly fields: FieldList;
|
|
1814
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnPreview;
|
|
1815
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnPreview;
|
|
1816
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnPreview;
|
|
1817
|
+
static equals(a: EarnPreview | PlainMessage<EarnPreview> | undefined, b: EarnPreview | PlainMessage<EarnPreview> | undefined): boolean;
|
|
1818
|
+
}
|
|
1819
|
+
/**
|
|
1820
|
+
* @generated from message trading.v1.EarnPreviewDepositAsset
|
|
1821
|
+
*/
|
|
1822
|
+
export declare class EarnPreviewDepositAsset extends Message<EarnPreviewDepositAsset> {
|
|
1823
|
+
/**
|
|
1824
|
+
* @generated from field: string token = 1;
|
|
1825
|
+
*/
|
|
1826
|
+
token: string;
|
|
1827
|
+
/**
|
|
1828
|
+
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
1829
|
+
*/
|
|
1830
|
+
chainId: ChainId;
|
|
1831
|
+
/**
|
|
1832
|
+
* @generated from field: string amount = 3;
|
|
1833
|
+
*/
|
|
1834
|
+
amount: string;
|
|
1835
|
+
constructor(data?: PartialMessage<EarnPreviewDepositAsset>);
|
|
1836
|
+
static readonly runtime: typeof proto3;
|
|
1837
|
+
static readonly typeName = "trading.v1.EarnPreviewDepositAsset";
|
|
1838
|
+
static readonly fields: FieldList;
|
|
1839
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnPreviewDepositAsset;
|
|
1840
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnPreviewDepositAsset;
|
|
1841
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnPreviewDepositAsset;
|
|
1842
|
+
static equals(a: EarnPreviewDepositAsset | PlainMessage<EarnPreviewDepositAsset> | undefined, b: EarnPreviewDepositAsset | PlainMessage<EarnPreviewDepositAsset> | undefined): boolean;
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* @generated from message trading.v1.EarnQuoteIntent
|
|
1846
|
+
*/
|
|
1847
|
+
export declare class EarnQuoteIntent extends Message<EarnQuoteIntent> {
|
|
1848
|
+
/**
|
|
1849
|
+
* @generated from field: string action = 1;
|
|
1850
|
+
*/
|
|
1851
|
+
action: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* @generated from field: string vault = 2;
|
|
1854
|
+
*/
|
|
1855
|
+
vault: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
1858
|
+
*/
|
|
1859
|
+
chainId: ChainId;
|
|
1860
|
+
/**
|
|
1861
|
+
* @generated from field: optional string withdraw_mode = 4;
|
|
1862
|
+
*/
|
|
1863
|
+
withdrawMode?: string;
|
|
1864
|
+
/**
|
|
1865
|
+
* @generated from field: string underlying_asset = 5;
|
|
1866
|
+
*/
|
|
1867
|
+
underlyingAsset: string;
|
|
1868
|
+
/**
|
|
1869
|
+
* @generated from field: optional trading.v1.EarnPreview preview = 6;
|
|
1870
|
+
*/
|
|
1871
|
+
preview?: EarnPreview;
|
|
1872
|
+
/**
|
|
1873
|
+
* @generated from field: optional string requested_assets = 7;
|
|
1874
|
+
*/
|
|
1875
|
+
requestedAssets?: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* @generated from field: optional string destination_gas_mode = 8;
|
|
1878
|
+
*/
|
|
1879
|
+
destinationGasMode?: string;
|
|
1880
|
+
constructor(data?: PartialMessage<EarnQuoteIntent>);
|
|
1881
|
+
static readonly runtime: typeof proto3;
|
|
1882
|
+
static readonly typeName = "trading.v1.EarnQuoteIntent";
|
|
1883
|
+
static readonly fields: FieldList;
|
|
1884
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnQuoteIntent;
|
|
1885
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnQuoteIntent;
|
|
1886
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnQuoteIntent;
|
|
1887
|
+
static equals(a: EarnQuoteIntent | PlainMessage<EarnQuoteIntent> | undefined, b: EarnQuoteIntent | PlainMessage<EarnQuoteIntent> | undefined): boolean;
|
|
1888
|
+
}
|
|
1733
1889
|
/**
|
|
1734
1890
|
* @generated from message trading.v1.IntegratorFee
|
|
1735
1891
|
*/
|
|
@@ -1873,6 +2029,16 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
|
|
|
1873
2029
|
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 21;
|
|
1874
2030
|
*/
|
|
1875
2031
|
sponsorshipInfo?: SponsorshipInfo;
|
|
2032
|
+
/**
|
|
2033
|
+
* Whether an ERC-20 token approval is applicable to this swap's input — i.e.
|
|
2034
|
+
* the routing pulls the input token via an allowance (ERC-20 -> Permit2 /
|
|
2035
|
+
* Across) rather than attaching it as native value or wrapping/unwrapping.
|
|
2036
|
+
* Reflects the routing mechanism, not the swapper's current allowance. When
|
|
2037
|
+
* unset, treat as applicable (approval may be required).
|
|
2038
|
+
*
|
|
2039
|
+
* @generated from field: optional bool is_token_approval_applicable = 22;
|
|
2040
|
+
*/
|
|
2041
|
+
isTokenApprovalApplicable?: boolean;
|
|
1876
2042
|
constructor(data?: PartialMessage<QuoteResponse>);
|
|
1877
2043
|
static readonly runtime: typeof proto3;
|
|
1878
2044
|
static readonly typeName = "trading.v1.QuoteResponse";
|
|
@@ -2231,6 +2397,10 @@ export declare class AggregatedOutput extends Message<AggregatedOutput> {
|
|
|
2231
2397
|
* @generated from field: optional string min_amount = 5;
|
|
2232
2398
|
*/
|
|
2233
2399
|
minAmount?: string;
|
|
2400
|
+
/**
|
|
2401
|
+
* @generated from field: bool fee = 6;
|
|
2402
|
+
*/
|
|
2403
|
+
fee: boolean;
|
|
2234
2404
|
constructor(data?: PartialMessage<AggregatedOutput>);
|
|
2235
2405
|
static readonly runtime: typeof proto3;
|
|
2236
2406
|
static readonly typeName = "trading.v1.AggregatedOutput";
|
|
@@ -5581,6 +5751,14 @@ export declare class ChainedQuote extends Message<ChainedQuote> {
|
|
|
5581
5751
|
* @generated from field: optional double compound_slippage = 19;
|
|
5582
5752
|
*/
|
|
5583
5753
|
compoundSlippage?: number;
|
|
5754
|
+
/**
|
|
5755
|
+
* @generated from field: optional trading.v1.EarnQuoteIntent earn_intent = 20;
|
|
5756
|
+
*/
|
|
5757
|
+
earnIntent?: EarnQuoteIntent;
|
|
5758
|
+
/**
|
|
5759
|
+
* @generated from field: optional trading.v1.EarnPreview earn_preview = 21;
|
|
5760
|
+
*/
|
|
5761
|
+
earnPreview?: EarnPreview;
|
|
5584
5762
|
constructor(data?: PartialMessage<ChainedQuote>);
|
|
5585
5763
|
static readonly runtime: typeof proto3;
|
|
5586
5764
|
static readonly typeName = "trading.v1.ChainedQuote";
|
|
@@ -6474,6 +6652,10 @@ export declare class CreatePlanRequest extends Message<CreatePlanRequest> {
|
|
|
6474
6652
|
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 4;
|
|
6475
6653
|
*/
|
|
6476
6654
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
6655
|
+
/**
|
|
6656
|
+
* @generated from field: optional trading.v1.EarnIntent earn_intent = 5;
|
|
6657
|
+
*/
|
|
6658
|
+
earnIntent?: EarnIntent;
|
|
6477
6659
|
constructor(data?: PartialMessage<CreatePlanRequest>);
|
|
6478
6660
|
static readonly runtime: typeof proto3;
|
|
6479
6661
|
static readonly typeName = "trading.v1.CreatePlanRequest";
|
|
@@ -6592,6 +6774,10 @@ export declare class PlanResponse extends Message<PlanResponse> {
|
|
|
6592
6774
|
* @generated from field: optional string last_user_action_at = 21;
|
|
6593
6775
|
*/
|
|
6594
6776
|
lastUserActionAt?: string;
|
|
6777
|
+
/**
|
|
6778
|
+
* @generated from field: optional trading.v1.EarnQuoteIntent earn_intent = 22;
|
|
6779
|
+
*/
|
|
6780
|
+
earnIntent?: EarnQuoteIntent;
|
|
6595
6781
|
constructor(data?: PartialMessage<PlanResponse>);
|
|
6596
6782
|
static readonly runtime: typeof proto3;
|
|
6597
6783
|
static readonly typeName = "trading.v1.PlanResponse";
|
|
@@ -165,6 +165,10 @@ export var ChainId;
|
|
|
165
165
|
* @generated from enum value: ARC = 5042;
|
|
166
166
|
*/
|
|
167
167
|
ChainId[ChainId["ARC"] = 5042] = "ARC";
|
|
168
|
+
/**
|
|
169
|
+
* @generated from enum value: INK = 57073;
|
|
170
|
+
*/
|
|
171
|
+
ChainId[ChainId["INK"] = 57073] = "INK";
|
|
168
172
|
})(ChainId || (ChainId = {}));
|
|
169
173
|
// Retrieve enum metadata with: proto3.getEnumType(ChainId)
|
|
170
174
|
proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
@@ -194,6 +198,7 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
|
194
198
|
{ no: 4217, name: "TEMPO" },
|
|
195
199
|
{ no: 4663, name: "ROBINHOOD" },
|
|
196
200
|
{ no: 5042, name: "ARC" },
|
|
201
|
+
{ no: 57073, name: "INK" },
|
|
197
202
|
]);
|
|
198
203
|
/**
|
|
199
204
|
* @generated from enum trading.v1.Protocols
|
|
@@ -478,6 +483,14 @@ export var PlanStepType;
|
|
|
478
483
|
* @generated from enum value: PLAN_STEP_TYPE_RESET_APPROVAL_TXN = 13;
|
|
479
484
|
*/
|
|
480
485
|
PlanStepType[PlanStepType["RESET_APPROVAL_TXN"] = 13] = "RESET_APPROVAL_TXN";
|
|
486
|
+
/**
|
|
487
|
+
* @generated from enum value: PLAN_STEP_TYPE_VAULT_DEPOSIT = 14;
|
|
488
|
+
*/
|
|
489
|
+
PlanStepType[PlanStepType["VAULT_DEPOSIT"] = 14] = "VAULT_DEPOSIT";
|
|
490
|
+
/**
|
|
491
|
+
* @generated from enum value: PLAN_STEP_TYPE_VAULT_WITHDRAW = 15;
|
|
492
|
+
*/
|
|
493
|
+
PlanStepType[PlanStepType["VAULT_WITHDRAW"] = 15] = "VAULT_WITHDRAW";
|
|
481
494
|
})(PlanStepType || (PlanStepType = {}));
|
|
482
495
|
// Retrieve enum metadata with: proto3.getEnumType(PlanStepType)
|
|
483
496
|
proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
|
|
@@ -495,6 +508,8 @@ proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
|
|
|
495
508
|
{ no: 11, name: "PLAN_STEP_TYPE_APPROVAL_TXN" },
|
|
496
509
|
{ no: 12, name: "PLAN_STEP_TYPE_APPROVAL_PERMIT" },
|
|
497
510
|
{ no: 13, name: "PLAN_STEP_TYPE_RESET_APPROVAL_TXN" },
|
|
511
|
+
{ no: 14, name: "PLAN_STEP_TYPE_VAULT_DEPOSIT" },
|
|
512
|
+
{ no: 15, name: "PLAN_STEP_TYPE_VAULT_WITHDRAW" },
|
|
498
513
|
]);
|
|
499
514
|
/**
|
|
500
515
|
* @generated from enum trading.v1.PoolType
|
|
@@ -2104,6 +2119,177 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
|
|
|
2104
2119
|
{ no: 21, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
2105
2120
|
{ no: 22, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2106
2121
|
{ no: 23, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
2122
|
+
{ no: 24, name: "earn_intent", kind: "message", T: EarnIntent, opt: true },
|
|
2123
|
+
]);
|
|
2124
|
+
/**
|
|
2125
|
+
* @generated from message trading.v1.EarnIntent
|
|
2126
|
+
*/
|
|
2127
|
+
export class EarnIntent extends Message {
|
|
2128
|
+
constructor(data) {
|
|
2129
|
+
super();
|
|
2130
|
+
/**
|
|
2131
|
+
* @generated from field: string action = 1;
|
|
2132
|
+
*/
|
|
2133
|
+
this.action = "";
|
|
2134
|
+
/**
|
|
2135
|
+
* @generated from field: string vault = 2;
|
|
2136
|
+
*/
|
|
2137
|
+
this.vault = "";
|
|
2138
|
+
/**
|
|
2139
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
2140
|
+
*/
|
|
2141
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2142
|
+
proto3.util.initPartial(data, this);
|
|
2143
|
+
}
|
|
2144
|
+
static fromBinary(bytes, options) {
|
|
2145
|
+
return new EarnIntent().fromBinary(bytes, options);
|
|
2146
|
+
}
|
|
2147
|
+
static fromJson(jsonValue, options) {
|
|
2148
|
+
return new EarnIntent().fromJson(jsonValue, options);
|
|
2149
|
+
}
|
|
2150
|
+
static fromJsonString(jsonString, options) {
|
|
2151
|
+
return new EarnIntent().fromJsonString(jsonString, options);
|
|
2152
|
+
}
|
|
2153
|
+
static equals(a, b) {
|
|
2154
|
+
return proto3.util.equals(EarnIntent, a, b);
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
EarnIntent.runtime = proto3;
|
|
2158
|
+
EarnIntent.typeName = "trading.v1.EarnIntent";
|
|
2159
|
+
EarnIntent.fields = proto3.util.newFieldList(() => [
|
|
2160
|
+
{ no: 1, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2161
|
+
{ no: 2, name: "vault", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2162
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2163
|
+
{ no: 4, name: "withdraw_mode", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2164
|
+
]);
|
|
2165
|
+
/**
|
|
2166
|
+
* @generated from message trading.v1.EarnPreview
|
|
2167
|
+
*/
|
|
2168
|
+
export class EarnPreview extends Message {
|
|
2169
|
+
constructor(data) {
|
|
2170
|
+
super();
|
|
2171
|
+
/**
|
|
2172
|
+
* @generated from field: string type = 1;
|
|
2173
|
+
*/
|
|
2174
|
+
this.type = "";
|
|
2175
|
+
/**
|
|
2176
|
+
* @generated from field: repeated trading.v1.EarnPreviewDepositAsset deposit_assets = 2;
|
|
2177
|
+
*/
|
|
2178
|
+
this.depositAssets = [];
|
|
2179
|
+
proto3.util.initPartial(data, this);
|
|
2180
|
+
}
|
|
2181
|
+
static fromBinary(bytes, options) {
|
|
2182
|
+
return new EarnPreview().fromBinary(bytes, options);
|
|
2183
|
+
}
|
|
2184
|
+
static fromJson(jsonValue, options) {
|
|
2185
|
+
return new EarnPreview().fromJson(jsonValue, options);
|
|
2186
|
+
}
|
|
2187
|
+
static fromJsonString(jsonString, options) {
|
|
2188
|
+
return new EarnPreview().fromJsonString(jsonString, options);
|
|
2189
|
+
}
|
|
2190
|
+
static equals(a, b) {
|
|
2191
|
+
return proto3.util.equals(EarnPreview, a, b);
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
EarnPreview.runtime = proto3;
|
|
2195
|
+
EarnPreview.typeName = "trading.v1.EarnPreview";
|
|
2196
|
+
EarnPreview.fields = proto3.util.newFieldList(() => [
|
|
2197
|
+
{ no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2198
|
+
{ no: 2, name: "deposit_assets", kind: "message", T: EarnPreviewDepositAsset, repeated: true },
|
|
2199
|
+
{ no: 3, name: "estimated_shares_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2200
|
+
{ no: 4, name: "requested_assets_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2201
|
+
{ no: 5, name: "estimated_shares_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2202
|
+
{ no: 6, name: "max_redeemable_shares_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2203
|
+
{ no: 7, name: "preview_assets_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2204
|
+
]);
|
|
2205
|
+
/**
|
|
2206
|
+
* @generated from message trading.v1.EarnPreviewDepositAsset
|
|
2207
|
+
*/
|
|
2208
|
+
export class EarnPreviewDepositAsset extends Message {
|
|
2209
|
+
constructor(data) {
|
|
2210
|
+
super();
|
|
2211
|
+
/**
|
|
2212
|
+
* @generated from field: string token = 1;
|
|
2213
|
+
*/
|
|
2214
|
+
this.token = "";
|
|
2215
|
+
/**
|
|
2216
|
+
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
2217
|
+
*/
|
|
2218
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2219
|
+
/**
|
|
2220
|
+
* @generated from field: string amount = 3;
|
|
2221
|
+
*/
|
|
2222
|
+
this.amount = "";
|
|
2223
|
+
proto3.util.initPartial(data, this);
|
|
2224
|
+
}
|
|
2225
|
+
static fromBinary(bytes, options) {
|
|
2226
|
+
return new EarnPreviewDepositAsset().fromBinary(bytes, options);
|
|
2227
|
+
}
|
|
2228
|
+
static fromJson(jsonValue, options) {
|
|
2229
|
+
return new EarnPreviewDepositAsset().fromJson(jsonValue, options);
|
|
2230
|
+
}
|
|
2231
|
+
static fromJsonString(jsonString, options) {
|
|
2232
|
+
return new EarnPreviewDepositAsset().fromJsonString(jsonString, options);
|
|
2233
|
+
}
|
|
2234
|
+
static equals(a, b) {
|
|
2235
|
+
return proto3.util.equals(EarnPreviewDepositAsset, a, b);
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
EarnPreviewDepositAsset.runtime = proto3;
|
|
2239
|
+
EarnPreviewDepositAsset.typeName = "trading.v1.EarnPreviewDepositAsset";
|
|
2240
|
+
EarnPreviewDepositAsset.fields = proto3.util.newFieldList(() => [
|
|
2241
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2242
|
+
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2243
|
+
{ no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2244
|
+
]);
|
|
2245
|
+
/**
|
|
2246
|
+
* @generated from message trading.v1.EarnQuoteIntent
|
|
2247
|
+
*/
|
|
2248
|
+
export class EarnQuoteIntent extends Message {
|
|
2249
|
+
constructor(data) {
|
|
2250
|
+
super();
|
|
2251
|
+
/**
|
|
2252
|
+
* @generated from field: string action = 1;
|
|
2253
|
+
*/
|
|
2254
|
+
this.action = "";
|
|
2255
|
+
/**
|
|
2256
|
+
* @generated from field: string vault = 2;
|
|
2257
|
+
*/
|
|
2258
|
+
this.vault = "";
|
|
2259
|
+
/**
|
|
2260
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
2261
|
+
*/
|
|
2262
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2263
|
+
/**
|
|
2264
|
+
* @generated from field: string underlying_asset = 5;
|
|
2265
|
+
*/
|
|
2266
|
+
this.underlyingAsset = "";
|
|
2267
|
+
proto3.util.initPartial(data, this);
|
|
2268
|
+
}
|
|
2269
|
+
static fromBinary(bytes, options) {
|
|
2270
|
+
return new EarnQuoteIntent().fromBinary(bytes, options);
|
|
2271
|
+
}
|
|
2272
|
+
static fromJson(jsonValue, options) {
|
|
2273
|
+
return new EarnQuoteIntent().fromJson(jsonValue, options);
|
|
2274
|
+
}
|
|
2275
|
+
static fromJsonString(jsonString, options) {
|
|
2276
|
+
return new EarnQuoteIntent().fromJsonString(jsonString, options);
|
|
2277
|
+
}
|
|
2278
|
+
static equals(a, b) {
|
|
2279
|
+
return proto3.util.equals(EarnQuoteIntent, a, b);
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
EarnQuoteIntent.runtime = proto3;
|
|
2283
|
+
EarnQuoteIntent.typeName = "trading.v1.EarnQuoteIntent";
|
|
2284
|
+
EarnQuoteIntent.fields = proto3.util.newFieldList(() => [
|
|
2285
|
+
{ no: 1, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2286
|
+
{ no: 2, name: "vault", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2287
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2288
|
+
{ no: 4, name: "withdraw_mode", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2289
|
+
{ no: 5, name: "underlying_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2290
|
+
{ no: 6, name: "preview", kind: "message", T: EarnPreview, opt: true },
|
|
2291
|
+
{ no: 7, name: "requested_assets", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2292
|
+
{ no: 8, name: "destination_gas_mode", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2107
2293
|
]);
|
|
2108
2294
|
/**
|
|
2109
2295
|
* @generated from message trading.v1.IntegratorFee
|
|
@@ -2199,6 +2385,7 @@ QuoteResponse.fields = proto3.util.newFieldList(() => [
|
|
|
2199
2385
|
{ no: 19, name: "permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
2200
2386
|
{ no: 20, name: "permit_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2201
2387
|
{ no: 21, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
2388
|
+
{ no: 22, name: "is_token_approval_applicable", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2202
2389
|
]);
|
|
2203
2390
|
/**
|
|
2204
2391
|
* @generated from message trading.v1.QuoteInput
|
|
@@ -2590,6 +2777,10 @@ export class AggregatedOutput extends Message {
|
|
|
2590
2777
|
* @generated from field: double bps = 4;
|
|
2591
2778
|
*/
|
|
2592
2779
|
this.bps = 0;
|
|
2780
|
+
/**
|
|
2781
|
+
* @generated from field: bool fee = 6;
|
|
2782
|
+
*/
|
|
2783
|
+
this.fee = false;
|
|
2593
2784
|
proto3.util.initPartial(data, this);
|
|
2594
2785
|
}
|
|
2595
2786
|
static fromBinary(bytes, options) {
|
|
@@ -2613,6 +2804,7 @@ AggregatedOutput.fields = proto3.util.newFieldList(() => [
|
|
|
2613
2804
|
{ no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2614
2805
|
{ no: 4, name: "bps", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
2615
2806
|
{ no: 5, name: "min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2807
|
+
{ no: 6, name: "fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2616
2808
|
]);
|
|
2617
2809
|
/**
|
|
2618
2810
|
* @generated from message trading.v1.RouteList
|
|
@@ -6456,6 +6648,8 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6456
6648
|
{ no: 17, name: "slippage_tolerance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6457
6649
|
{ no: 18, name: "auto_slippage", kind: "enum", T: proto3.getEnumType(AutoSlippage), opt: true },
|
|
6458
6650
|
{ no: 19, name: "compound_slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6651
|
+
{ no: 20, name: "earn_intent", kind: "message", T: EarnQuoteIntent, opt: true },
|
|
6652
|
+
{ no: 21, name: "earn_preview", kind: "message", T: EarnPreview, opt: true },
|
|
6459
6653
|
]);
|
|
6460
6654
|
/**
|
|
6461
6655
|
* @generated from message trading.v1.PermitTransferFromData
|
|
@@ -7566,6 +7760,7 @@ CreatePlanRequest.fields = proto3.util.newFieldList(() => [
|
|
|
7566
7760
|
{ no: 2, name: "quote", kind: "message", T: ChainedQuote },
|
|
7567
7761
|
{ no: 3, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
7568
7762
|
{ no: 4, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
7763
|
+
{ no: 5, name: "earn_intent", kind: "message", T: EarnIntent, opt: true },
|
|
7569
7764
|
]);
|
|
7570
7765
|
/**
|
|
7571
7766
|
* @generated from message trading.v1.GetPlanRequest
|
|
@@ -7691,6 +7886,7 @@ PlanResponse.fields = proto3.util.newFieldList(() => [
|
|
|
7691
7886
|
{ no: 19, name: "slippage_tolerance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
7692
7887
|
{ no: 20, name: "auto_slippage", kind: "enum", T: proto3.getEnumType(AutoSlippage), opt: true },
|
|
7693
7888
|
{ no: 21, name: "last_user_action_at", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7889
|
+
{ no: 22, name: "earn_intent", kind: "message", T: EarnQuoteIntent, opt: true },
|
|
7694
7890
|
]);
|
|
7695
7891
|
/**
|
|
7696
7892
|
* @generated from enum trading.v1.PlanResponse.PlanStatus
|