@lifi/sdk 4.0.0-alpha.8 → 4.0.0-beta.0
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/actions/getQuote.js +2 -1
- package/dist/cjs/actions/getQuote.js.map +1 -1
- package/dist/cjs/actions/getRelayedTransactionStatus.js +1 -1
- package/dist/cjs/actions/getRelayedTransactionStatus.js.map +1 -1
- package/dist/cjs/actions/getRelayerQuote.js +2 -1
- package/dist/cjs/actions/getRelayerQuote.js.map +1 -1
- package/dist/cjs/actions/getStepTransaction.js +18 -1
- package/dist/cjs/actions/getStepTransaction.js.map +1 -1
- package/dist/cjs/core/BaseStepExecutionTask.d.ts +5 -0
- package/dist/cjs/core/BaseStepExecutionTask.js +10 -0
- package/dist/cjs/core/BaseStepExecutionTask.js.map +1 -0
- package/dist/cjs/core/BaseStepExecutor.d.ts +10 -3
- package/dist/cjs/core/BaseStepExecutor.js +53 -0
- package/dist/cjs/core/BaseStepExecutor.js.map +1 -1
- package/dist/cjs/core/StatusManager.d.ts +13 -12
- package/dist/cjs/core/StatusManager.js +55 -61
- package/dist/cjs/core/StatusManager.js.map +1 -1
- package/dist/cjs/core/TaskPipeline.d.ts +7 -0
- package/dist/cjs/core/TaskPipeline.js +27 -0
- package/dist/cjs/core/TaskPipeline.js.map +1 -0
- package/dist/cjs/core/actionMessages.d.ts +4 -0
- package/dist/cjs/core/{processMessages.js → actionMessages.js} +25 -9
- package/dist/cjs/core/actionMessages.js.map +1 -0
- package/dist/cjs/core/execution.js +13 -1
- package/dist/cjs/core/execution.js.map +1 -1
- package/dist/cjs/core/prepareRestart.js +6 -6
- package/dist/cjs/core/prepareRestart.js.map +1 -1
- package/dist/cjs/core/storage.d.ts +17 -0
- package/dist/cjs/core/storage.js +36 -0
- package/dist/cjs/core/storage.js.map +1 -0
- package/dist/cjs/core/tasks/CheckBalanceTask.d.ts +5 -0
- package/dist/cjs/core/tasks/CheckBalanceTask.js +26 -0
- package/dist/cjs/core/tasks/CheckBalanceTask.js.map +1 -0
- package/dist/cjs/core/tasks/PrepareTransactionTask.d.ts +5 -0
- package/dist/cjs/core/tasks/PrepareTransactionTask.js +36 -0
- package/dist/cjs/core/tasks/PrepareTransactionTask.js.map +1 -0
- package/dist/cjs/core/tasks/WaitForTransactionStatusTask.d.ts +8 -0
- package/dist/cjs/core/tasks/WaitForTransactionStatusTask.js +73 -0
- package/dist/cjs/core/tasks/WaitForTransactionStatusTask.js.map +1 -0
- package/dist/cjs/core/{checkBalance.d.ts → tasks/helpers/checkBalance.d.ts} +1 -1
- package/dist/cjs/core/{checkBalance.js → tasks/helpers/checkBalance.js} +4 -4
- package/dist/cjs/core/tasks/helpers/checkBalance.js.map +1 -0
- package/dist/cjs/core/tasks/helpers/getTransactionRequestData.d.ts +2 -0
- package/dist/cjs/core/tasks/helpers/getTransactionRequestData.js +30 -0
- package/dist/cjs/core/tasks/helpers/getTransactionRequestData.js.map +1 -0
- package/dist/cjs/core/{stepComparison.d.ts → tasks/helpers/stepComparison.d.ts} +2 -2
- package/dist/cjs/core/{stepComparison.js → tasks/helpers/stepComparison.js} +3 -3
- package/dist/cjs/core/tasks/helpers/stepComparison.js.map +1 -0
- package/dist/cjs/core/tasks/helpers/waitForTransactionStatus.d.ts +4 -0
- package/dist/cjs/core/{waitForTransactionStatus.js → tasks/helpers/waitForTransactionStatus.js} +10 -8
- package/dist/cjs/core/tasks/helpers/waitForTransactionStatus.js.map +1 -0
- package/dist/cjs/core/utils.d.ts +6 -1
- package/dist/cjs/errors/SDKError.d.ts +3 -3
- package/dist/cjs/errors/SDKError.js +3 -3
- package/dist/cjs/errors/SDKError.js.map +1 -1
- package/dist/cjs/errors/constants.d.ts +2 -1
- package/dist/cjs/errors/constants.js +1 -0
- package/dist/cjs/errors/constants.js.map +1 -1
- package/dist/cjs/errors/errors.d.ts +5 -0
- package/dist/cjs/errors/errors.js +9 -1
- package/dist/cjs/errors/errors.js.map +1 -1
- package/dist/cjs/index.d.ts +15 -6
- package/dist/cjs/index.js +26 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/core.d.ts +21 -17
- package/dist/cjs/types/execution.d.ts +22 -0
- package/dist/cjs/types/execution.js +3 -0
- package/dist/cjs/types/execution.js.map +1 -0
- package/dist/cjs/utils/waitForResult.d.ts +1 -1
- package/dist/cjs/utils/waitForResult.js +6 -2
- package/dist/cjs/utils/waitForResult.js.map +1 -1
- package/dist/cjs/utils/withDedupe.d.ts +5 -0
- package/dist/cjs/utils/withDedupe.js +2 -0
- package/dist/cjs/utils/withDedupe.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/actions/getQuote.js +2 -1
- package/dist/esm/actions/getQuote.js.map +1 -1
- package/dist/esm/actions/getRelayedTransactionStatus.js +1 -1
- package/dist/esm/actions/getRelayedTransactionStatus.js.map +1 -1
- package/dist/esm/actions/getRelayerQuote.js +2 -1
- package/dist/esm/actions/getRelayerQuote.js.map +1 -1
- package/dist/esm/actions/getStepTransaction.js +18 -1
- package/dist/esm/actions/getStepTransaction.js.map +1 -1
- package/dist/esm/core/BaseStepExecutionTask.d.ts +5 -0
- package/dist/esm/core/BaseStepExecutionTask.js +6 -0
- package/dist/esm/core/BaseStepExecutionTask.js.map +1 -0
- package/dist/esm/core/BaseStepExecutor.d.ts +10 -3
- package/dist/esm/core/BaseStepExecutor.js +53 -0
- package/dist/esm/core/BaseStepExecutor.js.map +1 -1
- package/dist/esm/core/StatusManager.d.ts +40 -39
- package/dist/esm/core/StatusManager.js +86 -92
- package/dist/esm/core/StatusManager.js.map +1 -1
- package/dist/esm/core/TaskPipeline.d.ts +7 -0
- package/dist/esm/core/TaskPipeline.js +23 -0
- package/dist/esm/core/TaskPipeline.js.map +1 -0
- package/dist/esm/core/actionMessages.d.ts +4 -0
- package/dist/esm/core/{processMessages.js → actionMessages.js} +24 -8
- package/dist/esm/core/actionMessages.js.map +1 -0
- package/dist/esm/core/execution.js +14 -3
- package/dist/esm/core/execution.js.map +1 -1
- package/dist/esm/core/prepareRestart.js +10 -9
- package/dist/esm/core/prepareRestart.js.map +1 -1
- package/dist/esm/core/storage.d.ts +17 -0
- package/dist/esm/core/storage.js +30 -0
- package/dist/esm/core/storage.js.map +1 -0
- package/dist/esm/core/tasks/CheckBalanceTask.d.ts +5 -0
- package/dist/esm/core/tasks/CheckBalanceTask.js +22 -0
- package/dist/esm/core/tasks/CheckBalanceTask.js.map +1 -0
- package/dist/esm/core/tasks/PrepareTransactionTask.d.ts +5 -0
- package/dist/esm/core/tasks/PrepareTransactionTask.js +32 -0
- package/dist/esm/core/tasks/PrepareTransactionTask.js.map +1 -0
- package/dist/esm/core/tasks/WaitForTransactionStatusTask.d.ts +8 -0
- package/dist/esm/core/tasks/WaitForTransactionStatusTask.js +74 -0
- package/dist/esm/core/tasks/WaitForTransactionStatusTask.js.map +1 -0
- package/dist/esm/core/{checkBalance.d.ts → tasks/helpers/checkBalance.d.ts} +1 -1
- package/dist/esm/core/{checkBalance.js → tasks/helpers/checkBalance.js} +4 -4
- package/dist/esm/core/tasks/helpers/checkBalance.js.map +1 -0
- package/dist/esm/core/tasks/helpers/getTransactionRequestData.d.ts +2 -0
- package/dist/esm/core/tasks/helpers/getTransactionRequestData.js +26 -0
- package/dist/esm/core/tasks/helpers/getTransactionRequestData.js.map +1 -0
- package/dist/esm/core/{stepComparison.d.ts → tasks/helpers/stepComparison.d.ts} +2 -2
- package/dist/esm/core/{stepComparison.js → tasks/helpers/stepComparison.js} +3 -3
- package/dist/esm/core/tasks/helpers/stepComparison.js.map +1 -0
- package/dist/esm/core/tasks/helpers/waitForTransactionStatus.d.ts +4 -0
- package/dist/esm/core/{waitForTransactionStatus.js → tasks/helpers/waitForTransactionStatus.js} +9 -7
- package/dist/esm/core/tasks/helpers/waitForTransactionStatus.js.map +1 -0
- package/dist/esm/core/utils.d.ts +6 -1
- package/dist/esm/errors/SDKError.d.ts +3 -3
- package/dist/esm/errors/SDKError.js +4 -4
- package/dist/esm/errors/SDKError.js.map +1 -1
- package/dist/esm/errors/constants.d.ts +2 -1
- package/dist/esm/errors/constants.js +1 -0
- package/dist/esm/errors/constants.js.map +1 -1
- package/dist/esm/errors/errors.d.ts +10 -0
- package/dist/esm/errors/errors.js +12 -0
- package/dist/esm/errors/errors.js.map +1 -1
- package/dist/esm/index.d.ts +15 -6
- package/dist/esm/index.js +12 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/core.d.ts +25 -17
- package/dist/esm/types/execution.d.ts +23 -0
- package/dist/esm/types/execution.js +2 -0
- package/dist/esm/types/execution.js.map +1 -0
- package/dist/esm/utils/waitForResult.d.ts +2 -2
- package/dist/esm/utils/waitForResult.js +7 -3
- package/dist/esm/utils/waitForResult.js.map +1 -1
- package/dist/esm/utils/withDedupe.d.ts +10 -0
- package/dist/esm/utils/withDedupe.js +1 -1
- package/dist/esm/utils/withDedupe.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/actions/getRelayerQuote.d.ts.map +1 -1
- package/dist/types/actions/getStepTransaction.d.ts.map +1 -1
- package/dist/types/core/BaseStepExecutionTask.d.ts +6 -0
- package/dist/types/core/BaseStepExecutionTask.d.ts.map +1 -0
- package/dist/types/core/BaseStepExecutor.d.ts +10 -3
- package/dist/types/core/BaseStepExecutor.d.ts.map +1 -1
- package/dist/types/core/StatusManager.d.ts +40 -39
- package/dist/types/core/StatusManager.d.ts.map +1 -1
- package/dist/types/core/TaskPipeline.d.ts +8 -0
- package/dist/types/core/TaskPipeline.d.ts.map +1 -0
- package/dist/types/core/actionMessages.d.ts +5 -0
- package/dist/types/core/actionMessages.d.ts.map +1 -0
- package/dist/types/core/execution.d.ts.map +1 -1
- package/dist/types/core/prepareRestart.d.ts.map +1 -1
- package/dist/types/core/storage.d.ts +18 -0
- package/dist/types/core/storage.d.ts.map +1 -0
- package/dist/types/core/tasks/CheckBalanceTask.d.ts +6 -0
- package/dist/types/core/tasks/CheckBalanceTask.d.ts.map +1 -0
- package/dist/types/core/tasks/PrepareTransactionTask.d.ts +6 -0
- package/dist/types/core/tasks/PrepareTransactionTask.d.ts.map +1 -0
- package/dist/types/core/tasks/WaitForTransactionStatusTask.d.ts +9 -0
- package/dist/types/core/tasks/WaitForTransactionStatusTask.d.ts.map +1 -0
- package/dist/types/core/{checkBalance.d.ts → tasks/helpers/checkBalance.d.ts} +1 -1
- package/dist/types/core/tasks/helpers/checkBalance.d.ts.map +1 -0
- package/dist/types/core/tasks/helpers/getTransactionRequestData.d.ts +3 -0
- package/dist/types/core/tasks/helpers/getTransactionRequestData.d.ts.map +1 -0
- package/dist/types/core/{stepComparison.d.ts → tasks/helpers/stepComparison.d.ts} +2 -2
- package/dist/types/core/tasks/helpers/stepComparison.d.ts.map +1 -0
- package/dist/types/core/tasks/helpers/waitForTransactionStatus.d.ts +5 -0
- package/dist/types/core/tasks/helpers/waitForTransactionStatus.d.ts.map +1 -0
- package/dist/types/core/utils.d.ts +6 -1
- package/dist/types/core/utils.d.ts.map +1 -1
- package/dist/types/errors/SDKError.d.ts +3 -3
- package/dist/types/errors/SDKError.d.ts.map +1 -1
- package/dist/types/errors/constants.d.ts +2 -1
- package/dist/types/errors/constants.d.ts.map +1 -1
- package/dist/types/errors/errors.d.ts +10 -0
- package/dist/types/errors/errors.d.ts.map +1 -1
- package/dist/types/index.d.ts +15 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/core.d.ts +25 -17
- package/dist/types/types/core.d.ts.map +1 -1
- package/dist/types/types/execution.d.ts +24 -0
- package/dist/types/types/execution.d.ts.map +1 -0
- package/dist/types/utils/waitForResult.d.ts +2 -2
- package/dist/types/utils/waitForResult.d.ts.map +1 -1
- package/dist/types/utils/withDedupe.d.ts +10 -0
- package/dist/types/utils/withDedupe.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/actions/getQuote.ts +4 -1
- package/src/actions/getRelayedTransactionStatus.ts +1 -1
- package/src/actions/getRelayerQuote.ts +4 -1
- package/src/actions/getStepTransaction.ts +27 -11
- package/src/core/BaseStepExecutionTask.ts +9 -0
- package/src/core/BaseStepExecutor.ts +91 -2
- package/src/core/StatusManager.ts +108 -113
- package/src/core/TaskPipeline.ts +28 -0
- package/src/core/{processMessages.ts → actionMessages.ts} +32 -12
- package/src/core/execution.ts +17 -3
- package/src/core/prepareRestart.ts +12 -11
- package/src/core/storage.ts +42 -0
- package/src/core/tasks/CheckBalanceTask.ts +29 -0
- package/src/core/tasks/PrepareTransactionTask.ts +62 -0
- package/src/core/tasks/WaitForTransactionStatusTask.ts +114 -0
- package/src/core/{checkBalance.ts → tasks/helpers/checkBalance.ts} +5 -5
- package/src/core/tasks/helpers/getTransactionRequestData.ts +47 -0
- package/src/core/{stepComparison.ts → tasks/helpers/stepComparison.ts} +5 -5
- package/src/core/{waitForTransactionStatus.ts → tasks/helpers/waitForTransactionStatus.ts} +11 -9
- package/src/errors/SDKError.ts +5 -5
- package/src/errors/constants.ts +1 -0
- package/src/errors/errors.ts +24 -0
- package/src/index.ts +27 -7
- package/src/types/core.ts +30 -25
- package/src/types/execution.ts +32 -0
- package/src/utils/waitForResult.ts +9 -4
- package/src/utils/withDedupe.ts +1 -1
- package/src/version.ts +1 -1
- package/dist/cjs/core/checkBalance.js.map +0 -1
- package/dist/cjs/core/processMessages.d.ts +0 -4
- package/dist/cjs/core/processMessages.js.map +0 -1
- package/dist/cjs/core/stepComparison.js.map +0 -1
- package/dist/cjs/core/waitForDestinationChainTransaction.d.ts +0 -4
- package/dist/cjs/core/waitForDestinationChainTransaction.js +0 -69
- package/dist/cjs/core/waitForDestinationChainTransaction.js.map +0 -1
- package/dist/cjs/core/waitForTransactionStatus.d.ts +0 -4
- package/dist/cjs/core/waitForTransactionStatus.js.map +0 -1
- package/dist/esm/core/checkBalance.js.map +0 -1
- package/dist/esm/core/processMessages.d.ts +0 -4
- package/dist/esm/core/processMessages.js.map +0 -1
- package/dist/esm/core/stepComparison.js.map +0 -1
- package/dist/esm/core/waitForDestinationChainTransaction.d.ts +0 -4
- package/dist/esm/core/waitForDestinationChainTransaction.js +0 -71
- package/dist/esm/core/waitForDestinationChainTransaction.js.map +0 -1
- package/dist/esm/core/waitForTransactionStatus.d.ts +0 -4
- package/dist/esm/core/waitForTransactionStatus.js.map +0 -1
- package/dist/types/core/checkBalance.d.ts.map +0 -1
- package/dist/types/core/processMessages.d.ts +0 -5
- package/dist/types/core/processMessages.d.ts.map +0 -1
- package/dist/types/core/stepComparison.d.ts.map +0 -1
- package/dist/types/core/waitForDestinationChainTransaction.d.ts +0 -5
- package/dist/types/core/waitForDestinationChainTransaction.d.ts.map +0 -1
- package/dist/types/core/waitForTransactionStatus.d.ts +0 -5
- package/dist/types/core/waitForTransactionStatus.d.ts.map +0 -1
- package/src/core/waitForDestinationChainTransaction.ts +0 -106
package/dist/esm/types/core.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChainId, ChainType, CoinKey, ContractCall, ExtendedChain, FeeCost, GasCost, LiFiStep, Route, RouteOptions, Step, Substatus, Token, TokenAmount } from '@lifi/types';
|
|
2
|
+
import type { SDKStorage } from '../core/storage.js';
|
|
2
3
|
import type { ExtendedRequestInit } from './request.js';
|
|
3
4
|
export type RequestInterceptor = (request: ExtendedRequestInit) => ExtendedRequestInit | Promise<ExtendedRequestInit>;
|
|
4
5
|
export interface SDKBaseConfig {
|
|
@@ -15,6 +16,7 @@ export interface SDKBaseConfig {
|
|
|
15
16
|
preloadChains?: boolean;
|
|
16
17
|
chainsRefetchInterval?: number;
|
|
17
18
|
requestInterceptor?: RequestInterceptor;
|
|
19
|
+
storage?: SDKStorage;
|
|
18
20
|
}
|
|
19
21
|
export interface SDKConfig extends Partial<Omit<SDKBaseConfig, 'integrator'>> {
|
|
20
22
|
integrator: string;
|
|
@@ -47,11 +49,16 @@ export interface InteractionSettings {
|
|
|
47
49
|
allowUpdates?: boolean;
|
|
48
50
|
allowExecution?: boolean;
|
|
49
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Params passed when retrying executeStep after an ExecuteStepRetryError.
|
|
54
|
+
* Providers can use this to pass strategy-specific retry options (e.g. atomicityNotReady for Ethereum 7702).
|
|
55
|
+
*/
|
|
56
|
+
export type ExecuteStepRetryParams = Record<string, unknown>;
|
|
50
57
|
export interface StepExecutor {
|
|
51
58
|
allowUserInteraction: boolean;
|
|
52
59
|
allowExecution: boolean;
|
|
53
60
|
setInteraction(settings?: InteractionSettings): void;
|
|
54
|
-
executeStep(client: SDKClient, step: LiFiStepExtended): Promise<LiFiStepExtended>;
|
|
61
|
+
executeStep(client: SDKClient, step: LiFiStepExtended, retryParams?: ExecuteStepRetryParams): Promise<LiFiStepExtended>;
|
|
55
62
|
}
|
|
56
63
|
export interface RouteExecutionData {
|
|
57
64
|
route: Route;
|
|
@@ -128,42 +135,38 @@ export interface ExecutionOptions {
|
|
|
128
135
|
getContractCalls?: GetContractCallsHook;
|
|
129
136
|
adjustZeroOutputFromPreviousStep?: boolean;
|
|
130
137
|
executeInBackground?: boolean;
|
|
131
|
-
disableMessageSigning?: boolean;
|
|
132
138
|
/**
|
|
133
139
|
* @deprecated
|
|
134
140
|
*/
|
|
135
141
|
infiniteApproval?: boolean;
|
|
136
142
|
}
|
|
137
143
|
export type ExecutionStatus = 'ACTION_REQUIRED' | 'PENDING' | 'FAILED' | 'DONE';
|
|
138
|
-
export type
|
|
139
|
-
export type
|
|
140
|
-
export type
|
|
141
|
-
type:
|
|
142
|
-
status:
|
|
144
|
+
export type ExecutionActionStatus = 'STARTED' | 'ACTION_REQUIRED' | 'MESSAGE_REQUIRED' | 'RESET_REQUIRED' | 'PENDING' | 'FAILED' | 'DONE' | 'CANCELLED';
|
|
145
|
+
export type ExecutionActionType = 'PERMIT' | 'CHECK_ALLOWANCE' | 'NATIVE_PERMIT' | 'RESET_ALLOWANCE' | 'SET_ALLOWANCE' | 'SWAP' | 'CROSS_CHAIN' | 'RECEIVING_CHAIN';
|
|
146
|
+
export type ExecutionAction = {
|
|
147
|
+
type: ExecutionActionType;
|
|
148
|
+
status: ExecutionActionStatus;
|
|
149
|
+
message?: string;
|
|
143
150
|
substatus?: Substatus;
|
|
151
|
+
substatusMessage?: string;
|
|
144
152
|
chainId?: number;
|
|
145
153
|
txHash?: string;
|
|
146
|
-
taskId?: string;
|
|
147
154
|
txLink?: string;
|
|
155
|
+
taskId?: string;
|
|
148
156
|
txType?: TransactionMethodType;
|
|
149
|
-
|
|
150
|
-
doneAt?: number;
|
|
151
|
-
failedAt?: number;
|
|
152
|
-
pendingAt?: number;
|
|
153
|
-
startedAt: number;
|
|
154
|
-
message?: string;
|
|
157
|
+
txHex?: string;
|
|
155
158
|
error?: {
|
|
156
159
|
code: string | number;
|
|
157
160
|
message: string;
|
|
158
161
|
htmlMessage?: string;
|
|
159
162
|
};
|
|
160
|
-
[key: string]: any;
|
|
161
163
|
};
|
|
162
164
|
export interface Execution {
|
|
163
165
|
startedAt: number;
|
|
164
|
-
|
|
166
|
+
signedAt?: number;
|
|
165
167
|
status: ExecutionStatus;
|
|
166
|
-
|
|
168
|
+
actions: Array<ExecutionAction>;
|
|
169
|
+
lastActionType?: ExecutionActionType;
|
|
167
170
|
fromAmount?: string;
|
|
168
171
|
toAmount?: string;
|
|
169
172
|
toToken?: Token;
|
|
@@ -171,5 +174,10 @@ export interface Execution {
|
|
|
171
174
|
gasCosts?: GasCost[];
|
|
172
175
|
internalTxLink?: string;
|
|
173
176
|
externalTxLink?: string;
|
|
177
|
+
error?: {
|
|
178
|
+
code: string | number;
|
|
179
|
+
message: string;
|
|
180
|
+
htmlMessage?: string;
|
|
181
|
+
};
|
|
174
182
|
}
|
|
175
183
|
export type TransactionMethodType = 'standard' | 'relayed' | 'batched';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ExtendedChain } from '@lifi/types';
|
|
2
|
+
import type { StatusManager } from '../core/StatusManager.js';
|
|
3
|
+
import type { ExecuteStepRetryParams, ExecutionOptions, LiFiStepExtended, SDKClient } from './core.js';
|
|
4
|
+
export interface StepExecutorBaseContext {
|
|
5
|
+
statusManager: StatusManager;
|
|
6
|
+
executionOptions?: ExecutionOptions;
|
|
7
|
+
fromChain: ExtendedChain;
|
|
8
|
+
toChain: ExtendedChain;
|
|
9
|
+
isBridgeExecution: boolean;
|
|
10
|
+
client: SDKClient;
|
|
11
|
+
step: LiFiStepExtended;
|
|
12
|
+
allowUserInteraction: boolean;
|
|
13
|
+
retryParams?: ExecuteStepRetryParams;
|
|
14
|
+
}
|
|
15
|
+
export interface StepExecutorContext extends StepExecutorBaseContext {
|
|
16
|
+
pollingIntervalMs?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface TaskResult<TContext = Record<string, unknown>> {
|
|
19
|
+
status: TaskStatus;
|
|
20
|
+
/** Optional: data produced for downstream tasks. Pipeline merges into the executor context. */
|
|
21
|
+
context?: TContext;
|
|
22
|
+
}
|
|
23
|
+
export type TaskStatus = 'COMPLETED' | 'PAUSED';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution.js","sourceRoot":"","sources":["../../../src/types/execution.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Repeatedly calls a given asynchronous function until it resolves with a value
|
|
3
3
|
* @param fn The function that should be repeated
|
|
4
|
-
* @param interval The timeout in milliseconds between retries,
|
|
4
|
+
* @param interval The timeout in milliseconds between retries, or a function that receives the current poll count and returns the interval. Defaults to 5000
|
|
5
5
|
* @param maxRetries Maximum number of retries before throwing an error, defaults to 3
|
|
6
6
|
* @param shouldRetry Optional predicate to determine if an error should trigger a retry
|
|
7
7
|
* @returns The result of the fn function
|
|
8
8
|
* @throws Error if maximum retries is reached, if function keeps returning undefined, or if shouldRetry returns false
|
|
9
9
|
*/
|
|
10
|
-
export declare const waitForResult: <T>(fn: () => Promise<T | undefined>, interval?: number, maxRetries?: number, shouldRetry?: (count: number, error: unknown) => boolean) => Promise<T>;
|
|
10
|
+
export declare const waitForResult: <T>(fn: () => Promise<T | undefined>, interval?: number | ((poll: number) => number), maxRetries?: number, shouldRetry?: (count: number, error: unknown) => boolean) => Promise<T>;
|
|
@@ -2,7 +2,7 @@ import { sleep } from './sleep.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Repeatedly calls a given asynchronous function until it resolves with a value
|
|
4
4
|
* @param fn The function that should be repeated
|
|
5
|
-
* @param interval The timeout in milliseconds between retries,
|
|
5
|
+
* @param interval The timeout in milliseconds between retries, or a function that receives the current poll count and returns the interval. Defaults to 5000
|
|
6
6
|
* @param maxRetries Maximum number of retries before throwing an error, defaults to 3
|
|
7
7
|
* @param shouldRetry Optional predicate to determine if an error should trigger a retry
|
|
8
8
|
* @returns The result of the fn function
|
|
@@ -11,11 +11,14 @@ import { sleep } from './sleep.js';
|
|
|
11
11
|
export const waitForResult = async (fn, interval = 5000, maxRetries = 3, shouldRetry = () => true) => {
|
|
12
12
|
let result;
|
|
13
13
|
let attempts = 0;
|
|
14
|
+
let polls = 0;
|
|
15
|
+
const getInterval = typeof interval === 'function' ? interval : () => interval;
|
|
14
16
|
while (!result) {
|
|
15
17
|
try {
|
|
16
18
|
result = await fn();
|
|
17
19
|
if (!result) {
|
|
18
|
-
await sleep(
|
|
20
|
+
await sleep(getInterval(polls));
|
|
21
|
+
polls++;
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
catch (error) {
|
|
@@ -26,7 +29,8 @@ export const waitForResult = async (fn, interval = 5000, maxRetries = 3, shouldR
|
|
|
26
29
|
if (attempts === maxRetries) {
|
|
27
30
|
throw error;
|
|
28
31
|
}
|
|
29
|
-
await sleep(
|
|
32
|
+
await sleep(getInterval(polls));
|
|
33
|
+
polls++;
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
return result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForResult.js","sourceRoot":"","sources":["../../../src/utils/waitForResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,EAAgC,EAChC,
|
|
1
|
+
{"version":3,"file":"waitForResult.js","sourceRoot":"","sources":["../../../src/utils/waitForResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,EAAgC,EAChC,WAAgD,IAAI,EACpD,UAAU,GAAG,CAAC,EACd,cAA0D,GAAG,EAAE,CAAC,IAAI,EACxD,EAAE;IACd,IAAI,MAAqB,CAAA;IACzB,IAAI,QAAQ,GAAG,CAAC,CAAA;IAChB,IAAI,KAAK,GAAG,CAAC,CAAA;IAEb,MAAM,WAAW,GAAG,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAA;IAE9E,OAAO,CAAC,MAAM,EAAE,CAAC;QACf,IAAI,CAAC;YACH,MAAM,GAAG,MAAM,EAAE,EAAE,CAAA;YACnB,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAA;gBAC/B,KAAK,EAAE,CAAA;YACT,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;gBAClC,MAAM,KAAK,CAAA;YACb,CAAC;YACD,QAAQ,EAAE,CAAA;YACV,IAAI,QAAQ,KAAK,UAAU,EAAE,CAAC;gBAC5B,MAAM,KAAK,CAAA;YACb,CAAC;YACD,MAAM,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAA;YAC/B,KAAK,EAAE,CAAA;QACT,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map with a LRU (Least recently used) policy.
|
|
3
|
+
*
|
|
4
|
+
* https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU
|
|
5
|
+
*/
|
|
6
|
+
export declare class LruMap<value = unknown> extends Map<string, value> {
|
|
7
|
+
maxSize: number;
|
|
8
|
+
constructor(size: number);
|
|
9
|
+
set(key: string, value: value): this;
|
|
10
|
+
}
|
|
1
11
|
type WithDedupeOptions = {
|
|
2
12
|
enabled?: boolean | undefined;
|
|
3
13
|
id?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withDedupe.js","sourceRoot":"","sources":["../../../src/utils/withDedupe.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAwB,SAAQ,GAAkB;
|
|
1
|
+
{"version":3,"file":"withDedupe.js","sourceRoot":"","sources":["../../../src/utils/withDedupe.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,MAAwB,SAAQ,GAAkB;IAC7D,OAAO,CAAQ;IAEf,YAAY,IAAY;QACtB,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;IACrB,CAAC;IAEQ,GAAG,CAAC,GAAW,EAAE,KAAY;QACpC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QACrB,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAC7C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAM,CAAC,CAAA;QACxC,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAED,gBAAgB;AAChB,MAAM,YAAY,GAAG,aAAa,CAAC,IAAI,MAAM,CAAe,IAAI,CAAC,CAAA;AAOjE,uCAAuC;AACvC,MAAM,UAAU,UAAU,CACxB,EAAoB,EACpB,EAAE,OAAO,GAAG,IAAI,EAAE,EAAE,EAAqB;IAEzC,IAAI,CAAC,OAAO,IAAI,CAAC,EAAE,EAAE,CAAC;QACpB,OAAO,EAAE,EAAE,CAAA;IACb,CAAC;IACD,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;QACzB,OAAO,YAAY,CAAC,GAAG,CAAC,EAAE,CAAE,CAAA;IAC9B,CAAC;IACD,MAAM,OAAO,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAA;IAC3D,YAAY,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/sdk";
|
|
2
|
-
export declare const version = "4.0.0-
|
|
2
|
+
export declare const version = "4.0.0-beta.0";
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAA;AAC/B,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAA;AAC/B,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRelayerQuote.d.ts","sourceRoot":"","sources":["../../../src/actions/getRelayerQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EAER,cAAc,EACf,MAAM,aAAa,CAAA;AAKpB,OAAO,KAAK,EAAgB,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGjD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAC1B,QAAQ,SAAS,EACjB,QAAQ,sBAAsB,EAC9B,UAAU,cAAc,KACvB,OAAO,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"getRelayerQuote.d.ts","sourceRoot":"","sources":["../../../src/actions/getRelayerQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EAER,cAAc,EACf,MAAM,aAAa,CAAA;AAKpB,OAAO,KAAK,EAAgB,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGjD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAC1B,QAAQ,SAAS,EACjB,QAAQ,sBAAsB,EAC9B,UAAU,cAAc,KACvB,OAAO,CAAC,QAAQ,CA4DlB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getStepTransaction.d.ts","sourceRoot":"","sources":["../../../src/actions/getStepTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"getStepTransaction.d.ts","sourceRoot":"","sources":["../../../src/actions/getStepTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAIjD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,SAAS,EACjB,MAAM,QAAQ,GAAG,cAAc,EAC/B,UAAU,cAAc,KACvB,OAAO,CAAC,QAAQ,CAiClB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { StepExecutorContext, TaskResult } from '../types/execution.js';
|
|
2
|
+
export declare abstract class BaseStepExecutionTask {
|
|
3
|
+
shouldRun(_context: StepExecutorContext): Promise<boolean>;
|
|
4
|
+
abstract run(context: StepExecutorContext): Promise<TaskResult>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=BaseStepExecutionTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseStepExecutionTask.d.ts","sourceRoot":"","sources":["../../../src/core/BaseStepExecutionTask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE5E,8BAAsB,qBAAqB;IACzC,SAAS,CAAC,QAAQ,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1D,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;CAChE"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
1
|
+
import { ExecuteStepRetryError } from '../errors/errors.js';
|
|
2
|
+
import type { SDKError } from '../errors/SDKError.js';
|
|
3
|
+
import type { ExecuteStepRetryParams, ExecutionAction, ExecutionOptions, InteractionSettings, LiFiStepExtended, SDKClient, StepExecutor, StepExecutorOptions } from '../types/core.js';
|
|
4
|
+
import type { StepExecutorBaseContext, StepExecutorContext } from '../types/execution.js';
|
|
3
5
|
import { StatusManager } from './StatusManager.js';
|
|
6
|
+
import type { TaskPipeline } from './TaskPipeline.js';
|
|
4
7
|
export declare abstract class BaseStepExecutor implements StepExecutor {
|
|
5
8
|
protected executionOptions?: ExecutionOptions;
|
|
6
9
|
protected statusManager: StatusManager;
|
|
@@ -8,6 +11,10 @@ export declare abstract class BaseStepExecutor implements StepExecutor {
|
|
|
8
11
|
allowExecution: boolean;
|
|
9
12
|
constructor(options: StepExecutorOptions);
|
|
10
13
|
setInteraction: (settings?: InteractionSettings) => void;
|
|
11
|
-
|
|
14
|
+
private createBaseContext;
|
|
15
|
+
abstract createContext(baseContext: StepExecutorBaseContext): Promise<StepExecutorContext>;
|
|
16
|
+
abstract createPipeline(context: StepExecutorContext): TaskPipeline;
|
|
17
|
+
abstract parseErrors(error: Error, step?: LiFiStepExtended, action?: ExecutionAction, retryParams?: ExecuteStepRetryParams): Promise<SDKError | ExecuteStepRetryError>;
|
|
18
|
+
executeStep: (client: SDKClient, step: LiFiStepExtended, retryParams?: ExecuteStepRetryParams) => Promise<LiFiStepExtended>;
|
|
12
19
|
}
|
|
13
20
|
//# sourceMappingURL=BaseStepExecutor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseStepExecutor.d.ts","sourceRoot":"","sources":["../../../src/core/BaseStepExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BaseStepExecutor.d.ts","sourceRoot":"","sources":["../../../src/core/BaseStepExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AASrD,8BAAsB,gBAAiB,YAAW,YAAY;IAC5D,SAAS,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IAC7C,SAAS,CAAC,aAAa,EAAE,aAAa,CAAA;IAE/B,oBAAoB,UAAO;IAC3B,cAAc,UAAO;gBAEhB,OAAO,EAAE,mBAAmB;IAKxC,cAAc,GAAI,WAAW,mBAAmB,KAAG,IAAI,CAQtD;IAED,OAAO,CAAC,iBAAiB,CAqBxB;IAED,QAAQ,CAAC,aAAa,CACpB,WAAW,EAAE,uBAAuB,GACnC,OAAO,CAAC,mBAAmB,CAAC;IAE/B,QAAQ,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,GAAG,YAAY;IAEnE,QAAQ,CAAC,WAAW,CAClB,KAAK,EAAE,KAAK,EACZ,IAAI,CAAC,EAAE,gBAAgB,EACvB,MAAM,CAAC,EAAE,eAAe,EACxB,WAAW,CAAC,EAAE,sBAAsB,GACnC,OAAO,CAAC,QAAQ,GAAG,qBAAqB,CAAC;IAE5C,WAAW,GACT,QAAQ,SAAS,EACjB,MAAM,gBAAgB,EACtB,cAAc,sBAAsB,KACnC,OAAO,CAAC,gBAAgB,CAAC,CAwC3B;CACF"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import type { ChainId, LiFiStep } from '@lifi/types';
|
|
2
|
-
import type { Execution,
|
|
3
|
-
type
|
|
2
|
+
import type { Execution, ExecutionAction, ExecutionActionStatus, ExecutionActionType, LiFiStepExtended } from '../types/core.js';
|
|
3
|
+
type ActionProps = {
|
|
4
4
|
step: LiFiStepExtended;
|
|
5
|
-
type:
|
|
6
|
-
chainId
|
|
7
|
-
status
|
|
8
|
-
startedAt?: number;
|
|
5
|
+
type: ExecutionActionType;
|
|
6
|
+
chainId: ChainId;
|
|
7
|
+
status: ExecutionActionStatus;
|
|
9
8
|
};
|
|
10
9
|
/**
|
|
11
|
-
* Manages status updates of a route and provides various functions for tracking
|
|
12
|
-
* @param {string} routeId The route dd this StatusManger belongs to.
|
|
13
|
-
* @returns {StatusManager} An instance of StatusManager.
|
|
10
|
+
* Manages status updates of a route and provides various functions for tracking actions.
|
|
14
11
|
*/
|
|
15
12
|
export declare class StatusManager {
|
|
16
13
|
private readonly routeId;
|
|
@@ -18,50 +15,54 @@ export declare class StatusManager {
|
|
|
18
15
|
constructor(routeId: string);
|
|
19
16
|
/**
|
|
20
17
|
* Initializes the execution object of a Step.
|
|
21
|
-
* @param step
|
|
22
|
-
* @returns The initialized execution object for this step
|
|
18
|
+
* @param step The current step in execution
|
|
19
|
+
* @returns The initialized execution object for this step
|
|
23
20
|
*/
|
|
24
|
-
|
|
21
|
+
initializeExecution: (step: LiFiStepExtended) => Execution;
|
|
25
22
|
/**
|
|
26
23
|
* Updates the execution object of a Step.
|
|
27
|
-
* @param step
|
|
28
|
-
* @param
|
|
29
|
-
* @param execution Optional. Information about received tokens
|
|
24
|
+
* @param step The current step in execution
|
|
25
|
+
* @param execution Partial execution data to merge
|
|
30
26
|
* @returns The step with the updated execution object
|
|
31
27
|
*/
|
|
32
|
-
updateExecution(step: LiFiStepExtended,
|
|
28
|
+
updateExecution(step: LiFiStepExtended, execution: Partial<Execution>): LiFiStep;
|
|
33
29
|
/**
|
|
34
|
-
* Finds
|
|
30
|
+
* Finds an action of the specified type in the step's execution
|
|
35
31
|
* @param step The step to search in
|
|
36
|
-
* @param type The
|
|
37
|
-
* @
|
|
38
|
-
* @returns The found process or undefined if not found
|
|
32
|
+
* @param type The action type to find
|
|
33
|
+
* @returns The found action or undefined if not found
|
|
39
34
|
*/
|
|
40
|
-
|
|
35
|
+
findAction(step: LiFiStepExtended, type: ExecutionActionType): ExecutionAction | undefined;
|
|
41
36
|
/**
|
|
42
|
-
* Create and push a new
|
|
43
|
-
*
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
46
|
-
* @param
|
|
47
|
-
* @
|
|
37
|
+
* Create and push a new action into the execution.
|
|
38
|
+
* Caller is responsible for ensuring an action of this type does not already exist.
|
|
39
|
+
* @param step The step that should contain the new action.
|
|
40
|
+
* @param type Type of the action.
|
|
41
|
+
* @param chainId Chain Id of the action.
|
|
42
|
+
* @param status The initial status for the new action.
|
|
43
|
+
* @returns The created action.
|
|
48
44
|
*/
|
|
49
|
-
|
|
45
|
+
createAction: ({ step, type, chainId, status, }: ActionProps) => ExecutionAction;
|
|
50
46
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @param step The step
|
|
53
|
-
* @param type
|
|
54
|
-
* @param
|
|
55
|
-
* @param
|
|
56
|
-
* @returns The
|
|
47
|
+
* Find an existing action by type and update it, or create a new one if none exists.
|
|
48
|
+
* @param step The step that should contain the action.
|
|
49
|
+
* @param type Type of the action. Used to identify already existing actions.
|
|
50
|
+
* @param chainId Chain Id of the action (used when creating).
|
|
51
|
+
* @param status The status to set on the found or newly created action.
|
|
52
|
+
* @returns The updated or newly created action.
|
|
57
53
|
*/
|
|
58
|
-
|
|
54
|
+
initializeAction: ({ step, type, chainId, status, }: ActionProps) => ExecutionAction;
|
|
59
55
|
/**
|
|
60
|
-
*
|
|
61
|
-
* @param step The step where the
|
|
62
|
-
* @param type The
|
|
56
|
+
* Update an action object.
|
|
57
|
+
* @param step The step where the action should be updated
|
|
58
|
+
* @param type The action type to update
|
|
59
|
+
* @param status The status the action gets.
|
|
60
|
+
* @param [params] Additional parameters to append to the action.
|
|
61
|
+
* @returns The updated action
|
|
63
62
|
*/
|
|
64
|
-
|
|
63
|
+
updateAction: (step: LiFiStepExtended, type: ExecutionActionType, status: ExecutionActionStatus, params?: Partial<ExecutionAction & {
|
|
64
|
+
signedAt?: number;
|
|
65
|
+
}>) => ExecutionAction;
|
|
65
66
|
updateStepInRoute: (step: LiFiStep) => LiFiStep;
|
|
66
67
|
allowUpdates(value: boolean): void;
|
|
67
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusManager.d.ts","sourceRoot":"","sources":["../../../src/core/StatusManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"StatusManager.d.ts","sourceRoot":"","sources":["../../../src/core/StatusManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAIzB,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,gBAAgB,CAAA;IACtB,IAAI,EAAE,mBAAmB,CAAA;IACzB,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,qBAAqB,CAAA;CAC9B,CAAA;AAED;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAQ;IAChC,OAAO,CAAC,YAAY,CAAO;gBAEf,OAAO,EAAE,MAAM;IAI3B;;;;OAIG;IACH,mBAAmB,GAAI,MAAM,gBAAgB,KAAG,SAAS,CAqBxD;IAED;;;;;OAKG;IACH,eAAe,CACb,IAAI,EAAE,gBAAgB,EACtB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,GAC5B,QAAQ;IAYX;;;;;OAKG;IACH,UAAU,CACR,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,mBAAmB,GACxB,eAAe,GAAG,SAAS;IAU9B;;;;;;;;OAQG;IACH,YAAY,GAAI,kCAKb,WAAW,KAAG,eAAe,CAgB/B;IAED;;;;;;;OAOG;IACH,gBAAgB,GAAI,kCAKjB,WAAW,KAAG,eAAe,CAU/B;IAED;;;;;;;OAOG;IACH,YAAY,GACV,MAAM,gBAAgB,EACtB,MAAM,mBAAmB,EACzB,QAAQ,qBAAqB,EAC7B,SAAS,OAAO,CAAC,eAAe,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,KACxD,eAAe,CAoDjB;IAED,iBAAiB,GAAI,MAAM,QAAQ,KAAG,QAAQ,CAsB7C;IAED,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;CAGnC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StepExecutorContext, TaskResult } from '../types/execution.js';
|
|
2
|
+
import type { BaseStepExecutionTask } from './BaseStepExecutionTask.js';
|
|
3
|
+
export declare class TaskPipeline {
|
|
4
|
+
private readonly tasks;
|
|
5
|
+
constructor(tasks: BaseStepExecutionTask[]);
|
|
6
|
+
run(context: StepExecutorContext): Promise<TaskResult>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=TaskPipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskPipeline.d.ts","sourceRoot":"","sources":["../../../src/core/TaskPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAC5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyB;gBAEnC,KAAK,EAAE,qBAAqB,EAAE;IAIpC,GAAG,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;CAiB7D"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { StatusMessage, Substatus } from '@lifi/types';
|
|
2
|
+
import type { ExecutionActionStatus, ExecutionActionType } from '../types/core.js';
|
|
3
|
+
export declare function getActionMessage(type: ExecutionActionType, status: ExecutionActionStatus): string | undefined;
|
|
4
|
+
export declare function getSubstatusMessage(status: StatusMessage, substatus?: Substatus): string | undefined;
|
|
5
|
+
//# sourceMappingURL=actionMessages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionMessages.d.ts","sourceRoot":"","sources":["../../../src/core/actionMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,kBAAkB,CAAA;AAiFzB,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,qBAAqB,GAC5B,MAAM,GAAG,SAAS,CAGpB;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,aAAa,EACrB,SAAS,CAAC,EAAE,SAAS,GACpB,MAAM,GAAG,SAAS,CAMpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../../src/core/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAGxC,OAAO,KAAK,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../../src/core/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAGxC,OAAO,KAAK,EACV,gBAAgB,EAEhB,aAAa,EACb,SAAS,EAEV,MAAM,kBAAkB,CAAA;AAIzB;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACvB,QAAQ,SAAS,EACjB,OAAO,KAAK,EACZ,mBAAmB,gBAAgB,KAClC,OAAO,CAAC,aAAa,CAkBvB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GACtB,QAAQ,SAAS,EACjB,OAAO,KAAK,EACZ,mBAAmB,gBAAgB,KAClC,OAAO,CAAC,aAAa,CAuBvB,CAAA;AA8FD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,KAAK,EACZ,SAAS,gBAAgB,KACxB,IAmBF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,KAAG,KAejD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,aAAa,EAI/C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,KAAG,aAAa,GAAG,SAEhE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareRestart.d.ts","sourceRoot":"","sources":["../../../src/core/prepareRestart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,eAAO,MAAM,cAAc,GAAI,OAAO,aAAa,
|
|
1
|
+
{"version":3,"file":"prepareRestart.d.ts","sourceRoot":"","sources":["../../../src/core/prepareRestart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,eAAO,MAAM,cAAc,GAAI,OAAO,aAAa,SA2BlD,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface SDKStorage {
|
|
2
|
+
get(key: string): string | null | Promise<string | null>;
|
|
3
|
+
set(key: string, value: string): void | Promise<void>;
|
|
4
|
+
remove(key: string): void | Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
export declare class LocalStorageAdapter implements SDKStorage {
|
|
7
|
+
get(key: string): string | null;
|
|
8
|
+
set(key: string, value: string): void;
|
|
9
|
+
remove(key: string): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class InMemoryStorage implements SDKStorage {
|
|
12
|
+
private store;
|
|
13
|
+
get(key: string): string | null;
|
|
14
|
+
set(key: string, value: string): void;
|
|
15
|
+
remove(key: string): void;
|
|
16
|
+
}
|
|
17
|
+
export declare function createDefaultStorage(): SDKStorage;
|
|
18
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/core/storage.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IACxD,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACrD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C;AAED,qBAAa,mBAAoB,YAAW,UAAU;IACpD,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAI/B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAIrC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAG1B;AAED,qBAAa,eAAgB,YAAW,UAAU;IAChD,OAAO,CAAC,KAAK,CAA4B;IAEzC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAI/B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAIrC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAG1B;AAED,wBAAgB,oBAAoB,IAAI,UAAU,CAKjD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { StepExecutorContext, TaskResult } from '../../types/execution.js';
|
|
2
|
+
import { BaseStepExecutionTask } from '../BaseStepExecutionTask.js';
|
|
3
|
+
export declare class CheckBalanceTask extends BaseStepExecutionTask {
|
|
4
|
+
run(context: StepExecutorContext): Promise<TaskResult>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=CheckBalanceTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckBalanceTask.d.ts","sourceRoot":"","sources":["../../../../src/core/tasks/CheckBalanceTask.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,qBAAa,gBAAiB,SAAQ,qBAAqB;IACnD,GAAG,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;CAqB7D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { StepExecutorContext, TaskResult } from '../../types/execution.js';
|
|
2
|
+
import { BaseStepExecutionTask } from '../BaseStepExecutionTask.js';
|
|
3
|
+
export declare class PrepareTransactionTask extends BaseStepExecutionTask {
|
|
4
|
+
run(context: StepExecutorContext): Promise<TaskResult>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=PrepareTransactionTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrepareTransactionTask.d.ts","sourceRoot":"","sources":["../../../../src/core/tasks/PrepareTransactionTask.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,qBAAa,sBAAuB,SAAQ,qBAAqB;IACzD,GAAG,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;CAqD7D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExecutionActionType } from '../../types/core.js';
|
|
2
|
+
import type { StepExecutorContext, TaskResult } from '../../types/execution.js';
|
|
3
|
+
import { BaseStepExecutionTask } from '../BaseStepExecutionTask.js';
|
|
4
|
+
export declare class WaitForTransactionStatusTask extends BaseStepExecutionTask {
|
|
5
|
+
readonly actionType: ExecutionActionType;
|
|
6
|
+
constructor(actionType: ExecutionActionType);
|
|
7
|
+
run(context: StepExecutorContext): Promise<TaskResult>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=WaitForTransactionStatusTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WaitForTransactionStatusTask.d.ts","sourceRoot":"","sources":["../../../../src/core/tasks/WaitForTransactionStatusTask.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,qBAAa,4BAA6B,SAAQ,qBAAqB;IACrE,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAA;gBAE5B,UAAU,EAAE,mBAAmB;IAKrC,GAAG,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;CAgG7D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { LiFiStep } from '@lifi/types';
|
|
2
|
-
import type { SDKClient } from '
|
|
2
|
+
import type { SDKClient } from '../../../types/core.js';
|
|
3
3
|
export declare const checkBalance: (client: SDKClient, walletAddress: string, step: LiFiStep, depth?: number) => Promise<void>;
|
|
4
4
|
//# sourceMappingURL=checkBalance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkBalance.d.ts","sourceRoot":"","sources":["../../../../../src/core/tasks/helpers/checkBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAIvD,eAAO,MAAM,YAAY,GACvB,QAAQ,SAAS,EACjB,eAAe,MAAM,EACrB,MAAM,QAAQ,EACd,cAAS,KACR,OAAO,CAAC,IAAI,CAsCd,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTransactionRequestData.d.ts","sourceRoot":"","sources":["../../../../../src/core/tasks/helpers/getTransactionRequestData.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAEjB,MAAM,wBAAwB,CAAA;AAE/B,eAAO,MAAM,yBAAyB,GACpC,MAAM,gBAAgB,EACtB,mBAAmB,gBAAgB,KAClC,OAAO,CAAC,MAAM,CAmChB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LiFiStep } from '@lifi/types';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { StatusManager } from '../../../core/StatusManager.js';
|
|
3
|
+
import type { ExecutionOptions } from '../../../types/core.js';
|
|
4
4
|
/**
|
|
5
5
|
* This method checks whether the new and updated Step meets the required exchange rate conditions.
|
|
6
6
|
* If yes it returns the updated Step.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepComparison.d.ts","sourceRoot":"","sources":["../../../../../src/core/tasks/helpers/stepComparison.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAInE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,GACzB,eAAe,aAAa,EAC5B,SAAS,QAAQ,EACjB,SAAS,QAAQ,EACjB,sBAAsB,OAAO,EAC7B,mBAAmB,gBAAgB,KAClC,OAAO,CAAC,QAAQ,CAwBlB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { LiFiStep, StatusResponse } from '@lifi/types';
|
|
2
|
+
import type { ExecutionActionType, SDKClient } from '../../../types/core.js';
|
|
3
|
+
import type { StatusManager } from '../../StatusManager.js';
|
|
4
|
+
export declare function waitForTransactionStatus(client: SDKClient, statusManager: StatusManager, txHash: string, step: LiFiStep, actionType: ExecutionActionType, interval?: number): Promise<StatusResponse>;
|
|
5
|
+
//# sourceMappingURL=waitForTransactionStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitForTransactionStatus.d.ts","sourceRoot":"","sources":["../../../../../src/core/tasks/helpers/waitForTransactionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAG3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAG5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAI3D,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,SAAS,EACjB,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,QAAQ,EACd,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,SAAQ,GACf,OAAO,CAAC,cAAc,CAAC,CAyDzB"}
|
|
@@ -82,14 +82,19 @@ export declare function getRpcUrlsFromChains(existingRpcUrls: RPCUrls, chains: E
|
|
|
82
82
|
988?: string[] | undefined;
|
|
83
83
|
4326?: string[] | undefined;
|
|
84
84
|
3637?: string[] | undefined;
|
|
85
|
-
|
|
85
|
+
5734951?: string[] | undefined;
|
|
86
|
+
2818?: string[] | undefined;
|
|
87
|
+
4217?: string[] | undefined;
|
|
86
88
|
1161011141099710?: string[] | undefined;
|
|
87
89
|
111971151099710?: string[] | undefined;
|
|
90
|
+
1151111081099710?: string[] | undefined;
|
|
91
|
+
1021111031099710?: string[] | undefined;
|
|
88
92
|
9270000000000000?: string[] | undefined;
|
|
89
93
|
20000000000001?: string[] | undefined;
|
|
90
94
|
20000000000002?: string[] | undefined;
|
|
91
95
|
20000000000003?: string[] | undefined;
|
|
92
96
|
20000000000004?: string[] | undefined;
|
|
97
|
+
20000000000005?: string[] | undefined;
|
|
93
98
|
728126428?: string[] | undefined;
|
|
94
99
|
};
|
|
95
100
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAK/C;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,QAAQ,GAChB,OAAO,CAaT;AAED,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,OAAO,EACxB,MAAM,EAAE,aAAa,EAAE,EACvB,UAAU,CAAC,EAAE,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAK/C;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,QAAQ,GAChB,OAAO,CAaT;AAED,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,OAAO,EACxB,MAAM,EAAE,aAAa,EAAE,EACvB,UAAU,CAAC,EAAE,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBvB"}
|