@gearbox-protocol/sdk 14.11.0-next.9 → 14.11.1
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/common-utils/utils/index.js +0 -2
- package/dist/cjs/dev/index.js +1 -3
- package/dist/cjs/dev/isOutOfSyncError.js +3 -1
- package/dist/cjs/history/assembleOperations.js +6 -6
- package/dist/cjs/history/classifyMulticallOperations.js +25 -31
- package/dist/cjs/{preview/trace → history}/errors.js +26 -0
- package/dist/cjs/history/extractProtocolCalls.js +53 -0
- package/dist/cjs/{preview/trace → history}/extractTransfers.js +23 -11
- package/dist/cjs/{preview/trace → history}/findFacadeCalls.js +3 -3
- package/dist/cjs/history/index.js +2 -0
- package/dist/cjs/{preview/parse/types-facades.js → history/inner-operations.js} +2 -2
- package/dist/cjs/{preview/parse/types-adapters.js → history/internal-types.js} +2 -2
- package/dist/cjs/history/parseCreditAccountTransaction.js +6 -5
- package/dist/cjs/history/toLegacyOperation.js +2 -6
- package/dist/cjs/{common-utils/utils/trace.js → history/trace-utils.js} +5 -62
- package/dist/cjs/permissionless/bindings/pricefeeds/curve-twap.js +2 -2
- package/dist/cjs/plugins/adapters/contracts/AbstractAdapter.js +37 -25
- package/dist/cjs/plugins/adapters/contracts/AccountMigratorAdapterContract.js +0 -9
- package/dist/esm/common-utils/utils/index.js +0 -1
- package/dist/esm/dev/index.js +0 -1
- package/dist/esm/dev/isOutOfSyncError.js +3 -1
- package/dist/esm/history/assembleOperations.js +6 -8
- package/dist/esm/history/classifyMulticallOperations.js +23 -29
- package/dist/esm/{preview/trace → history}/errors.js +24 -0
- package/dist/esm/history/extractProtocolCalls.js +32 -0
- package/dist/esm/{preview/trace → history}/extractTransfers.js +23 -11
- package/dist/esm/{preview/trace → history}/findFacadeCalls.js +2 -4
- package/dist/esm/history/index.js +1 -0
- package/dist/esm/history/parseCreditAccountTransaction.js +4 -3
- package/dist/esm/history/toLegacyOperation.js +2 -6
- package/dist/esm/history/trace-utils.js +36 -0
- package/dist/esm/permissionless/bindings/pricefeeds/curve-twap.js +2 -2
- package/dist/esm/plugins/adapters/contracts/AbstractAdapter.js +38 -28
- package/dist/esm/plugins/adapters/contracts/AccountMigratorAdapterContract.js +0 -9
- package/dist/types/common-utils/utils/index.d.ts +0 -1
- package/dist/types/dev/index.d.ts +0 -1
- package/dist/types/history/assembleOperations.d.ts +6 -11
- package/dist/types/history/classifyMulticallOperations.d.ts +9 -21
- package/dist/types/{preview/trace → history}/errors.d.ts +10 -0
- package/dist/types/history/extractProtocolCalls.d.ts +8 -0
- package/dist/types/{preview/trace → history}/extractTransfers.d.ts +7 -15
- package/dist/types/{preview/trace → history}/findFacadeCalls.d.ts +2 -3
- package/dist/types/history/index.d.ts +1 -0
- package/dist/types/history/inner-operations.d.ts +57 -0
- package/dist/types/history/internal-types.d.ts +47 -0
- package/dist/types/history/mapOperations.d.ts +9 -7
- package/dist/types/history/trace-utils.d.ts +12 -0
- package/dist/types/history/types.d.ts +71 -22
- package/dist/types/plugins/adapters/contracts/AbstractAdapter.d.ts +17 -16
- package/dist/types/plugins/adapters/contracts/AccountMigratorAdapterContract.d.ts +1 -10
- package/dist/types/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/Curve2AssetsAdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/Curve3AssetsAdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/Curve4AssetsAdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/CurveV1AdapterDeposit.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/CurveV1AdapterStETHContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/DaiUsdsAdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/ERC4626AdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/LidoV1AdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/MellowDVVAdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/UniswapV2AdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/WstETHV1AdapterContract.d.ts +1 -1
- package/dist/types/plugins/adapters/transferHelpers.d.ts +1 -1
- package/dist/types/plugins/adapters/types.d.ts +46 -8
- package/package.json +12 -17
- package/dist/cjs/dev/verifyTestnet.js +0 -124
- package/dist/cjs/plugins/adapters/transfers.js +0 -16
- package/dist/cjs/preview/index.js +0 -28
- package/dist/cjs/preview/package.json +0 -1
- package/dist/cjs/preview/parse/classifyInnerOperations.js +0 -92
- package/dist/cjs/preview/parse/errors.js +0 -47
- package/dist/cjs/preview/parse/extractExpectedBalanceChanges.js +0 -48
- package/dist/cjs/preview/parse/index.js +0 -34
- package/dist/cjs/preview/parse/parseFacadeOperationCalldata.js +0 -115
- package/dist/cjs/preview/parse/parseOperationCalldata.js +0 -46
- package/dist/cjs/preview/parse/parsePoolOperationCalldata.js +0 -77
- package/dist/cjs/preview/parse/types-pools.js +0 -16
- package/dist/cjs/preview/parse/types.js +0 -37
- package/dist/cjs/preview/prerequisites/AllowancePrerequisite.js +0 -78
- package/dist/cjs/preview/prerequisites/BalancePrerequisite.js +0 -77
- package/dist/cjs/preview/prerequisites/Prerequisite.js +0 -85
- package/dist/cjs/preview/prerequisites/buildPrerequisites.js +0 -187
- package/dist/cjs/preview/prerequisites/index.js +0 -34
- package/dist/cjs/preview/prerequisites/prepareAction.js +0 -48
- package/dist/cjs/preview/prerequisites/runPrerequisites.js +0 -71
- package/dist/cjs/preview/prerequisites/types.js +0 -16
- package/dist/cjs/preview/simulate/constants.js +0 -28
- package/dist/cjs/preview/simulate/errors.js +0 -98
- package/dist/cjs/preview/simulate/extractERC20Transfers.js +0 -47
- package/dist/cjs/preview/simulate/holders.js +0 -45
- package/dist/cjs/preview/simulate/index.js +0 -40
- package/dist/cjs/preview/simulate/simulateFacadeOperation.js +0 -30
- package/dist/cjs/preview/simulate/simulateOperation.js +0 -37
- package/dist/cjs/preview/simulate/simulatePoolOpMulticall.js +0 -155
- package/dist/cjs/preview/simulate/simulatePoolOpV1.js +0 -106
- package/dist/cjs/preview/simulate/simulatePoolOperation.js +0 -62
- package/dist/cjs/preview/simulate/types.js +0 -16
- package/dist/cjs/preview/trace/extractAdapterCallTraces.js +0 -58
- package/dist/cjs/preview/trace/index.js +0 -30
- package/dist/cjs/preview/trace/types.js +0 -16
- package/dist/esm/common-utils/utils/trace.js +0 -93
- package/dist/esm/dev/verifyTestnet.js +0 -98
- package/dist/esm/preview/index.js +0 -4
- package/dist/esm/preview/package.json +0 -1
- package/dist/esm/preview/parse/classifyInnerOperations.js +0 -68
- package/dist/esm/preview/parse/errors.js +0 -22
- package/dist/esm/preview/parse/extractExpectedBalanceChanges.js +0 -24
- package/dist/esm/preview/parse/index.js +0 -7
- package/dist/esm/preview/parse/parseFacadeOperationCalldata.js +0 -91
- package/dist/esm/preview/parse/parseOperationCalldata.js +0 -25
- package/dist/esm/preview/parse/parsePoolOperationCalldata.js +0 -53
- package/dist/esm/preview/parse/types-facades.js +0 -0
- package/dist/esm/preview/parse/types-pools.js +0 -0
- package/dist/esm/preview/parse/types.js +0 -9
- package/dist/esm/preview/prerequisites/AllowancePrerequisite.js +0 -57
- package/dist/esm/preview/prerequisites/BalancePrerequisite.js +0 -56
- package/dist/esm/preview/prerequisites/Prerequisite.js +0 -63
- package/dist/esm/preview/prerequisites/buildPrerequisites.js +0 -163
- package/dist/esm/preview/prerequisites/index.js +0 -7
- package/dist/esm/preview/prerequisites/prepareAction.js +0 -23
- package/dist/esm/preview/prerequisites/runPrerequisites.js +0 -47
- package/dist/esm/preview/prerequisites/types.js +0 -0
- package/dist/esm/preview/simulate/constants.js +0 -4
- package/dist/esm/preview/simulate/errors.js +0 -75
- package/dist/esm/preview/simulate/extractERC20Transfers.js +0 -23
- package/dist/esm/preview/simulate/holders.js +0 -21
- package/dist/esm/preview/simulate/index.js +0 -12
- package/dist/esm/preview/simulate/simulateFacadeOperation.js +0 -6
- package/dist/esm/preview/simulate/simulateOperation.js +0 -13
- package/dist/esm/preview/simulate/simulatePoolOpMulticall.js +0 -130
- package/dist/esm/preview/simulate/simulatePoolOpV1.js +0 -82
- package/dist/esm/preview/simulate/simulatePoolOperation.js +0 -41
- package/dist/esm/preview/simulate/types.js +0 -0
- package/dist/esm/preview/trace/extractAdapterCallTraces.js +0 -40
- package/dist/esm/preview/trace/index.js +0 -5
- package/dist/esm/preview/trace/types.js +0 -0
- package/dist/types/common-utils/utils/trace.d.ts +0 -73
- package/dist/types/dev/verifyTestnet.d.ts +0 -82
- package/dist/types/plugins/adapters/transfers.d.ts +0 -17
- package/dist/types/preview/index.d.ts +0 -4
- package/dist/types/preview/parse/classifyInnerOperations.d.ts +0 -21
- package/dist/types/preview/parse/errors.d.ts +0 -17
- package/dist/types/preview/parse/extractExpectedBalanceChanges.d.ts +0 -22
- package/dist/types/preview/parse/index.d.ts +0 -7
- package/dist/types/preview/parse/parseFacadeOperationCalldata.d.ts +0 -19
- package/dist/types/preview/parse/parseOperationCalldata.d.ts +0 -23
- package/dist/types/preview/parse/parsePoolOperationCalldata.d.ts +0 -17
- package/dist/types/preview/parse/types-adapters.d.ts +0 -69
- package/dist/types/preview/parse/types-facades.d.ts +0 -157
- package/dist/types/preview/parse/types-pools.d.ts +0 -55
- package/dist/types/preview/parse/types.d.ts +0 -44
- package/dist/types/preview/prerequisites/AllowancePrerequisite.d.ts +0 -24
- package/dist/types/preview/prerequisites/BalancePrerequisite.d.ts +0 -23
- package/dist/types/preview/prerequisites/Prerequisite.d.ts +0 -60
- package/dist/types/preview/prerequisites/buildPrerequisites.d.ts +0 -16
- package/dist/types/preview/prerequisites/index.d.ts +0 -7
- package/dist/types/preview/prerequisites/prepareAction.d.ts +0 -52
- package/dist/types/preview/prerequisites/runPrerequisites.d.ts +0 -12
- package/dist/types/preview/prerequisites/types.d.ts +0 -78
- package/dist/types/preview/simulate/constants.d.ts +0 -6
- package/dist/types/preview/simulate/errors.d.ts +0 -51
- package/dist/types/preview/simulate/extractERC20Transfers.d.ts +0 -11
- package/dist/types/preview/simulate/holders.d.ts +0 -7
- package/dist/types/preview/simulate/index.d.ts +0 -9
- package/dist/types/preview/simulate/simulateFacadeOperation.d.ts +0 -25
- package/dist/types/preview/simulate/simulateOperation.d.ts +0 -20
- package/dist/types/preview/simulate/simulatePoolOpMulticall.d.ts +0 -28
- package/dist/types/preview/simulate/simulatePoolOpV1.d.ts +0 -14
- package/dist/types/preview/simulate/simulatePoolOperation.d.ts +0 -8
- package/dist/types/preview/simulate/types.d.ts +0 -79
- package/dist/types/preview/trace/extractAdapterCallTraces.d.ts +0 -23
- package/dist/types/preview/trace/index.d.ts +0 -5
- package/dist/types/preview/trace/types.d.ts +0 -21
- /package/dist/esm/{plugins/adapters/transfers.js → history/inner-operations.js} +0 -0
- /package/dist/esm/{preview/parse/types-adapters.js → history/internal-types.js} +0 -0
|
@@ -709,6 +709,6 @@ export declare class MellowDVVAdapterContract extends AbstractAdapterContract<ab
|
|
|
709
709
|
/**
|
|
710
710
|
* @see https://github.com/Gearbox-protocol/charts_server/blob/master/core/operation_type_v3.go#L32-L38
|
|
711
711
|
*/
|
|
712
|
-
classifyLegacyOperation(parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
|
|
712
|
+
protected classifyLegacyOperation(parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
|
|
713
713
|
}
|
|
714
714
|
export {};
|
|
@@ -676,6 +676,6 @@ export declare class MellowERC4626VaultAdapterContract extends AbstractAdapterCo
|
|
|
676
676
|
*
|
|
677
677
|
* @see https://github.com/Gearbox-protocol/charts_server/blob/master/core/operation_type_v3.go#L32-L38
|
|
678
678
|
*/
|
|
679
|
-
classifyLegacyOperation(parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
|
|
679
|
+
protected classifyLegacyOperation(parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
|
|
680
680
|
}
|
|
681
681
|
export {};
|
|
@@ -964,6 +964,6 @@ export declare class UniswapV2AdapterContract extends AbstractAdapterContract<ab
|
|
|
964
964
|
};
|
|
965
965
|
protected stringifyFunctionParams(params: DecodeFunctionDataReturnType<abi>): string[];
|
|
966
966
|
/** @see https://github.com/Gearbox-protocol/charts_server/blob/master/core/operation_type.go#L81-L91 */
|
|
967
|
-
classifyLegacyOperation(_parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
|
|
967
|
+
protected classifyLegacyOperation(_parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
|
|
968
968
|
}
|
|
969
969
|
export {};
|
|
@@ -420,6 +420,6 @@ export declare class UniswapV4AdapterContract extends AbstractAdapterContract<ab
|
|
|
420
420
|
contractType?: string;
|
|
421
421
|
};
|
|
422
422
|
/** @see https://github.com/Gearbox-protocol/charts_server/blob/master/core/operation_type.go#L81-L91 */
|
|
423
|
-
classifyLegacyOperation(_parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
|
|
423
|
+
protected classifyLegacyOperation(_parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
|
|
424
424
|
}
|
|
425
425
|
export {};
|
|
@@ -392,6 +392,6 @@ export declare class WstETHV1AdapterContract extends AbstractAdapterContract<abi
|
|
|
392
392
|
contractType?: string;
|
|
393
393
|
};
|
|
394
394
|
/** @see https://github.com/Gearbox-protocol/charts_server/blob/master/core/operation_type.go#L264-L275 */
|
|
395
|
-
classifyLegacyOperation(parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
|
|
395
|
+
protected classifyLegacyOperation(parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
|
|
396
396
|
}
|
|
397
397
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Address } from "viem";
|
|
2
2
|
import type { BasicSwapCall, CurveAddLiquidity, CurveRemoveLiquidity, LegacyAdapterOperation, TokenAmount, Transfers } from "./legacyAdapterOperations.js";
|
|
3
|
-
import type { TokenTransfer } from "./
|
|
3
|
+
import type { TokenTransfer } from "./types.js";
|
|
4
4
|
/**
|
|
5
5
|
* Converts an ordered array of {@link TokenTransfer} into net signed balance
|
|
6
6
|
* changes ({@link Transfers}) for the given credit account.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AbiParameter, Address } from "viem";
|
|
2
2
|
import type { BaseContractStateHuman } from "../../sdk/types/state-human.js";
|
|
3
|
+
import type { LegacyAdapterOperation } from "./legacyAdapterOperations.js";
|
|
3
4
|
export type VersionedAbi = Record<number, readonly AbiParameter[]>;
|
|
4
5
|
export type AdapterContractType = "ADAPTER::ACCOUNT_MIGRATOR" | "ADAPTER::BALANCER_V3_ROUTER" | "ADAPTER::BALANCER_V3_WRAPPER" | "ADAPTER::BALANCER_VAULT" | "ADAPTER::CAMELOT_V3_ROUTER" | "ADAPTER::CURVE_STABLE_NG" | "ADAPTER::CURVE_V1_2ASSETS" | "ADAPTER::CURVE_V1_3ASSETS" | "ADAPTER::CURVE_V1_4ASSETS" | "ADAPTER::CURVE_V1_STECRV_POOL" | "ADAPTER::CURVE_V1_WRAPPER" | "ADAPTER::CVX_V1_BASE_REWARD_POOL" | "ADAPTER::CVX_V1_BOOSTER" | "ADAPTER::DAI_USDS_EXCHANGE" | "ADAPTER::EQUALIZER_ROUTER" | "ADAPTER::ERC4626_VAULT" | "ADAPTER::ERC4626_VAULT_REFERRAL" | "ADAPTER::FLUID_DEX" | "ADAPTER::INFINIFI_GATEWAY" | "ADAPTER::INFINIFI_UNWINDING" | "ADAPTER::INFRARED_VAULT" | "ADAPTER::KELP_DEPOSIT_POOL" | "ADAPTER::KELP_WITHDRAWAL" | "ADAPTER::KODIAK_ISLAND_GATEWAY" | "ADAPTER::LIDO_V1" | "ADAPTER::LIDO_WSTETH_V1" | "ADAPTER::MELLOW_CLAIMER" | "ADAPTER::MELLOW_DVV" | "ADAPTER::MELLOW_ERC4626_VAULT" | "ADAPTER::MELLOW_LRT_VAULT" | "ADAPTER::MELLOW_WRAPPER" | "ADAPTER::MELLOW_DEPOSIT_QUEUE_QUEUE" | "ADAPTER::MELLOW_REDEEM_QUEUE_QUEUE" | "ADAPTER::MIDAS_ISSUANCE_VAULT" | "ADAPTER::MIDAS_REDEMPTION_VAULT" | "ADAPTER::PENDLE_ROUTER" | "ADAPTER::SECURITIZE_ONRAMP" | "ADAPTER::SECURITIZE_REDEMPTION" | "ADAPTER::SECURITIZE_SWAP" | "ADAPTER::STAKING_REWARDS" | "ADAPTER::TRADER_JOE_ROUTER" | "ADAPTER::UNISWAP_V2_ROUTER" | "ADAPTER::UNISWAP_V3_ROUTER" | "ADAPTER::UNISWAP_V4_GATEWAY" | "ADAPTER::UPSHIFT_VAULT" | "ADAPTER::VELODROME_V2_ROUTER" | "ADAPTER::YEARN_V2";
|
|
5
6
|
export declare enum AdapterType {
|
|
@@ -56,22 +57,59 @@ export interface AdapterContractStateHuman extends BaseContractStateHuman {
|
|
|
56
57
|
targetContract?: string;
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
|
-
*
|
|
60
|
-
* together with the decoded function name and arguments of the actual CALL the
|
|
61
|
-
* adapter made to it. Recovered from an execution trace, so it is only present
|
|
62
|
-
* when a trace is available (history, facade simulation).
|
|
60
|
+
* A single ERC-20 Transfer event captured between Execute boundaries.
|
|
63
61
|
*/
|
|
64
|
-
export interface
|
|
62
|
+
export interface TokenTransfer {
|
|
63
|
+
token: Address;
|
|
64
|
+
amount: bigint;
|
|
65
|
+
from: Address;
|
|
66
|
+
to: Address;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Parsed adapter operation to display in credit account transactions history
|
|
70
|
+
*/
|
|
71
|
+
export interface AdapterOperation {
|
|
72
|
+
operation: "Execute";
|
|
73
|
+
/**
|
|
74
|
+
* Address of Gearbox Adapter contract
|
|
75
|
+
*/
|
|
76
|
+
adapter: Address;
|
|
65
77
|
/**
|
|
66
78
|
* Address of protocol contract (targetContract of adapter contract)
|
|
67
79
|
*/
|
|
68
|
-
|
|
80
|
+
protocol: Address;
|
|
81
|
+
/**
|
|
82
|
+
* Namespaced adapter type
|
|
83
|
+
* E.g. "ADAPTER::FLUID_DEX"
|
|
84
|
+
*/
|
|
85
|
+
adapterType: string;
|
|
86
|
+
/**
|
|
87
|
+
* Adapter contract version
|
|
88
|
+
*/
|
|
89
|
+
version: number;
|
|
90
|
+
/**
|
|
91
|
+
* Label of protocol contract (NOT adapter contract)
|
|
92
|
+
*/
|
|
93
|
+
label?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Function name of adapter contract
|
|
96
|
+
*/
|
|
97
|
+
adapterFunctionName: string;
|
|
98
|
+
/**
|
|
99
|
+
* Arguments of adapter contract
|
|
100
|
+
*/
|
|
101
|
+
adapterArgs: Record<string, unknown>;
|
|
69
102
|
/**
|
|
70
103
|
* Function name protocol called by adapter
|
|
71
104
|
*/
|
|
72
|
-
|
|
105
|
+
protocolFunctionName: string;
|
|
73
106
|
/**
|
|
74
107
|
* Arguments of protocol called by adapter
|
|
75
108
|
*/
|
|
76
|
-
|
|
109
|
+
protocolArgs: Record<string, unknown>;
|
|
110
|
+
/**
|
|
111
|
+
* ERC20 transfer to and from credit account made during adapter call
|
|
112
|
+
*/
|
|
113
|
+
transfers: TokenTransfer[];
|
|
114
|
+
legacy: LegacyAdapterOperation;
|
|
77
115
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "14.11.
|
|
3
|
+
"version": "14.11.1",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -44,11 +44,6 @@
|
|
|
44
44
|
"import": "./dist/esm/permissionless/index.js",
|
|
45
45
|
"default": "./dist/cjs/permissionless/index.js"
|
|
46
46
|
},
|
|
47
|
-
"./preview": {
|
|
48
|
-
"types": "./dist/types/preview/index.d.ts",
|
|
49
|
-
"import": "./dist/esm/preview/index.js",
|
|
50
|
-
"default": "./dist/cjs/preview/index.js"
|
|
51
|
-
},
|
|
52
47
|
"./common-utils": {
|
|
53
48
|
"types": "./dist/types/common-utils/index.d.ts",
|
|
54
49
|
"import": "./dist/esm/common-utils/index.js",
|
|
@@ -90,28 +85,28 @@
|
|
|
90
85
|
"@redstone-finance/utils": "^0.9.0",
|
|
91
86
|
"abitype": "^1.2.4",
|
|
92
87
|
"buffer": "^6.0.3",
|
|
93
|
-
"date-fns": "^4.
|
|
88
|
+
"date-fns": "^4.4.0",
|
|
94
89
|
"viem": ">=2.23.15 <3.0.0",
|
|
95
90
|
"zod": "^4.4.3"
|
|
96
91
|
},
|
|
97
92
|
"devDependencies": {
|
|
98
|
-
"@biomejs/biome": "^2.
|
|
99
|
-
"@commitlint/cli": "^21.0.
|
|
100
|
-
"@commitlint/config-conventional": "^21.0.
|
|
101
|
-
"@gearbox-protocol/biome-config": "^1.0.
|
|
93
|
+
"@biomejs/biome": "^2.5.0",
|
|
94
|
+
"@commitlint/cli": "^21.0.2",
|
|
95
|
+
"@commitlint/config-conventional": "^21.0.2",
|
|
96
|
+
"@gearbox-protocol/biome-config": "^1.0.30",
|
|
102
97
|
"@types/cross-spawn": "^6.0.6",
|
|
103
|
-
"axios": "^1.
|
|
98
|
+
"axios": "^1.18.0",
|
|
104
99
|
"cross-spawn": "^7.0.6",
|
|
105
100
|
"husky": "^9.1.7",
|
|
106
|
-
"lint-staged": "^17.0.
|
|
101
|
+
"lint-staged": "^17.0.7",
|
|
107
102
|
"pino": "^10.3.1",
|
|
108
103
|
"pino-pretty": "^13.1.3",
|
|
109
104
|
"tsup": "^8.5.1",
|
|
110
|
-
"tsx": "^4.
|
|
105
|
+
"tsx": "^4.22.4",
|
|
111
106
|
"typescript": "^6.0.3",
|
|
112
107
|
"viem-deal": "^2.0.4",
|
|
113
|
-
"vite": "^8.0.
|
|
114
|
-
"vitest": "^4.1.
|
|
108
|
+
"vite": "^8.0.16",
|
|
109
|
+
"vitest": "^4.1.9",
|
|
115
110
|
"yaml": "^2.9.0"
|
|
116
111
|
},
|
|
117
112
|
"peerDependencies": {
|
|
@@ -133,5 +128,5 @@
|
|
|
133
128
|
"biome check --no-errors-on-unmatched --write"
|
|
134
129
|
]
|
|
135
130
|
},
|
|
136
|
-
"packageManager": "pnpm@11.
|
|
131
|
+
"packageManager": "pnpm@11.7.0"
|
|
137
132
|
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var verifyTestnet_exports = {};
|
|
20
|
-
__export(verifyTestnet_exports, {
|
|
21
|
-
ONCHAIN_EXECUTION_ID_ADDRESS: () => ONCHAIN_EXECUTION_ID_ADDRESS,
|
|
22
|
-
iOnchainExecutionIdAbi: () => iOnchainExecutionIdAbi,
|
|
23
|
-
verifyTestnet: () => verifyTestnet
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(verifyTestnet_exports);
|
|
26
|
-
const ONCHAIN_EXECUTION_ID_ADDRESS = "0x34131bc13eaa4ef5f98c2a423f93bc88d6ee01ba";
|
|
27
|
-
const iOnchainExecutionIdAbi = [
|
|
28
|
-
{
|
|
29
|
-
type: "function",
|
|
30
|
-
name: "deployer",
|
|
31
|
-
inputs: [],
|
|
32
|
-
outputs: [
|
|
33
|
-
{
|
|
34
|
-
name: "",
|
|
35
|
-
type: "string",
|
|
36
|
-
internalType: "string"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
stateMutability: "view"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
type: "function",
|
|
43
|
-
name: "executionId",
|
|
44
|
-
inputs: [],
|
|
45
|
-
outputs: [
|
|
46
|
-
{
|
|
47
|
-
name: "",
|
|
48
|
-
type: "string",
|
|
49
|
-
internalType: "string"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
stateMutability: "view"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
type: "function",
|
|
56
|
-
name: "forkAlias",
|
|
57
|
-
inputs: [],
|
|
58
|
-
outputs: [
|
|
59
|
-
{
|
|
60
|
-
name: "",
|
|
61
|
-
type: "string",
|
|
62
|
-
internalType: "string"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
stateMutability: "view"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: "function",
|
|
69
|
-
name: "info",
|
|
70
|
-
inputs: [],
|
|
71
|
-
outputs: [
|
|
72
|
-
{
|
|
73
|
-
name: "",
|
|
74
|
-
type: "tuple",
|
|
75
|
-
internalType: "struct ExecutionId.Info",
|
|
76
|
-
components: [
|
|
77
|
-
{
|
|
78
|
-
name: "deployer",
|
|
79
|
-
type: "string",
|
|
80
|
-
internalType: "string"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: "executionId",
|
|
84
|
-
type: "string",
|
|
85
|
-
internalType: "string"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: "forkAlias",
|
|
89
|
-
type: "string",
|
|
90
|
-
internalType: "string"
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
stateMutability: "view"
|
|
96
|
-
}
|
|
97
|
-
];
|
|
98
|
-
async function verifyTestnet(client, expected) {
|
|
99
|
-
try {
|
|
100
|
-
const { deployer, executionId, forkAlias } = await client.readContract({
|
|
101
|
-
abi: iOnchainExecutionIdAbi,
|
|
102
|
-
address: ONCHAIN_EXECUTION_ID_ADDRESS,
|
|
103
|
-
functionName: "info"
|
|
104
|
-
});
|
|
105
|
-
if (deployer !== "anvil-manager") {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
if ("executionId" in expected && expected.executionId && expected.executionId !== executionId) {
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
if ("alias" in expected && expected.alias && expected.alias !== forkAlias) {
|
|
112
|
-
return false;
|
|
113
|
-
}
|
|
114
|
-
return true;
|
|
115
|
-
} catch {
|
|
116
|
-
return false;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
120
|
-
0 && (module.exports = {
|
|
121
|
-
ONCHAIN_EXECUTION_ID_ADDRESS,
|
|
122
|
-
iOnchainExecutionIdAbi,
|
|
123
|
-
verifyTestnet
|
|
124
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var transfers_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(transfers_exports);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var preview_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(preview_exports);
|
|
18
|
-
__reExport(preview_exports, require("./parse/index.js"), module.exports);
|
|
19
|
-
__reExport(preview_exports, require("./prerequisites/index.js"), module.exports);
|
|
20
|
-
__reExport(preview_exports, require("./simulate/index.js"), module.exports);
|
|
21
|
-
__reExport(preview_exports, require("./trace/index.js"), module.exports);
|
|
22
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
-
0 && (module.exports = {
|
|
24
|
-
...require("./parse/index.js"),
|
|
25
|
-
...require("./prerequisites/index.js"),
|
|
26
|
-
...require("./simulate/index.js"),
|
|
27
|
-
...require("./trace/index.js")
|
|
28
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type": "commonjs"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var classifyInnerOperations_exports = {};
|
|
20
|
-
__export(classifyInnerOperations_exports, {
|
|
21
|
-
classifyInnerOperations: () => classifyInnerOperations
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(classifyInnerOperations_exports);
|
|
24
|
-
var import_adapters = require("../../plugins/adapters/index.js");
|
|
25
|
-
function classifyInnerOperations(calls, props) {
|
|
26
|
-
const { sdk, underlying } = props;
|
|
27
|
-
const result = [];
|
|
28
|
-
for (const call of calls) {
|
|
29
|
-
const contract = sdk.getContract(call.target);
|
|
30
|
-
if (contract instanceof import_adapters.AbstractAdapterContract || contract === void 0) {
|
|
31
|
-
result.push({
|
|
32
|
-
operation: "Execute",
|
|
33
|
-
adapter: call.target,
|
|
34
|
-
adapterType: call.contractType,
|
|
35
|
-
version: call.version,
|
|
36
|
-
label: call.label,
|
|
37
|
-
adapterFunctionName: call.functionName,
|
|
38
|
-
adapterArgs: call.rawArgs
|
|
39
|
-
});
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
const op = classifyFacadeInnerCall(call, underlying);
|
|
43
|
-
if (op) {
|
|
44
|
-
result.push(op);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
49
|
-
function classifyFacadeInnerCall(call, underlying) {
|
|
50
|
-
const functionName = call.functionName.split("(")[0];
|
|
51
|
-
const { rawArgs } = call;
|
|
52
|
-
switch (functionName) {
|
|
53
|
-
case "increaseDebt":
|
|
54
|
-
return {
|
|
55
|
-
operation: "IncreaseBorrowedAmount",
|
|
56
|
-
token: underlying,
|
|
57
|
-
amount: rawArgs.amount
|
|
58
|
-
};
|
|
59
|
-
case "decreaseDebt":
|
|
60
|
-
return {
|
|
61
|
-
operation: "DecreaseBorrowedAmount",
|
|
62
|
-
token: underlying,
|
|
63
|
-
amount: rawArgs.amount
|
|
64
|
-
};
|
|
65
|
-
case "addCollateral":
|
|
66
|
-
case "addCollateralWithPermit":
|
|
67
|
-
return {
|
|
68
|
-
operation: "AddCollateral",
|
|
69
|
-
token: rawArgs.token,
|
|
70
|
-
amount: rawArgs.amount
|
|
71
|
-
};
|
|
72
|
-
case "withdrawCollateral":
|
|
73
|
-
return {
|
|
74
|
-
operation: "WithdrawCollateral",
|
|
75
|
-
token: rawArgs.token,
|
|
76
|
-
amount: rawArgs.amount,
|
|
77
|
-
to: rawArgs.to
|
|
78
|
-
};
|
|
79
|
-
case "updateQuota":
|
|
80
|
-
return {
|
|
81
|
-
operation: "UpdateQuota",
|
|
82
|
-
token: rawArgs.token,
|
|
83
|
-
change: rawArgs.quotaChange
|
|
84
|
-
};
|
|
85
|
-
default:
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
90
|
-
0 && (module.exports = {
|
|
91
|
-
classifyInnerOperations
|
|
92
|
-
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var errors_exports = {};
|
|
20
|
-
__export(errors_exports, {
|
|
21
|
-
UnsupportedPoolFunctionError: () => UnsupportedPoolFunctionError,
|
|
22
|
-
UnsupportedTargetError: () => UnsupportedTargetError
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(errors_exports);
|
|
25
|
-
class UnsupportedTargetError extends Error {
|
|
26
|
-
target;
|
|
27
|
-
constructor(target) {
|
|
28
|
-
super(`unsupported transaction target: ${target}`);
|
|
29
|
-
this.name = "UnsupportedTargetError";
|
|
30
|
-
this.target = target;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
class UnsupportedPoolFunctionError extends Error {
|
|
34
|
-
pool;
|
|
35
|
-
functionName;
|
|
36
|
-
constructor(pool, functionName) {
|
|
37
|
-
super(`unsupported pool function "${functionName}" on ${pool}`);
|
|
38
|
-
this.name = "UnsupportedPoolFunctionError";
|
|
39
|
-
this.pool = pool;
|
|
40
|
-
this.functionName = functionName;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
-
0 && (module.exports = {
|
|
45
|
-
UnsupportedPoolFunctionError,
|
|
46
|
-
UnsupportedTargetError
|
|
47
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var extractExpectedBalanceChanges_exports = {};
|
|
20
|
-
__export(extractExpectedBalanceChanges_exports, {
|
|
21
|
-
extractExpectedBalanceChanges: () => extractExpectedBalanceChanges
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(extractExpectedBalanceChanges_exports);
|
|
24
|
-
function extractExpectedBalanceChanges(innerCalls) {
|
|
25
|
-
const calls = innerCalls.filter(
|
|
26
|
-
(call) => functionName(call) !== "onDemandPriceUpdates"
|
|
27
|
-
);
|
|
28
|
-
if (calls.length === 0) {
|
|
29
|
-
return void 0;
|
|
30
|
-
}
|
|
31
|
-
const first = calls[0];
|
|
32
|
-
const last = calls[calls.length - 1];
|
|
33
|
-
if (functionName(first) !== "storeExpectedBalances" || functionName(last) !== "compareBalances") {
|
|
34
|
-
return void 0;
|
|
35
|
-
}
|
|
36
|
-
const balanceDeltas = first.rawArgs.balanceDeltas;
|
|
37
|
-
if (!balanceDeltas) {
|
|
38
|
-
return void 0;
|
|
39
|
-
}
|
|
40
|
-
return balanceDeltas.map(({ token, amount }) => ({ token, delta: amount }));
|
|
41
|
-
}
|
|
42
|
-
function functionName(call) {
|
|
43
|
-
return call.functionName.split("(")[0];
|
|
44
|
-
}
|
|
45
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
-
0 && (module.exports = {
|
|
47
|
-
extractExpectedBalanceChanges
|
|
48
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var parse_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(parse_exports);
|
|
18
|
-
__reExport(parse_exports, require("./classifyInnerOperations.js"), module.exports);
|
|
19
|
-
__reExport(parse_exports, require("./errors.js"), module.exports);
|
|
20
|
-
__reExport(parse_exports, require("./extractExpectedBalanceChanges.js"), module.exports);
|
|
21
|
-
__reExport(parse_exports, require("./parseFacadeOperationCalldata.js"), module.exports);
|
|
22
|
-
__reExport(parse_exports, require("./parseOperationCalldata.js"), module.exports);
|
|
23
|
-
__reExport(parse_exports, require("./parsePoolOperationCalldata.js"), module.exports);
|
|
24
|
-
__reExport(parse_exports, require("./types.js"), module.exports);
|
|
25
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
-
0 && (module.exports = {
|
|
27
|
-
...require("./classifyInnerOperations.js"),
|
|
28
|
-
...require("./errors.js"),
|
|
29
|
-
...require("./extractExpectedBalanceChanges.js"),
|
|
30
|
-
...require("./parseFacadeOperationCalldata.js"),
|
|
31
|
-
...require("./parseOperationCalldata.js"),
|
|
32
|
-
...require("./parsePoolOperationCalldata.js"),
|
|
33
|
-
...require("./types.js")
|
|
34
|
-
});
|