@lifi/sdk 3.0.0-alpha.1 → 3.0.0-alpha.11
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/cjs/LiFi.js +222 -261
- package/dist/cjs/LiFi.js.map +1 -0
- package/dist/cjs/allowance/getAllowance.js +13 -16
- package/dist/cjs/allowance/getAllowance.js.map +1 -0
- package/dist/cjs/allowance/index.js +5 -17
- package/dist/cjs/allowance/index.js.map +1 -0
- package/dist/cjs/allowance/setAllowance.js +33 -18
- package/dist/cjs/allowance/setAllowance.js.map +1 -0
- package/dist/cjs/allowance/types.js +1 -0
- package/dist/cjs/allowance/types.js.map +1 -0
- package/dist/cjs/balance/getBalance.js +14 -14
- package/dist/cjs/balance/getBalance.js.map +1 -0
- package/dist/cjs/balance/getTokenBalance.js +3 -3
- package/dist/cjs/balance/getTokenBalance.js.map +1 -0
- package/dist/cjs/balance/index.js +4 -16
- package/dist/cjs/balance/index.js.map +1 -0
- package/dist/cjs/connectors.js +7 -35
- package/dist/cjs/connectors.js.map +1 -0
- package/dist/cjs/constants.js +2 -4
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/execution/BaseStepExecutor.js +54 -0
- package/dist/cjs/execution/BaseStepExecutor.js.map +1 -0
- package/dist/cjs/execution/EVMStepExecutor.js +271 -0
- package/dist/cjs/execution/EVMStepExecutor.js.map +1 -0
- package/dist/cjs/execution/RouteExecutionManager.js +196 -179
- package/dist/cjs/execution/RouteExecutionManager.js.map +1 -0
- package/dist/cjs/execution/StatusManager.js +142 -135
- package/dist/cjs/execution/StatusManager.js.map +1 -0
- package/dist/cjs/execution/StepExecutionManager.js +223 -229
- package/dist/cjs/execution/StepExecutionManager.js.map +1 -0
- package/dist/cjs/execution/checkAllowance.js +9 -10
- package/dist/cjs/execution/checkAllowance.js.map +1 -0
- package/dist/cjs/execution/checkBalance.js +5 -5
- package/dist/cjs/execution/checkBalance.js.map +1 -0
- package/dist/cjs/execution/index.js +4 -15
- package/dist/cjs/execution/index.js.map +1 -0
- package/dist/cjs/execution/multisig.js +6 -8
- package/dist/cjs/execution/multisig.js.map +1 -0
- package/dist/cjs/execution/prepareRestart.js +2 -44
- package/dist/cjs/execution/prepareRestart.js.map +1 -0
- package/dist/cjs/execution/stepComparison.js +5 -17
- package/dist/cjs/execution/stepComparison.js.map +1 -0
- package/dist/cjs/execution/switchChain.js +4 -21
- package/dist/cjs/execution/switchChain.js.map +1 -0
- package/dist/cjs/{types/internal.types.js → execution/types.js} +1 -0
- package/dist/cjs/execution/types.js.map +1 -0
- package/dist/cjs/execution/utils.js +1 -9
- package/dist/cjs/execution/utils.js.map +1 -0
- package/dist/cjs/execution/waitForReceivingTransaction.js +9 -11
- package/dist/cjs/execution/waitForReceivingTransaction.js.map +1 -0
- package/dist/cjs/helpers.js +11 -25
- package/dist/cjs/helpers.js.map +1 -0
- package/dist/cjs/index.js +16 -22
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/providers/EVM.js +35 -0
- package/dist/cjs/providers/EVM.js.map +1 -0
- package/dist/cjs/providers/Solana.js +38 -0
- package/dist/cjs/providers/Solana.js.map +1 -0
- package/dist/cjs/providers/index.js +5 -0
- package/dist/cjs/providers/index.js.map +1 -0
- package/dist/cjs/providers/types.js +9 -0
- package/dist/cjs/providers/types.js.map +1 -0
- package/dist/cjs/request.js +19 -16
- package/dist/cjs/request.js.map +1 -0
- package/dist/cjs/services/ApiService.js +72 -90
- package/dist/cjs/services/ApiService.js.map +1 -0
- package/dist/cjs/services/ChainsService.js +19 -9
- package/dist/cjs/services/ChainsService.js.map +1 -0
- package/dist/cjs/services/ConfigService.js +94 -65
- package/dist/cjs/services/ConfigService.js.map +1 -0
- package/dist/cjs/typeguards.js +1 -0
- package/dist/cjs/typeguards.js.map +1 -0
- package/dist/cjs/types/abi.js +1 -0
- package/dist/cjs/types/abi.js.map +1 -0
- package/dist/cjs/types/index.js +4 -20
- package/dist/cjs/types/index.js.map +1 -0
- package/dist/cjs/types/internal.js +3 -0
- package/dist/cjs/types/internal.js.map +1 -0
- package/dist/cjs/utils/errors.js +25 -3
- package/dist/cjs/utils/errors.js.map +1 -0
- package/dist/cjs/utils/getMaxPriorityFeePerGas.js +3 -2
- package/dist/cjs/utils/getMaxPriorityFeePerGas.js.map +1 -0
- package/dist/cjs/utils/index.js +7 -19
- package/dist/cjs/utils/index.js.map +1 -0
- package/dist/cjs/utils/median.js +1 -0
- package/dist/cjs/utils/median.js.map +1 -0
- package/dist/cjs/utils/parseError.js +39 -79
- package/dist/cjs/utils/parseError.js.map +1 -0
- package/dist/cjs/utils/utils.js +5 -11
- package/dist/cjs/utils/utils.js.map +1 -0
- package/dist/cjs/version.js +2 -1
- package/dist/cjs/version.js.map +1 -0
- package/dist/esm/LiFi.js +375 -0
- package/dist/esm/LiFi.js.map +1 -0
- package/dist/{allowance → esm/allowance}/getAllowance.js +5 -4
- package/dist/esm/allowance/getAllowance.js.map +1 -0
- package/dist/esm/allowance/index.js +4 -0
- package/dist/esm/allowance/index.js.map +1 -0
- package/dist/{allowance → esm/allowance}/setAllowance.js +28 -11
- package/dist/esm/allowance/setAllowance.js.map +1 -0
- package/dist/esm/allowance/types.js +2 -0
- package/dist/esm/allowance/types.js.map +1 -0
- package/dist/{balance → esm/balance}/getBalance.js +5 -5
- package/dist/esm/balance/getBalance.js.map +1 -0
- package/dist/{balance → esm/balance}/getTokenBalance.js +2 -1
- package/dist/esm/balance/getTokenBalance.js.map +1 -0
- package/dist/esm/balance/index.js +3 -0
- package/dist/esm/balance/index.js.map +1 -0
- package/dist/{connectors.js → esm/connectors.js} +3 -2
- package/dist/esm/connectors.js.map +1 -0
- package/dist/{constants.js → esm/constants.js} +1 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/execution/BaseStepExecutor.js +51 -0
- package/dist/esm/execution/BaseStepExecutor.js.map +1 -0
- package/dist/esm/execution/EVMStepExecutor.js +299 -0
- package/dist/esm/execution/EVMStepExecutor.js.map +1 -0
- package/dist/esm/execution/RouteExecutionManager.js +268 -0
- package/dist/esm/execution/RouteExecutionManager.js.map +1 -0
- package/dist/esm/execution/StatusManager.js +216 -0
- package/dist/esm/execution/StatusManager.js.map +1 -0
- package/dist/esm/execution/StepExecutionManager.js +280 -0
- package/dist/esm/execution/StepExecutionManager.js.map +1 -0
- package/dist/{execution → esm/execution}/checkAllowance.js +5 -4
- package/dist/esm/execution/checkAllowance.js.map +1 -0
- package/dist/{execution → esm/execution}/checkBalance.js +3 -2
- package/dist/esm/execution/checkBalance.js.map +1 -0
- package/dist/esm/execution/index.js +3 -0
- package/dist/esm/execution/index.js.map +1 -0
- package/dist/{execution → esm/execution}/multisig.js +3 -2
- package/dist/esm/execution/multisig.js.map +1 -0
- package/dist/esm/execution/prepareRestart.js +64 -0
- package/dist/esm/execution/prepareRestart.js.map +1 -0
- package/dist/{execution → esm/execution}/stepComparison.js +4 -3
- package/dist/esm/execution/stepComparison.js.map +1 -0
- package/dist/{execution → esm/execution}/switchChain.js +3 -1
- package/dist/esm/execution/switchChain.js.map +1 -0
- package/dist/esm/execution/types.js +2 -0
- package/dist/esm/execution/types.js.map +1 -0
- package/dist/{execution → esm/execution}/utils.js +1 -0
- package/dist/esm/execution/utils.js.map +1 -0
- package/dist/{execution → esm/execution}/waitForReceivingTransaction.js +5 -4
- package/dist/esm/execution/waitForReceivingTransaction.js.map +1 -0
- package/dist/{helpers.js → esm/helpers.js} +4 -3
- package/dist/esm/helpers.js.map +1 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/providers/EVM.js +30 -0
- package/dist/esm/providers/EVM.js.map +1 -0
- package/dist/esm/providers/Solana.js +34 -0
- package/dist/esm/providers/Solana.js.map +1 -0
- package/dist/esm/providers/index.js +2 -0
- package/dist/esm/providers/index.js.map +1 -0
- package/dist/esm/providers/types.js +6 -0
- package/dist/esm/providers/types.js.map +1 -0
- package/dist/{request.js → esm/request.js} +16 -9
- package/dist/esm/request.js.map +1 -0
- package/dist/{services → esm/services}/ApiService.js +29 -28
- package/dist/esm/services/ApiService.js.map +1 -0
- package/dist/{services → esm/services}/ChainsService.js +16 -4
- package/dist/esm/services/ChainsService.js.map +1 -0
- package/dist/esm/services/ConfigService.js +143 -0
- package/dist/esm/services/ConfigService.js.map +1 -0
- package/dist/{typeguards.js → esm/typeguards.js} +1 -0
- package/dist/esm/typeguards.js.map +1 -0
- package/dist/{types → esm/types}/abi.js +1 -0
- package/dist/esm/types/abi.js.map +1 -0
- package/dist/esm/types/index.js +3 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/internal.js +2 -0
- package/dist/esm/types/internal.js.map +1 -0
- package/dist/{utils → esm/utils}/errors.js +25 -0
- package/dist/esm/utils/errors.js.map +1 -0
- package/dist/{utils → esm/utils}/getMaxPriorityFeePerGas.js +2 -1
- package/dist/esm/utils/getMaxPriorityFeePerGas.js.map +1 -0
- package/dist/esm/utils/index.js +6 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/{utils → esm/utils}/median.js +1 -0
- package/dist/esm/utils/median.js.map +1 -0
- package/dist/{utils → esm/utils}/parseError.js +4 -3
- package/dist/esm/utils/parseError.js.map +1 -0
- package/dist/{utils → esm/utils}/utils.js +2 -1
- package/dist/esm/utils/utils.js.map +1 -0
- package/dist/esm/version.js +3 -0
- package/dist/esm/version.js.map +1 -0
- package/dist/{LiFi.d.ts → types/LiFi.d.ts} +29 -21
- package/dist/types/LiFi.d.ts.map +1 -0
- package/dist/{cjs → types}/allowance/getAllowance.d.ts +2 -1
- package/dist/types/allowance/getAllowance.d.ts.map +1 -0
- package/dist/types/allowance/index.d.ts +4 -0
- package/dist/types/allowance/index.d.ts.map +1 -0
- package/dist/types/allowance/setAllowance.d.ts +7 -0
- package/dist/types/allowance/setAllowance.d.ts.map +1 -0
- package/dist/{allowance → types/allowance}/types.d.ts +1 -0
- package/dist/types/allowance/types.d.ts.map +1 -0
- package/dist/{balance → types/balance}/getBalance.d.ts +1 -0
- package/dist/types/balance/getBalance.d.ts.map +1 -0
- package/dist/{balance → types/balance}/getTokenBalance.d.ts +1 -0
- package/dist/types/balance/getTokenBalance.d.ts.map +1 -0
- package/dist/types/balance/index.d.ts +3 -0
- package/dist/types/balance/index.d.ts.map +1 -0
- package/dist/{cjs → types}/connectors.d.ts +2 -1
- package/dist/types/connectors.d.ts.map +1 -0
- package/dist/{cjs → types}/constants.d.ts +1 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/execution/BaseStepExecutor.d.ts +13 -0
- package/dist/types/execution/BaseStepExecutor.d.ts.map +1 -0
- package/dist/types/execution/EVMStepExecutor.d.ts +14 -0
- package/dist/types/execution/EVMStepExecutor.d.ts.map +1 -0
- package/dist/{cjs → types}/execution/RouteExecutionManager.d.ts +10 -8
- package/dist/types/execution/RouteExecutionManager.d.ts.map +1 -0
- package/dist/{execution → types/execution}/StatusManager.d.ts +9 -7
- package/dist/types/execution/StatusManager.d.ts.map +1 -0
- package/dist/{execution → types/execution}/StepExecutionManager.d.ts +4 -3
- package/dist/types/execution/StepExecutionManager.d.ts.map +1 -0
- package/dist/types/execution/checkAllowance.d.ts +6 -0
- package/dist/types/execution/checkAllowance.d.ts.map +1 -0
- package/dist/types/execution/checkBalance.d.ts +3 -0
- package/dist/types/execution/checkBalance.d.ts.map +1 -0
- package/dist/types/execution/index.d.ts +3 -0
- package/dist/types/execution/index.d.ts.map +1 -0
- package/dist/types/execution/multisig.d.ts +5 -0
- package/dist/types/execution/multisig.d.ts.map +1 -0
- package/dist/types/execution/prepareRestart.d.ts +3 -0
- package/dist/types/execution/prepareRestart.d.ts.map +1 -0
- package/dist/{cjs → types}/execution/stepComparison.d.ts +6 -4
- package/dist/types/execution/stepComparison.d.ts.map +1 -0
- package/dist/{cjs → types}/execution/switchChain.d.ts +6 -4
- package/dist/types/execution/switchChain.d.ts.map +1 -0
- package/dist/types/{internal.types.d.ts → execution/types.d.ts} +38 -98
- package/dist/types/execution/types.d.ts.map +1 -0
- package/dist/{execution → types/execution}/utils.d.ts +3 -2
- package/dist/types/execution/utils.d.ts.map +1 -0
- package/dist/types/execution/waitForReceivingTransaction.d.ts +4 -0
- package/dist/types/execution/waitForReceivingTransaction.d.ts.map +1 -0
- package/dist/{helpers.d.ts → types/helpers.d.ts} +4 -3
- package/dist/types/helpers.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -3
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/providers/EVM.d.ts +11 -0
- package/dist/types/providers/EVM.d.ts.map +1 -0
- package/dist/types/providers/Solana.d.ts +10 -0
- package/dist/types/providers/Solana.d.ts.map +1 -0
- package/dist/types/providers/index.d.ts +2 -0
- package/dist/types/providers/index.d.ts.map +1 -0
- package/dist/types/providers/types.d.ts +13 -0
- package/dist/types/providers/types.d.ts.map +1 -0
- package/dist/{request.d.ts → types/request.d.ts} +1 -0
- package/dist/types/request.d.ts.map +1 -0
- package/dist/{services → types/services}/ApiService.d.ts +5 -5
- package/dist/types/services/ApiService.d.ts.map +1 -0
- package/dist/{cjs → types}/services/ChainsService.d.ts +2 -1
- package/dist/types/services/ChainsService.d.ts.map +1 -0
- package/dist/{services → types/services}/ConfigService.d.ts +10 -6
- package/dist/types/services/ConfigService.d.ts.map +1 -0
- package/dist/{cjs → types}/typeguards.d.ts +3 -2
- package/dist/types/typeguards.d.ts.map +1 -0
- package/dist/{cjs → types}/types/abi.d.ts +1 -0
- package/dist/types/types/abi.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/internal.d.ts +61 -0
- package/dist/types/types/internal.d.ts.map +1 -0
- package/dist/{cjs → types}/utils/errors.d.ts +1 -0
- package/dist/types/utils/errors.d.ts.map +1 -0
- package/dist/{cjs → types}/utils/getMaxPriorityFeePerGas.d.ts +1 -0
- package/dist/types/utils/getMaxPriorityFeePerGas.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/{cjs → types}/utils/median.d.ts +1 -0
- package/dist/types/utils/median.d.ts.map +1 -0
- package/dist/{cjs → types}/utils/parseError.d.ts +6 -5
- package/dist/types/utils/parseError.d.ts.map +1 -0
- package/dist/{cjs → types}/utils/utils.d.ts +1 -0
- package/dist/types/utils/utils.d.ts.map +1 -0
- package/dist/types/version.d.ts +3 -0
- package/dist/types/version.d.ts.map +1 -0
- package/package.json +37 -96
- package/dist/LiFi.js +0 -246
- package/dist/allowance/getAllowance.d.ts +0 -6
- package/dist/allowance/index.d.ts +0 -3
- package/dist/allowance/index.js +0 -3
- package/dist/allowance/setAllowance.d.ts +0 -5
- package/dist/allowance/types.js +0 -1
- package/dist/balance/index.d.ts +0 -2
- package/dist/balance/index.js +0 -2
- package/dist/cjs/LiFi.d.ts +0 -171
- package/dist/cjs/allowance/index.d.ts +0 -3
- package/dist/cjs/allowance/setAllowance.d.ts +0 -5
- package/dist/cjs/allowance/types.d.ts +0 -27
- package/dist/cjs/balance/getBalance.d.ts +0 -2
- package/dist/cjs/balance/getTokenBalance.d.ts +0 -8
- package/dist/cjs/balance/index.d.ts +0 -2
- package/dist/cjs/execution/StatusManager.d.ts +0 -67
- package/dist/cjs/execution/StepExecutionManager.d.ts +0 -7
- package/dist/cjs/execution/StepExecutor.d.ts +0 -15
- package/dist/cjs/execution/StepExecutor.js +0 -62
- package/dist/cjs/execution/checkAllowance.d.ts +0 -4
- package/dist/cjs/execution/checkBalance.d.ts +0 -2
- package/dist/cjs/execution/index.d.ts +0 -1
- package/dist/cjs/execution/multisig.d.ts +0 -4
- package/dist/cjs/execution/prepareRestart.d.ts +0 -3
- package/dist/cjs/execution/utils.d.ts +0 -12
- package/dist/cjs/execution/waitForReceivingTransaction.d.ts +0 -3
- package/dist/cjs/helpers.d.ts +0 -18
- package/dist/cjs/index.d.ts +0 -5
- package/dist/cjs/request.d.ts +0 -9
- package/dist/cjs/services/ApiService.d.ts +0 -17
- package/dist/cjs/services/ConfigService.d.ts +0 -23
- package/dist/cjs/types/index.d.ts +0 -4
- package/dist/cjs/types/internal.types.d.ts +0 -143
- package/dist/cjs/utils/index.d.ts +0 -5
- package/dist/cjs/version.d.ts +0 -2
- package/dist/connectors.d.ts +0 -8
- package/dist/constants.d.ts +0 -6
- package/dist/execution/RouteExecutionManager.d.ts +0 -59
- package/dist/execution/RouteExecutionManager.js +0 -195
- package/dist/execution/StatusManager.js +0 -167
- package/dist/execution/StepExecutionManager.js +0 -260
- package/dist/execution/StepExecutor.d.ts +0 -15
- package/dist/execution/StepExecutor.js +0 -58
- package/dist/execution/checkAllowance.d.ts +0 -4
- package/dist/execution/checkBalance.d.ts +0 -2
- package/dist/execution/index.d.ts +0 -1
- package/dist/execution/index.js +0 -1
- package/dist/execution/multisig.d.ts +0 -4
- package/dist/execution/prepareRestart.d.ts +0 -3
- package/dist/execution/prepareRestart.js +0 -61
- package/dist/execution/stepComparison.d.ts +0 -14
- package/dist/execution/switchChain.d.ts +0 -21
- package/dist/execution/waitForReceivingTransaction.d.ts +0 -3
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -6
- package/dist/services/ChainsService.d.ts +0 -11
- package/dist/services/ConfigService.js +0 -99
- package/dist/typeguards.d.ts +0 -4
- package/dist/types/abi.d.ts +0 -5
- package/dist/types/index.js +0 -4
- package/dist/types/internal.types.js +0 -1
- package/dist/utils/errors.d.ts +0 -107
- package/dist/utils/getMaxPriorityFeePerGas.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/index.js +0 -5
- package/dist/utils/median.d.ts +0 -1
- package/dist/utils/parseError.d.ts +0 -37
- package/dist/utils/utils.d.ts +0 -10
- package/dist/version.d.ts +0 -2
- package/dist/version.js +0 -2
|
@@ -1,202 +1,219 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.RouteExecutionManager = void 0;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const prepareRestart_1 = require("./prepareRestart");
|
|
4
|
+
const ConfigService_js_1 = require("../services/ConfigService.js");
|
|
5
|
+
const errors_js_1 = require("../utils/errors.js");
|
|
6
|
+
const StatusManager_js_1 = require("./StatusManager.js");
|
|
7
|
+
const prepareRestart_js_1 = require("./prepareRestart.js");
|
|
12
8
|
class RouteExecutionManager {
|
|
13
|
-
constructor(
|
|
14
|
-
this
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
9
|
+
constructor(options) {
|
|
10
|
+
Object.defineProperty(this, "executionDictionary", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: {}
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(this, "executionPromiseDictionary", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true,
|
|
20
|
+
value: {}
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(this, "configService", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: void 0
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(this, "providers", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: void 0
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(this, "executeRoute", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: async (route, settings) => {
|
|
39
|
+
const clonedRoute = structuredClone(route);
|
|
40
|
+
let executionPromise = this.executionPromiseDictionary[clonedRoute.id];
|
|
41
|
+
if (executionPromise) {
|
|
42
|
+
return executionPromise;
|
|
43
|
+
}
|
|
44
|
+
executionPromise = this.executeSteps(clonedRoute, settings);
|
|
45
|
+
this.executionPromiseDictionary[clonedRoute.id] = executionPromise;
|
|
30
46
|
return executionPromise;
|
|
31
47
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const executionHalted = execution.executors.some((executor) => executor.executionStopped);
|
|
50
|
-
if (!executionHalted) {
|
|
51
|
-
// Check if we want to resume route execution in the background
|
|
52
|
-
this.updateRouteExecution(route, {
|
|
53
|
-
executeInBackground: settings?.executeInBackground,
|
|
54
|
-
});
|
|
55
|
-
const executionPromise = this.executionPromiseDictionary[clonedRoute.id];
|
|
56
|
-
return executionPromise ?? clonedRoute;
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(this, "resumeRoute", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
value: async (route, settings) => {
|
|
54
|
+
const clonedRoute = structuredClone(route);
|
|
55
|
+
const execution = this.executionDictionary[clonedRoute.id];
|
|
56
|
+
if (execution) {
|
|
57
|
+
const executionHalted = execution.executors.some((executor) => !executor.allowExecution);
|
|
58
|
+
if (!executionHalted) {
|
|
59
|
+
this.updateRouteExecution(route, {
|
|
60
|
+
executeInBackground: settings?.executeInBackground,
|
|
61
|
+
});
|
|
62
|
+
const executionPromise = this.executionPromiseDictionary[clonedRoute.id];
|
|
63
|
+
return executionPromise ?? clonedRoute;
|
|
64
|
+
}
|
|
57
65
|
}
|
|
66
|
+
await (0, prepareRestart_js_1.prepareRestart)(clonedRoute);
|
|
67
|
+
const executionPromise = this.executeSteps(clonedRoute, settings);
|
|
68
|
+
this.executionPromiseDictionary[clonedRoute.id] = executionPromise;
|
|
69
|
+
return executionPromise;
|
|
58
70
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(this, "executeSteps", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
configurable: true,
|
|
75
|
+
writable: true,
|
|
76
|
+
value: async (route, settings) => {
|
|
77
|
+
const config = this.configService.getConfig();
|
|
78
|
+
const execution = {
|
|
79
|
+
route,
|
|
80
|
+
executors: [],
|
|
81
|
+
settings: { ...config.defaultExecutionSettings, ...settings },
|
|
82
|
+
};
|
|
83
|
+
this.executionDictionary[route.id] = execution;
|
|
84
|
+
const statusManager = new StatusManager_js_1.StatusManager(route, execution.settings, (route) => {
|
|
85
|
+
if (this.executionDictionary[route.id]) {
|
|
86
|
+
execution.route = route;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
for (let index = 0; index < route.steps.length; index++) {
|
|
90
|
+
const execution = this.executionDictionary[route.id];
|
|
91
|
+
if (!execution) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
const step = route.steps[index];
|
|
95
|
+
const previousStep = route.steps[index - 1];
|
|
96
|
+
if (step.execution?.status === 'DONE') {
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
if (previousStep?.execution?.toAmount) {
|
|
100
|
+
step.action.fromAmount = previousStep.execution.toAmount;
|
|
101
|
+
}
|
|
102
|
+
try {
|
|
103
|
+
const provider = this.providers?.find((provider) => provider.isProviderStep(step));
|
|
104
|
+
if (!provider) {
|
|
105
|
+
throw new Error('SDK Execution Provider not found.');
|
|
106
|
+
}
|
|
107
|
+
const stepExecutor = await provider.getStepExecutor({
|
|
108
|
+
statusManager,
|
|
109
|
+
settings: execution.settings,
|
|
110
|
+
});
|
|
111
|
+
execution.executors.push(stepExecutor);
|
|
112
|
+
this.updateRouteExecution(route, execution.settings);
|
|
113
|
+
const executedStep = await stepExecutor.executeStep(step);
|
|
114
|
+
if (executedStep.execution?.status !== 'DONE') {
|
|
115
|
+
this.stopExecution(route);
|
|
116
|
+
}
|
|
117
|
+
if (stepExecutor.allowExecution) {
|
|
118
|
+
return route;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
catch (e) {
|
|
122
|
+
this.stopExecution(route);
|
|
123
|
+
throw e;
|
|
124
|
+
}
|
|
75
125
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
126
|
+
delete this.executionDictionary[route.id];
|
|
127
|
+
return route;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(this, "updateRouteExecution", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
configurable: true,
|
|
133
|
+
writable: true,
|
|
134
|
+
value: (route, settings) => {
|
|
79
135
|
const execution = this.executionDictionary[route.id];
|
|
80
|
-
// Check if execution has stopped in the meantime
|
|
81
136
|
if (!execution) {
|
|
82
|
-
|
|
137
|
+
return;
|
|
83
138
|
}
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
continue;
|
|
139
|
+
for (const executor of execution.executors) {
|
|
140
|
+
executor.setInteraction({
|
|
141
|
+
allowInteraction: !settings.executeInBackground,
|
|
142
|
+
allowUpdates: true,
|
|
143
|
+
});
|
|
90
144
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
145
|
+
execution.settings = {
|
|
146
|
+
...execution.settings,
|
|
147
|
+
...settings,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(this, "updateExecutionSettings", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
configurable: true,
|
|
154
|
+
writable: true,
|
|
155
|
+
value: (settings, route) => {
|
|
156
|
+
const execution = this.executionDictionary[route.id];
|
|
157
|
+
if (!execution) {
|
|
158
|
+
throw new errors_js_1.ValidationError("Can't set ExecutionSettings for the inactive route.");
|
|
94
159
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
160
|
+
const config = this.configService.getConfig();
|
|
161
|
+
execution.settings = {
|
|
162
|
+
...config.defaultExecutionSettings,
|
|
163
|
+
...settings,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(this, "stopExecution", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
configurable: true,
|
|
170
|
+
writable: true,
|
|
171
|
+
value: (route) => {
|
|
172
|
+
const execution = this.executionDictionary[route.id];
|
|
173
|
+
if (!execution) {
|
|
174
|
+
return route;
|
|
109
175
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
176
|
+
for (const executor of execution.executors) {
|
|
177
|
+
executor.setInteraction({
|
|
178
|
+
allowInteraction: false,
|
|
179
|
+
allowUpdates: false,
|
|
180
|
+
allowExecution: false,
|
|
181
|
+
});
|
|
113
182
|
}
|
|
183
|
+
delete this.executionDictionary[route.id];
|
|
184
|
+
return route;
|
|
114
185
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
this.updateRouteExecution = (route, settings) => {
|
|
125
|
-
const execution = this.executionDictionary[route.id];
|
|
126
|
-
if (!execution) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
for (const executor of execution.executors) {
|
|
130
|
-
executor.setInteraction({
|
|
131
|
-
allowInteraction: !settings.executeInBackground,
|
|
132
|
-
allowUpdates: true,
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
// Update active route settings so we know what the current state of execution is
|
|
136
|
-
execution.settings = {
|
|
137
|
-
...execution.settings,
|
|
138
|
-
...settings,
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Update the ExecutionSettings for an active route.
|
|
143
|
-
* @param settings - An object with execution settings.
|
|
144
|
-
* @param route - The active route that gets the new execution settings.
|
|
145
|
-
* @throws {ValidationError} Throws a ValidationError if parameters are invalid.
|
|
146
|
-
*/
|
|
147
|
-
this.updateExecutionSettings = (settings, route) => {
|
|
148
|
-
const execution = this.executionDictionary[route.id];
|
|
149
|
-
if (!execution) {
|
|
150
|
-
throw new errors_1.ValidationError("Can't set ExecutionSettings for the inactive route.");
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(this, "getActiveRoutes", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
configurable: true,
|
|
190
|
+
writable: true,
|
|
191
|
+
value: () => {
|
|
192
|
+
return Object.values(this.executionDictionary)
|
|
193
|
+
.map((dict) => dict?.route)
|
|
194
|
+
.filter(Boolean);
|
|
151
195
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
* Stops the execution of an active route.
|
|
160
|
-
* @param route - A route that is currently in execution.
|
|
161
|
-
* @returns The stopped route.
|
|
162
|
-
*/
|
|
163
|
-
this.stopExecution = (route) => {
|
|
164
|
-
const execution = this.executionDictionary[route.id];
|
|
165
|
-
if (!execution) {
|
|
166
|
-
return route;
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(this, "getActiveRoute", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
configurable: true,
|
|
200
|
+
writable: true,
|
|
201
|
+
value: (route) => {
|
|
202
|
+
return this.executionDictionary[route.id]?.route;
|
|
167
203
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
204
|
+
});
|
|
205
|
+
Object.defineProperty(this, "getProvider", {
|
|
206
|
+
enumerable: true,
|
|
207
|
+
configurable: true,
|
|
208
|
+
writable: true,
|
|
209
|
+
value: (type) => {
|
|
210
|
+
return this.providers?.find((provider) => provider.type === type);
|
|
174
211
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
* Get the list of active routes.
|
|
180
|
-
* @returns A list of routes.
|
|
181
|
-
*/
|
|
182
|
-
this.getActiveRoutes = () => {
|
|
183
|
-
return Object.values(this.executionDictionary)
|
|
184
|
-
.map((dict) => dict?.route)
|
|
185
|
-
.filter(Boolean);
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* Return the current route information for given route. The route has to be active.
|
|
189
|
-
* @param route - A route object.
|
|
190
|
-
* @returns The updated route.
|
|
191
|
-
*/
|
|
192
|
-
this.getActiveRoute = (route) => {
|
|
193
|
-
return this.executionDictionary[route.id]?.route;
|
|
194
|
-
};
|
|
195
|
-
this.configService = ConfigService_1.default.getInstance();
|
|
196
|
-
if (configUpdate) {
|
|
197
|
-
// Update API urls before we request chains
|
|
198
|
-
this.configService.updateConfig(configUpdate);
|
|
199
|
-
}
|
|
212
|
+
});
|
|
213
|
+
this.configService = ConfigService_js_1.ConfigService.getInstance();
|
|
214
|
+
this.configService.updateConfig(options);
|
|
215
|
+
this.providers = options.providers;
|
|
200
216
|
}
|
|
201
217
|
}
|
|
202
218
|
exports.RouteExecutionManager = RouteExecutionManager;
|
|
219
|
+
//# sourceMappingURL=RouteExecutionManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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