@ensofinance/checkout-widget 0.0.16 → 0.0.17
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/checkout-widget.es.js +4158 -4166
- package/dist/checkout-widget.es.js.map +1 -1
- package/dist/checkout-widget.umd.js +32 -32
- package/dist/checkout-widget.umd.js.map +1 -1
- package/orval.config.ts +14 -9
- package/package.json +1 -1
- package/src/components/steps/ExchangeFlow.tsx +0 -2
- package/src/enso-api/api.ts +19 -42
- package/src/enso-api/index.ts +491 -722
- package/src/enso-api/model/actionAction.ts +2 -0
- package/src/enso-api/model/actionToBundleAction.ts +2 -0
- package/src/enso-api/model/bridgeLatencyEstimate.ts +33 -0
- package/src/enso-api/model/bundleControllerBundleShortcutTransactionRoutingStrategy.ts +1 -1
- package/src/enso-api/model/bundleShortcutTransaction.ts +12 -3
- package/src/enso-api/model/bundleShortcutTransactionMinAmountsOut.ts +15 -0
- package/src/enso-api/model/index.ts +55 -53
- package/src/enso-api/model/nonTokenizedControllerTokensParams.ts +5 -1
- package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionParams.ts +1 -1
- package/src/enso-api/model/nontokenizedRouteShortcutTransaction.ts +3 -0
- package/src/enso-api/model/routeShortcutTransaction.ts +6 -3
- package/src/enso-api/model/routeShortcutVariableInputs.ts +1 -1
- package/src/enso-api/model/routeShortcutVariableInputsRoutingStrategy.ts +1 -1
- package/src/enso-api/model/routerControllerRouteShortcutTransactionRoutingStrategy.ts +1 -1
- package/src/enso-api/model/standardActionAction.ts +2 -0
- package/src/enso-api/model/userOperation.ts +6 -6
- package/src/enso-api/model/walletBalance.ts +20 -8
- package/src/enso-api/model/walletControllerCreateApproveTransactionRoutingStrategy.ts +1 -1
- package/src/enso-api/model/walletControllerWalletBalancesParams.ts +3 -3
|
@@ -21,6 +21,7 @@ export const ActionAction = {
|
|
|
21
21
|
singledeposit: "singledeposit",
|
|
22
22
|
singledepositwithpositionid: "singledepositwithpositionid",
|
|
23
23
|
multideposit: "multideposit",
|
|
24
|
+
multidepositwithpositionid: "multidepositwithpositionid",
|
|
24
25
|
tokenizedsingledeposit: "tokenizedsingledeposit",
|
|
25
26
|
tokenizedmultideposit: "tokenizedmultideposit",
|
|
26
27
|
multioutsingledeposit: "multioutsingledeposit",
|
|
@@ -49,4 +50,5 @@ export const ActionAction = {
|
|
|
49
50
|
fee: "fee",
|
|
50
51
|
ensofee: "ensofee",
|
|
51
52
|
paymasterfee: "paymasterfee",
|
|
53
|
+
depositposition: "depositposition",
|
|
52
54
|
} as const;
|
|
@@ -22,6 +22,7 @@ export const ActionToBundleAction = {
|
|
|
22
22
|
singledeposit: "singledeposit",
|
|
23
23
|
singledepositwithpositionid: "singledepositwithpositionid",
|
|
24
24
|
multideposit: "multideposit",
|
|
25
|
+
multidepositwithpositionid: "multidepositwithpositionid",
|
|
25
26
|
tokenizedsingledeposit: "tokenizedsingledeposit",
|
|
26
27
|
tokenizedmultideposit: "tokenizedmultideposit",
|
|
27
28
|
multioutsingledeposit: "multioutsingledeposit",
|
|
@@ -50,4 +51,5 @@ export const ActionToBundleAction = {
|
|
|
50
51
|
fee: "fee",
|
|
51
52
|
ensofee: "ensofee",
|
|
52
53
|
paymasterfee: "paymasterfee",
|
|
54
|
+
depositposition: "depositposition",
|
|
53
55
|
} as const;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export interface BridgeLatencyEstimate {
|
|
13
|
+
fromChainId: number;
|
|
14
|
+
toChainId: number;
|
|
15
|
+
/** Token bridged to the destination chain */
|
|
16
|
+
token: string;
|
|
17
|
+
/** Estimated bridge latency in seconds */
|
|
18
|
+
estimatedSeconds: number;
|
|
19
|
+
/** Send confirmations used for the estimation */
|
|
20
|
+
sendConfirmations?: number;
|
|
21
|
+
/** Receive confirmations */
|
|
22
|
+
receiveConfirmations?: number;
|
|
23
|
+
/** Average block time assumed for the source chain (seconds) */
|
|
24
|
+
sendBlockTimeSeconds?: number;
|
|
25
|
+
/** Average block time assumed for the destination chain (seconds) */
|
|
26
|
+
receiveBlockTimeSeconds?: number;
|
|
27
|
+
/** Bridge implementation or provider that produced the estimate */
|
|
28
|
+
bridge?: string;
|
|
29
|
+
/** Source of the data (defaults, override, fallback) */
|
|
30
|
+
source?: string;
|
|
31
|
+
/** Optional note describing overrides or fallbacks applied */
|
|
32
|
+
note?: string;
|
|
33
|
+
}
|
|
@@ -15,7 +15,7 @@ export type BundleControllerBundleShortcutTransactionRoutingStrategy =
|
|
|
15
15
|
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
17
17
|
export const BundleControllerBundleShortcutTransactionRoutingStrategy = {
|
|
18
|
-
ensowallet: "ensowallet",
|
|
18
|
+
"ensowallet-v2": "ensowallet-v2",
|
|
19
19
|
router: "router",
|
|
20
20
|
delegate: "delegate",
|
|
21
21
|
"router-legacy": "router-legacy",
|
|
@@ -12,8 +12,10 @@ import type { ActionToBundle } from "./actionToBundle";
|
|
|
12
12
|
import type { BundleShortcutTransactionAmountsOut } from "./bundleShortcutTransactionAmountsOut";
|
|
13
13
|
import type { Hop } from "./hop";
|
|
14
14
|
import type { Transaction } from "./transaction";
|
|
15
|
+
import type { BundleShortcutTransactionMinAmountsOut } from "./bundleShortcutTransactionMinAmountsOut";
|
|
15
16
|
import type { BundleShortcutTransactionFeeAmount } from "./bundleShortcutTransactionFeeAmount";
|
|
16
17
|
import type { UserOperation } from "./userOperation";
|
|
18
|
+
import type { BridgeLatencyEstimate } from "./bridgeLatencyEstimate";
|
|
17
19
|
|
|
18
20
|
export interface BundleShortcutTransaction {
|
|
19
21
|
bundle: ActionToBundle[];
|
|
@@ -27,9 +29,16 @@ export interface BundleShortcutTransaction {
|
|
|
27
29
|
createdAt: number;
|
|
28
30
|
/** The tx object to use in `ethers` */
|
|
29
31
|
tx: Transaction;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
/** Expected minimal output amounts by token address */
|
|
33
|
+
minAmountsOut?: BundleShortcutTransactionMinAmountsOut;
|
|
34
|
+
/**
|
|
35
|
+
* Price impact in basis points, null if USD price not found
|
|
36
|
+
* @nullable
|
|
37
|
+
*/
|
|
38
|
+
priceImpact: number | null;
|
|
39
|
+
feeAmount?: BundleShortcutTransactionFeeAmount;
|
|
33
40
|
/** The ERC-4337 user operation object */
|
|
34
41
|
userOp: UserOperation;
|
|
42
|
+
/** Estimated bridging durations for any bridge hops */
|
|
43
|
+
bridgingEstimates?: BridgeLatencyEstimate[];
|
|
35
44
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.11.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* #### Enso API
|
|
5
|
+
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
|
+
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
|
+
- For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://enso.finance/developers).
|
|
9
|
+
* OpenAPI spec version: 1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Expected minimal output amounts by token address
|
|
14
|
+
*/
|
|
15
|
+
export type BundleShortcutTransactionMinAmountsOut = { [key: string]: unknown };
|
|
@@ -15,59 +15,6 @@ export * from "./actionInputs";
|
|
|
15
15
|
export * from "./actionToBundle";
|
|
16
16
|
export * from "./actionToBundleAction";
|
|
17
17
|
export * from "./actionToBundleArgs";
|
|
18
|
-
export * from "./bundleControllerBundleShortcutTransactionParams";
|
|
19
|
-
export * from "./bundleControllerBundleShortcutTransactionRoutingStrategy";
|
|
20
|
-
export * from "./bundleShortcutTransaction";
|
|
21
|
-
export * from "./bundleShortcutTransactionAmountsOut";
|
|
22
|
-
export * from "./bundleShortcutTransactionFeeAmount";
|
|
23
|
-
export * from "./connectedNetwork";
|
|
24
|
-
export * from "./hop";
|
|
25
|
-
export * from "./hopArgs";
|
|
26
|
-
export * from "./iporControllerIporShortcutTransactionParams";
|
|
27
|
-
export * from "./iporShortcutInput";
|
|
28
|
-
export * from "./iporShortcutTransaction";
|
|
29
|
-
export * from "./lZDestinationTokenData";
|
|
30
|
-
export * from "./lZPoolLookupResponse";
|
|
31
|
-
export * from "./layerZeroControllerGetPoolAddressParams";
|
|
32
|
-
export * from "./network";
|
|
33
|
-
export * from "./networksControllerNetworksParams";
|
|
34
|
-
export * from "./nonTokenizedControllerTokens200";
|
|
35
|
-
export * from "./nonTokenizedControllerTokens200AllOf";
|
|
36
|
-
export * from "./nonTokenizedControllerTokensParams";
|
|
37
|
-
export * from "./nonTokenizedModel";
|
|
38
|
-
export * from "./nontokenizedControllerRouteNontokenizedShorcutTransactionParams";
|
|
39
|
-
export * from "./nontokenizedControllerRouteNontokenizedShorcutTransactionRoutingStrategy";
|
|
40
|
-
export * from "./paginatedResult";
|
|
41
|
-
export * from "./paginationMeta";
|
|
42
|
-
export * from "./positionModel";
|
|
43
|
-
export * from "./price";
|
|
44
|
-
export * from "./pricesControllerGetPricesParams";
|
|
45
|
-
export * from "./project";
|
|
46
|
-
export * from "./protocol";
|
|
47
|
-
export * from "./protocolModel";
|
|
48
|
-
export * from "./protocolsControllerFindAllParams";
|
|
49
|
-
export * from "./routeShortcutTransaction";
|
|
50
|
-
export * from "./routeShortcutVariableInputs";
|
|
51
|
-
export * from "./routeShortcutVariableInputsRoutingStrategy";
|
|
52
|
-
export * from "./routeShortcutVariableInputsVariableEstimates";
|
|
53
|
-
export * from "./routerControllerRouteShortcutTransactionParams";
|
|
54
|
-
export * from "./routerControllerRouteShortcutTransactionRoutingStrategy";
|
|
55
|
-
export * from "./standard";
|
|
56
|
-
export * from "./standardAction";
|
|
57
|
-
export * from "./standardActionAction";
|
|
58
|
-
export * from "./tokenModel";
|
|
59
|
-
export * from "./tokensControllerTokens200";
|
|
60
|
-
export * from "./tokensControllerTokens200AllOf";
|
|
61
|
-
export * from "./tokensControllerTokensParams";
|
|
62
|
-
export * from "./tokensControllerTokensType";
|
|
63
|
-
export * from "./transaction";
|
|
64
|
-
export * from "./userOperation";
|
|
65
|
-
export * from "./walletApproveTransaction";
|
|
66
|
-
export * from "./walletApproveTransactionTx";
|
|
67
|
-
export * from "./walletBalance";
|
|
68
|
-
export * from "./walletControllerCreateApproveTransactionParams";
|
|
69
|
-
export * from "./walletControllerCreateApproveTransactionRoutingStrategy";
|
|
70
|
-
export * from "./walletControllerWalletBalancesParams";
|
|
71
18
|
export * from "./approveActionDto";
|
|
72
19
|
export * from "./approveArgsDto";
|
|
73
20
|
export * from "./approveArgsDtoAmount";
|
|
@@ -80,13 +27,21 @@ export * from "./bridgeActionDto";
|
|
|
80
27
|
export * from "./bridgeArgsDto";
|
|
81
28
|
export * from "./bridgeArgsDtoAmountIn";
|
|
82
29
|
export * from "./bridgeArgsDtoCallbackItem";
|
|
30
|
+
export * from "./bridgeLatencyEstimate";
|
|
83
31
|
export * from "./bundleControllerBundleShortcutTransactionBodyItem";
|
|
32
|
+
export * from "./bundleControllerBundleShortcutTransactionParams";
|
|
33
|
+
export * from "./bundleControllerBundleShortcutTransactionRoutingStrategy";
|
|
34
|
+
export * from "./bundleShortcutTransaction";
|
|
35
|
+
export * from "./bundleShortcutTransactionAmountsOut";
|
|
36
|
+
export * from "./bundleShortcutTransactionFeeAmount";
|
|
37
|
+
export * from "./bundleShortcutTransactionMinAmountsOut";
|
|
84
38
|
export * from "./callActionDto";
|
|
85
39
|
export * from "./callArgsDto";
|
|
86
40
|
export * from "./callArgsDtoArgsItem";
|
|
87
41
|
export * from "./callArgsDtoArgsItemAnyOf";
|
|
88
42
|
export * from "./callArgsDtoValue";
|
|
89
43
|
export * from "./callOutput";
|
|
44
|
+
export * from "./connectedNetwork";
|
|
90
45
|
export * from "./depositActionDto";
|
|
91
46
|
export * from "./depositArgsDto";
|
|
92
47
|
export * from "./depositArgsDtoAmountIn";
|
|
@@ -105,6 +60,14 @@ export * from "./feeArgsDto";
|
|
|
105
60
|
export * from "./feeArgsDtoAmount";
|
|
106
61
|
export * from "./harvestActionDto";
|
|
107
62
|
export * from "./harvestArgsDto";
|
|
63
|
+
export * from "./hop";
|
|
64
|
+
export * from "./hopArgs";
|
|
65
|
+
export * from "./iporControllerIporShortcutTransactionParams";
|
|
66
|
+
export * from "./iporShortcutInput";
|
|
67
|
+
export * from "./iporShortcutTransaction";
|
|
68
|
+
export * from "./lZDestinationTokenData";
|
|
69
|
+
export * from "./lZPoolLookupResponse";
|
|
70
|
+
export * from "./layerZeroControllerGetPoolAddressParams";
|
|
108
71
|
export * from "./mergeActionDto";
|
|
109
72
|
export * from "./mergeArgsDto";
|
|
110
73
|
export * from "./mergeArgsDtoAmountInItem";
|
|
@@ -122,7 +85,17 @@ export * from "./multiOutSingleDepositArgsDtoAmountIn";
|
|
|
122
85
|
export * from "./multiRedeemActionDto";
|
|
123
86
|
export * from "./multiRedeemArgs2Dto";
|
|
124
87
|
export * from "./multiRedeemArgs2DtoAmountIn";
|
|
88
|
+
export * from "./network";
|
|
89
|
+
export * from "./networksControllerNetworksParams";
|
|
90
|
+
export * from "./nonTokenizedControllerTokens200";
|
|
91
|
+
export * from "./nonTokenizedControllerTokens200AllOf";
|
|
92
|
+
export * from "./nonTokenizedControllerTokensParams";
|
|
93
|
+
export * from "./nonTokenizedModel";
|
|
94
|
+
export * from "./nontokenizedControllerRouteNontokenizedShorcutTransactionParams";
|
|
95
|
+
export * from "./nontokenizedControllerRouteNontokenizedShorcutTransactionRoutingStrategy";
|
|
125
96
|
export * from "./nontokenizedRouteShortcutTransaction";
|
|
97
|
+
export * from "./paginatedResult";
|
|
98
|
+
export * from "./paginationMeta";
|
|
126
99
|
export * from "./paymasterFeeActionDto";
|
|
127
100
|
export * from "./paymasterFeeArgsDto";
|
|
128
101
|
export * from "./paymasterFeeArgsDtoAmount";
|
|
@@ -131,6 +104,13 @@ export * from "./permitTransferFromArgsDto";
|
|
|
131
104
|
export * from "./permitTransferFromArgsDtoAmount";
|
|
132
105
|
export * from "./permitTransferFromArgsDtoAmountOneOfItem";
|
|
133
106
|
export * from "./permitTransferFromArgsDtoToken";
|
|
107
|
+
export * from "./positionModel";
|
|
108
|
+
export * from "./price";
|
|
109
|
+
export * from "./pricesControllerGetPricesParams";
|
|
110
|
+
export * from "./project";
|
|
111
|
+
export * from "./protocol";
|
|
112
|
+
export * from "./protocolModel";
|
|
113
|
+
export * from "./protocolsControllerFindAllParams";
|
|
134
114
|
export * from "./redeemActionDto";
|
|
135
115
|
export * from "./redeemArgsDto";
|
|
136
116
|
export * from "./redeemArgsDtoAmountIn";
|
|
@@ -144,6 +124,12 @@ export * from "./repayArgsDtoAmountIn";
|
|
|
144
124
|
export * from "./routeActionDto";
|
|
145
125
|
export * from "./routeArgsDto";
|
|
146
126
|
export * from "./routeArgsDtoAmountIn";
|
|
127
|
+
export * from "./routeShortcutTransaction";
|
|
128
|
+
export * from "./routeShortcutVariableInputs";
|
|
129
|
+
export * from "./routeShortcutVariableInputsRoutingStrategy";
|
|
130
|
+
export * from "./routeShortcutVariableInputsVariableEstimates";
|
|
131
|
+
export * from "./routerControllerRouteShortcutTransactionParams";
|
|
132
|
+
export * from "./routerControllerRouteShortcutTransactionRoutingStrategy";
|
|
147
133
|
export * from "./singleDepositActionDto";
|
|
148
134
|
export * from "./singleDepositArgsDto";
|
|
149
135
|
export * from "./singleDepositArgsDtoAmountIn";
|
|
@@ -156,9 +142,13 @@ export * from "./slippageArgsDtoAmountOut";
|
|
|
156
142
|
export * from "./splitActionDto";
|
|
157
143
|
export * from "./splitArgsDto";
|
|
158
144
|
export * from "./splitArgsDtoAmountIn";
|
|
145
|
+
export * from "./standard";
|
|
146
|
+
export * from "./standardAction";
|
|
147
|
+
export * from "./standardActionAction";
|
|
159
148
|
export * from "./swapActionDto";
|
|
160
149
|
export * from "./swapArgsDto";
|
|
161
150
|
export * from "./swapArgsDtoAmountIn";
|
|
151
|
+
export * from "./tokenModel";
|
|
162
152
|
export * from "./tokenizedMultiDepositActionDto";
|
|
163
153
|
export * from "./tokenizedMultiDepositArgsDto";
|
|
164
154
|
export * from "./tokenizedMultiDepositArgsDtoAmountInItem";
|
|
@@ -172,10 +162,22 @@ export * from "./tokenizedSingleDepositArgsDtoAmountIn";
|
|
|
172
162
|
export * from "./tokenizedSingleRedeemActionDto";
|
|
173
163
|
export * from "./tokenizedSingleRedeemArgsDto";
|
|
174
164
|
export * from "./tokenizedSingleRedeemArgsDtoAmountIn";
|
|
165
|
+
export * from "./tokensControllerTokens200";
|
|
166
|
+
export * from "./tokensControllerTokens200AllOf";
|
|
175
167
|
export * from "./tokensControllerTokensLiquidityType";
|
|
168
|
+
export * from "./tokensControllerTokensParams";
|
|
169
|
+
export * from "./tokensControllerTokensType";
|
|
170
|
+
export * from "./transaction";
|
|
176
171
|
export * from "./transferActionDto";
|
|
177
172
|
export * from "./transferArgsDto";
|
|
178
173
|
export * from "./transferArgsDtoAmount";
|
|
179
174
|
export * from "./transferFromActionDto";
|
|
180
175
|
export * from "./transferFromArgsDto";
|
|
181
176
|
export * from "./transferFromArgsDtoAmount";
|
|
177
|
+
export * from "./userOperation";
|
|
178
|
+
export * from "./walletApproveTransaction";
|
|
179
|
+
export * from "./walletApproveTransactionTx";
|
|
180
|
+
export * from "./walletBalance";
|
|
181
|
+
export * from "./walletControllerCreateApproveTransactionParams";
|
|
182
|
+
export * from "./walletControllerCreateApproveTransactionRoutingStrategy";
|
|
183
|
+
export * from "./walletControllerWalletBalancesParams";
|
|
@@ -23,7 +23,11 @@ export type NonTokenizedControllerTokensParams = {
|
|
|
23
23
|
*/
|
|
24
24
|
chainId?: number;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Position ID of the nontokenized position.
|
|
27
|
+
*/
|
|
28
|
+
positionId?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Address representing nontokenized position.
|
|
27
31
|
*/
|
|
28
32
|
address?: string[];
|
|
29
33
|
/**
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import type { Transaction } from "./transaction";
|
|
12
12
|
import type { Hop } from "./hop";
|
|
13
13
|
import type { UserOperation } from "./userOperation";
|
|
14
|
+
import type { BridgeLatencyEstimate } from "./bridgeLatencyEstimate";
|
|
14
15
|
|
|
15
16
|
export interface NontokenizedRouteShortcutTransaction {
|
|
16
17
|
/** Block number the transaction was created on */
|
|
@@ -28,4 +29,6 @@ export interface NontokenizedRouteShortcutTransaction {
|
|
|
28
29
|
ensoFeeAmount: string[];
|
|
29
30
|
/** The ERC-4337 user operation object */
|
|
30
31
|
userOp: UserOperation;
|
|
32
|
+
/** Estimated bridge durations when the flow contains bridges */
|
|
33
|
+
bridgingEstimates?: BridgeLatencyEstimate[];
|
|
31
34
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import type { Transaction } from "./transaction";
|
|
12
12
|
import type { Hop } from "./hop";
|
|
13
13
|
import type { UserOperation } from "./userOperation";
|
|
14
|
+
import type { BridgeLatencyEstimate } from "./bridgeLatencyEstimate";
|
|
14
15
|
|
|
15
16
|
export interface RouteShortcutTransaction {
|
|
16
17
|
gas: string;
|
|
@@ -18,16 +19,18 @@ export interface RouteShortcutTransaction {
|
|
|
18
19
|
/** Price impact in basis points, null if USD price not found */
|
|
19
20
|
priceImpact: number;
|
|
20
21
|
/** An array of the fee amount collected for each tokenIn */
|
|
21
|
-
feeAmount
|
|
22
|
+
feeAmount?: string[];
|
|
22
23
|
/** The minimum allowable amount out after slippage */
|
|
23
|
-
minAmountOut
|
|
24
|
+
minAmountOut?: string;
|
|
24
25
|
/** Block number the transaction was created on */
|
|
25
26
|
createdAt: number;
|
|
26
27
|
/** The tx object to use in `ethers` */
|
|
27
28
|
tx: Transaction;
|
|
28
29
|
/** The route the shortcut will use */
|
|
29
30
|
route: Hop[];
|
|
30
|
-
ensoFeeAmount
|
|
31
|
+
ensoFeeAmount?: string[];
|
|
31
32
|
/** The ERC-4337 user operation object */
|
|
32
33
|
userOp: UserOperation;
|
|
34
|
+
/** Estimated bridging durations when applicable */
|
|
35
|
+
bridgingEstimates?: BridgeLatencyEstimate[];
|
|
33
36
|
}
|
|
@@ -13,7 +13,7 @@ import type { RouteShortcutVariableInputsVariableEstimates } from "./routeShortc
|
|
|
13
13
|
|
|
14
14
|
export interface RouteShortcutVariableInputs {
|
|
15
15
|
/** Chain ID of the network to execute the transaction on */
|
|
16
|
-
chainId
|
|
16
|
+
chainId: number;
|
|
17
17
|
/** Ethereum address of the wallet to send the transaction from */
|
|
18
18
|
fromAddress: string;
|
|
19
19
|
/**
|
|
@@ -19,7 +19,7 @@ export type RouteShortcutVariableInputsRoutingStrategy =
|
|
|
19
19
|
|
|
20
20
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
21
21
|
export const RouteShortcutVariableInputsRoutingStrategy = {
|
|
22
|
-
ensowallet: "ensowallet",
|
|
22
|
+
"ensowallet-v2": "ensowallet-v2",
|
|
23
23
|
router: "router",
|
|
24
24
|
delegate: "delegate",
|
|
25
25
|
"router-legacy": "router-legacy",
|
|
@@ -15,7 +15,7 @@ export type RouterControllerRouteShortcutTransactionRoutingStrategy =
|
|
|
15
15
|
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
17
17
|
export const RouterControllerRouteShortcutTransactionRoutingStrategy = {
|
|
18
|
-
ensowallet: "ensowallet",
|
|
18
|
+
"ensowallet-v2": "ensowallet-v2",
|
|
19
19
|
router: "router",
|
|
20
20
|
delegate: "delegate",
|
|
21
21
|
"router-legacy": "router-legacy",
|
|
@@ -22,6 +22,7 @@ export const StandardActionAction = {
|
|
|
22
22
|
singledeposit: "singledeposit",
|
|
23
23
|
singledepositwithpositionid: "singledepositwithpositionid",
|
|
24
24
|
multideposit: "multideposit",
|
|
25
|
+
multidepositwithpositionid: "multidepositwithpositionid",
|
|
25
26
|
tokenizedsingledeposit: "tokenizedsingledeposit",
|
|
26
27
|
tokenizedmultideposit: "tokenizedmultideposit",
|
|
27
28
|
multioutsingledeposit: "multioutsingledeposit",
|
|
@@ -50,4 +51,5 @@ export const StandardActionAction = {
|
|
|
50
51
|
fee: "fee",
|
|
51
52
|
ensofee: "ensofee",
|
|
52
53
|
paymasterfee: "paymasterfee",
|
|
54
|
+
depositposition: "depositposition",
|
|
53
55
|
} as const;
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
export interface UserOperation {
|
|
13
13
|
callData: string;
|
|
14
14
|
callGasLimit: string;
|
|
15
|
-
factory
|
|
16
|
-
factoryData
|
|
15
|
+
factory?: string;
|
|
16
|
+
factoryData?: string;
|
|
17
17
|
maxFeePerGas: string;
|
|
18
18
|
maxPriorityFeePerGas: string;
|
|
19
19
|
nonce: string;
|
|
20
|
-
paymaster
|
|
21
|
-
paymasterData
|
|
22
|
-
paymasterPostOpGasLimit
|
|
23
|
-
paymasterVerificationGasLimit
|
|
20
|
+
paymaster?: string;
|
|
21
|
+
paymasterData?: string;
|
|
22
|
+
paymasterPostOpGasLimit?: string;
|
|
23
|
+
paymasterVerificationGasLimit?: string;
|
|
24
24
|
preVerificationGas: string;
|
|
25
25
|
sender: string;
|
|
26
26
|
signature: string;
|
|
@@ -18,12 +18,24 @@ export interface WalletBalance {
|
|
|
18
18
|
chainId: number;
|
|
19
19
|
/** The unformatted balance of the token */
|
|
20
20
|
decimals: number;
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Price of the token in usd
|
|
23
|
+
* @nullable
|
|
24
|
+
*/
|
|
25
|
+
price: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Name of the token
|
|
28
|
+
* @nullable
|
|
29
|
+
*/
|
|
30
|
+
name: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Symbol of the token
|
|
33
|
+
* @nullable
|
|
34
|
+
*/
|
|
35
|
+
symbol: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Logo of the token
|
|
38
|
+
* @nullable
|
|
39
|
+
*/
|
|
40
|
+
logoUri: string | null;
|
|
29
41
|
}
|
|
@@ -15,7 +15,7 @@ export type WalletControllerCreateApproveTransactionRoutingStrategy =
|
|
|
15
15
|
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
17
17
|
export const WalletControllerCreateApproveTransactionRoutingStrategy = {
|
|
18
|
-
ensowallet: "ensowallet",
|
|
18
|
+
"ensowallet-v2": "ensowallet-v2",
|
|
19
19
|
router: "router",
|
|
20
20
|
delegate: "delegate",
|
|
21
21
|
"router-legacy": "router-legacy",
|
|
@@ -15,11 +15,11 @@ export type WalletControllerWalletBalancesParams = {
|
|
|
15
15
|
*/
|
|
16
16
|
chainId: number;
|
|
17
17
|
/**
|
|
18
|
-
* Address of the eoa with which to associate the ensoWallet for balances
|
|
18
|
+
* Address of the eoa with which to associate the ensoWallet-v2 for balances
|
|
19
19
|
*/
|
|
20
20
|
eoaAddress?: string;
|
|
21
21
|
/**
|
|
22
|
-
* If true returns balances for the provided address, instead of the associated ensoWallet
|
|
22
|
+
* If true returns balances for the provided address, instead of the associated ensoWallet-v2
|
|
23
23
|
*/
|
|
24
|
-
useEoa
|
|
24
|
+
useEoa: boolean;
|
|
25
25
|
};
|