@ensofinance/checkout-widget 0.0.17 → 0.0.18
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 +21976 -33880
- package/dist/checkout-widget.es.js.map +1 -1
- package/dist/checkout-widget.umd.js +61 -46
- package/dist/checkout-widget.umd.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/package.json +2 -2
- package/src/components/Checkout.tsx +3 -2
- package/src/components/steps/ExchangeFlow.tsx +526 -155
- package/src/enso-api/index.ts +276 -1
- package/src/enso-api/model/action.ts +1 -1
- package/src/enso-api/model/actionAction.ts +1 -1
- package/src/enso-api/model/actionInputs.ts +1 -1
- package/src/enso-api/model/actionToBundle.ts +1 -1
- package/src/enso-api/model/actionToBundleAction.ts +1 -1
- package/src/enso-api/model/actionToBundleArgs.ts +1 -1
- package/src/enso-api/model/approveActionDto.ts +1 -1
- package/src/enso-api/model/approveArgsDto.ts +1 -1
- package/src/enso-api/model/approveArgsDtoAmount.ts +1 -1
- package/src/enso-api/model/balanceActionDto.ts +1 -1
- package/src/enso-api/model/balanceArgsDto.ts +1 -1
- package/src/enso-api/model/borrowActionDto.ts +1 -1
- package/src/enso-api/model/borrowArgsDto.ts +1 -1
- package/src/enso-api/model/borrowArgsDtoAmountOut.ts +1 -1
- package/src/enso-api/model/bridgeActionDto.ts +1 -1
- package/src/enso-api/model/bridgeArgsDto.ts +1 -1
- package/src/enso-api/model/bridgeArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/bridgeArgsDtoCallbackItem.ts +1 -1
- package/src/enso-api/model/bridgeLatencyEstimate.ts +1 -1
- package/src/enso-api/model/bridgeTransactionResponse.ts +37 -0
- package/src/enso-api/model/bridgeTransactionResponseStatus.ts +25 -0
- package/src/enso-api/model/bundleControllerBundleShortcutTransactionBodyItem.ts +1 -1
- package/src/enso-api/model/bundleControllerBundleShortcutTransactionParams.ts +1 -1
- package/src/enso-api/model/bundleControllerBundleShortcutTransactionRoutingStrategy.ts +1 -1
- package/src/enso-api/model/bundleShortcutTransaction.ts +1 -1
- package/src/enso-api/model/bundleShortcutTransactionAmountsOut.ts +1 -1
- package/src/enso-api/model/bundleShortcutTransactionFeeAmount.ts +1 -1
- package/src/enso-api/model/bundleShortcutTransactionMinAmountsOut.ts +1 -1
- package/src/enso-api/model/callActionDto.ts +1 -1
- package/src/enso-api/model/callArgsDto.ts +1 -1
- package/src/enso-api/model/callArgsDtoArgsItem.ts +1 -1
- package/src/enso-api/model/callArgsDtoArgsItemAnyOf.ts +1 -1
- package/src/enso-api/model/callArgsDtoValue.ts +1 -1
- package/src/enso-api/model/callOutput.ts +1 -1
- package/src/enso-api/model/connectedNetwork.ts +1 -1
- package/src/enso-api/model/depositActionDto.ts +1 -1
- package/src/enso-api/model/depositArgsDto.ts +1 -1
- package/src/enso-api/model/depositArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/depositArgsDtoAmountInOneOfItem.ts +1 -1
- package/src/enso-api/model/depositArgsDtoTokenIn.ts +1 -1
- package/src/enso-api/model/depositArgsDtoTokenOut.ts +1 -1
- package/src/enso-api/model/depositCLMMActionDto.ts +1 -1
- package/src/enso-api/model/depositCLMMArgsDto.ts +1 -1
- package/src/enso-api/model/depositCLMMArgsDtoAmountInItem.ts +1 -1
- package/src/enso-api/model/depositCLMMArgsDtoAmountInItemAnyOf.ts +1 -1
- package/src/enso-api/model/ensoEvent.ts +30 -0
- package/src/enso-api/model/ensoFeeActionDto.ts +1 -1
- package/src/enso-api/model/ensoFeeArgsDto.ts +1 -1
- package/src/enso-api/model/ensoFeeArgsDtoAmount.ts +1 -1
- package/src/enso-api/model/ensoMetadata.ts +23 -0
- package/src/enso-api/model/feeActionDto.ts +1 -1
- package/src/enso-api/model/feeArgsDto.ts +1 -1
- package/src/enso-api/model/feeArgsDtoAmount.ts +1 -1
- package/src/enso-api/model/harvestActionDto.ts +1 -1
- package/src/enso-api/model/harvestArgsDto.ts +1 -1
- package/src/enso-api/model/hop.ts +1 -1
- package/src/enso-api/model/hopArgs.ts +1 -1
- package/src/enso-api/model/index.ts +8 -1
- package/src/enso-api/model/iporControllerIporShortcutTransactionParams.ts +1 -1
- package/src/enso-api/model/iporShortcutInput.ts +1 -1
- package/src/enso-api/model/iporShortcutTransaction.ts +1 -1
- package/src/enso-api/model/lZDestinationTokenData.ts +1 -1
- package/src/enso-api/model/lZPoolLookupResponse.ts +1 -1
- package/src/enso-api/model/layerZeroControllerCheckBridgeTransactionParams.ts +21 -0
- package/src/enso-api/model/layerZeroControllerGetPoolAddressParams.ts +1 -1
- package/src/enso-api/model/layerZeroMessageStatus.ts +39 -0
- package/src/enso-api/model/mergeActionDto.ts +1 -1
- package/src/enso-api/model/mergeArgsDto.ts +1 -1
- package/src/enso-api/model/mergeArgsDtoAmountInItem.ts +1 -1
- package/src/enso-api/model/minAmountOutActionDto.ts +1 -1
- package/src/enso-api/model/minAmountOutArgsDto.ts +1 -1
- package/src/enso-api/model/minAmountOutArgsDtoAmountOut.ts +1 -1
- package/src/enso-api/model/minAmountOutArgsDtoMinAmountOut.ts +1 -1
- package/src/enso-api/model/multiDepositActionDto.ts +1 -1
- package/src/enso-api/model/multiDepositArgsDto.ts +1 -1
- package/src/enso-api/model/multiDepositArgsDtoAmountInItem.ts +1 -1
- package/src/enso-api/model/multiDepositArgsDtoAmountInItemAnyOf.ts +1 -1
- package/src/enso-api/model/multiOutSingleDepositActionDto.ts +1 -1
- package/src/enso-api/model/multiOutSingleDepositArgsDto.ts +1 -1
- package/src/enso-api/model/multiOutSingleDepositArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/multiRedeemActionDto.ts +1 -1
- package/src/enso-api/model/multiRedeemArgs2Dto.ts +1 -1
- package/src/enso-api/model/multiRedeemArgs2DtoAmountIn.ts +1 -1
- package/src/enso-api/model/network.ts +1 -1
- package/src/enso-api/model/networksControllerNetworksParams.ts +1 -1
- package/src/enso-api/model/nonTokenizedControllerTokens200.ts +1 -1
- package/src/enso-api/model/nonTokenizedControllerTokens200AllOf.ts +1 -1
- package/src/enso-api/model/nonTokenizedControllerTokensParams.ts +1 -1
- package/src/enso-api/model/nonTokenizedModel.ts +1 -1
- package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionParams.ts +1 -1
- package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionRoutingStrategy.ts +1 -1
- package/src/enso-api/model/nontokenizedRouteShortcutTransaction.ts +1 -1
- package/src/enso-api/model/paginatedResult.ts +1 -1
- package/src/enso-api/model/paginationMeta.ts +1 -1
- package/src/enso-api/model/paymasterFeeActionDto.ts +1 -1
- package/src/enso-api/model/paymasterFeeArgsDto.ts +1 -1
- package/src/enso-api/model/paymasterFeeArgsDtoAmount.ts +1 -1
- package/src/enso-api/model/permitTransferFromActionDto.ts +1 -1
- package/src/enso-api/model/permitTransferFromArgsDto.ts +1 -1
- package/src/enso-api/model/permitTransferFromArgsDtoAmount.ts +1 -1
- package/src/enso-api/model/permitTransferFromArgsDtoAmountOneOfItem.ts +1 -1
- package/src/enso-api/model/permitTransferFromArgsDtoToken.ts +1 -1
- package/src/enso-api/model/positionModel.ts +1 -1
- package/src/enso-api/model/price.ts +1 -1
- package/src/enso-api/model/pricesControllerGetPricesParams.ts +1 -1
- package/src/enso-api/model/project.ts +1 -1
- package/src/enso-api/model/protocol.ts +1 -1
- package/src/enso-api/model/protocolModel.ts +1 -1
- package/src/enso-api/model/protocolsControllerFindAllParams.ts +1 -1
- package/src/enso-api/model/redeemActionDto.ts +1 -1
- package/src/enso-api/model/redeemArgsDto.ts +1 -1
- package/src/enso-api/model/redeemArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/redeemArgsDtoTokenOut.ts +1 -1
- package/src/enso-api/model/redeemCLMMActionDto.ts +1 -1
- package/src/enso-api/model/redeemCLMMArgsDto.ts +1 -1
- package/src/enso-api/model/redeemCLMMArgsDtoLiquidity.ts +1 -1
- package/src/enso-api/model/refundDetails.ts +21 -0
- package/src/enso-api/model/repayActionDto.ts +1 -1
- package/src/enso-api/model/repayArgsDto.ts +1 -1
- package/src/enso-api/model/repayArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/routeActionDto.ts +1 -1
- package/src/enso-api/model/routeArgsDto.ts +1 -1
- package/src/enso-api/model/routeArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/routeShortcutTransaction.ts +1 -1
- package/src/enso-api/model/routeShortcutVariableInputs.ts +1 -1
- package/src/enso-api/model/routeShortcutVariableInputsRoutingStrategy.ts +1 -1
- package/src/enso-api/model/routeShortcutVariableInputsVariableEstimates.ts +1 -1
- package/src/enso-api/model/routerControllerRouteShortcutTransactionParams.ts +1 -1
- package/src/enso-api/model/routerControllerRouteShortcutTransactionRoutingStrategy.ts +1 -1
- package/src/enso-api/model/singleDepositActionDto.ts +1 -1
- package/src/enso-api/model/singleDepositArgsDto.ts +1 -1
- package/src/enso-api/model/singleDepositArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/singleRedeemActionDto.ts +1 -1
- package/src/enso-api/model/singleRedeemArgs2Dto.ts +1 -1
- package/src/enso-api/model/singleRedeemArgs2DtoAmountIn.ts +1 -1
- package/src/enso-api/model/slippageActionDto.ts +1 -1
- package/src/enso-api/model/slippageArgsDto.ts +1 -1
- package/src/enso-api/model/slippageArgsDtoAmountOut.ts +1 -1
- package/src/enso-api/model/splitActionDto.ts +1 -1
- package/src/enso-api/model/splitArgsDto.ts +1 -1
- package/src/enso-api/model/splitArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/standard.ts +1 -1
- package/src/enso-api/model/standardAction.ts +1 -1
- package/src/enso-api/model/standardActionAction.ts +1 -1
- package/src/enso-api/model/swapActionDto.ts +1 -1
- package/src/enso-api/model/swapArgsDto.ts +1 -1
- package/src/enso-api/model/swapArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/tokenModel.ts +1 -1
- package/src/enso-api/model/tokenizedMultiDepositActionDto.ts +1 -1
- package/src/enso-api/model/tokenizedMultiDepositArgsDto.ts +1 -1
- package/src/enso-api/model/tokenizedMultiDepositArgsDtoAmountInItem.ts +1 -1
- package/src/enso-api/model/tokenizedMultiDepositArgsDtoAmountInItemAnyOf.ts +1 -1
- package/src/enso-api/model/tokenizedMultiRedeemActionDto.ts +1 -1
- package/src/enso-api/model/tokenizedMultiRedeemArgsDto.ts +1 -1
- package/src/enso-api/model/tokenizedMultiRedeemArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/tokenizedSingleDepositActionDto.ts +1 -1
- package/src/enso-api/model/tokenizedSingleDepositArgsDto.ts +1 -1
- package/src/enso-api/model/tokenizedSingleDepositArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/tokenizedSingleRedeemActionDto.ts +1 -1
- package/src/enso-api/model/tokenizedSingleRedeemArgsDto.ts +1 -1
- package/src/enso-api/model/tokenizedSingleRedeemArgsDtoAmountIn.ts +1 -1
- package/src/enso-api/model/tokensControllerTokens200.ts +1 -1
- package/src/enso-api/model/tokensControllerTokens200AllOf.ts +1 -1
- package/src/enso-api/model/tokensControllerTokensLiquidityType.ts +1 -1
- package/src/enso-api/model/tokensControllerTokensParams.ts +1 -1
- package/src/enso-api/model/tokensControllerTokensType.ts +1 -1
- package/src/enso-api/model/transaction.ts +1 -1
- package/src/enso-api/model/transferActionDto.ts +1 -1
- package/src/enso-api/model/transferArgsDto.ts +1 -1
- package/src/enso-api/model/transferArgsDtoAmount.ts +1 -1
- package/src/enso-api/model/transferFromActionDto.ts +1 -1
- package/src/enso-api/model/transferFromArgsDto.ts +1 -1
- package/src/enso-api/model/transferFromArgsDtoAmount.ts +1 -1
- package/src/enso-api/model/userOperation.ts +1 -1
- package/src/enso-api/model/walletApproveTransaction.ts +1 -1
- package/src/enso-api/model/walletApproveTransactionTx.ts +1 -1
- package/src/enso-api/model/walletBalance.ts +1 -1
- package/src/enso-api/model/walletControllerCreateApproveTransactionParams.ts +1 -1
- package/src/enso-api/model/walletControllerCreateApproveTransactionRoutingStrategy.ts +1 -1
- package/src/enso-api/model/walletControllerWalletBalancesParams.ts +1 -1
- package/src/index.ts +3 -0
- package/src/types/index.ts +2 -0
- package/src/util/constants.tsx +19 -0
- package/src/util/tx-tracker.tsx +162 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { CallOutput } from "./callOutput";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { SlippageArgsDto } from "./slippageArgsDto";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { SlippageArgsDtoAmountOut } from "./slippageArgsDtoAmountOut";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { CallOutput } from "./callOutput";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { SplitArgsDto } from "./splitArgsDto";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { SplitArgsDtoAmountIn } from "./splitArgsDtoAmountIn";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { CallOutput } from "./callOutput";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { Protocol } from "./protocol";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { StandardActionAction } from "./standardActionAction";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { SwapArgsDto } from "./swapArgsDto";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { SwapArgsDtoAmountIn } from "./swapArgsDtoAmountIn";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { CallOutput } from "./callOutput";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TokenizedMultiDepositArgsDto } from "./tokenizedMultiDepositArgsDto";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TokenizedMultiDepositArgsDtoAmountInItem } from "./tokenizedMultiDepositArgsDtoAmountInItem";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TokenizedMultiDepositArgsDtoAmountInItemAnyOf } from "./tokenizedMultiDepositArgsDtoAmountInItemAnyOf";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TokenizedMultiRedeemArgsDto } from "./tokenizedMultiRedeemArgsDto";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TokenizedMultiRedeemArgsDtoAmountIn } from "./tokenizedMultiRedeemArgsDtoAmountIn";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { CallOutput } from "./callOutput";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TokenizedSingleDepositArgsDto } from "./tokenizedSingleDepositArgsDto";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TokenizedSingleDepositArgsDtoAmountIn } from "./tokenizedSingleDepositArgsDtoAmountIn";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { CallOutput } from "./callOutput";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TokenizedSingleRedeemArgsDto } from "./tokenizedSingleRedeemArgsDto";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TokenizedSingleRedeemArgsDtoAmountIn } from "./tokenizedSingleRedeemArgsDtoAmountIn";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { CallOutput } from "./callOutput";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { PaginatedResult } from "./paginatedResult";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { PositionModel } from "./positionModel";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TokensControllerTokensType } from "./tokensControllerTokensType";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TransferArgsDto } from "./transferArgsDto";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TransferArgsDtoAmount } from "./transferArgsDtoAmount";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { CallOutput } from "./callOutput";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TransferFromArgsDto } from "./transferFromArgsDto";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { TransferFromArgsDtoAmount } from "./transferFromArgsDtoAmount";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { CallOutput } from "./callOutput";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { WalletApproveTransactionTx } from "./walletApproveTransactionTx";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
import type { WalletControllerCreateApproveTransactionRoutingStrategy } from "./walletControllerCreateApproveTransactionRoutingStrategy";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- Find detailed documentation on [docs.enso.finance](https://docs.enso.finance).
|
|
6
6
|
- To use the API, **you must include your API Key in the Authorization header** (Bearer format).
|
|
7
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.
|
|
8
|
+
- Get your own API Key at [enso.finance/developers](https://developers.enso.build/).
|
|
9
9
|
* OpenAPI spec version: 1.0
|
|
10
10
|
*/
|
|
11
11
|
|
package/src/index.ts
CHANGED
|
@@ -18,3 +18,6 @@ export {
|
|
|
18
18
|
// Export theme type for TypeScript users
|
|
19
19
|
export type { WidgetTheme } from "./types";
|
|
20
20
|
export { SupportedExchanges } from "./types";
|
|
21
|
+
|
|
22
|
+
// Export default CEX bridge chain mapping for users to extend
|
|
23
|
+
export { DEFAULT_CEX_BRIDGE_CHAIN_MAPPING } from "./util/constants";
|
package/src/types/index.ts
CHANGED
|
@@ -14,6 +14,8 @@ export type CheckoutConfig = {
|
|
|
14
14
|
apiKey: string;
|
|
15
15
|
theme?: WidgetTheme;
|
|
16
16
|
enableExchange?: SupportedExchanges[];
|
|
17
|
+
/** Override the default CEX bridge chain mapping (maps target chains to intermediate chains for withdrawal + bridge) */
|
|
18
|
+
cexBridgeChainMapping?: Record<number, number>;
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
export type CheckoutModalProps = {
|
package/src/util/constants.tsx
CHANGED
|
@@ -191,6 +191,25 @@ export const CHAINS_NATIVE_TOKENS: Record<SupportedChainId, Token> = {
|
|
|
191
191
|
[SupportedChainId.KATANA]: ETH_TOKEN,
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
+
// CEX Bridge Chain Mapping
|
|
195
|
+
// Maps target chains not directly supported by CEXs to intermediate chains for withdrawal + bridge
|
|
196
|
+
export const DEFAULT_CEX_BRIDGE_CHAIN_MAPPING: Record<number, number> = {
|
|
197
|
+
[SupportedChainId.HYPERLIQUID]: SupportedChainId.ARBITRUM_ONE, // 999 → 42161
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/** @deprecated Use the context-aware version with custom mapping parameter */
|
|
201
|
+
export const CEX_BRIDGE_CHAIN_MAPPING = DEFAULT_CEX_BRIDGE_CHAIN_MAPPING;
|
|
202
|
+
|
|
203
|
+
export const isCexBridgeRequired = (
|
|
204
|
+
chainId: number,
|
|
205
|
+
mapping: Record<number, number> = DEFAULT_CEX_BRIDGE_CHAIN_MAPPING,
|
|
206
|
+
): boolean => chainId in mapping;
|
|
207
|
+
|
|
208
|
+
export const getCexIntermediateChain = (
|
|
209
|
+
chainId: number,
|
|
210
|
+
mapping: Record<number, number> = DEFAULT_CEX_BRIDGE_CHAIN_MAPPING,
|
|
211
|
+
): number | null => mapping[chainId] ?? null;
|
|
212
|
+
|
|
194
213
|
export const CHAINS_ETHERSCAN: Record<SupportedChainId, string> = {
|
|
195
214
|
[SupportedChainId.OPTIMISM]: "https://optimistic.etherscan.io",
|
|
196
215
|
[SupportedChainId.MAINNET]: "https://etherscan.io",
|