@ensofinance/checkout-widget 0.0.17 → 0.0.19
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 +22053 -33949
- 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/ChakraProvider.tsx +3 -0
- package/src/components/Checkout.tsx +6 -3
- package/src/components/steps/CardBuyFlow.tsx +778 -0
- 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/store.ts +8 -0
- package/src/types/index.ts +4 -0
- package/src/util/constants.tsx +12 -1
- package/src/util/enso-hooks.tsx +12 -5
- package/src/util/meld-hooks.tsx +319 -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/store.ts
CHANGED
|
@@ -30,6 +30,10 @@ type Store = {
|
|
|
30
30
|
slippage?: number;
|
|
31
31
|
setSlippage: (slippage: number) => void;
|
|
32
32
|
|
|
33
|
+
// Override recipient address (different from connected wallet)
|
|
34
|
+
recipient?: string;
|
|
35
|
+
setRecipient: (recipient: string | undefined) => void;
|
|
36
|
+
|
|
33
37
|
// Mesh integration
|
|
34
38
|
meshAccessToken: AccessTokenPayload | null;
|
|
35
39
|
setMeshAccessToken: (meshAccessToken: AccessTokenPayload) => void;
|
|
@@ -63,6 +67,10 @@ export const useAppStore = create<Store>((set) => ({
|
|
|
63
67
|
slippage: DEFAULT_SLIPPAGE,
|
|
64
68
|
setSlippage: (slippage: number) => set({ slippage }),
|
|
65
69
|
|
|
70
|
+
// Override recipient address
|
|
71
|
+
recipient: undefined,
|
|
72
|
+
setRecipient: (recipient: string | undefined) => set({ recipient }),
|
|
73
|
+
|
|
66
74
|
// Mesh integration
|
|
67
75
|
meshAccessToken: null,
|
|
68
76
|
setMeshAccessToken: (meshAccessToken: AccessTokenPayload) =>
|
package/src/types/index.ts
CHANGED
|
@@ -14,6 +14,10 @@ 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>;
|
|
19
|
+
/** Override recipient address (defaults to connected wallet's smart account) */
|
|
20
|
+
recipient?: string;
|
|
17
21
|
};
|
|
18
22
|
|
|
19
23
|
export type CheckoutModalProps = {
|
package/src/util/constants.tsx
CHANGED
|
@@ -18,7 +18,7 @@ export const EXCHANGE_MIN_LIMIT = {
|
|
|
18
18
|
[MESH_SYMBOLS.USDT]: 20,
|
|
19
19
|
[MESH_SYMBOLS.WBTC]: 0.00000001,
|
|
20
20
|
};
|
|
21
|
-
export const EXCHANGE_MAX_LIMIT_GAP_USD = 5
|
|
21
|
+
export const EXCHANGE_MAX_LIMIT_GAP_USD = 5;
|
|
22
22
|
|
|
23
23
|
export const ETH_TOKEN: Token = {
|
|
24
24
|
address: ETH_ADDRESS,
|
|
@@ -191,6 +191,17 @@ 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
|
+
export const getCexIntermediateChain = (
|
|
201
|
+
chainId: number,
|
|
202
|
+
mapping: Record<number, number> = DEFAULT_CEX_BRIDGE_CHAIN_MAPPING,
|
|
203
|
+
): number | null => mapping[chainId] ?? null;
|
|
204
|
+
|
|
194
205
|
export const CHAINS_ETHERSCAN: Record<SupportedChainId, string> = {
|
|
195
206
|
[SupportedChainId.OPTIMISM]: "https://optimistic.etherscan.io",
|
|
196
207
|
[SupportedChainId.MAINNET]: "https://etherscan.io",
|
package/src/util/enso-hooks.tsx
CHANGED
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
import { getWalletDisplayName, getWalletIcon } from "@/util/wallet";
|
|
15
15
|
import { formatUSD, normalizeValue } from "@/util";
|
|
16
16
|
import { useAppStore } from "@/store";
|
|
17
|
-
import { VITALIK_ADDRESS } from "./constants";
|
|
17
|
+
import { SupportedChainId, VITALIK_ADDRESS } from "./constants";
|
|
18
18
|
|
|
19
|
-
export function getERC4337CloneFactory(chainId:
|
|
19
|
+
export function getERC4337CloneFactory(chainId: SupportedChainId): Address {
|
|
20
20
|
return "0x1a59347d28f64091079fa04a2cbd03da63dff154";
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -84,6 +84,7 @@ export const useAppDetails = () => {
|
|
|
84
84
|
const selectedIntegration = useAppStore(
|
|
85
85
|
(state) => state.selectedIntegration,
|
|
86
86
|
);
|
|
87
|
+
const recipient = useAppStore((state) => state.recipient);
|
|
87
88
|
|
|
88
89
|
const {
|
|
89
90
|
data: [tokenInData],
|
|
@@ -115,7 +116,8 @@ export const useAppDetails = () => {
|
|
|
115
116
|
}),
|
|
116
117
|
);
|
|
117
118
|
|
|
118
|
-
const protocolName =
|
|
119
|
+
const protocolName =
|
|
120
|
+
protocolData?.name || nontokenizedData.protocol;
|
|
119
121
|
|
|
120
122
|
// Return first underlying token as primary, with all underlyingTokens available
|
|
121
123
|
return {
|
|
@@ -153,6 +155,7 @@ export const useAppDetails = () => {
|
|
|
153
155
|
effectiveTokenOutData,
|
|
154
156
|
effectivePrice,
|
|
155
157
|
isNontokenized,
|
|
158
|
+
recipient,
|
|
156
159
|
};
|
|
157
160
|
};
|
|
158
161
|
|
|
@@ -262,12 +265,16 @@ export const useRouteData = () => {
|
|
|
262
265
|
tokenOut,
|
|
263
266
|
selectedIntegration,
|
|
264
267
|
isNontokenized,
|
|
268
|
+
recipient,
|
|
265
269
|
} = useAppDetails();
|
|
266
270
|
|
|
271
|
+
// Use recipient override if provided, otherwise use connected wallet address
|
|
272
|
+
const receiver = recipient || address;
|
|
273
|
+
|
|
267
274
|
const standardRoute = useTokenizedRouteData({
|
|
268
275
|
routingStrategy: selectedIntegration?.type ? "checkout" : "router",
|
|
269
276
|
fromAddress: address,
|
|
270
|
-
receiver
|
|
277
|
+
receiver,
|
|
271
278
|
spender: address,
|
|
272
279
|
amountIn,
|
|
273
280
|
tokenIn,
|
|
@@ -281,7 +288,7 @@ export const useRouteData = () => {
|
|
|
281
288
|
const nontokenizedRoute = useNontokenizedRouteData({
|
|
282
289
|
routingStrategy: selectedIntegration?.type ? "checkout" : "router",
|
|
283
290
|
fromAddress: address,
|
|
284
|
-
receiver
|
|
291
|
+
receiver,
|
|
285
292
|
spender: address,
|
|
286
293
|
amountIn,
|
|
287
294
|
tokenIn,
|