@morpho-org/morpho-sdk 6.0.0-next.2 → 6.0.0-next.3
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/MIGRATION-v5-to-v6.md +83 -29
- package/README.md +9 -7
- package/lib/cjs/abis.d.ts +3 -2844
- package/lib/cjs/abis.js +1 -1951
- package/lib/cjs/actions/blue/borrow.d.ts +3 -2
- package/lib/cjs/actions/blue/borrow.js +3 -2
- package/lib/cjs/actions/blue/common.js +1 -9
- package/lib/cjs/actions/blue/refinance.d.ts +2 -2
- package/lib/cjs/actions/blue/refinance.js +2 -2
- package/lib/cjs/actions/blue/repay.d.ts +1 -1
- package/lib/cjs/actions/blue/repay.js +1 -1
- package/lib/cjs/actions/blue/repayWithdrawCollateral.d.ts +2 -2
- package/lib/cjs/actions/blue/repayWithdrawCollateral.js +2 -2
- package/lib/cjs/actions/blue/supply.d.ts +2 -2
- package/lib/cjs/actions/blue/supply.js +2 -2
- package/lib/cjs/actions/blue/supplyCollateral.d.ts +2 -2
- package/lib/cjs/actions/blue/supplyCollateral.js +2 -2
- package/lib/cjs/actions/blue/supplyCollateralBorrow.d.ts +3 -2
- package/lib/cjs/actions/blue/supplyCollateralBorrow.js +3 -2
- package/lib/cjs/actions/blue/withdraw.d.ts +3 -3
- package/lib/cjs/actions/blue/withdraw.js +3 -3
- package/lib/cjs/actions/blue/withdrawCollateral.d.ts +2 -2
- package/lib/cjs/actions/blue/withdrawCollateral.js +2 -2
- package/lib/cjs/actions/bundles/common.d.ts +6 -2
- package/lib/cjs/actions/bundles/common.js +23 -5
- package/lib/cjs/actions/index.d.ts +0 -1
- package/lib/cjs/actions/index.js +0 -1
- package/lib/cjs/actions/requirements/blue/getBlueAuthorizationRequirement.d.ts +6 -8
- package/lib/cjs/actions/requirements/blue/getBlueAuthorizationRequirement.js +11 -16
- package/lib/cjs/actions/requirements/encode/encodeBlueSignatureAuthorization.d.ts +5 -6
- package/lib/cjs/actions/requirements/encode/encodeBlueSignatureAuthorization.js +4 -5
- package/lib/cjs/actions/requirements/encode/encodeErc20Approval.d.ts +4 -4
- package/lib/cjs/actions/requirements/encode/encodeErc20Approval.js +4 -5
- package/lib/cjs/actions/requirements/encode/encodeErc20Permit.d.ts +5 -5
- package/lib/cjs/actions/requirements/encode/encodeErc20Permit.js +6 -11
- package/lib/cjs/actions/requirements/encode/index.d.ts +0 -1
- package/lib/cjs/actions/requirements/encode/index.js +0 -1
- package/lib/cjs/actions/requirements/getRequirementsApproval.d.ts +5 -6
- package/lib/cjs/actions/requirements/getRequirementsApproval.js +5 -6
- package/lib/cjs/actions/requirements/index.d.ts +0 -1
- package/lib/cjs/actions/requirements/index.js +0 -1
- package/lib/cjs/actions/vaultV1/deposit.d.ts +1 -2
- package/lib/cjs/actions/vaultV1/deposit.js +1 -2
- package/lib/cjs/actions/vaultV1/inKindRedeem.d.ts +6 -5
- package/lib/cjs/actions/vaultV1/inKindRedeem.js +10 -7
- package/lib/cjs/actions/vaultV2/deposit.d.ts +1 -2
- package/lib/cjs/actions/vaultV2/deposit.js +1 -2
- package/lib/cjs/actions/vaultV2/forceWithdraw.d.ts +1 -1
- package/lib/cjs/actions/vaultV2/forceWithdraw.js +3 -3
- package/lib/cjs/actions/vaultV2/inKindRedeem.d.ts +6 -5
- package/lib/cjs/actions/vaultV2/inKindRedeem.js +10 -7
- package/lib/cjs/augment.d.ts +0 -1
- package/lib/cjs/augment.js +0 -1
- package/lib/cjs/blue/abis.d.ts +1 -5
- package/lib/cjs/blue/abis.js +1 -7
- package/lib/cjs/blue/entities.d.ts +2 -8
- package/lib/cjs/blue/entities.js +1 -3
- package/lib/cjs/blue/fetch.d.ts +1 -3
- package/lib/cjs/blue/fetch.js +1 -3
- package/lib/cjs/blue/types.d.ts +2 -4
- package/lib/cjs/blue/utils.d.ts +1 -3
- package/lib/cjs/blue/utils.js +1 -3
- package/lib/cjs/client/morphoViemExtension.d.ts +1 -1
- package/lib/cjs/client/morphoViemExtension.js +1 -1
- package/lib/cjs/constants.d.ts +3 -37
- package/lib/cjs/constants.js +1 -39
- package/lib/cjs/entities/blue/blue.d.ts +30 -265
- package/lib/cjs/entities/blue/blue.js +1 -205
- package/lib/cjs/entities/index.d.ts +3 -66
- package/lib/cjs/entities/index.js +1 -21
- package/lib/cjs/entities/vaultV1/vaultV1.d.ts +9 -2
- package/lib/cjs/entities/vaultV1/vaultV1.js +12 -7
- package/lib/cjs/entities/vaultV2/vaultV2.d.ts +22 -9
- package/lib/cjs/entities/vaultV2/vaultV2.js +28 -15
- package/lib/cjs/entities/vaultV2BlueReallocationData.js +4 -21
- package/lib/cjs/errors.d.ts +2 -46
- package/lib/cjs/errors.js +1 -46
- package/lib/cjs/fetch.d.ts +1 -17
- package/lib/cjs/fetch.js +1 -17
- package/lib/cjs/helpers/constant.d.ts +0 -2
- package/lib/cjs/helpers/constant.js +0 -2
- package/lib/cjs/helpers/index.d.ts +2 -3
- package/lib/cjs/helpers/index.js +1 -9
- package/lib/cjs/helpers/slippage.d.ts +1 -103
- package/lib/cjs/helpers/slippage.js +0 -150
- package/lib/cjs/helpers/utilization.d.ts +12 -10
- package/lib/cjs/helpers/utilization.js +27 -12
- package/lib/cjs/helpers/validate.d.ts +1 -24
- package/lib/cjs/helpers/validate.js +2 -49
- package/lib/cjs/helpers/validateRequirementSpender.d.ts +1 -1
- package/lib/cjs/helpers/validateRequirementSpender.js +1 -3
- package/lib/cjs/types/action.d.ts +17 -65
- package/lib/cjs/types/action.js +11 -4
- package/lib/cjs/types/error.d.ts +50 -381
- package/lib/cjs/types/error.js +64 -395
- package/lib/cjs/types/sharedLiquidity.d.ts +1 -117
- package/lib/cjs/types.d.ts +2 -18
- package/lib/cjs/utils.d.ts +6 -35
- package/lib/cjs/utils.js +2 -36
- package/lib/esm/abis.d.ts +3 -2844
- package/lib/esm/abis.js +3 -1950
- package/lib/esm/actions/blue/borrow.d.ts +3 -2
- package/lib/esm/actions/blue/borrow.js +3 -2
- package/lib/esm/actions/blue/common.js +1 -9
- package/lib/esm/actions/blue/refinance.d.ts +2 -2
- package/lib/esm/actions/blue/refinance.js +2 -2
- package/lib/esm/actions/blue/repay.d.ts +1 -1
- package/lib/esm/actions/blue/repay.js +1 -1
- package/lib/esm/actions/blue/repayWithdrawCollateral.d.ts +2 -2
- package/lib/esm/actions/blue/repayWithdrawCollateral.js +2 -2
- package/lib/esm/actions/blue/supply.d.ts +2 -2
- package/lib/esm/actions/blue/supply.js +2 -2
- package/lib/esm/actions/blue/supplyCollateral.d.ts +2 -2
- package/lib/esm/actions/blue/supplyCollateral.js +2 -2
- package/lib/esm/actions/blue/supplyCollateralBorrow.d.ts +3 -2
- package/lib/esm/actions/blue/supplyCollateralBorrow.js +3 -2
- package/lib/esm/actions/blue/withdraw.d.ts +3 -3
- package/lib/esm/actions/blue/withdraw.js +3 -3
- package/lib/esm/actions/blue/withdrawCollateral.d.ts +2 -2
- package/lib/esm/actions/blue/withdrawCollateral.js +2 -2
- package/lib/esm/actions/bundles/common.d.ts +6 -2
- package/lib/esm/actions/bundles/common.js +24 -6
- package/lib/esm/actions/index.d.ts +0 -1
- package/lib/esm/actions/index.js +0 -1
- package/lib/esm/actions/requirements/blue/getBlueAuthorizationRequirement.d.ts +6 -8
- package/lib/esm/actions/requirements/blue/getBlueAuthorizationRequirement.js +12 -17
- package/lib/esm/actions/requirements/encode/encodeBlueSignatureAuthorization.d.ts +5 -6
- package/lib/esm/actions/requirements/encode/encodeBlueSignatureAuthorization.js +4 -5
- package/lib/esm/actions/requirements/encode/encodeErc20Approval.d.ts +4 -4
- package/lib/esm/actions/requirements/encode/encodeErc20Approval.js +4 -5
- package/lib/esm/actions/requirements/encode/encodeErc20Permit.d.ts +5 -5
- package/lib/esm/actions/requirements/encode/encodeErc20Permit.js +6 -11
- package/lib/esm/actions/requirements/encode/index.d.ts +0 -1
- package/lib/esm/actions/requirements/encode/index.js +0 -1
- package/lib/esm/actions/requirements/getRequirementsApproval.d.ts +5 -6
- package/lib/esm/actions/requirements/getRequirementsApproval.js +5 -6
- package/lib/esm/actions/requirements/index.d.ts +0 -1
- package/lib/esm/actions/requirements/index.js +0 -1
- package/lib/esm/actions/vaultV1/deposit.d.ts +1 -2
- package/lib/esm/actions/vaultV1/deposit.js +1 -2
- package/lib/esm/actions/vaultV1/inKindRedeem.d.ts +6 -5
- package/lib/esm/actions/vaultV1/inKindRedeem.js +10 -7
- package/lib/esm/actions/vaultV2/deposit.d.ts +1 -2
- package/lib/esm/actions/vaultV2/deposit.js +1 -2
- package/lib/esm/actions/vaultV2/forceWithdraw.d.ts +1 -1
- package/lib/esm/actions/vaultV2/forceWithdraw.js +3 -3
- package/lib/esm/actions/vaultV2/inKindRedeem.d.ts +6 -5
- package/lib/esm/actions/vaultV2/inKindRedeem.js +10 -7
- package/lib/esm/augment.d.ts +0 -1
- package/lib/esm/augment.js +0 -1
- package/lib/esm/blue/abis.d.ts +1 -5
- package/lib/esm/blue/abis.js +1 -5
- package/lib/esm/blue/entities.d.ts +2 -8
- package/lib/esm/blue/entities.js +1 -3
- package/lib/esm/blue/fetch.d.ts +1 -3
- package/lib/esm/blue/fetch.js +1 -3
- package/lib/esm/blue/types.d.ts +2 -4
- package/lib/esm/blue/utils.d.ts +1 -3
- package/lib/esm/blue/utils.js +1 -3
- package/lib/esm/client/morphoViemExtension.d.ts +1 -1
- package/lib/esm/client/morphoViemExtension.js +1 -1
- package/lib/esm/constants.d.ts +3 -37
- package/lib/esm/constants.js +3 -37
- package/lib/esm/entities/blue/blue.d.ts +30 -265
- package/lib/esm/entities/blue/blue.js +4 -208
- package/lib/esm/entities/index.d.ts +3 -66
- package/lib/esm/entities/index.js +1 -18
- package/lib/esm/entities/vaultV1/vaultV1.d.ts +9 -2
- package/lib/esm/entities/vaultV1/vaultV1.js +15 -10
- package/lib/esm/entities/vaultV2/vaultV2.d.ts +22 -9
- package/lib/esm/entities/vaultV2/vaultV2.js +32 -19
- package/lib/esm/entities/vaultV2BlueReallocationData.js +2 -19
- package/lib/esm/errors.d.ts +2 -46
- package/lib/esm/errors.js +2 -46
- package/lib/esm/fetch.d.ts +1 -17
- package/lib/esm/fetch.js +1 -17
- package/lib/esm/helpers/constant.d.ts +0 -2
- package/lib/esm/helpers/constant.js +0 -2
- package/lib/esm/helpers/index.d.ts +2 -3
- package/lib/esm/helpers/index.js +2 -3
- package/lib/esm/helpers/slippage.d.ts +1 -103
- package/lib/esm/helpers/slippage.js +1 -147
- package/lib/esm/helpers/utilization.d.ts +12 -10
- package/lib/esm/helpers/utilization.js +26 -11
- package/lib/esm/helpers/validate.d.ts +1 -24
- package/lib/esm/helpers/validate.js +2 -48
- package/lib/esm/helpers/validateRequirementSpender.d.ts +1 -1
- package/lib/esm/helpers/validateRequirementSpender.js +1 -3
- package/lib/esm/types/action.d.ts +17 -65
- package/lib/esm/types/action.js +12 -5
- package/lib/esm/types/error.d.ts +50 -381
- package/lib/esm/types/error.js +58 -377
- package/lib/esm/types/sharedLiquidity.d.ts +1 -117
- package/lib/esm/types.d.ts +2 -18
- package/lib/esm/utils.d.ts +6 -35
- package/lib/esm/utils.js +5 -34
- package/package.json +5 -13
- package/lib/cjs/actions/requirements/encode/encodeErc20Permit2Approve.d.ts +0 -44
- package/lib/cjs/actions/requirements/encode/encodeErc20Permit2Approve.js +0 -88
- package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirements.d.ts +0 -88
- package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirements.js +0 -152
- package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit.d.ts +0 -40
- package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit.js +0 -53
- package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.d.ts +0 -57
- package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.js +0 -74
- package/lib/cjs/actions/requirements/generalAdapter/index.d.ts +0 -3
- package/lib/cjs/actions/requirements/generalAdapter/index.js +0 -19
- package/lib/cjs/actions/signatures/getBlueAuthorizationAction.d.ts +0 -29
- package/lib/cjs/actions/signatures/getBlueAuthorizationAction.js +0 -48
- package/lib/cjs/actions/signatures/getTokenRequirementActions.d.ts +0 -58
- package/lib/cjs/actions/signatures/getTokenRequirementActions.js +0 -119
- package/lib/cjs/actions/signatures/getVaultExitBundlesV1PermitStruct.d.ts +0 -50
- package/lib/cjs/actions/signatures/getVaultExitBundlesV1PermitStruct.js +0 -45
- package/lib/cjs/actions/signatures/index.d.ts +0 -3
- package/lib/cjs/actions/signatures/index.js +0 -19
- package/lib/cjs/augment/VaultMarketPublicAllocatorConfig.d.ts +0 -11
- package/lib/cjs/augment/VaultMarketPublicAllocatorConfig.js +0 -8
- package/lib/cjs/bundler/actions.d.ts +0 -797
- package/lib/cjs/bundler/actions.js +0 -1371
- package/lib/cjs/bundler/index.d.ts +0 -2
- package/lib/cjs/bundler/index.js +0 -18
- package/lib/cjs/bundler/types.d.ts +0 -235
- package/lib/cjs/bundler/types.js +0 -2
- package/lib/cjs/entities/vaultV1ReallocationData.d.ts +0 -332
- package/lib/cjs/entities/vaultV1ReallocationData.js +0 -557
- package/lib/cjs/helpers/computeVaultV1Reallocations.d.ts +0 -80
- package/lib/cjs/helpers/computeVaultV1Reallocations.js +0 -245
- package/lib/esm/actions/requirements/encode/encodeErc20Permit2Approve.d.ts +0 -44
- package/lib/esm/actions/requirements/encode/encodeErc20Permit2Approve.js +0 -84
- package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirements.d.ts +0 -88
- package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirements.js +0 -148
- package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit.d.ts +0 -40
- package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit.js +0 -49
- package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.d.ts +0 -57
- package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.js +0 -70
- package/lib/esm/actions/requirements/generalAdapter/index.d.ts +0 -3
- package/lib/esm/actions/requirements/generalAdapter/index.js +0 -3
- package/lib/esm/actions/signatures/getBlueAuthorizationAction.d.ts +0 -29
- package/lib/esm/actions/signatures/getBlueAuthorizationAction.js +0 -44
- package/lib/esm/actions/signatures/getTokenRequirementActions.d.ts +0 -58
- package/lib/esm/actions/signatures/getTokenRequirementActions.js +0 -115
- package/lib/esm/actions/signatures/getVaultExitBundlesV1PermitStruct.d.ts +0 -50
- package/lib/esm/actions/signatures/getVaultExitBundlesV1PermitStruct.js +0 -41
- package/lib/esm/actions/signatures/index.d.ts +0 -3
- package/lib/esm/actions/signatures/index.js +0 -3
- package/lib/esm/augment/VaultMarketPublicAllocatorConfig.d.ts +0 -11
- package/lib/esm/augment/VaultMarketPublicAllocatorConfig.js +0 -7
- package/lib/esm/bundler/actions.d.ts +0 -797
- package/lib/esm/bundler/actions.js +0 -1368
- package/lib/esm/bundler/index.d.ts +0 -2
- package/lib/esm/bundler/index.js +0 -2
- package/lib/esm/bundler/types.d.ts +0 -235
- package/lib/esm/bundler/types.js +0 -1
- package/lib/esm/entities/vaultV1ReallocationData.d.ts +0 -332
- package/lib/esm/entities/vaultV1ReallocationData.js +0 -559
- package/lib/esm/helpers/computeVaultV1Reallocations.d.ts +0 -80
- package/lib/esm/helpers/computeVaultV1Reallocations.js +0 -241
package/lib/esm/abis.d.ts
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
export { marketParamsAbi as blueMarketParamsAbi
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { adaptiveCurveIrmAbi as blueAdaptiveCurveIrmAbi,
|
|
5
|
-
/** @deprecated Use `blueAdaptiveCurveIrmAbi` or the raw `/blue/abis` subpath. */
|
|
6
|
-
adaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc5267Abi, metaMorphoAbi, metaMorphoFactoryAbi, morphoMarketV1AdapterAbi, morphoMarketV1AdapterFactoryAbi, morphoMarketV1AdapterV2Abi, morphoMarketV1AdapterV2FactoryAbi, morphoVaultV1AdapterAbi, morphoVaultV1AdapterFactoryAbi, permissionedErc20WrapperAbi, permit2Abi, preLiquidationAbi as bluePreLiquidationAbi,
|
|
7
|
-
/** @deprecated Use `bluePreLiquidationAbi` or the raw `/blue/abis` subpath. */
|
|
8
|
-
preLiquidationAbi, preLiquidationFactoryAbi as bluePreLiquidationFactoryAbi,
|
|
9
|
-
/** @deprecated Use `bluePreLiquidationFactoryAbi` or the raw `/blue/abis` subpath. */
|
|
10
|
-
preLiquidationFactoryAbi,
|
|
11
|
-
/** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `vaultV2BluePublicAllocatorAbi`. */
|
|
12
|
-
publicAllocatorAbi, vaultV1AdapterAbi, vaultV1AdapterFactoryAbi,
|
|
13
|
-
/** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `vaultV2BluePublicAllocatorAbi`. */
|
|
14
|
-
vaultV1PublicAllocatorAbi, vaultV2Abi, vaultV2BluePublicAllocatorAbi, vaultV2FactoryAbi, whitelistControllerAggregatorV2Abi, wrappedBackedTokenAbi, wstEthAbi, } from "@morpho-org/blue-sdk-viem";
|
|
15
|
-
export { ecrecoverRatifierAbi as midnightEcrecoverRatifierAbi,
|
|
16
|
-
/** @deprecated Use `midnightEcrecoverRatifierAbi` or the raw `/midnight/abis` subpath. */
|
|
17
|
-
ecrecoverRatifierAbi, midnightAbi, midnightBundlesAbi, setterRatifierAbi as midnightSetterRatifierAbi,
|
|
18
|
-
/** @deprecated Use `midnightSetterRatifierAbi` or the raw `/midnight/abis` subpath. */
|
|
19
|
-
setterRatifierAbi, } from "@morpho-org/midnight-sdk";
|
|
1
|
+
export { marketParamsAbi as blueMarketParamsAbi } from "@morpho-org/blue-sdk";
|
|
2
|
+
export { adaptiveCurveIrmAbi as blueAdaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc5267Abi, metaMorphoAbi, metaMorphoFactoryAbi, morphoMarketV1AdapterAbi, morphoMarketV1AdapterFactoryAbi, morphoMarketV1AdapterV2Abi, morphoMarketV1AdapterV2FactoryAbi, morphoVaultV1AdapterAbi, morphoVaultV1AdapterFactoryAbi, permissionedErc20WrapperAbi, permit2Abi, preLiquidationAbi as bluePreLiquidationAbi, preLiquidationFactoryAbi as bluePreLiquidationFactoryAbi, vaultV2Abi, vaultV2BluePublicAllocatorAbi, vaultV2FactoryAbi, whitelistControllerAggregatorV2Abi, wrappedBackedTokenAbi, wstEthAbi, } from "@morpho-org/blue-sdk-viem";
|
|
3
|
+
export { ecrecoverRatifierAbi as midnightEcrecoverRatifierAbi, midnightAbi, midnightBundlesAbi, setterRatifierAbi as midnightSetterRatifierAbi, } from "@morpho-org/midnight-sdk";
|
|
20
4
|
/** ABI for the VaultExitBundlesV1 periphery contract. */
|
|
21
5
|
export declare const vaultExitBundlesV1Abi: readonly [{
|
|
22
6
|
readonly type: "constructor";
|
|
@@ -540,2831 +524,6 @@ export declare const vaultBundlesV1Abi: readonly [{
|
|
|
540
524
|
readonly outputs: readonly [];
|
|
541
525
|
readonly stateMutability: "nonpayable";
|
|
542
526
|
}];
|
|
543
|
-
/** ABI for the Bundler3 multicall contract. */
|
|
544
|
-
export declare const bundler3Abi: readonly [{
|
|
545
|
-
readonly type: "function";
|
|
546
|
-
readonly name: "initiator";
|
|
547
|
-
readonly inputs: readonly [];
|
|
548
|
-
readonly outputs: readonly [{
|
|
549
|
-
readonly name: "";
|
|
550
|
-
readonly type: "address";
|
|
551
|
-
readonly internalType: "address";
|
|
552
|
-
}];
|
|
553
|
-
readonly stateMutability: "view";
|
|
554
|
-
}, {
|
|
555
|
-
readonly type: "function";
|
|
556
|
-
readonly name: "multicall";
|
|
557
|
-
readonly inputs: readonly [{
|
|
558
|
-
readonly name: "bundle";
|
|
559
|
-
readonly type: "tuple[]";
|
|
560
|
-
readonly internalType: "struct Call[]";
|
|
561
|
-
readonly components: readonly [{
|
|
562
|
-
readonly name: "to";
|
|
563
|
-
readonly type: "address";
|
|
564
|
-
readonly internalType: "address";
|
|
565
|
-
}, {
|
|
566
|
-
readonly name: "data";
|
|
567
|
-
readonly type: "bytes";
|
|
568
|
-
readonly internalType: "bytes";
|
|
569
|
-
}, {
|
|
570
|
-
readonly name: "value";
|
|
571
|
-
readonly type: "uint256";
|
|
572
|
-
readonly internalType: "uint256";
|
|
573
|
-
}, {
|
|
574
|
-
readonly name: "skipRevert";
|
|
575
|
-
readonly type: "bool";
|
|
576
|
-
readonly internalType: "bool";
|
|
577
|
-
}, {
|
|
578
|
-
readonly name: "callbackHash";
|
|
579
|
-
readonly type: "bytes32";
|
|
580
|
-
readonly internalType: "bytes32";
|
|
581
|
-
}];
|
|
582
|
-
}];
|
|
583
|
-
readonly outputs: readonly [];
|
|
584
|
-
readonly stateMutability: "payable";
|
|
585
|
-
}, {
|
|
586
|
-
readonly type: "function";
|
|
587
|
-
readonly name: "reenter";
|
|
588
|
-
readonly inputs: readonly [{
|
|
589
|
-
readonly name: "bundle";
|
|
590
|
-
readonly type: "tuple[]";
|
|
591
|
-
readonly internalType: "struct Call[]";
|
|
592
|
-
readonly components: readonly [{
|
|
593
|
-
readonly name: "to";
|
|
594
|
-
readonly type: "address";
|
|
595
|
-
readonly internalType: "address";
|
|
596
|
-
}, {
|
|
597
|
-
readonly name: "data";
|
|
598
|
-
readonly type: "bytes";
|
|
599
|
-
readonly internalType: "bytes";
|
|
600
|
-
}, {
|
|
601
|
-
readonly name: "value";
|
|
602
|
-
readonly type: "uint256";
|
|
603
|
-
readonly internalType: "uint256";
|
|
604
|
-
}, {
|
|
605
|
-
readonly name: "skipRevert";
|
|
606
|
-
readonly type: "bool";
|
|
607
|
-
readonly internalType: "bool";
|
|
608
|
-
}, {
|
|
609
|
-
readonly name: "callbackHash";
|
|
610
|
-
readonly type: "bytes32";
|
|
611
|
-
readonly internalType: "bytes32";
|
|
612
|
-
}];
|
|
613
|
-
}];
|
|
614
|
-
readonly outputs: readonly [];
|
|
615
|
-
readonly stateMutability: "nonpayable";
|
|
616
|
-
}, {
|
|
617
|
-
readonly type: "function";
|
|
618
|
-
readonly name: "reenterHash";
|
|
619
|
-
readonly inputs: readonly [];
|
|
620
|
-
readonly outputs: readonly [{
|
|
621
|
-
readonly name: "";
|
|
622
|
-
readonly type: "bytes32";
|
|
623
|
-
readonly internalType: "bytes32";
|
|
624
|
-
}];
|
|
625
|
-
readonly stateMutability: "view";
|
|
626
|
-
}, {
|
|
627
|
-
readonly type: "error";
|
|
628
|
-
readonly name: "AlreadyInitiated";
|
|
629
|
-
readonly inputs: readonly [];
|
|
630
|
-
}, {
|
|
631
|
-
readonly type: "error";
|
|
632
|
-
readonly name: "EmptyBundle";
|
|
633
|
-
readonly inputs: readonly [];
|
|
634
|
-
}, {
|
|
635
|
-
readonly type: "error";
|
|
636
|
-
readonly name: "IncorrectReenterHash";
|
|
637
|
-
readonly inputs: readonly [];
|
|
638
|
-
}, {
|
|
639
|
-
readonly type: "error";
|
|
640
|
-
readonly name: "MissingExpectedReenter";
|
|
641
|
-
readonly inputs: readonly [];
|
|
642
|
-
}];
|
|
643
|
-
/** ABI for the Bundler3 core adapter. */
|
|
644
|
-
export declare const coreAdapterAbi: readonly [{
|
|
645
|
-
readonly type: "receive";
|
|
646
|
-
readonly stateMutability: "payable";
|
|
647
|
-
}, {
|
|
648
|
-
readonly type: "function";
|
|
649
|
-
readonly name: "BUNDLER3";
|
|
650
|
-
readonly inputs: readonly [];
|
|
651
|
-
readonly outputs: readonly [{
|
|
652
|
-
readonly name: "";
|
|
653
|
-
readonly type: "address";
|
|
654
|
-
readonly internalType: "address";
|
|
655
|
-
}];
|
|
656
|
-
readonly stateMutability: "view";
|
|
657
|
-
}, {
|
|
658
|
-
readonly type: "function";
|
|
659
|
-
readonly name: "erc20Transfer";
|
|
660
|
-
readonly inputs: readonly [{
|
|
661
|
-
readonly name: "token";
|
|
662
|
-
readonly type: "address";
|
|
663
|
-
readonly internalType: "address";
|
|
664
|
-
}, {
|
|
665
|
-
readonly name: "receiver";
|
|
666
|
-
readonly type: "address";
|
|
667
|
-
readonly internalType: "address";
|
|
668
|
-
}, {
|
|
669
|
-
readonly name: "amount";
|
|
670
|
-
readonly type: "uint256";
|
|
671
|
-
readonly internalType: "uint256";
|
|
672
|
-
}];
|
|
673
|
-
readonly outputs: readonly [];
|
|
674
|
-
readonly stateMutability: "nonpayable";
|
|
675
|
-
}, {
|
|
676
|
-
readonly type: "function";
|
|
677
|
-
readonly name: "nativeTransfer";
|
|
678
|
-
readonly inputs: readonly [{
|
|
679
|
-
readonly name: "receiver";
|
|
680
|
-
readonly type: "address";
|
|
681
|
-
readonly internalType: "address";
|
|
682
|
-
}, {
|
|
683
|
-
readonly name: "amount";
|
|
684
|
-
readonly type: "uint256";
|
|
685
|
-
readonly internalType: "uint256";
|
|
686
|
-
}];
|
|
687
|
-
readonly outputs: readonly [];
|
|
688
|
-
readonly stateMutability: "nonpayable";
|
|
689
|
-
}, {
|
|
690
|
-
readonly type: "error";
|
|
691
|
-
readonly name: "AdapterAddress";
|
|
692
|
-
readonly inputs: readonly [];
|
|
693
|
-
}, {
|
|
694
|
-
readonly type: "error";
|
|
695
|
-
readonly name: "FailedCall";
|
|
696
|
-
readonly inputs: readonly [];
|
|
697
|
-
}, {
|
|
698
|
-
readonly type: "error";
|
|
699
|
-
readonly name: "InsufficientBalance";
|
|
700
|
-
readonly inputs: readonly [{
|
|
701
|
-
readonly name: "balance";
|
|
702
|
-
readonly type: "uint256";
|
|
703
|
-
readonly internalType: "uint256";
|
|
704
|
-
}, {
|
|
705
|
-
readonly name: "needed";
|
|
706
|
-
readonly type: "uint256";
|
|
707
|
-
readonly internalType: "uint256";
|
|
708
|
-
}];
|
|
709
|
-
}, {
|
|
710
|
-
readonly type: "error";
|
|
711
|
-
readonly name: "SafeERC20FailedOperation";
|
|
712
|
-
readonly inputs: readonly [{
|
|
713
|
-
readonly name: "token";
|
|
714
|
-
readonly type: "address";
|
|
715
|
-
readonly internalType: "address";
|
|
716
|
-
}];
|
|
717
|
-
}, {
|
|
718
|
-
readonly type: "error";
|
|
719
|
-
readonly name: "UnauthorizedSender";
|
|
720
|
-
readonly inputs: readonly [];
|
|
721
|
-
}, {
|
|
722
|
-
readonly type: "error";
|
|
723
|
-
readonly name: "ZeroAddress";
|
|
724
|
-
readonly inputs: readonly [];
|
|
725
|
-
}, {
|
|
726
|
-
readonly type: "error";
|
|
727
|
-
readonly name: "ZeroAmount";
|
|
728
|
-
readonly inputs: readonly [];
|
|
729
|
-
}];
|
|
730
|
-
/** ABI for the Bundler3 GeneralAdapter1 contract. */
|
|
731
|
-
export declare const generalAdapter1Abi: readonly [{
|
|
732
|
-
readonly type: "receive";
|
|
733
|
-
readonly stateMutability: "payable";
|
|
734
|
-
}, {
|
|
735
|
-
readonly type: "function";
|
|
736
|
-
readonly name: "BUNDLER3";
|
|
737
|
-
readonly inputs: readonly [];
|
|
738
|
-
readonly outputs: readonly [{
|
|
739
|
-
readonly name: "";
|
|
740
|
-
readonly type: "address";
|
|
741
|
-
readonly internalType: "address";
|
|
742
|
-
}];
|
|
743
|
-
readonly stateMutability: "view";
|
|
744
|
-
}, {
|
|
745
|
-
readonly type: "function";
|
|
746
|
-
readonly name: "erc20Transfer";
|
|
747
|
-
readonly inputs: readonly [{
|
|
748
|
-
readonly name: "token";
|
|
749
|
-
readonly type: "address";
|
|
750
|
-
readonly internalType: "address";
|
|
751
|
-
}, {
|
|
752
|
-
readonly name: "receiver";
|
|
753
|
-
readonly type: "address";
|
|
754
|
-
readonly internalType: "address";
|
|
755
|
-
}, {
|
|
756
|
-
readonly name: "amount";
|
|
757
|
-
readonly type: "uint256";
|
|
758
|
-
readonly internalType: "uint256";
|
|
759
|
-
}];
|
|
760
|
-
readonly outputs: readonly [];
|
|
761
|
-
readonly stateMutability: "nonpayable";
|
|
762
|
-
}, {
|
|
763
|
-
readonly type: "function";
|
|
764
|
-
readonly name: "nativeTransfer";
|
|
765
|
-
readonly inputs: readonly [{
|
|
766
|
-
readonly name: "receiver";
|
|
767
|
-
readonly type: "address";
|
|
768
|
-
readonly internalType: "address";
|
|
769
|
-
}, {
|
|
770
|
-
readonly name: "amount";
|
|
771
|
-
readonly type: "uint256";
|
|
772
|
-
readonly internalType: "uint256";
|
|
773
|
-
}];
|
|
774
|
-
readonly outputs: readonly [];
|
|
775
|
-
readonly stateMutability: "nonpayable";
|
|
776
|
-
}, {
|
|
777
|
-
readonly type: "error";
|
|
778
|
-
readonly name: "AdapterAddress";
|
|
779
|
-
readonly inputs: readonly [];
|
|
780
|
-
}, {
|
|
781
|
-
readonly type: "error";
|
|
782
|
-
readonly name: "FailedCall";
|
|
783
|
-
readonly inputs: readonly [];
|
|
784
|
-
}, {
|
|
785
|
-
readonly type: "error";
|
|
786
|
-
readonly name: "InsufficientBalance";
|
|
787
|
-
readonly inputs: readonly [{
|
|
788
|
-
readonly name: "balance";
|
|
789
|
-
readonly type: "uint256";
|
|
790
|
-
readonly internalType: "uint256";
|
|
791
|
-
}, {
|
|
792
|
-
readonly name: "needed";
|
|
793
|
-
readonly type: "uint256";
|
|
794
|
-
readonly internalType: "uint256";
|
|
795
|
-
}];
|
|
796
|
-
}, {
|
|
797
|
-
readonly type: "error";
|
|
798
|
-
readonly name: "SafeERC20FailedOperation";
|
|
799
|
-
readonly inputs: readonly [{
|
|
800
|
-
readonly name: "token";
|
|
801
|
-
readonly type: "address";
|
|
802
|
-
readonly internalType: "address";
|
|
803
|
-
}];
|
|
804
|
-
}, {
|
|
805
|
-
readonly type: "error";
|
|
806
|
-
readonly name: "UnauthorizedSender";
|
|
807
|
-
readonly inputs: readonly [];
|
|
808
|
-
}, {
|
|
809
|
-
readonly type: "error";
|
|
810
|
-
readonly name: "ZeroAddress";
|
|
811
|
-
readonly inputs: readonly [];
|
|
812
|
-
}, {
|
|
813
|
-
readonly type: "error";
|
|
814
|
-
readonly name: "ZeroAmount";
|
|
815
|
-
readonly inputs: readonly [];
|
|
816
|
-
}, {
|
|
817
|
-
readonly type: "constructor";
|
|
818
|
-
readonly inputs: readonly [{
|
|
819
|
-
readonly name: "bundler3";
|
|
820
|
-
readonly type: "address";
|
|
821
|
-
readonly internalType: "address";
|
|
822
|
-
}, {
|
|
823
|
-
readonly name: "morpho";
|
|
824
|
-
readonly type: "address";
|
|
825
|
-
readonly internalType: "address";
|
|
826
|
-
}, {
|
|
827
|
-
readonly name: "wNative";
|
|
828
|
-
readonly type: "address";
|
|
829
|
-
readonly internalType: "address";
|
|
830
|
-
}];
|
|
831
|
-
readonly stateMutability: "nonpayable";
|
|
832
|
-
}, {
|
|
833
|
-
readonly type: "function";
|
|
834
|
-
readonly name: "MORPHO";
|
|
835
|
-
readonly inputs: readonly [];
|
|
836
|
-
readonly outputs: readonly [{
|
|
837
|
-
readonly name: "";
|
|
838
|
-
readonly type: "address";
|
|
839
|
-
readonly internalType: "contract IMorpho";
|
|
840
|
-
}];
|
|
841
|
-
readonly stateMutability: "view";
|
|
842
|
-
}, {
|
|
843
|
-
readonly type: "function";
|
|
844
|
-
readonly name: "WRAPPED_NATIVE";
|
|
845
|
-
readonly inputs: readonly [];
|
|
846
|
-
readonly outputs: readonly [{
|
|
847
|
-
readonly name: "";
|
|
848
|
-
readonly type: "address";
|
|
849
|
-
readonly internalType: "contract IWNative";
|
|
850
|
-
}];
|
|
851
|
-
readonly stateMutability: "view";
|
|
852
|
-
}, {
|
|
853
|
-
readonly type: "function";
|
|
854
|
-
readonly name: "erc20TransferFrom";
|
|
855
|
-
readonly inputs: readonly [{
|
|
856
|
-
readonly name: "token";
|
|
857
|
-
readonly type: "address";
|
|
858
|
-
readonly internalType: "address";
|
|
859
|
-
}, {
|
|
860
|
-
readonly name: "receiver";
|
|
861
|
-
readonly type: "address";
|
|
862
|
-
readonly internalType: "address";
|
|
863
|
-
}, {
|
|
864
|
-
readonly name: "amount";
|
|
865
|
-
readonly type: "uint256";
|
|
866
|
-
readonly internalType: "uint256";
|
|
867
|
-
}];
|
|
868
|
-
readonly outputs: readonly [];
|
|
869
|
-
readonly stateMutability: "nonpayable";
|
|
870
|
-
}, {
|
|
871
|
-
readonly type: "function";
|
|
872
|
-
readonly name: "erc4626Deposit";
|
|
873
|
-
readonly inputs: readonly [{
|
|
874
|
-
readonly name: "vault";
|
|
875
|
-
readonly type: "address";
|
|
876
|
-
readonly internalType: "address";
|
|
877
|
-
}, {
|
|
878
|
-
readonly name: "assets";
|
|
879
|
-
readonly type: "uint256";
|
|
880
|
-
readonly internalType: "uint256";
|
|
881
|
-
}, {
|
|
882
|
-
readonly name: "maxSharePriceE27";
|
|
883
|
-
readonly type: "uint256";
|
|
884
|
-
readonly internalType: "uint256";
|
|
885
|
-
}, {
|
|
886
|
-
readonly name: "receiver";
|
|
887
|
-
readonly type: "address";
|
|
888
|
-
readonly internalType: "address";
|
|
889
|
-
}];
|
|
890
|
-
readonly outputs: readonly [];
|
|
891
|
-
readonly stateMutability: "nonpayable";
|
|
892
|
-
}, {
|
|
893
|
-
readonly type: "function";
|
|
894
|
-
readonly name: "erc4626Mint";
|
|
895
|
-
readonly inputs: readonly [{
|
|
896
|
-
readonly name: "vault";
|
|
897
|
-
readonly type: "address";
|
|
898
|
-
readonly internalType: "address";
|
|
899
|
-
}, {
|
|
900
|
-
readonly name: "shares";
|
|
901
|
-
readonly type: "uint256";
|
|
902
|
-
readonly internalType: "uint256";
|
|
903
|
-
}, {
|
|
904
|
-
readonly name: "maxSharePriceE27";
|
|
905
|
-
readonly type: "uint256";
|
|
906
|
-
readonly internalType: "uint256";
|
|
907
|
-
}, {
|
|
908
|
-
readonly name: "receiver";
|
|
909
|
-
readonly type: "address";
|
|
910
|
-
readonly internalType: "address";
|
|
911
|
-
}];
|
|
912
|
-
readonly outputs: readonly [];
|
|
913
|
-
readonly stateMutability: "nonpayable";
|
|
914
|
-
}, {
|
|
915
|
-
readonly type: "function";
|
|
916
|
-
readonly name: "erc4626Redeem";
|
|
917
|
-
readonly inputs: readonly [{
|
|
918
|
-
readonly name: "vault";
|
|
919
|
-
readonly type: "address";
|
|
920
|
-
readonly internalType: "address";
|
|
921
|
-
}, {
|
|
922
|
-
readonly name: "shares";
|
|
923
|
-
readonly type: "uint256";
|
|
924
|
-
readonly internalType: "uint256";
|
|
925
|
-
}, {
|
|
926
|
-
readonly name: "minSharePriceE27";
|
|
927
|
-
readonly type: "uint256";
|
|
928
|
-
readonly internalType: "uint256";
|
|
929
|
-
}, {
|
|
930
|
-
readonly name: "receiver";
|
|
931
|
-
readonly type: "address";
|
|
932
|
-
readonly internalType: "address";
|
|
933
|
-
}, {
|
|
934
|
-
readonly name: "owner";
|
|
935
|
-
readonly type: "address";
|
|
936
|
-
readonly internalType: "address";
|
|
937
|
-
}];
|
|
938
|
-
readonly outputs: readonly [];
|
|
939
|
-
readonly stateMutability: "nonpayable";
|
|
940
|
-
}, {
|
|
941
|
-
readonly type: "function";
|
|
942
|
-
readonly name: "erc4626Withdraw";
|
|
943
|
-
readonly inputs: readonly [{
|
|
944
|
-
readonly name: "vault";
|
|
945
|
-
readonly type: "address";
|
|
946
|
-
readonly internalType: "address";
|
|
947
|
-
}, {
|
|
948
|
-
readonly name: "assets";
|
|
949
|
-
readonly type: "uint256";
|
|
950
|
-
readonly internalType: "uint256";
|
|
951
|
-
}, {
|
|
952
|
-
readonly name: "minSharePriceE27";
|
|
953
|
-
readonly type: "uint256";
|
|
954
|
-
readonly internalType: "uint256";
|
|
955
|
-
}, {
|
|
956
|
-
readonly name: "receiver";
|
|
957
|
-
readonly type: "address";
|
|
958
|
-
readonly internalType: "address";
|
|
959
|
-
}, {
|
|
960
|
-
readonly name: "owner";
|
|
961
|
-
readonly type: "address";
|
|
962
|
-
readonly internalType: "address";
|
|
963
|
-
}];
|
|
964
|
-
readonly outputs: readonly [];
|
|
965
|
-
readonly stateMutability: "nonpayable";
|
|
966
|
-
}, {
|
|
967
|
-
readonly type: "function";
|
|
968
|
-
readonly name: "morphoBorrow";
|
|
969
|
-
readonly inputs: readonly [{
|
|
970
|
-
readonly name: "marketParams";
|
|
971
|
-
readonly type: "tuple";
|
|
972
|
-
readonly internalType: "struct MarketParams";
|
|
973
|
-
readonly components: readonly [{
|
|
974
|
-
readonly name: "loanToken";
|
|
975
|
-
readonly type: "address";
|
|
976
|
-
readonly internalType: "address";
|
|
977
|
-
}, {
|
|
978
|
-
readonly name: "collateralToken";
|
|
979
|
-
readonly type: "address";
|
|
980
|
-
readonly internalType: "address";
|
|
981
|
-
}, {
|
|
982
|
-
readonly name: "oracle";
|
|
983
|
-
readonly type: "address";
|
|
984
|
-
readonly internalType: "address";
|
|
985
|
-
}, {
|
|
986
|
-
readonly name: "irm";
|
|
987
|
-
readonly type: "address";
|
|
988
|
-
readonly internalType: "address";
|
|
989
|
-
}, {
|
|
990
|
-
readonly name: "lltv";
|
|
991
|
-
readonly type: "uint256";
|
|
992
|
-
readonly internalType: "uint256";
|
|
993
|
-
}];
|
|
994
|
-
}, {
|
|
995
|
-
readonly name: "assets";
|
|
996
|
-
readonly type: "uint256";
|
|
997
|
-
readonly internalType: "uint256";
|
|
998
|
-
}, {
|
|
999
|
-
readonly name: "shares";
|
|
1000
|
-
readonly type: "uint256";
|
|
1001
|
-
readonly internalType: "uint256";
|
|
1002
|
-
}, {
|
|
1003
|
-
readonly name: "minSharePriceE27";
|
|
1004
|
-
readonly type: "uint256";
|
|
1005
|
-
readonly internalType: "uint256";
|
|
1006
|
-
}, {
|
|
1007
|
-
readonly name: "receiver";
|
|
1008
|
-
readonly type: "address";
|
|
1009
|
-
readonly internalType: "address";
|
|
1010
|
-
}];
|
|
1011
|
-
readonly outputs: readonly [];
|
|
1012
|
-
readonly stateMutability: "nonpayable";
|
|
1013
|
-
}, {
|
|
1014
|
-
readonly type: "function";
|
|
1015
|
-
readonly name: "morphoFlashLoan";
|
|
1016
|
-
readonly inputs: readonly [{
|
|
1017
|
-
readonly name: "token";
|
|
1018
|
-
readonly type: "address";
|
|
1019
|
-
readonly internalType: "address";
|
|
1020
|
-
}, {
|
|
1021
|
-
readonly name: "assets";
|
|
1022
|
-
readonly type: "uint256";
|
|
1023
|
-
readonly internalType: "uint256";
|
|
1024
|
-
}, {
|
|
1025
|
-
readonly name: "data";
|
|
1026
|
-
readonly type: "bytes";
|
|
1027
|
-
readonly internalType: "bytes";
|
|
1028
|
-
}];
|
|
1029
|
-
readonly outputs: readonly [];
|
|
1030
|
-
readonly stateMutability: "nonpayable";
|
|
1031
|
-
}, {
|
|
1032
|
-
readonly type: "function";
|
|
1033
|
-
readonly name: "morphoRepay";
|
|
1034
|
-
readonly inputs: readonly [{
|
|
1035
|
-
readonly name: "marketParams";
|
|
1036
|
-
readonly type: "tuple";
|
|
1037
|
-
readonly internalType: "struct MarketParams";
|
|
1038
|
-
readonly components: readonly [{
|
|
1039
|
-
readonly name: "loanToken";
|
|
1040
|
-
readonly type: "address";
|
|
1041
|
-
readonly internalType: "address";
|
|
1042
|
-
}, {
|
|
1043
|
-
readonly name: "collateralToken";
|
|
1044
|
-
readonly type: "address";
|
|
1045
|
-
readonly internalType: "address";
|
|
1046
|
-
}, {
|
|
1047
|
-
readonly name: "oracle";
|
|
1048
|
-
readonly type: "address";
|
|
1049
|
-
readonly internalType: "address";
|
|
1050
|
-
}, {
|
|
1051
|
-
readonly name: "irm";
|
|
1052
|
-
readonly type: "address";
|
|
1053
|
-
readonly internalType: "address";
|
|
1054
|
-
}, {
|
|
1055
|
-
readonly name: "lltv";
|
|
1056
|
-
readonly type: "uint256";
|
|
1057
|
-
readonly internalType: "uint256";
|
|
1058
|
-
}];
|
|
1059
|
-
}, {
|
|
1060
|
-
readonly name: "assets";
|
|
1061
|
-
readonly type: "uint256";
|
|
1062
|
-
readonly internalType: "uint256";
|
|
1063
|
-
}, {
|
|
1064
|
-
readonly name: "shares";
|
|
1065
|
-
readonly type: "uint256";
|
|
1066
|
-
readonly internalType: "uint256";
|
|
1067
|
-
}, {
|
|
1068
|
-
readonly name: "maxSharePriceE27";
|
|
1069
|
-
readonly type: "uint256";
|
|
1070
|
-
readonly internalType: "uint256";
|
|
1071
|
-
}, {
|
|
1072
|
-
readonly name: "onBehalf";
|
|
1073
|
-
readonly type: "address";
|
|
1074
|
-
readonly internalType: "address";
|
|
1075
|
-
}, {
|
|
1076
|
-
readonly name: "data";
|
|
1077
|
-
readonly type: "bytes";
|
|
1078
|
-
readonly internalType: "bytes";
|
|
1079
|
-
}];
|
|
1080
|
-
readonly outputs: readonly [];
|
|
1081
|
-
readonly stateMutability: "nonpayable";
|
|
1082
|
-
}, {
|
|
1083
|
-
readonly type: "function";
|
|
1084
|
-
readonly name: "morphoSupply";
|
|
1085
|
-
readonly inputs: readonly [{
|
|
1086
|
-
readonly name: "marketParams";
|
|
1087
|
-
readonly type: "tuple";
|
|
1088
|
-
readonly internalType: "struct MarketParams";
|
|
1089
|
-
readonly components: readonly [{
|
|
1090
|
-
readonly name: "loanToken";
|
|
1091
|
-
readonly type: "address";
|
|
1092
|
-
readonly internalType: "address";
|
|
1093
|
-
}, {
|
|
1094
|
-
readonly name: "collateralToken";
|
|
1095
|
-
readonly type: "address";
|
|
1096
|
-
readonly internalType: "address";
|
|
1097
|
-
}, {
|
|
1098
|
-
readonly name: "oracle";
|
|
1099
|
-
readonly type: "address";
|
|
1100
|
-
readonly internalType: "address";
|
|
1101
|
-
}, {
|
|
1102
|
-
readonly name: "irm";
|
|
1103
|
-
readonly type: "address";
|
|
1104
|
-
readonly internalType: "address";
|
|
1105
|
-
}, {
|
|
1106
|
-
readonly name: "lltv";
|
|
1107
|
-
readonly type: "uint256";
|
|
1108
|
-
readonly internalType: "uint256";
|
|
1109
|
-
}];
|
|
1110
|
-
}, {
|
|
1111
|
-
readonly name: "assets";
|
|
1112
|
-
readonly type: "uint256";
|
|
1113
|
-
readonly internalType: "uint256";
|
|
1114
|
-
}, {
|
|
1115
|
-
readonly name: "shares";
|
|
1116
|
-
readonly type: "uint256";
|
|
1117
|
-
readonly internalType: "uint256";
|
|
1118
|
-
}, {
|
|
1119
|
-
readonly name: "maxSharePriceE27";
|
|
1120
|
-
readonly type: "uint256";
|
|
1121
|
-
readonly internalType: "uint256";
|
|
1122
|
-
}, {
|
|
1123
|
-
readonly name: "onBehalf";
|
|
1124
|
-
readonly type: "address";
|
|
1125
|
-
readonly internalType: "address";
|
|
1126
|
-
}, {
|
|
1127
|
-
readonly name: "data";
|
|
1128
|
-
readonly type: "bytes";
|
|
1129
|
-
readonly internalType: "bytes";
|
|
1130
|
-
}];
|
|
1131
|
-
readonly outputs: readonly [];
|
|
1132
|
-
readonly stateMutability: "nonpayable";
|
|
1133
|
-
}, {
|
|
1134
|
-
readonly type: "function";
|
|
1135
|
-
readonly name: "morphoSupplyCollateral";
|
|
1136
|
-
readonly inputs: readonly [{
|
|
1137
|
-
readonly name: "marketParams";
|
|
1138
|
-
readonly type: "tuple";
|
|
1139
|
-
readonly internalType: "struct MarketParams";
|
|
1140
|
-
readonly components: readonly [{
|
|
1141
|
-
readonly name: "loanToken";
|
|
1142
|
-
readonly type: "address";
|
|
1143
|
-
readonly internalType: "address";
|
|
1144
|
-
}, {
|
|
1145
|
-
readonly name: "collateralToken";
|
|
1146
|
-
readonly type: "address";
|
|
1147
|
-
readonly internalType: "address";
|
|
1148
|
-
}, {
|
|
1149
|
-
readonly name: "oracle";
|
|
1150
|
-
readonly type: "address";
|
|
1151
|
-
readonly internalType: "address";
|
|
1152
|
-
}, {
|
|
1153
|
-
readonly name: "irm";
|
|
1154
|
-
readonly type: "address";
|
|
1155
|
-
readonly internalType: "address";
|
|
1156
|
-
}, {
|
|
1157
|
-
readonly name: "lltv";
|
|
1158
|
-
readonly type: "uint256";
|
|
1159
|
-
readonly internalType: "uint256";
|
|
1160
|
-
}];
|
|
1161
|
-
}, {
|
|
1162
|
-
readonly name: "assets";
|
|
1163
|
-
readonly type: "uint256";
|
|
1164
|
-
readonly internalType: "uint256";
|
|
1165
|
-
}, {
|
|
1166
|
-
readonly name: "onBehalf";
|
|
1167
|
-
readonly type: "address";
|
|
1168
|
-
readonly internalType: "address";
|
|
1169
|
-
}, {
|
|
1170
|
-
readonly name: "data";
|
|
1171
|
-
readonly type: "bytes";
|
|
1172
|
-
readonly internalType: "bytes";
|
|
1173
|
-
}];
|
|
1174
|
-
readonly outputs: readonly [];
|
|
1175
|
-
readonly stateMutability: "nonpayable";
|
|
1176
|
-
}, {
|
|
1177
|
-
readonly type: "function";
|
|
1178
|
-
readonly name: "morphoWithdraw";
|
|
1179
|
-
readonly inputs: readonly [{
|
|
1180
|
-
readonly name: "marketParams";
|
|
1181
|
-
readonly type: "tuple";
|
|
1182
|
-
readonly internalType: "struct MarketParams";
|
|
1183
|
-
readonly components: readonly [{
|
|
1184
|
-
readonly name: "loanToken";
|
|
1185
|
-
readonly type: "address";
|
|
1186
|
-
readonly internalType: "address";
|
|
1187
|
-
}, {
|
|
1188
|
-
readonly name: "collateralToken";
|
|
1189
|
-
readonly type: "address";
|
|
1190
|
-
readonly internalType: "address";
|
|
1191
|
-
}, {
|
|
1192
|
-
readonly name: "oracle";
|
|
1193
|
-
readonly type: "address";
|
|
1194
|
-
readonly internalType: "address";
|
|
1195
|
-
}, {
|
|
1196
|
-
readonly name: "irm";
|
|
1197
|
-
readonly type: "address";
|
|
1198
|
-
readonly internalType: "address";
|
|
1199
|
-
}, {
|
|
1200
|
-
readonly name: "lltv";
|
|
1201
|
-
readonly type: "uint256";
|
|
1202
|
-
readonly internalType: "uint256";
|
|
1203
|
-
}];
|
|
1204
|
-
}, {
|
|
1205
|
-
readonly name: "assets";
|
|
1206
|
-
readonly type: "uint256";
|
|
1207
|
-
readonly internalType: "uint256";
|
|
1208
|
-
}, {
|
|
1209
|
-
readonly name: "shares";
|
|
1210
|
-
readonly type: "uint256";
|
|
1211
|
-
readonly internalType: "uint256";
|
|
1212
|
-
}, {
|
|
1213
|
-
readonly name: "minSharePriceE27";
|
|
1214
|
-
readonly type: "uint256";
|
|
1215
|
-
readonly internalType: "uint256";
|
|
1216
|
-
}, {
|
|
1217
|
-
readonly name: "receiver";
|
|
1218
|
-
readonly type: "address";
|
|
1219
|
-
readonly internalType: "address";
|
|
1220
|
-
}];
|
|
1221
|
-
readonly outputs: readonly [];
|
|
1222
|
-
readonly stateMutability: "nonpayable";
|
|
1223
|
-
}, {
|
|
1224
|
-
readonly type: "function";
|
|
1225
|
-
readonly name: "morphoWithdrawCollateral";
|
|
1226
|
-
readonly inputs: readonly [{
|
|
1227
|
-
readonly name: "marketParams";
|
|
1228
|
-
readonly type: "tuple";
|
|
1229
|
-
readonly internalType: "struct MarketParams";
|
|
1230
|
-
readonly components: readonly [{
|
|
1231
|
-
readonly name: "loanToken";
|
|
1232
|
-
readonly type: "address";
|
|
1233
|
-
readonly internalType: "address";
|
|
1234
|
-
}, {
|
|
1235
|
-
readonly name: "collateralToken";
|
|
1236
|
-
readonly type: "address";
|
|
1237
|
-
readonly internalType: "address";
|
|
1238
|
-
}, {
|
|
1239
|
-
readonly name: "oracle";
|
|
1240
|
-
readonly type: "address";
|
|
1241
|
-
readonly internalType: "address";
|
|
1242
|
-
}, {
|
|
1243
|
-
readonly name: "irm";
|
|
1244
|
-
readonly type: "address";
|
|
1245
|
-
readonly internalType: "address";
|
|
1246
|
-
}, {
|
|
1247
|
-
readonly name: "lltv";
|
|
1248
|
-
readonly type: "uint256";
|
|
1249
|
-
readonly internalType: "uint256";
|
|
1250
|
-
}];
|
|
1251
|
-
}, {
|
|
1252
|
-
readonly name: "assets";
|
|
1253
|
-
readonly type: "uint256";
|
|
1254
|
-
readonly internalType: "uint256";
|
|
1255
|
-
}, {
|
|
1256
|
-
readonly name: "receiver";
|
|
1257
|
-
readonly type: "address";
|
|
1258
|
-
readonly internalType: "address";
|
|
1259
|
-
}];
|
|
1260
|
-
readonly outputs: readonly [];
|
|
1261
|
-
readonly stateMutability: "nonpayable";
|
|
1262
|
-
}, {
|
|
1263
|
-
readonly type: "function";
|
|
1264
|
-
readonly name: "onMorphoFlashLoan";
|
|
1265
|
-
readonly inputs: readonly [{
|
|
1266
|
-
readonly name: "";
|
|
1267
|
-
readonly type: "uint256";
|
|
1268
|
-
readonly internalType: "uint256";
|
|
1269
|
-
}, {
|
|
1270
|
-
readonly name: "data";
|
|
1271
|
-
readonly type: "bytes";
|
|
1272
|
-
readonly internalType: "bytes";
|
|
1273
|
-
}];
|
|
1274
|
-
readonly outputs: readonly [];
|
|
1275
|
-
readonly stateMutability: "nonpayable";
|
|
1276
|
-
}, {
|
|
1277
|
-
readonly type: "function";
|
|
1278
|
-
readonly name: "onMorphoRepay";
|
|
1279
|
-
readonly inputs: readonly [{
|
|
1280
|
-
readonly name: "";
|
|
1281
|
-
readonly type: "uint256";
|
|
1282
|
-
readonly internalType: "uint256";
|
|
1283
|
-
}, {
|
|
1284
|
-
readonly name: "data";
|
|
1285
|
-
readonly type: "bytes";
|
|
1286
|
-
readonly internalType: "bytes";
|
|
1287
|
-
}];
|
|
1288
|
-
readonly outputs: readonly [];
|
|
1289
|
-
readonly stateMutability: "nonpayable";
|
|
1290
|
-
}, {
|
|
1291
|
-
readonly type: "function";
|
|
1292
|
-
readonly name: "onMorphoSupply";
|
|
1293
|
-
readonly inputs: readonly [{
|
|
1294
|
-
readonly name: "";
|
|
1295
|
-
readonly type: "uint256";
|
|
1296
|
-
readonly internalType: "uint256";
|
|
1297
|
-
}, {
|
|
1298
|
-
readonly name: "data";
|
|
1299
|
-
readonly type: "bytes";
|
|
1300
|
-
readonly internalType: "bytes";
|
|
1301
|
-
}];
|
|
1302
|
-
readonly outputs: readonly [];
|
|
1303
|
-
readonly stateMutability: "nonpayable";
|
|
1304
|
-
}, {
|
|
1305
|
-
readonly type: "function";
|
|
1306
|
-
readonly name: "onMorphoSupplyCollateral";
|
|
1307
|
-
readonly inputs: readonly [{
|
|
1308
|
-
readonly name: "";
|
|
1309
|
-
readonly type: "uint256";
|
|
1310
|
-
readonly internalType: "uint256";
|
|
1311
|
-
}, {
|
|
1312
|
-
readonly name: "data";
|
|
1313
|
-
readonly type: "bytes";
|
|
1314
|
-
readonly internalType: "bytes";
|
|
1315
|
-
}];
|
|
1316
|
-
readonly outputs: readonly [];
|
|
1317
|
-
readonly stateMutability: "nonpayable";
|
|
1318
|
-
}, {
|
|
1319
|
-
readonly type: "function";
|
|
1320
|
-
readonly name: "permit2TransferFrom";
|
|
1321
|
-
readonly inputs: readonly [{
|
|
1322
|
-
readonly name: "token";
|
|
1323
|
-
readonly type: "address";
|
|
1324
|
-
readonly internalType: "address";
|
|
1325
|
-
}, {
|
|
1326
|
-
readonly name: "receiver";
|
|
1327
|
-
readonly type: "address";
|
|
1328
|
-
readonly internalType: "address";
|
|
1329
|
-
}, {
|
|
1330
|
-
readonly name: "amount";
|
|
1331
|
-
readonly type: "uint256";
|
|
1332
|
-
readonly internalType: "uint256";
|
|
1333
|
-
}];
|
|
1334
|
-
readonly outputs: readonly [];
|
|
1335
|
-
readonly stateMutability: "nonpayable";
|
|
1336
|
-
}, {
|
|
1337
|
-
readonly type: "function";
|
|
1338
|
-
readonly name: "unwrapNative";
|
|
1339
|
-
readonly inputs: readonly [{
|
|
1340
|
-
readonly name: "amount";
|
|
1341
|
-
readonly type: "uint256";
|
|
1342
|
-
readonly internalType: "uint256";
|
|
1343
|
-
}, {
|
|
1344
|
-
readonly name: "receiver";
|
|
1345
|
-
readonly type: "address";
|
|
1346
|
-
readonly internalType: "address";
|
|
1347
|
-
}];
|
|
1348
|
-
readonly outputs: readonly [];
|
|
1349
|
-
readonly stateMutability: "nonpayable";
|
|
1350
|
-
}, {
|
|
1351
|
-
readonly type: "function";
|
|
1352
|
-
readonly name: "wrapNative";
|
|
1353
|
-
readonly inputs: readonly [{
|
|
1354
|
-
readonly name: "amount";
|
|
1355
|
-
readonly type: "uint256";
|
|
1356
|
-
readonly internalType: "uint256";
|
|
1357
|
-
}, {
|
|
1358
|
-
readonly name: "receiver";
|
|
1359
|
-
readonly type: "address";
|
|
1360
|
-
readonly internalType: "address";
|
|
1361
|
-
}];
|
|
1362
|
-
readonly outputs: readonly [];
|
|
1363
|
-
readonly stateMutability: "nonpayable";
|
|
1364
|
-
}, {
|
|
1365
|
-
readonly type: "error";
|
|
1366
|
-
readonly name: "SlippageExceeded";
|
|
1367
|
-
readonly inputs: readonly [];
|
|
1368
|
-
}, {
|
|
1369
|
-
readonly type: "error";
|
|
1370
|
-
readonly name: "UnexpectedOwner";
|
|
1371
|
-
readonly inputs: readonly [];
|
|
1372
|
-
}, {
|
|
1373
|
-
readonly type: "error";
|
|
1374
|
-
readonly name: "UnsafeCast";
|
|
1375
|
-
readonly inputs: readonly [];
|
|
1376
|
-
}, {
|
|
1377
|
-
readonly type: "error";
|
|
1378
|
-
readonly name: "ZeroShares";
|
|
1379
|
-
readonly inputs: readonly [];
|
|
1380
|
-
}];
|
|
1381
|
-
/**
|
|
1382
|
-
* ABI for the Ethereum-specific Bundler3 GeneralAdapter1 extension.
|
|
1383
|
-
*
|
|
1384
|
-
* MORPHO legacy token wrapping entries are deprecated and will be removed in the next major.
|
|
1385
|
-
* Use the current MORPHO token directly. Native-token and stETH wrapping remain supported.
|
|
1386
|
-
*/
|
|
1387
|
-
export declare const ethereumGeneralAdapter1Abi: readonly [{
|
|
1388
|
-
readonly type: "receive";
|
|
1389
|
-
readonly stateMutability: "payable";
|
|
1390
|
-
}, {
|
|
1391
|
-
readonly type: "function";
|
|
1392
|
-
readonly name: "BUNDLER3";
|
|
1393
|
-
readonly inputs: readonly [];
|
|
1394
|
-
readonly outputs: readonly [{
|
|
1395
|
-
readonly name: "";
|
|
1396
|
-
readonly type: "address";
|
|
1397
|
-
readonly internalType: "address";
|
|
1398
|
-
}];
|
|
1399
|
-
readonly stateMutability: "view";
|
|
1400
|
-
}, {
|
|
1401
|
-
readonly type: "function";
|
|
1402
|
-
readonly name: "erc20Transfer";
|
|
1403
|
-
readonly inputs: readonly [{
|
|
1404
|
-
readonly name: "token";
|
|
1405
|
-
readonly type: "address";
|
|
1406
|
-
readonly internalType: "address";
|
|
1407
|
-
}, {
|
|
1408
|
-
readonly name: "receiver";
|
|
1409
|
-
readonly type: "address";
|
|
1410
|
-
readonly internalType: "address";
|
|
1411
|
-
}, {
|
|
1412
|
-
readonly name: "amount";
|
|
1413
|
-
readonly type: "uint256";
|
|
1414
|
-
readonly internalType: "uint256";
|
|
1415
|
-
}];
|
|
1416
|
-
readonly outputs: readonly [];
|
|
1417
|
-
readonly stateMutability: "nonpayable";
|
|
1418
|
-
}, {
|
|
1419
|
-
readonly type: "function";
|
|
1420
|
-
readonly name: "nativeTransfer";
|
|
1421
|
-
readonly inputs: readonly [{
|
|
1422
|
-
readonly name: "receiver";
|
|
1423
|
-
readonly type: "address";
|
|
1424
|
-
readonly internalType: "address";
|
|
1425
|
-
}, {
|
|
1426
|
-
readonly name: "amount";
|
|
1427
|
-
readonly type: "uint256";
|
|
1428
|
-
readonly internalType: "uint256";
|
|
1429
|
-
}];
|
|
1430
|
-
readonly outputs: readonly [];
|
|
1431
|
-
readonly stateMutability: "nonpayable";
|
|
1432
|
-
}, {
|
|
1433
|
-
readonly type: "error";
|
|
1434
|
-
readonly name: "AdapterAddress";
|
|
1435
|
-
readonly inputs: readonly [];
|
|
1436
|
-
}, {
|
|
1437
|
-
readonly type: "error";
|
|
1438
|
-
readonly name: "FailedCall";
|
|
1439
|
-
readonly inputs: readonly [];
|
|
1440
|
-
}, {
|
|
1441
|
-
readonly type: "error";
|
|
1442
|
-
readonly name: "InsufficientBalance";
|
|
1443
|
-
readonly inputs: readonly [{
|
|
1444
|
-
readonly name: "balance";
|
|
1445
|
-
readonly type: "uint256";
|
|
1446
|
-
readonly internalType: "uint256";
|
|
1447
|
-
}, {
|
|
1448
|
-
readonly name: "needed";
|
|
1449
|
-
readonly type: "uint256";
|
|
1450
|
-
readonly internalType: "uint256";
|
|
1451
|
-
}];
|
|
1452
|
-
}, {
|
|
1453
|
-
readonly type: "error";
|
|
1454
|
-
readonly name: "SafeERC20FailedOperation";
|
|
1455
|
-
readonly inputs: readonly [{
|
|
1456
|
-
readonly name: "token";
|
|
1457
|
-
readonly type: "address";
|
|
1458
|
-
readonly internalType: "address";
|
|
1459
|
-
}];
|
|
1460
|
-
}, {
|
|
1461
|
-
readonly type: "error";
|
|
1462
|
-
readonly name: "UnauthorizedSender";
|
|
1463
|
-
readonly inputs: readonly [];
|
|
1464
|
-
}, {
|
|
1465
|
-
readonly type: "error";
|
|
1466
|
-
readonly name: "ZeroAddress";
|
|
1467
|
-
readonly inputs: readonly [];
|
|
1468
|
-
}, {
|
|
1469
|
-
readonly type: "error";
|
|
1470
|
-
readonly name: "ZeroAmount";
|
|
1471
|
-
readonly inputs: readonly [];
|
|
1472
|
-
}, {
|
|
1473
|
-
readonly type: "constructor";
|
|
1474
|
-
readonly inputs: readonly [{
|
|
1475
|
-
readonly name: "bundler3";
|
|
1476
|
-
readonly type: "address";
|
|
1477
|
-
readonly internalType: "address";
|
|
1478
|
-
}, {
|
|
1479
|
-
readonly name: "morpho";
|
|
1480
|
-
readonly type: "address";
|
|
1481
|
-
readonly internalType: "address";
|
|
1482
|
-
}, {
|
|
1483
|
-
readonly name: "wNative";
|
|
1484
|
-
readonly type: "address";
|
|
1485
|
-
readonly internalType: "address";
|
|
1486
|
-
}];
|
|
1487
|
-
readonly stateMutability: "nonpayable";
|
|
1488
|
-
}, {
|
|
1489
|
-
readonly type: "function";
|
|
1490
|
-
readonly name: "MORPHO";
|
|
1491
|
-
readonly inputs: readonly [];
|
|
1492
|
-
readonly outputs: readonly [{
|
|
1493
|
-
readonly name: "";
|
|
1494
|
-
readonly type: "address";
|
|
1495
|
-
readonly internalType: "contract IMorpho";
|
|
1496
|
-
}];
|
|
1497
|
-
readonly stateMutability: "view";
|
|
1498
|
-
}, {
|
|
1499
|
-
readonly type: "function";
|
|
1500
|
-
readonly name: "WRAPPED_NATIVE";
|
|
1501
|
-
readonly inputs: readonly [];
|
|
1502
|
-
readonly outputs: readonly [{
|
|
1503
|
-
readonly name: "";
|
|
1504
|
-
readonly type: "address";
|
|
1505
|
-
readonly internalType: "contract IWNative";
|
|
1506
|
-
}];
|
|
1507
|
-
readonly stateMutability: "view";
|
|
1508
|
-
}, {
|
|
1509
|
-
readonly type: "function";
|
|
1510
|
-
readonly name: "erc20TransferFrom";
|
|
1511
|
-
readonly inputs: readonly [{
|
|
1512
|
-
readonly name: "token";
|
|
1513
|
-
readonly type: "address";
|
|
1514
|
-
readonly internalType: "address";
|
|
1515
|
-
}, {
|
|
1516
|
-
readonly name: "receiver";
|
|
1517
|
-
readonly type: "address";
|
|
1518
|
-
readonly internalType: "address";
|
|
1519
|
-
}, {
|
|
1520
|
-
readonly name: "amount";
|
|
1521
|
-
readonly type: "uint256";
|
|
1522
|
-
readonly internalType: "uint256";
|
|
1523
|
-
}];
|
|
1524
|
-
readonly outputs: readonly [];
|
|
1525
|
-
readonly stateMutability: "nonpayable";
|
|
1526
|
-
}, {
|
|
1527
|
-
readonly type: "function";
|
|
1528
|
-
readonly name: "erc4626Deposit";
|
|
1529
|
-
readonly inputs: readonly [{
|
|
1530
|
-
readonly name: "vault";
|
|
1531
|
-
readonly type: "address";
|
|
1532
|
-
readonly internalType: "address";
|
|
1533
|
-
}, {
|
|
1534
|
-
readonly name: "assets";
|
|
1535
|
-
readonly type: "uint256";
|
|
1536
|
-
readonly internalType: "uint256";
|
|
1537
|
-
}, {
|
|
1538
|
-
readonly name: "maxSharePriceE27";
|
|
1539
|
-
readonly type: "uint256";
|
|
1540
|
-
readonly internalType: "uint256";
|
|
1541
|
-
}, {
|
|
1542
|
-
readonly name: "receiver";
|
|
1543
|
-
readonly type: "address";
|
|
1544
|
-
readonly internalType: "address";
|
|
1545
|
-
}];
|
|
1546
|
-
readonly outputs: readonly [];
|
|
1547
|
-
readonly stateMutability: "nonpayable";
|
|
1548
|
-
}, {
|
|
1549
|
-
readonly type: "function";
|
|
1550
|
-
readonly name: "erc4626Mint";
|
|
1551
|
-
readonly inputs: readonly [{
|
|
1552
|
-
readonly name: "vault";
|
|
1553
|
-
readonly type: "address";
|
|
1554
|
-
readonly internalType: "address";
|
|
1555
|
-
}, {
|
|
1556
|
-
readonly name: "shares";
|
|
1557
|
-
readonly type: "uint256";
|
|
1558
|
-
readonly internalType: "uint256";
|
|
1559
|
-
}, {
|
|
1560
|
-
readonly name: "maxSharePriceE27";
|
|
1561
|
-
readonly type: "uint256";
|
|
1562
|
-
readonly internalType: "uint256";
|
|
1563
|
-
}, {
|
|
1564
|
-
readonly name: "receiver";
|
|
1565
|
-
readonly type: "address";
|
|
1566
|
-
readonly internalType: "address";
|
|
1567
|
-
}];
|
|
1568
|
-
readonly outputs: readonly [];
|
|
1569
|
-
readonly stateMutability: "nonpayable";
|
|
1570
|
-
}, {
|
|
1571
|
-
readonly type: "function";
|
|
1572
|
-
readonly name: "erc4626Redeem";
|
|
1573
|
-
readonly inputs: readonly [{
|
|
1574
|
-
readonly name: "vault";
|
|
1575
|
-
readonly type: "address";
|
|
1576
|
-
readonly internalType: "address";
|
|
1577
|
-
}, {
|
|
1578
|
-
readonly name: "shares";
|
|
1579
|
-
readonly type: "uint256";
|
|
1580
|
-
readonly internalType: "uint256";
|
|
1581
|
-
}, {
|
|
1582
|
-
readonly name: "minSharePriceE27";
|
|
1583
|
-
readonly type: "uint256";
|
|
1584
|
-
readonly internalType: "uint256";
|
|
1585
|
-
}, {
|
|
1586
|
-
readonly name: "receiver";
|
|
1587
|
-
readonly type: "address";
|
|
1588
|
-
readonly internalType: "address";
|
|
1589
|
-
}, {
|
|
1590
|
-
readonly name: "owner";
|
|
1591
|
-
readonly type: "address";
|
|
1592
|
-
readonly internalType: "address";
|
|
1593
|
-
}];
|
|
1594
|
-
readonly outputs: readonly [];
|
|
1595
|
-
readonly stateMutability: "nonpayable";
|
|
1596
|
-
}, {
|
|
1597
|
-
readonly type: "function";
|
|
1598
|
-
readonly name: "erc4626Withdraw";
|
|
1599
|
-
readonly inputs: readonly [{
|
|
1600
|
-
readonly name: "vault";
|
|
1601
|
-
readonly type: "address";
|
|
1602
|
-
readonly internalType: "address";
|
|
1603
|
-
}, {
|
|
1604
|
-
readonly name: "assets";
|
|
1605
|
-
readonly type: "uint256";
|
|
1606
|
-
readonly internalType: "uint256";
|
|
1607
|
-
}, {
|
|
1608
|
-
readonly name: "minSharePriceE27";
|
|
1609
|
-
readonly type: "uint256";
|
|
1610
|
-
readonly internalType: "uint256";
|
|
1611
|
-
}, {
|
|
1612
|
-
readonly name: "receiver";
|
|
1613
|
-
readonly type: "address";
|
|
1614
|
-
readonly internalType: "address";
|
|
1615
|
-
}, {
|
|
1616
|
-
readonly name: "owner";
|
|
1617
|
-
readonly type: "address";
|
|
1618
|
-
readonly internalType: "address";
|
|
1619
|
-
}];
|
|
1620
|
-
readonly outputs: readonly [];
|
|
1621
|
-
readonly stateMutability: "nonpayable";
|
|
1622
|
-
}, {
|
|
1623
|
-
readonly type: "function";
|
|
1624
|
-
readonly name: "morphoBorrow";
|
|
1625
|
-
readonly inputs: readonly [{
|
|
1626
|
-
readonly name: "marketParams";
|
|
1627
|
-
readonly type: "tuple";
|
|
1628
|
-
readonly internalType: "struct MarketParams";
|
|
1629
|
-
readonly components: readonly [{
|
|
1630
|
-
readonly name: "loanToken";
|
|
1631
|
-
readonly type: "address";
|
|
1632
|
-
readonly internalType: "address";
|
|
1633
|
-
}, {
|
|
1634
|
-
readonly name: "collateralToken";
|
|
1635
|
-
readonly type: "address";
|
|
1636
|
-
readonly internalType: "address";
|
|
1637
|
-
}, {
|
|
1638
|
-
readonly name: "oracle";
|
|
1639
|
-
readonly type: "address";
|
|
1640
|
-
readonly internalType: "address";
|
|
1641
|
-
}, {
|
|
1642
|
-
readonly name: "irm";
|
|
1643
|
-
readonly type: "address";
|
|
1644
|
-
readonly internalType: "address";
|
|
1645
|
-
}, {
|
|
1646
|
-
readonly name: "lltv";
|
|
1647
|
-
readonly type: "uint256";
|
|
1648
|
-
readonly internalType: "uint256";
|
|
1649
|
-
}];
|
|
1650
|
-
}, {
|
|
1651
|
-
readonly name: "assets";
|
|
1652
|
-
readonly type: "uint256";
|
|
1653
|
-
readonly internalType: "uint256";
|
|
1654
|
-
}, {
|
|
1655
|
-
readonly name: "shares";
|
|
1656
|
-
readonly type: "uint256";
|
|
1657
|
-
readonly internalType: "uint256";
|
|
1658
|
-
}, {
|
|
1659
|
-
readonly name: "minSharePriceE27";
|
|
1660
|
-
readonly type: "uint256";
|
|
1661
|
-
readonly internalType: "uint256";
|
|
1662
|
-
}, {
|
|
1663
|
-
readonly name: "receiver";
|
|
1664
|
-
readonly type: "address";
|
|
1665
|
-
readonly internalType: "address";
|
|
1666
|
-
}];
|
|
1667
|
-
readonly outputs: readonly [];
|
|
1668
|
-
readonly stateMutability: "nonpayable";
|
|
1669
|
-
}, {
|
|
1670
|
-
readonly type: "function";
|
|
1671
|
-
readonly name: "morphoFlashLoan";
|
|
1672
|
-
readonly inputs: readonly [{
|
|
1673
|
-
readonly name: "token";
|
|
1674
|
-
readonly type: "address";
|
|
1675
|
-
readonly internalType: "address";
|
|
1676
|
-
}, {
|
|
1677
|
-
readonly name: "assets";
|
|
1678
|
-
readonly type: "uint256";
|
|
1679
|
-
readonly internalType: "uint256";
|
|
1680
|
-
}, {
|
|
1681
|
-
readonly name: "data";
|
|
1682
|
-
readonly type: "bytes";
|
|
1683
|
-
readonly internalType: "bytes";
|
|
1684
|
-
}];
|
|
1685
|
-
readonly outputs: readonly [];
|
|
1686
|
-
readonly stateMutability: "nonpayable";
|
|
1687
|
-
}, {
|
|
1688
|
-
readonly type: "function";
|
|
1689
|
-
readonly name: "morphoRepay";
|
|
1690
|
-
readonly inputs: readonly [{
|
|
1691
|
-
readonly name: "marketParams";
|
|
1692
|
-
readonly type: "tuple";
|
|
1693
|
-
readonly internalType: "struct MarketParams";
|
|
1694
|
-
readonly components: readonly [{
|
|
1695
|
-
readonly name: "loanToken";
|
|
1696
|
-
readonly type: "address";
|
|
1697
|
-
readonly internalType: "address";
|
|
1698
|
-
}, {
|
|
1699
|
-
readonly name: "collateralToken";
|
|
1700
|
-
readonly type: "address";
|
|
1701
|
-
readonly internalType: "address";
|
|
1702
|
-
}, {
|
|
1703
|
-
readonly name: "oracle";
|
|
1704
|
-
readonly type: "address";
|
|
1705
|
-
readonly internalType: "address";
|
|
1706
|
-
}, {
|
|
1707
|
-
readonly name: "irm";
|
|
1708
|
-
readonly type: "address";
|
|
1709
|
-
readonly internalType: "address";
|
|
1710
|
-
}, {
|
|
1711
|
-
readonly name: "lltv";
|
|
1712
|
-
readonly type: "uint256";
|
|
1713
|
-
readonly internalType: "uint256";
|
|
1714
|
-
}];
|
|
1715
|
-
}, {
|
|
1716
|
-
readonly name: "assets";
|
|
1717
|
-
readonly type: "uint256";
|
|
1718
|
-
readonly internalType: "uint256";
|
|
1719
|
-
}, {
|
|
1720
|
-
readonly name: "shares";
|
|
1721
|
-
readonly type: "uint256";
|
|
1722
|
-
readonly internalType: "uint256";
|
|
1723
|
-
}, {
|
|
1724
|
-
readonly name: "maxSharePriceE27";
|
|
1725
|
-
readonly type: "uint256";
|
|
1726
|
-
readonly internalType: "uint256";
|
|
1727
|
-
}, {
|
|
1728
|
-
readonly name: "onBehalf";
|
|
1729
|
-
readonly type: "address";
|
|
1730
|
-
readonly internalType: "address";
|
|
1731
|
-
}, {
|
|
1732
|
-
readonly name: "data";
|
|
1733
|
-
readonly type: "bytes";
|
|
1734
|
-
readonly internalType: "bytes";
|
|
1735
|
-
}];
|
|
1736
|
-
readonly outputs: readonly [];
|
|
1737
|
-
readonly stateMutability: "nonpayable";
|
|
1738
|
-
}, {
|
|
1739
|
-
readonly type: "function";
|
|
1740
|
-
readonly name: "morphoSupply";
|
|
1741
|
-
readonly inputs: readonly [{
|
|
1742
|
-
readonly name: "marketParams";
|
|
1743
|
-
readonly type: "tuple";
|
|
1744
|
-
readonly internalType: "struct MarketParams";
|
|
1745
|
-
readonly components: readonly [{
|
|
1746
|
-
readonly name: "loanToken";
|
|
1747
|
-
readonly type: "address";
|
|
1748
|
-
readonly internalType: "address";
|
|
1749
|
-
}, {
|
|
1750
|
-
readonly name: "collateralToken";
|
|
1751
|
-
readonly type: "address";
|
|
1752
|
-
readonly internalType: "address";
|
|
1753
|
-
}, {
|
|
1754
|
-
readonly name: "oracle";
|
|
1755
|
-
readonly type: "address";
|
|
1756
|
-
readonly internalType: "address";
|
|
1757
|
-
}, {
|
|
1758
|
-
readonly name: "irm";
|
|
1759
|
-
readonly type: "address";
|
|
1760
|
-
readonly internalType: "address";
|
|
1761
|
-
}, {
|
|
1762
|
-
readonly name: "lltv";
|
|
1763
|
-
readonly type: "uint256";
|
|
1764
|
-
readonly internalType: "uint256";
|
|
1765
|
-
}];
|
|
1766
|
-
}, {
|
|
1767
|
-
readonly name: "assets";
|
|
1768
|
-
readonly type: "uint256";
|
|
1769
|
-
readonly internalType: "uint256";
|
|
1770
|
-
}, {
|
|
1771
|
-
readonly name: "shares";
|
|
1772
|
-
readonly type: "uint256";
|
|
1773
|
-
readonly internalType: "uint256";
|
|
1774
|
-
}, {
|
|
1775
|
-
readonly name: "maxSharePriceE27";
|
|
1776
|
-
readonly type: "uint256";
|
|
1777
|
-
readonly internalType: "uint256";
|
|
1778
|
-
}, {
|
|
1779
|
-
readonly name: "onBehalf";
|
|
1780
|
-
readonly type: "address";
|
|
1781
|
-
readonly internalType: "address";
|
|
1782
|
-
}, {
|
|
1783
|
-
readonly name: "data";
|
|
1784
|
-
readonly type: "bytes";
|
|
1785
|
-
readonly internalType: "bytes";
|
|
1786
|
-
}];
|
|
1787
|
-
readonly outputs: readonly [];
|
|
1788
|
-
readonly stateMutability: "nonpayable";
|
|
1789
|
-
}, {
|
|
1790
|
-
readonly type: "function";
|
|
1791
|
-
readonly name: "morphoSupplyCollateral";
|
|
1792
|
-
readonly inputs: readonly [{
|
|
1793
|
-
readonly name: "marketParams";
|
|
1794
|
-
readonly type: "tuple";
|
|
1795
|
-
readonly internalType: "struct MarketParams";
|
|
1796
|
-
readonly components: readonly [{
|
|
1797
|
-
readonly name: "loanToken";
|
|
1798
|
-
readonly type: "address";
|
|
1799
|
-
readonly internalType: "address";
|
|
1800
|
-
}, {
|
|
1801
|
-
readonly name: "collateralToken";
|
|
1802
|
-
readonly type: "address";
|
|
1803
|
-
readonly internalType: "address";
|
|
1804
|
-
}, {
|
|
1805
|
-
readonly name: "oracle";
|
|
1806
|
-
readonly type: "address";
|
|
1807
|
-
readonly internalType: "address";
|
|
1808
|
-
}, {
|
|
1809
|
-
readonly name: "irm";
|
|
1810
|
-
readonly type: "address";
|
|
1811
|
-
readonly internalType: "address";
|
|
1812
|
-
}, {
|
|
1813
|
-
readonly name: "lltv";
|
|
1814
|
-
readonly type: "uint256";
|
|
1815
|
-
readonly internalType: "uint256";
|
|
1816
|
-
}];
|
|
1817
|
-
}, {
|
|
1818
|
-
readonly name: "assets";
|
|
1819
|
-
readonly type: "uint256";
|
|
1820
|
-
readonly internalType: "uint256";
|
|
1821
|
-
}, {
|
|
1822
|
-
readonly name: "onBehalf";
|
|
1823
|
-
readonly type: "address";
|
|
1824
|
-
readonly internalType: "address";
|
|
1825
|
-
}, {
|
|
1826
|
-
readonly name: "data";
|
|
1827
|
-
readonly type: "bytes";
|
|
1828
|
-
readonly internalType: "bytes";
|
|
1829
|
-
}];
|
|
1830
|
-
readonly outputs: readonly [];
|
|
1831
|
-
readonly stateMutability: "nonpayable";
|
|
1832
|
-
}, {
|
|
1833
|
-
readonly type: "function";
|
|
1834
|
-
readonly name: "morphoWithdraw";
|
|
1835
|
-
readonly inputs: readonly [{
|
|
1836
|
-
readonly name: "marketParams";
|
|
1837
|
-
readonly type: "tuple";
|
|
1838
|
-
readonly internalType: "struct MarketParams";
|
|
1839
|
-
readonly components: readonly [{
|
|
1840
|
-
readonly name: "loanToken";
|
|
1841
|
-
readonly type: "address";
|
|
1842
|
-
readonly internalType: "address";
|
|
1843
|
-
}, {
|
|
1844
|
-
readonly name: "collateralToken";
|
|
1845
|
-
readonly type: "address";
|
|
1846
|
-
readonly internalType: "address";
|
|
1847
|
-
}, {
|
|
1848
|
-
readonly name: "oracle";
|
|
1849
|
-
readonly type: "address";
|
|
1850
|
-
readonly internalType: "address";
|
|
1851
|
-
}, {
|
|
1852
|
-
readonly name: "irm";
|
|
1853
|
-
readonly type: "address";
|
|
1854
|
-
readonly internalType: "address";
|
|
1855
|
-
}, {
|
|
1856
|
-
readonly name: "lltv";
|
|
1857
|
-
readonly type: "uint256";
|
|
1858
|
-
readonly internalType: "uint256";
|
|
1859
|
-
}];
|
|
1860
|
-
}, {
|
|
1861
|
-
readonly name: "assets";
|
|
1862
|
-
readonly type: "uint256";
|
|
1863
|
-
readonly internalType: "uint256";
|
|
1864
|
-
}, {
|
|
1865
|
-
readonly name: "shares";
|
|
1866
|
-
readonly type: "uint256";
|
|
1867
|
-
readonly internalType: "uint256";
|
|
1868
|
-
}, {
|
|
1869
|
-
readonly name: "minSharePriceE27";
|
|
1870
|
-
readonly type: "uint256";
|
|
1871
|
-
readonly internalType: "uint256";
|
|
1872
|
-
}, {
|
|
1873
|
-
readonly name: "receiver";
|
|
1874
|
-
readonly type: "address";
|
|
1875
|
-
readonly internalType: "address";
|
|
1876
|
-
}];
|
|
1877
|
-
readonly outputs: readonly [];
|
|
1878
|
-
readonly stateMutability: "nonpayable";
|
|
1879
|
-
}, {
|
|
1880
|
-
readonly type: "function";
|
|
1881
|
-
readonly name: "morphoWithdrawCollateral";
|
|
1882
|
-
readonly inputs: readonly [{
|
|
1883
|
-
readonly name: "marketParams";
|
|
1884
|
-
readonly type: "tuple";
|
|
1885
|
-
readonly internalType: "struct MarketParams";
|
|
1886
|
-
readonly components: readonly [{
|
|
1887
|
-
readonly name: "loanToken";
|
|
1888
|
-
readonly type: "address";
|
|
1889
|
-
readonly internalType: "address";
|
|
1890
|
-
}, {
|
|
1891
|
-
readonly name: "collateralToken";
|
|
1892
|
-
readonly type: "address";
|
|
1893
|
-
readonly internalType: "address";
|
|
1894
|
-
}, {
|
|
1895
|
-
readonly name: "oracle";
|
|
1896
|
-
readonly type: "address";
|
|
1897
|
-
readonly internalType: "address";
|
|
1898
|
-
}, {
|
|
1899
|
-
readonly name: "irm";
|
|
1900
|
-
readonly type: "address";
|
|
1901
|
-
readonly internalType: "address";
|
|
1902
|
-
}, {
|
|
1903
|
-
readonly name: "lltv";
|
|
1904
|
-
readonly type: "uint256";
|
|
1905
|
-
readonly internalType: "uint256";
|
|
1906
|
-
}];
|
|
1907
|
-
}, {
|
|
1908
|
-
readonly name: "assets";
|
|
1909
|
-
readonly type: "uint256";
|
|
1910
|
-
readonly internalType: "uint256";
|
|
1911
|
-
}, {
|
|
1912
|
-
readonly name: "receiver";
|
|
1913
|
-
readonly type: "address";
|
|
1914
|
-
readonly internalType: "address";
|
|
1915
|
-
}];
|
|
1916
|
-
readonly outputs: readonly [];
|
|
1917
|
-
readonly stateMutability: "nonpayable";
|
|
1918
|
-
}, {
|
|
1919
|
-
readonly type: "function";
|
|
1920
|
-
readonly name: "onMorphoFlashLoan";
|
|
1921
|
-
readonly inputs: readonly [{
|
|
1922
|
-
readonly name: "";
|
|
1923
|
-
readonly type: "uint256";
|
|
1924
|
-
readonly internalType: "uint256";
|
|
1925
|
-
}, {
|
|
1926
|
-
readonly name: "data";
|
|
1927
|
-
readonly type: "bytes";
|
|
1928
|
-
readonly internalType: "bytes";
|
|
1929
|
-
}];
|
|
1930
|
-
readonly outputs: readonly [];
|
|
1931
|
-
readonly stateMutability: "nonpayable";
|
|
1932
|
-
}, {
|
|
1933
|
-
readonly type: "function";
|
|
1934
|
-
readonly name: "onMorphoRepay";
|
|
1935
|
-
readonly inputs: readonly [{
|
|
1936
|
-
readonly name: "";
|
|
1937
|
-
readonly type: "uint256";
|
|
1938
|
-
readonly internalType: "uint256";
|
|
1939
|
-
}, {
|
|
1940
|
-
readonly name: "data";
|
|
1941
|
-
readonly type: "bytes";
|
|
1942
|
-
readonly internalType: "bytes";
|
|
1943
|
-
}];
|
|
1944
|
-
readonly outputs: readonly [];
|
|
1945
|
-
readonly stateMutability: "nonpayable";
|
|
1946
|
-
}, {
|
|
1947
|
-
readonly type: "function";
|
|
1948
|
-
readonly name: "onMorphoSupply";
|
|
1949
|
-
readonly inputs: readonly [{
|
|
1950
|
-
readonly name: "";
|
|
1951
|
-
readonly type: "uint256";
|
|
1952
|
-
readonly internalType: "uint256";
|
|
1953
|
-
}, {
|
|
1954
|
-
readonly name: "data";
|
|
1955
|
-
readonly type: "bytes";
|
|
1956
|
-
readonly internalType: "bytes";
|
|
1957
|
-
}];
|
|
1958
|
-
readonly outputs: readonly [];
|
|
1959
|
-
readonly stateMutability: "nonpayable";
|
|
1960
|
-
}, {
|
|
1961
|
-
readonly type: "function";
|
|
1962
|
-
readonly name: "onMorphoSupplyCollateral";
|
|
1963
|
-
readonly inputs: readonly [{
|
|
1964
|
-
readonly name: "";
|
|
1965
|
-
readonly type: "uint256";
|
|
1966
|
-
readonly internalType: "uint256";
|
|
1967
|
-
}, {
|
|
1968
|
-
readonly name: "data";
|
|
1969
|
-
readonly type: "bytes";
|
|
1970
|
-
readonly internalType: "bytes";
|
|
1971
|
-
}];
|
|
1972
|
-
readonly outputs: readonly [];
|
|
1973
|
-
readonly stateMutability: "nonpayable";
|
|
1974
|
-
}, {
|
|
1975
|
-
readonly type: "function";
|
|
1976
|
-
readonly name: "permit2TransferFrom";
|
|
1977
|
-
readonly inputs: readonly [{
|
|
1978
|
-
readonly name: "token";
|
|
1979
|
-
readonly type: "address";
|
|
1980
|
-
readonly internalType: "address";
|
|
1981
|
-
}, {
|
|
1982
|
-
readonly name: "receiver";
|
|
1983
|
-
readonly type: "address";
|
|
1984
|
-
readonly internalType: "address";
|
|
1985
|
-
}, {
|
|
1986
|
-
readonly name: "amount";
|
|
1987
|
-
readonly type: "uint256";
|
|
1988
|
-
readonly internalType: "uint256";
|
|
1989
|
-
}];
|
|
1990
|
-
readonly outputs: readonly [];
|
|
1991
|
-
readonly stateMutability: "nonpayable";
|
|
1992
|
-
}, {
|
|
1993
|
-
readonly type: "function";
|
|
1994
|
-
readonly name: "unwrapNative";
|
|
1995
|
-
readonly inputs: readonly [{
|
|
1996
|
-
readonly name: "amount";
|
|
1997
|
-
readonly type: "uint256";
|
|
1998
|
-
readonly internalType: "uint256";
|
|
1999
|
-
}, {
|
|
2000
|
-
readonly name: "receiver";
|
|
2001
|
-
readonly type: "address";
|
|
2002
|
-
readonly internalType: "address";
|
|
2003
|
-
}];
|
|
2004
|
-
readonly outputs: readonly [];
|
|
2005
|
-
readonly stateMutability: "nonpayable";
|
|
2006
|
-
}, {
|
|
2007
|
-
readonly type: "function";
|
|
2008
|
-
readonly name: "wrapNative";
|
|
2009
|
-
readonly inputs: readonly [{
|
|
2010
|
-
readonly name: "amount";
|
|
2011
|
-
readonly type: "uint256";
|
|
2012
|
-
readonly internalType: "uint256";
|
|
2013
|
-
}, {
|
|
2014
|
-
readonly name: "receiver";
|
|
2015
|
-
readonly type: "address";
|
|
2016
|
-
readonly internalType: "address";
|
|
2017
|
-
}];
|
|
2018
|
-
readonly outputs: readonly [];
|
|
2019
|
-
readonly stateMutability: "nonpayable";
|
|
2020
|
-
}, {
|
|
2021
|
-
readonly type: "error";
|
|
2022
|
-
readonly name: "SlippageExceeded";
|
|
2023
|
-
readonly inputs: readonly [];
|
|
2024
|
-
}, {
|
|
2025
|
-
readonly type: "error";
|
|
2026
|
-
readonly name: "UnexpectedOwner";
|
|
2027
|
-
readonly inputs: readonly [];
|
|
2028
|
-
}, {
|
|
2029
|
-
readonly type: "error";
|
|
2030
|
-
readonly name: "UnsafeCast";
|
|
2031
|
-
readonly inputs: readonly [];
|
|
2032
|
-
}, {
|
|
2033
|
-
readonly type: "error";
|
|
2034
|
-
readonly name: "ZeroShares";
|
|
2035
|
-
readonly inputs: readonly [];
|
|
2036
|
-
}, {
|
|
2037
|
-
readonly type: "constructor";
|
|
2038
|
-
readonly inputs: readonly [{
|
|
2039
|
-
readonly name: "bundler3";
|
|
2040
|
-
readonly type: "address";
|
|
2041
|
-
readonly internalType: "address";
|
|
2042
|
-
}, {
|
|
2043
|
-
readonly name: "morpho";
|
|
2044
|
-
readonly type: "address";
|
|
2045
|
-
readonly internalType: "address";
|
|
2046
|
-
}, {
|
|
2047
|
-
readonly name: "weth";
|
|
2048
|
-
readonly type: "address";
|
|
2049
|
-
readonly internalType: "address";
|
|
2050
|
-
}, {
|
|
2051
|
-
readonly name: "wStEth";
|
|
2052
|
-
readonly type: "address";
|
|
2053
|
-
readonly internalType: "address";
|
|
2054
|
-
}, {
|
|
2055
|
-
/** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
|
|
2056
|
-
readonly name: "morphoToken";
|
|
2057
|
-
readonly type: "address";
|
|
2058
|
-
readonly internalType: "address";
|
|
2059
|
-
}, {
|
|
2060
|
-
/** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
|
|
2061
|
-
readonly name: "morphoWrapper";
|
|
2062
|
-
readonly type: "address";
|
|
2063
|
-
readonly internalType: "address";
|
|
2064
|
-
}];
|
|
2065
|
-
readonly stateMutability: "nonpayable";
|
|
2066
|
-
}, {
|
|
2067
|
-
readonly type: "function";
|
|
2068
|
-
/** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
|
|
2069
|
-
readonly name: "MORPHO_TOKEN";
|
|
2070
|
-
readonly inputs: readonly [];
|
|
2071
|
-
readonly outputs: readonly [{
|
|
2072
|
-
readonly name: "";
|
|
2073
|
-
readonly type: "address";
|
|
2074
|
-
readonly internalType: "address";
|
|
2075
|
-
}];
|
|
2076
|
-
readonly stateMutability: "view";
|
|
2077
|
-
}, {
|
|
2078
|
-
readonly type: "function";
|
|
2079
|
-
/** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
|
|
2080
|
-
readonly name: "MORPHO_WRAPPER";
|
|
2081
|
-
readonly inputs: readonly [];
|
|
2082
|
-
readonly outputs: readonly [{
|
|
2083
|
-
readonly name: "";
|
|
2084
|
-
readonly type: "address";
|
|
2085
|
-
readonly internalType: "address";
|
|
2086
|
-
}];
|
|
2087
|
-
readonly stateMutability: "view";
|
|
2088
|
-
}, {
|
|
2089
|
-
readonly type: "function";
|
|
2090
|
-
readonly name: "ST_ETH";
|
|
2091
|
-
readonly inputs: readonly [];
|
|
2092
|
-
readonly outputs: readonly [{
|
|
2093
|
-
readonly name: "";
|
|
2094
|
-
readonly type: "address";
|
|
2095
|
-
readonly internalType: "address";
|
|
2096
|
-
}];
|
|
2097
|
-
readonly stateMutability: "view";
|
|
2098
|
-
}, {
|
|
2099
|
-
readonly type: "function";
|
|
2100
|
-
readonly name: "WST_ETH";
|
|
2101
|
-
readonly inputs: readonly [];
|
|
2102
|
-
readonly outputs: readonly [{
|
|
2103
|
-
readonly name: "";
|
|
2104
|
-
readonly type: "address";
|
|
2105
|
-
readonly internalType: "address";
|
|
2106
|
-
}];
|
|
2107
|
-
readonly stateMutability: "view";
|
|
2108
|
-
}, {
|
|
2109
|
-
readonly type: "function";
|
|
2110
|
-
/** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
|
|
2111
|
-
readonly name: "morphoWrapperDepositFor";
|
|
2112
|
-
readonly inputs: readonly [{
|
|
2113
|
-
readonly name: "receiver";
|
|
2114
|
-
readonly type: "address";
|
|
2115
|
-
readonly internalType: "address";
|
|
2116
|
-
}, {
|
|
2117
|
-
readonly name: "amount";
|
|
2118
|
-
readonly type: "uint256";
|
|
2119
|
-
readonly internalType: "uint256";
|
|
2120
|
-
}];
|
|
2121
|
-
readonly outputs: readonly [];
|
|
2122
|
-
readonly stateMutability: "nonpayable";
|
|
2123
|
-
}, {
|
|
2124
|
-
readonly type: "function";
|
|
2125
|
-
/** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
|
|
2126
|
-
readonly name: "morphoWrapperWithdrawTo";
|
|
2127
|
-
readonly inputs: readonly [{
|
|
2128
|
-
readonly name: "receiver";
|
|
2129
|
-
readonly type: "address";
|
|
2130
|
-
readonly internalType: "address";
|
|
2131
|
-
}, {
|
|
2132
|
-
readonly name: "amount";
|
|
2133
|
-
readonly type: "uint256";
|
|
2134
|
-
readonly internalType: "uint256";
|
|
2135
|
-
}];
|
|
2136
|
-
readonly outputs: readonly [];
|
|
2137
|
-
readonly stateMutability: "nonpayable";
|
|
2138
|
-
}, {
|
|
2139
|
-
readonly type: "function";
|
|
2140
|
-
readonly name: "stakeEth";
|
|
2141
|
-
readonly inputs: readonly [{
|
|
2142
|
-
readonly name: "amount";
|
|
2143
|
-
readonly type: "uint256";
|
|
2144
|
-
readonly internalType: "uint256";
|
|
2145
|
-
}, {
|
|
2146
|
-
readonly name: "maxSharePriceE27";
|
|
2147
|
-
readonly type: "uint256";
|
|
2148
|
-
readonly internalType: "uint256";
|
|
2149
|
-
}, {
|
|
2150
|
-
readonly name: "referral";
|
|
2151
|
-
readonly type: "address";
|
|
2152
|
-
readonly internalType: "address";
|
|
2153
|
-
}, {
|
|
2154
|
-
readonly name: "receiver";
|
|
2155
|
-
readonly type: "address";
|
|
2156
|
-
readonly internalType: "address";
|
|
2157
|
-
}];
|
|
2158
|
-
readonly outputs: readonly [];
|
|
2159
|
-
readonly stateMutability: "nonpayable";
|
|
2160
|
-
}, {
|
|
2161
|
-
readonly type: "function";
|
|
2162
|
-
readonly name: "unwrapStEth";
|
|
2163
|
-
readonly inputs: readonly [{
|
|
2164
|
-
readonly name: "amount";
|
|
2165
|
-
readonly type: "uint256";
|
|
2166
|
-
readonly internalType: "uint256";
|
|
2167
|
-
}, {
|
|
2168
|
-
readonly name: "receiver";
|
|
2169
|
-
readonly type: "address";
|
|
2170
|
-
readonly internalType: "address";
|
|
2171
|
-
}];
|
|
2172
|
-
readonly outputs: readonly [];
|
|
2173
|
-
readonly stateMutability: "nonpayable";
|
|
2174
|
-
}, {
|
|
2175
|
-
readonly type: "function";
|
|
2176
|
-
readonly name: "wrapStEth";
|
|
2177
|
-
readonly inputs: readonly [{
|
|
2178
|
-
readonly name: "amount";
|
|
2179
|
-
readonly type: "uint256";
|
|
2180
|
-
readonly internalType: "uint256";
|
|
2181
|
-
}, {
|
|
2182
|
-
readonly name: "receiver";
|
|
2183
|
-
readonly type: "address";
|
|
2184
|
-
readonly internalType: "address";
|
|
2185
|
-
}];
|
|
2186
|
-
readonly outputs: readonly [];
|
|
2187
|
-
readonly stateMutability: "nonpayable";
|
|
2188
|
-
}];
|
|
2189
|
-
/** ABI for the Bundler3 Paraswap adapter. */
|
|
2190
|
-
export declare const paraswapAdapterAbi: readonly [{
|
|
2191
|
-
readonly type: "receive";
|
|
2192
|
-
readonly stateMutability: "payable";
|
|
2193
|
-
}, {
|
|
2194
|
-
readonly type: "function";
|
|
2195
|
-
readonly name: "BUNDLER3";
|
|
2196
|
-
readonly inputs: readonly [];
|
|
2197
|
-
readonly outputs: readonly [{
|
|
2198
|
-
readonly name: "";
|
|
2199
|
-
readonly type: "address";
|
|
2200
|
-
readonly internalType: "address";
|
|
2201
|
-
}];
|
|
2202
|
-
readonly stateMutability: "view";
|
|
2203
|
-
}, {
|
|
2204
|
-
readonly type: "function";
|
|
2205
|
-
readonly name: "erc20Transfer";
|
|
2206
|
-
readonly inputs: readonly [{
|
|
2207
|
-
readonly name: "token";
|
|
2208
|
-
readonly type: "address";
|
|
2209
|
-
readonly internalType: "address";
|
|
2210
|
-
}, {
|
|
2211
|
-
readonly name: "receiver";
|
|
2212
|
-
readonly type: "address";
|
|
2213
|
-
readonly internalType: "address";
|
|
2214
|
-
}, {
|
|
2215
|
-
readonly name: "amount";
|
|
2216
|
-
readonly type: "uint256";
|
|
2217
|
-
readonly internalType: "uint256";
|
|
2218
|
-
}];
|
|
2219
|
-
readonly outputs: readonly [];
|
|
2220
|
-
readonly stateMutability: "nonpayable";
|
|
2221
|
-
}, {
|
|
2222
|
-
readonly type: "function";
|
|
2223
|
-
readonly name: "nativeTransfer";
|
|
2224
|
-
readonly inputs: readonly [{
|
|
2225
|
-
readonly name: "receiver";
|
|
2226
|
-
readonly type: "address";
|
|
2227
|
-
readonly internalType: "address";
|
|
2228
|
-
}, {
|
|
2229
|
-
readonly name: "amount";
|
|
2230
|
-
readonly type: "uint256";
|
|
2231
|
-
readonly internalType: "uint256";
|
|
2232
|
-
}];
|
|
2233
|
-
readonly outputs: readonly [];
|
|
2234
|
-
readonly stateMutability: "nonpayable";
|
|
2235
|
-
}, {
|
|
2236
|
-
readonly type: "error";
|
|
2237
|
-
readonly name: "AdapterAddress";
|
|
2238
|
-
readonly inputs: readonly [];
|
|
2239
|
-
}, {
|
|
2240
|
-
readonly type: "error";
|
|
2241
|
-
readonly name: "FailedCall";
|
|
2242
|
-
readonly inputs: readonly [];
|
|
2243
|
-
}, {
|
|
2244
|
-
readonly type: "error";
|
|
2245
|
-
readonly name: "InsufficientBalance";
|
|
2246
|
-
readonly inputs: readonly [{
|
|
2247
|
-
readonly name: "balance";
|
|
2248
|
-
readonly type: "uint256";
|
|
2249
|
-
readonly internalType: "uint256";
|
|
2250
|
-
}, {
|
|
2251
|
-
readonly name: "needed";
|
|
2252
|
-
readonly type: "uint256";
|
|
2253
|
-
readonly internalType: "uint256";
|
|
2254
|
-
}];
|
|
2255
|
-
}, {
|
|
2256
|
-
readonly type: "error";
|
|
2257
|
-
readonly name: "SafeERC20FailedOperation";
|
|
2258
|
-
readonly inputs: readonly [{
|
|
2259
|
-
readonly name: "token";
|
|
2260
|
-
readonly type: "address";
|
|
2261
|
-
readonly internalType: "address";
|
|
2262
|
-
}];
|
|
2263
|
-
}, {
|
|
2264
|
-
readonly type: "error";
|
|
2265
|
-
readonly name: "UnauthorizedSender";
|
|
2266
|
-
readonly inputs: readonly [];
|
|
2267
|
-
}, {
|
|
2268
|
-
readonly type: "error";
|
|
2269
|
-
readonly name: "ZeroAddress";
|
|
2270
|
-
readonly inputs: readonly [];
|
|
2271
|
-
}, {
|
|
2272
|
-
readonly type: "error";
|
|
2273
|
-
readonly name: "ZeroAmount";
|
|
2274
|
-
readonly inputs: readonly [];
|
|
2275
|
-
}, {
|
|
2276
|
-
readonly type: "constructor";
|
|
2277
|
-
readonly inputs: readonly [{
|
|
2278
|
-
readonly name: "bundler3";
|
|
2279
|
-
readonly type: "address";
|
|
2280
|
-
readonly internalType: "address";
|
|
2281
|
-
}, {
|
|
2282
|
-
readonly name: "morpho";
|
|
2283
|
-
readonly type: "address";
|
|
2284
|
-
readonly internalType: "address";
|
|
2285
|
-
}, {
|
|
2286
|
-
readonly name: "augustusRegistry";
|
|
2287
|
-
readonly type: "address";
|
|
2288
|
-
readonly internalType: "address";
|
|
2289
|
-
}];
|
|
2290
|
-
readonly stateMutability: "nonpayable";
|
|
2291
|
-
}, {
|
|
2292
|
-
readonly type: "function";
|
|
2293
|
-
readonly name: "AUGUSTUS_REGISTRY";
|
|
2294
|
-
readonly inputs: readonly [];
|
|
2295
|
-
readonly outputs: readonly [{
|
|
2296
|
-
readonly name: "";
|
|
2297
|
-
readonly type: "address";
|
|
2298
|
-
readonly internalType: "contract IAugustusRegistry";
|
|
2299
|
-
}];
|
|
2300
|
-
readonly stateMutability: "view";
|
|
2301
|
-
}, {
|
|
2302
|
-
readonly type: "function";
|
|
2303
|
-
readonly name: "MORPHO";
|
|
2304
|
-
readonly inputs: readonly [];
|
|
2305
|
-
readonly outputs: readonly [{
|
|
2306
|
-
readonly name: "";
|
|
2307
|
-
readonly type: "address";
|
|
2308
|
-
readonly internalType: "contract IMorpho";
|
|
2309
|
-
}];
|
|
2310
|
-
readonly stateMutability: "view";
|
|
2311
|
-
}, {
|
|
2312
|
-
readonly type: "function";
|
|
2313
|
-
readonly name: "buy";
|
|
2314
|
-
readonly inputs: readonly [{
|
|
2315
|
-
readonly name: "augustus";
|
|
2316
|
-
readonly type: "address";
|
|
2317
|
-
readonly internalType: "address";
|
|
2318
|
-
}, {
|
|
2319
|
-
readonly name: "callData";
|
|
2320
|
-
readonly type: "bytes";
|
|
2321
|
-
readonly internalType: "bytes";
|
|
2322
|
-
}, {
|
|
2323
|
-
readonly name: "srcToken";
|
|
2324
|
-
readonly type: "address";
|
|
2325
|
-
readonly internalType: "address";
|
|
2326
|
-
}, {
|
|
2327
|
-
readonly name: "destToken";
|
|
2328
|
-
readonly type: "address";
|
|
2329
|
-
readonly internalType: "address";
|
|
2330
|
-
}, {
|
|
2331
|
-
readonly name: "newDestAmount";
|
|
2332
|
-
readonly type: "uint256";
|
|
2333
|
-
readonly internalType: "uint256";
|
|
2334
|
-
}, {
|
|
2335
|
-
readonly name: "offsets";
|
|
2336
|
-
readonly type: "tuple";
|
|
2337
|
-
readonly internalType: "struct Offsets";
|
|
2338
|
-
readonly components: readonly [{
|
|
2339
|
-
readonly name: "exactAmount";
|
|
2340
|
-
readonly type: "uint256";
|
|
2341
|
-
readonly internalType: "uint256";
|
|
2342
|
-
}, {
|
|
2343
|
-
readonly name: "limitAmount";
|
|
2344
|
-
readonly type: "uint256";
|
|
2345
|
-
readonly internalType: "uint256";
|
|
2346
|
-
}, {
|
|
2347
|
-
readonly name: "quotedAmount";
|
|
2348
|
-
readonly type: "uint256";
|
|
2349
|
-
readonly internalType: "uint256";
|
|
2350
|
-
}];
|
|
2351
|
-
}, {
|
|
2352
|
-
readonly name: "receiver";
|
|
2353
|
-
readonly type: "address";
|
|
2354
|
-
readonly internalType: "address";
|
|
2355
|
-
}];
|
|
2356
|
-
readonly outputs: readonly [];
|
|
2357
|
-
readonly stateMutability: "nonpayable";
|
|
2358
|
-
}, {
|
|
2359
|
-
readonly type: "function";
|
|
2360
|
-
readonly name: "buyMorphoDebt";
|
|
2361
|
-
readonly inputs: readonly [{
|
|
2362
|
-
readonly name: "augustus";
|
|
2363
|
-
readonly type: "address";
|
|
2364
|
-
readonly internalType: "address";
|
|
2365
|
-
}, {
|
|
2366
|
-
readonly name: "callData";
|
|
2367
|
-
readonly type: "bytes";
|
|
2368
|
-
readonly internalType: "bytes";
|
|
2369
|
-
}, {
|
|
2370
|
-
readonly name: "srcToken";
|
|
2371
|
-
readonly type: "address";
|
|
2372
|
-
readonly internalType: "address";
|
|
2373
|
-
}, {
|
|
2374
|
-
readonly name: "marketParams";
|
|
2375
|
-
readonly type: "tuple";
|
|
2376
|
-
readonly internalType: "struct MarketParams";
|
|
2377
|
-
readonly components: readonly [{
|
|
2378
|
-
readonly name: "loanToken";
|
|
2379
|
-
readonly type: "address";
|
|
2380
|
-
readonly internalType: "address";
|
|
2381
|
-
}, {
|
|
2382
|
-
readonly name: "collateralToken";
|
|
2383
|
-
readonly type: "address";
|
|
2384
|
-
readonly internalType: "address";
|
|
2385
|
-
}, {
|
|
2386
|
-
readonly name: "oracle";
|
|
2387
|
-
readonly type: "address";
|
|
2388
|
-
readonly internalType: "address";
|
|
2389
|
-
}, {
|
|
2390
|
-
readonly name: "irm";
|
|
2391
|
-
readonly type: "address";
|
|
2392
|
-
readonly internalType: "address";
|
|
2393
|
-
}, {
|
|
2394
|
-
readonly name: "lltv";
|
|
2395
|
-
readonly type: "uint256";
|
|
2396
|
-
readonly internalType: "uint256";
|
|
2397
|
-
}];
|
|
2398
|
-
}, {
|
|
2399
|
-
readonly name: "offsets";
|
|
2400
|
-
readonly type: "tuple";
|
|
2401
|
-
readonly internalType: "struct Offsets";
|
|
2402
|
-
readonly components: readonly [{
|
|
2403
|
-
readonly name: "exactAmount";
|
|
2404
|
-
readonly type: "uint256";
|
|
2405
|
-
readonly internalType: "uint256";
|
|
2406
|
-
}, {
|
|
2407
|
-
readonly name: "limitAmount";
|
|
2408
|
-
readonly type: "uint256";
|
|
2409
|
-
readonly internalType: "uint256";
|
|
2410
|
-
}, {
|
|
2411
|
-
readonly name: "quotedAmount";
|
|
2412
|
-
readonly type: "uint256";
|
|
2413
|
-
readonly internalType: "uint256";
|
|
2414
|
-
}];
|
|
2415
|
-
}, {
|
|
2416
|
-
readonly name: "onBehalf";
|
|
2417
|
-
readonly type: "address";
|
|
2418
|
-
readonly internalType: "address";
|
|
2419
|
-
}, {
|
|
2420
|
-
readonly name: "receiver";
|
|
2421
|
-
readonly type: "address";
|
|
2422
|
-
readonly internalType: "address";
|
|
2423
|
-
}];
|
|
2424
|
-
readonly outputs: readonly [];
|
|
2425
|
-
readonly stateMutability: "nonpayable";
|
|
2426
|
-
}, {
|
|
2427
|
-
readonly type: "function";
|
|
2428
|
-
readonly name: "sell";
|
|
2429
|
-
readonly inputs: readonly [{
|
|
2430
|
-
readonly name: "augustus";
|
|
2431
|
-
readonly type: "address";
|
|
2432
|
-
readonly internalType: "address";
|
|
2433
|
-
}, {
|
|
2434
|
-
readonly name: "callData";
|
|
2435
|
-
readonly type: "bytes";
|
|
2436
|
-
readonly internalType: "bytes";
|
|
2437
|
-
}, {
|
|
2438
|
-
readonly name: "srcToken";
|
|
2439
|
-
readonly type: "address";
|
|
2440
|
-
readonly internalType: "address";
|
|
2441
|
-
}, {
|
|
2442
|
-
readonly name: "destToken";
|
|
2443
|
-
readonly type: "address";
|
|
2444
|
-
readonly internalType: "address";
|
|
2445
|
-
}, {
|
|
2446
|
-
readonly name: "sellEntireBalance";
|
|
2447
|
-
readonly type: "bool";
|
|
2448
|
-
readonly internalType: "bool";
|
|
2449
|
-
}, {
|
|
2450
|
-
readonly name: "offsets";
|
|
2451
|
-
readonly type: "tuple";
|
|
2452
|
-
readonly internalType: "struct Offsets";
|
|
2453
|
-
readonly components: readonly [{
|
|
2454
|
-
readonly name: "exactAmount";
|
|
2455
|
-
readonly type: "uint256";
|
|
2456
|
-
readonly internalType: "uint256";
|
|
2457
|
-
}, {
|
|
2458
|
-
readonly name: "limitAmount";
|
|
2459
|
-
readonly type: "uint256";
|
|
2460
|
-
readonly internalType: "uint256";
|
|
2461
|
-
}, {
|
|
2462
|
-
readonly name: "quotedAmount";
|
|
2463
|
-
readonly type: "uint256";
|
|
2464
|
-
readonly internalType: "uint256";
|
|
2465
|
-
}];
|
|
2466
|
-
}, {
|
|
2467
|
-
readonly name: "receiver";
|
|
2468
|
-
readonly type: "address";
|
|
2469
|
-
readonly internalType: "address";
|
|
2470
|
-
}];
|
|
2471
|
-
readonly outputs: readonly [];
|
|
2472
|
-
readonly stateMutability: "nonpayable";
|
|
2473
|
-
}, {
|
|
2474
|
-
readonly type: "error";
|
|
2475
|
-
readonly name: "BuyAmountTooLow";
|
|
2476
|
-
readonly inputs: readonly [];
|
|
2477
|
-
}, {
|
|
2478
|
-
readonly type: "error";
|
|
2479
|
-
readonly name: "InvalidAugustus";
|
|
2480
|
-
readonly inputs: readonly [];
|
|
2481
|
-
}, {
|
|
2482
|
-
readonly type: "error";
|
|
2483
|
-
readonly name: "InvalidOffset";
|
|
2484
|
-
readonly inputs: readonly [];
|
|
2485
|
-
}, {
|
|
2486
|
-
readonly type: "error";
|
|
2487
|
-
readonly name: "SellAmountTooHigh";
|
|
2488
|
-
readonly inputs: readonly [];
|
|
2489
|
-
}];
|
|
2490
|
-
/** ABI for the Bundler3 ERC20 wrapper adapter. */
|
|
2491
|
-
export declare const erc20WrapperAdapterAbi: readonly [{
|
|
2492
|
-
readonly type: "receive";
|
|
2493
|
-
readonly stateMutability: "payable";
|
|
2494
|
-
}, {
|
|
2495
|
-
readonly type: "function";
|
|
2496
|
-
readonly name: "BUNDLER3";
|
|
2497
|
-
readonly inputs: readonly [];
|
|
2498
|
-
readonly outputs: readonly [{
|
|
2499
|
-
readonly name: "";
|
|
2500
|
-
readonly type: "address";
|
|
2501
|
-
readonly internalType: "address";
|
|
2502
|
-
}];
|
|
2503
|
-
readonly stateMutability: "view";
|
|
2504
|
-
}, {
|
|
2505
|
-
readonly type: "function";
|
|
2506
|
-
readonly name: "erc20Transfer";
|
|
2507
|
-
readonly inputs: readonly [{
|
|
2508
|
-
readonly name: "token";
|
|
2509
|
-
readonly type: "address";
|
|
2510
|
-
readonly internalType: "address";
|
|
2511
|
-
}, {
|
|
2512
|
-
readonly name: "receiver";
|
|
2513
|
-
readonly type: "address";
|
|
2514
|
-
readonly internalType: "address";
|
|
2515
|
-
}, {
|
|
2516
|
-
readonly name: "amount";
|
|
2517
|
-
readonly type: "uint256";
|
|
2518
|
-
readonly internalType: "uint256";
|
|
2519
|
-
}];
|
|
2520
|
-
readonly outputs: readonly [];
|
|
2521
|
-
readonly stateMutability: "nonpayable";
|
|
2522
|
-
}, {
|
|
2523
|
-
readonly type: "function";
|
|
2524
|
-
readonly name: "nativeTransfer";
|
|
2525
|
-
readonly inputs: readonly [{
|
|
2526
|
-
readonly name: "receiver";
|
|
2527
|
-
readonly type: "address";
|
|
2528
|
-
readonly internalType: "address";
|
|
2529
|
-
}, {
|
|
2530
|
-
readonly name: "amount";
|
|
2531
|
-
readonly type: "uint256";
|
|
2532
|
-
readonly internalType: "uint256";
|
|
2533
|
-
}];
|
|
2534
|
-
readonly outputs: readonly [];
|
|
2535
|
-
readonly stateMutability: "nonpayable";
|
|
2536
|
-
}, {
|
|
2537
|
-
readonly type: "error";
|
|
2538
|
-
readonly name: "AdapterAddress";
|
|
2539
|
-
readonly inputs: readonly [];
|
|
2540
|
-
}, {
|
|
2541
|
-
readonly type: "error";
|
|
2542
|
-
readonly name: "FailedCall";
|
|
2543
|
-
readonly inputs: readonly [];
|
|
2544
|
-
}, {
|
|
2545
|
-
readonly type: "error";
|
|
2546
|
-
readonly name: "InsufficientBalance";
|
|
2547
|
-
readonly inputs: readonly [{
|
|
2548
|
-
readonly name: "balance";
|
|
2549
|
-
readonly type: "uint256";
|
|
2550
|
-
readonly internalType: "uint256";
|
|
2551
|
-
}, {
|
|
2552
|
-
readonly name: "needed";
|
|
2553
|
-
readonly type: "uint256";
|
|
2554
|
-
readonly internalType: "uint256";
|
|
2555
|
-
}];
|
|
2556
|
-
}, {
|
|
2557
|
-
readonly type: "error";
|
|
2558
|
-
readonly name: "SafeERC20FailedOperation";
|
|
2559
|
-
readonly inputs: readonly [{
|
|
2560
|
-
readonly name: "token";
|
|
2561
|
-
readonly type: "address";
|
|
2562
|
-
readonly internalType: "address";
|
|
2563
|
-
}];
|
|
2564
|
-
}, {
|
|
2565
|
-
readonly type: "error";
|
|
2566
|
-
readonly name: "UnauthorizedSender";
|
|
2567
|
-
readonly inputs: readonly [];
|
|
2568
|
-
}, {
|
|
2569
|
-
readonly type: "error";
|
|
2570
|
-
readonly name: "ZeroAddress";
|
|
2571
|
-
readonly inputs: readonly [];
|
|
2572
|
-
}, {
|
|
2573
|
-
readonly type: "error";
|
|
2574
|
-
readonly name: "ZeroAmount";
|
|
2575
|
-
readonly inputs: readonly [];
|
|
2576
|
-
}, {
|
|
2577
|
-
readonly type: "constructor";
|
|
2578
|
-
readonly inputs: readonly [{
|
|
2579
|
-
readonly name: "bundler3";
|
|
2580
|
-
readonly type: "address";
|
|
2581
|
-
readonly internalType: "address";
|
|
2582
|
-
}];
|
|
2583
|
-
readonly stateMutability: "nonpayable";
|
|
2584
|
-
}, {
|
|
2585
|
-
readonly type: "function";
|
|
2586
|
-
readonly name: "erc20WrapperDepositFor";
|
|
2587
|
-
readonly inputs: readonly [{
|
|
2588
|
-
readonly name: "wrapper";
|
|
2589
|
-
readonly type: "address";
|
|
2590
|
-
readonly internalType: "address";
|
|
2591
|
-
}, {
|
|
2592
|
-
readonly name: "amount";
|
|
2593
|
-
readonly type: "uint256";
|
|
2594
|
-
readonly internalType: "uint256";
|
|
2595
|
-
}];
|
|
2596
|
-
readonly outputs: readonly [];
|
|
2597
|
-
readonly stateMutability: "nonpayable";
|
|
2598
|
-
}, {
|
|
2599
|
-
readonly type: "function";
|
|
2600
|
-
readonly name: "erc20WrapperWithdrawTo";
|
|
2601
|
-
readonly inputs: readonly [{
|
|
2602
|
-
readonly name: "wrapper";
|
|
2603
|
-
readonly type: "address";
|
|
2604
|
-
readonly internalType: "address";
|
|
2605
|
-
}, {
|
|
2606
|
-
readonly name: "receiver";
|
|
2607
|
-
readonly type: "address";
|
|
2608
|
-
readonly internalType: "address";
|
|
2609
|
-
}, {
|
|
2610
|
-
readonly name: "amount";
|
|
2611
|
-
readonly type: "uint256";
|
|
2612
|
-
readonly internalType: "uint256";
|
|
2613
|
-
}];
|
|
2614
|
-
readonly outputs: readonly [];
|
|
2615
|
-
readonly stateMutability: "nonpayable";
|
|
2616
|
-
}, {
|
|
2617
|
-
readonly type: "error";
|
|
2618
|
-
readonly name: "DepositFailed";
|
|
2619
|
-
readonly inputs: readonly [];
|
|
2620
|
-
}, {
|
|
2621
|
-
readonly type: "error";
|
|
2622
|
-
readonly name: "WithdrawFailed";
|
|
2623
|
-
readonly inputs: readonly [];
|
|
2624
|
-
}];
|
|
2625
|
-
/** ABI for the Bundler3 Aave V2 migration adapter. */
|
|
2626
|
-
export declare const aaveV2MigrationAdapterAbi: readonly [{
|
|
2627
|
-
readonly type: "receive";
|
|
2628
|
-
readonly stateMutability: "payable";
|
|
2629
|
-
}, {
|
|
2630
|
-
readonly type: "function";
|
|
2631
|
-
readonly name: "BUNDLER3";
|
|
2632
|
-
readonly inputs: readonly [];
|
|
2633
|
-
readonly outputs: readonly [{
|
|
2634
|
-
readonly name: "";
|
|
2635
|
-
readonly type: "address";
|
|
2636
|
-
readonly internalType: "address";
|
|
2637
|
-
}];
|
|
2638
|
-
readonly stateMutability: "view";
|
|
2639
|
-
}, {
|
|
2640
|
-
readonly type: "function";
|
|
2641
|
-
readonly name: "erc20Transfer";
|
|
2642
|
-
readonly inputs: readonly [{
|
|
2643
|
-
readonly name: "token";
|
|
2644
|
-
readonly type: "address";
|
|
2645
|
-
readonly internalType: "address";
|
|
2646
|
-
}, {
|
|
2647
|
-
readonly name: "receiver";
|
|
2648
|
-
readonly type: "address";
|
|
2649
|
-
readonly internalType: "address";
|
|
2650
|
-
}, {
|
|
2651
|
-
readonly name: "amount";
|
|
2652
|
-
readonly type: "uint256";
|
|
2653
|
-
readonly internalType: "uint256";
|
|
2654
|
-
}];
|
|
2655
|
-
readonly outputs: readonly [];
|
|
2656
|
-
readonly stateMutability: "nonpayable";
|
|
2657
|
-
}, {
|
|
2658
|
-
readonly type: "function";
|
|
2659
|
-
readonly name: "nativeTransfer";
|
|
2660
|
-
readonly inputs: readonly [{
|
|
2661
|
-
readonly name: "receiver";
|
|
2662
|
-
readonly type: "address";
|
|
2663
|
-
readonly internalType: "address";
|
|
2664
|
-
}, {
|
|
2665
|
-
readonly name: "amount";
|
|
2666
|
-
readonly type: "uint256";
|
|
2667
|
-
readonly internalType: "uint256";
|
|
2668
|
-
}];
|
|
2669
|
-
readonly outputs: readonly [];
|
|
2670
|
-
readonly stateMutability: "nonpayable";
|
|
2671
|
-
}, {
|
|
2672
|
-
readonly type: "error";
|
|
2673
|
-
readonly name: "AdapterAddress";
|
|
2674
|
-
readonly inputs: readonly [];
|
|
2675
|
-
}, {
|
|
2676
|
-
readonly type: "error";
|
|
2677
|
-
readonly name: "FailedCall";
|
|
2678
|
-
readonly inputs: readonly [];
|
|
2679
|
-
}, {
|
|
2680
|
-
readonly type: "error";
|
|
2681
|
-
readonly name: "InsufficientBalance";
|
|
2682
|
-
readonly inputs: readonly [{
|
|
2683
|
-
readonly name: "balance";
|
|
2684
|
-
readonly type: "uint256";
|
|
2685
|
-
readonly internalType: "uint256";
|
|
2686
|
-
}, {
|
|
2687
|
-
readonly name: "needed";
|
|
2688
|
-
readonly type: "uint256";
|
|
2689
|
-
readonly internalType: "uint256";
|
|
2690
|
-
}];
|
|
2691
|
-
}, {
|
|
2692
|
-
readonly type: "error";
|
|
2693
|
-
readonly name: "SafeERC20FailedOperation";
|
|
2694
|
-
readonly inputs: readonly [{
|
|
2695
|
-
readonly name: "token";
|
|
2696
|
-
readonly type: "address";
|
|
2697
|
-
readonly internalType: "address";
|
|
2698
|
-
}];
|
|
2699
|
-
}, {
|
|
2700
|
-
readonly type: "error";
|
|
2701
|
-
readonly name: "UnauthorizedSender";
|
|
2702
|
-
readonly inputs: readonly [];
|
|
2703
|
-
}, {
|
|
2704
|
-
readonly type: "error";
|
|
2705
|
-
readonly name: "ZeroAddress";
|
|
2706
|
-
readonly inputs: readonly [];
|
|
2707
|
-
}, {
|
|
2708
|
-
readonly type: "error";
|
|
2709
|
-
readonly name: "ZeroAmount";
|
|
2710
|
-
readonly inputs: readonly [];
|
|
2711
|
-
}, {
|
|
2712
|
-
readonly type: "constructor";
|
|
2713
|
-
readonly inputs: readonly [{
|
|
2714
|
-
readonly name: "bundler3";
|
|
2715
|
-
readonly type: "address";
|
|
2716
|
-
readonly internalType: "address";
|
|
2717
|
-
}, {
|
|
2718
|
-
readonly name: "aaveV2Pool";
|
|
2719
|
-
readonly type: "address";
|
|
2720
|
-
readonly internalType: "address";
|
|
2721
|
-
}];
|
|
2722
|
-
readonly stateMutability: "nonpayable";
|
|
2723
|
-
}, {
|
|
2724
|
-
readonly type: "function";
|
|
2725
|
-
readonly name: "aaveV2Repay";
|
|
2726
|
-
readonly inputs: readonly [{
|
|
2727
|
-
readonly name: "token";
|
|
2728
|
-
readonly type: "address";
|
|
2729
|
-
readonly internalType: "address";
|
|
2730
|
-
}, {
|
|
2731
|
-
readonly name: "amount";
|
|
2732
|
-
readonly type: "uint256";
|
|
2733
|
-
readonly internalType: "uint256";
|
|
2734
|
-
}, {
|
|
2735
|
-
readonly name: "interestRateMode";
|
|
2736
|
-
readonly type: "uint256";
|
|
2737
|
-
readonly internalType: "uint256";
|
|
2738
|
-
}, {
|
|
2739
|
-
readonly name: "onBehalf";
|
|
2740
|
-
readonly type: "address";
|
|
2741
|
-
readonly internalType: "address";
|
|
2742
|
-
}];
|
|
2743
|
-
readonly outputs: readonly [];
|
|
2744
|
-
readonly stateMutability: "nonpayable";
|
|
2745
|
-
}, {
|
|
2746
|
-
readonly type: "function";
|
|
2747
|
-
readonly name: "aaveV2Withdraw";
|
|
2748
|
-
readonly inputs: readonly [{
|
|
2749
|
-
readonly name: "token";
|
|
2750
|
-
readonly type: "address";
|
|
2751
|
-
readonly internalType: "address";
|
|
2752
|
-
}, {
|
|
2753
|
-
readonly name: "amount";
|
|
2754
|
-
readonly type: "uint256";
|
|
2755
|
-
readonly internalType: "uint256";
|
|
2756
|
-
}, {
|
|
2757
|
-
readonly name: "receiver";
|
|
2758
|
-
readonly type: "address";
|
|
2759
|
-
readonly internalType: "address";
|
|
2760
|
-
}];
|
|
2761
|
-
readonly outputs: readonly [];
|
|
2762
|
-
readonly stateMutability: "nonpayable";
|
|
2763
|
-
}];
|
|
2764
|
-
/** ABI for the Bundler3 Aave V3 migration adapter. */
|
|
2765
|
-
export declare const aaveV3MigrationAdapterAbi: readonly [{
|
|
2766
|
-
readonly type: "receive";
|
|
2767
|
-
readonly stateMutability: "payable";
|
|
2768
|
-
}, {
|
|
2769
|
-
readonly type: "function";
|
|
2770
|
-
readonly name: "BUNDLER3";
|
|
2771
|
-
readonly inputs: readonly [];
|
|
2772
|
-
readonly outputs: readonly [{
|
|
2773
|
-
readonly name: "";
|
|
2774
|
-
readonly type: "address";
|
|
2775
|
-
readonly internalType: "address";
|
|
2776
|
-
}];
|
|
2777
|
-
readonly stateMutability: "view";
|
|
2778
|
-
}, {
|
|
2779
|
-
readonly type: "function";
|
|
2780
|
-
readonly name: "erc20Transfer";
|
|
2781
|
-
readonly inputs: readonly [{
|
|
2782
|
-
readonly name: "token";
|
|
2783
|
-
readonly type: "address";
|
|
2784
|
-
readonly internalType: "address";
|
|
2785
|
-
}, {
|
|
2786
|
-
readonly name: "receiver";
|
|
2787
|
-
readonly type: "address";
|
|
2788
|
-
readonly internalType: "address";
|
|
2789
|
-
}, {
|
|
2790
|
-
readonly name: "amount";
|
|
2791
|
-
readonly type: "uint256";
|
|
2792
|
-
readonly internalType: "uint256";
|
|
2793
|
-
}];
|
|
2794
|
-
readonly outputs: readonly [];
|
|
2795
|
-
readonly stateMutability: "nonpayable";
|
|
2796
|
-
}, {
|
|
2797
|
-
readonly type: "function";
|
|
2798
|
-
readonly name: "nativeTransfer";
|
|
2799
|
-
readonly inputs: readonly [{
|
|
2800
|
-
readonly name: "receiver";
|
|
2801
|
-
readonly type: "address";
|
|
2802
|
-
readonly internalType: "address";
|
|
2803
|
-
}, {
|
|
2804
|
-
readonly name: "amount";
|
|
2805
|
-
readonly type: "uint256";
|
|
2806
|
-
readonly internalType: "uint256";
|
|
2807
|
-
}];
|
|
2808
|
-
readonly outputs: readonly [];
|
|
2809
|
-
readonly stateMutability: "nonpayable";
|
|
2810
|
-
}, {
|
|
2811
|
-
readonly type: "error";
|
|
2812
|
-
readonly name: "AdapterAddress";
|
|
2813
|
-
readonly inputs: readonly [];
|
|
2814
|
-
}, {
|
|
2815
|
-
readonly type: "error";
|
|
2816
|
-
readonly name: "FailedCall";
|
|
2817
|
-
readonly inputs: readonly [];
|
|
2818
|
-
}, {
|
|
2819
|
-
readonly type: "error";
|
|
2820
|
-
readonly name: "InsufficientBalance";
|
|
2821
|
-
readonly inputs: readonly [{
|
|
2822
|
-
readonly name: "balance";
|
|
2823
|
-
readonly type: "uint256";
|
|
2824
|
-
readonly internalType: "uint256";
|
|
2825
|
-
}, {
|
|
2826
|
-
readonly name: "needed";
|
|
2827
|
-
readonly type: "uint256";
|
|
2828
|
-
readonly internalType: "uint256";
|
|
2829
|
-
}];
|
|
2830
|
-
}, {
|
|
2831
|
-
readonly type: "error";
|
|
2832
|
-
readonly name: "SafeERC20FailedOperation";
|
|
2833
|
-
readonly inputs: readonly [{
|
|
2834
|
-
readonly name: "token";
|
|
2835
|
-
readonly type: "address";
|
|
2836
|
-
readonly internalType: "address";
|
|
2837
|
-
}];
|
|
2838
|
-
}, {
|
|
2839
|
-
readonly type: "error";
|
|
2840
|
-
readonly name: "UnauthorizedSender";
|
|
2841
|
-
readonly inputs: readonly [];
|
|
2842
|
-
}, {
|
|
2843
|
-
readonly type: "error";
|
|
2844
|
-
readonly name: "ZeroAddress";
|
|
2845
|
-
readonly inputs: readonly [];
|
|
2846
|
-
}, {
|
|
2847
|
-
readonly type: "error";
|
|
2848
|
-
readonly name: "ZeroAmount";
|
|
2849
|
-
readonly inputs: readonly [];
|
|
2850
|
-
}, {
|
|
2851
|
-
readonly type: "constructor";
|
|
2852
|
-
readonly inputs: readonly [{
|
|
2853
|
-
readonly name: "bundler3";
|
|
2854
|
-
readonly type: "address";
|
|
2855
|
-
readonly internalType: "address";
|
|
2856
|
-
}, {
|
|
2857
|
-
readonly name: "aaveV3Pool";
|
|
2858
|
-
readonly type: "address";
|
|
2859
|
-
readonly internalType: "address";
|
|
2860
|
-
}];
|
|
2861
|
-
readonly stateMutability: "nonpayable";
|
|
2862
|
-
}, {
|
|
2863
|
-
readonly type: "function";
|
|
2864
|
-
readonly name: "aaveV3Repay";
|
|
2865
|
-
readonly inputs: readonly [{
|
|
2866
|
-
readonly name: "token";
|
|
2867
|
-
readonly type: "address";
|
|
2868
|
-
readonly internalType: "address";
|
|
2869
|
-
}, {
|
|
2870
|
-
readonly name: "amount";
|
|
2871
|
-
readonly type: "uint256";
|
|
2872
|
-
readonly internalType: "uint256";
|
|
2873
|
-
}, {
|
|
2874
|
-
readonly name: "interestRateMode";
|
|
2875
|
-
readonly type: "uint256";
|
|
2876
|
-
readonly internalType: "uint256";
|
|
2877
|
-
}, {
|
|
2878
|
-
readonly name: "onBehalf";
|
|
2879
|
-
readonly type: "address";
|
|
2880
|
-
readonly internalType: "address";
|
|
2881
|
-
}];
|
|
2882
|
-
readonly outputs: readonly [];
|
|
2883
|
-
readonly stateMutability: "nonpayable";
|
|
2884
|
-
}, {
|
|
2885
|
-
readonly type: "function";
|
|
2886
|
-
readonly name: "aaveV3Withdraw";
|
|
2887
|
-
readonly inputs: readonly [{
|
|
2888
|
-
readonly name: "token";
|
|
2889
|
-
readonly type: "address";
|
|
2890
|
-
readonly internalType: "address";
|
|
2891
|
-
}, {
|
|
2892
|
-
readonly name: "amount";
|
|
2893
|
-
readonly type: "uint256";
|
|
2894
|
-
readonly internalType: "uint256";
|
|
2895
|
-
}, {
|
|
2896
|
-
readonly name: "receiver";
|
|
2897
|
-
readonly type: "address";
|
|
2898
|
-
readonly internalType: "address";
|
|
2899
|
-
}];
|
|
2900
|
-
readonly outputs: readonly [];
|
|
2901
|
-
readonly stateMutability: "nonpayable";
|
|
2902
|
-
}];
|
|
2903
|
-
/** ABI for the Bundler3 Aave V3 Optimizer migration adapter. */
|
|
2904
|
-
export declare const aaveV3OptimizerMigrationAdapterAbi: readonly [{
|
|
2905
|
-
readonly type: "receive";
|
|
2906
|
-
readonly stateMutability: "payable";
|
|
2907
|
-
}, {
|
|
2908
|
-
readonly type: "function";
|
|
2909
|
-
readonly name: "BUNDLER3";
|
|
2910
|
-
readonly inputs: readonly [];
|
|
2911
|
-
readonly outputs: readonly [{
|
|
2912
|
-
readonly name: "";
|
|
2913
|
-
readonly type: "address";
|
|
2914
|
-
readonly internalType: "address";
|
|
2915
|
-
}];
|
|
2916
|
-
readonly stateMutability: "view";
|
|
2917
|
-
}, {
|
|
2918
|
-
readonly type: "function";
|
|
2919
|
-
readonly name: "erc20Transfer";
|
|
2920
|
-
readonly inputs: readonly [{
|
|
2921
|
-
readonly name: "token";
|
|
2922
|
-
readonly type: "address";
|
|
2923
|
-
readonly internalType: "address";
|
|
2924
|
-
}, {
|
|
2925
|
-
readonly name: "receiver";
|
|
2926
|
-
readonly type: "address";
|
|
2927
|
-
readonly internalType: "address";
|
|
2928
|
-
}, {
|
|
2929
|
-
readonly name: "amount";
|
|
2930
|
-
readonly type: "uint256";
|
|
2931
|
-
readonly internalType: "uint256";
|
|
2932
|
-
}];
|
|
2933
|
-
readonly outputs: readonly [];
|
|
2934
|
-
readonly stateMutability: "nonpayable";
|
|
2935
|
-
}, {
|
|
2936
|
-
readonly type: "function";
|
|
2937
|
-
readonly name: "nativeTransfer";
|
|
2938
|
-
readonly inputs: readonly [{
|
|
2939
|
-
readonly name: "receiver";
|
|
2940
|
-
readonly type: "address";
|
|
2941
|
-
readonly internalType: "address";
|
|
2942
|
-
}, {
|
|
2943
|
-
readonly name: "amount";
|
|
2944
|
-
readonly type: "uint256";
|
|
2945
|
-
readonly internalType: "uint256";
|
|
2946
|
-
}];
|
|
2947
|
-
readonly outputs: readonly [];
|
|
2948
|
-
readonly stateMutability: "nonpayable";
|
|
2949
|
-
}, {
|
|
2950
|
-
readonly type: "error";
|
|
2951
|
-
readonly name: "AdapterAddress";
|
|
2952
|
-
readonly inputs: readonly [];
|
|
2953
|
-
}, {
|
|
2954
|
-
readonly type: "error";
|
|
2955
|
-
readonly name: "FailedCall";
|
|
2956
|
-
readonly inputs: readonly [];
|
|
2957
|
-
}, {
|
|
2958
|
-
readonly type: "error";
|
|
2959
|
-
readonly name: "InsufficientBalance";
|
|
2960
|
-
readonly inputs: readonly [{
|
|
2961
|
-
readonly name: "balance";
|
|
2962
|
-
readonly type: "uint256";
|
|
2963
|
-
readonly internalType: "uint256";
|
|
2964
|
-
}, {
|
|
2965
|
-
readonly name: "needed";
|
|
2966
|
-
readonly type: "uint256";
|
|
2967
|
-
readonly internalType: "uint256";
|
|
2968
|
-
}];
|
|
2969
|
-
}, {
|
|
2970
|
-
readonly type: "error";
|
|
2971
|
-
readonly name: "SafeERC20FailedOperation";
|
|
2972
|
-
readonly inputs: readonly [{
|
|
2973
|
-
readonly name: "token";
|
|
2974
|
-
readonly type: "address";
|
|
2975
|
-
readonly internalType: "address";
|
|
2976
|
-
}];
|
|
2977
|
-
}, {
|
|
2978
|
-
readonly type: "error";
|
|
2979
|
-
readonly name: "UnauthorizedSender";
|
|
2980
|
-
readonly inputs: readonly [];
|
|
2981
|
-
}, {
|
|
2982
|
-
readonly type: "error";
|
|
2983
|
-
readonly name: "ZeroAddress";
|
|
2984
|
-
readonly inputs: readonly [];
|
|
2985
|
-
}, {
|
|
2986
|
-
readonly type: "error";
|
|
2987
|
-
readonly name: "ZeroAmount";
|
|
2988
|
-
readonly inputs: readonly [];
|
|
2989
|
-
}, {
|
|
2990
|
-
readonly type: "constructor";
|
|
2991
|
-
readonly inputs: readonly [{
|
|
2992
|
-
readonly name: "bundler3";
|
|
2993
|
-
readonly type: "address";
|
|
2994
|
-
readonly internalType: "address";
|
|
2995
|
-
}, {
|
|
2996
|
-
readonly name: "aaveV3Optimizer";
|
|
2997
|
-
readonly type: "address";
|
|
2998
|
-
readonly internalType: "address";
|
|
2999
|
-
}];
|
|
3000
|
-
readonly stateMutability: "nonpayable";
|
|
3001
|
-
}, {
|
|
3002
|
-
readonly type: "function";
|
|
3003
|
-
readonly name: "aaveV3OptimizerRepay";
|
|
3004
|
-
readonly inputs: readonly [{
|
|
3005
|
-
readonly name: "underlying";
|
|
3006
|
-
readonly type: "address";
|
|
3007
|
-
readonly internalType: "address";
|
|
3008
|
-
}, {
|
|
3009
|
-
readonly name: "amount";
|
|
3010
|
-
readonly type: "uint256";
|
|
3011
|
-
readonly internalType: "uint256";
|
|
3012
|
-
}, {
|
|
3013
|
-
readonly name: "onBehalf";
|
|
3014
|
-
readonly type: "address";
|
|
3015
|
-
readonly internalType: "address";
|
|
3016
|
-
}];
|
|
3017
|
-
readonly outputs: readonly [];
|
|
3018
|
-
readonly stateMutability: "nonpayable";
|
|
3019
|
-
}, {
|
|
3020
|
-
readonly type: "function";
|
|
3021
|
-
readonly name: "aaveV3OptimizerWithdraw";
|
|
3022
|
-
readonly inputs: readonly [{
|
|
3023
|
-
readonly name: "underlying";
|
|
3024
|
-
readonly type: "address";
|
|
3025
|
-
readonly internalType: "address";
|
|
3026
|
-
}, {
|
|
3027
|
-
readonly name: "amount";
|
|
3028
|
-
readonly type: "uint256";
|
|
3029
|
-
readonly internalType: "uint256";
|
|
3030
|
-
}, {
|
|
3031
|
-
readonly name: "maxIterations";
|
|
3032
|
-
readonly type: "uint256";
|
|
3033
|
-
readonly internalType: "uint256";
|
|
3034
|
-
}, {
|
|
3035
|
-
readonly name: "receiver";
|
|
3036
|
-
readonly type: "address";
|
|
3037
|
-
readonly internalType: "address";
|
|
3038
|
-
}];
|
|
3039
|
-
readonly outputs: readonly [];
|
|
3040
|
-
readonly stateMutability: "nonpayable";
|
|
3041
|
-
}, {
|
|
3042
|
-
readonly type: "function";
|
|
3043
|
-
readonly name: "aaveV3OptimizerWithdrawCollateral";
|
|
3044
|
-
readonly inputs: readonly [{
|
|
3045
|
-
readonly name: "underlying";
|
|
3046
|
-
readonly type: "address";
|
|
3047
|
-
readonly internalType: "address";
|
|
3048
|
-
}, {
|
|
3049
|
-
readonly name: "amount";
|
|
3050
|
-
readonly type: "uint256";
|
|
3051
|
-
readonly internalType: "uint256";
|
|
3052
|
-
}, {
|
|
3053
|
-
readonly name: "receiver";
|
|
3054
|
-
readonly type: "address";
|
|
3055
|
-
readonly internalType: "address";
|
|
3056
|
-
}];
|
|
3057
|
-
readonly outputs: readonly [];
|
|
3058
|
-
readonly stateMutability: "nonpayable";
|
|
3059
|
-
}];
|
|
3060
|
-
/** ABI for the Bundler3 Compound V2 migration adapter. */
|
|
3061
|
-
export declare const compoundV2MigrationAdapterAbi: readonly [{
|
|
3062
|
-
readonly type: "receive";
|
|
3063
|
-
readonly stateMutability: "payable";
|
|
3064
|
-
}, {
|
|
3065
|
-
readonly type: "function";
|
|
3066
|
-
readonly name: "BUNDLER3";
|
|
3067
|
-
readonly inputs: readonly [];
|
|
3068
|
-
readonly outputs: readonly [{
|
|
3069
|
-
readonly name: "";
|
|
3070
|
-
readonly type: "address";
|
|
3071
|
-
readonly internalType: "address";
|
|
3072
|
-
}];
|
|
3073
|
-
readonly stateMutability: "view";
|
|
3074
|
-
}, {
|
|
3075
|
-
readonly type: "function";
|
|
3076
|
-
readonly name: "erc20Transfer";
|
|
3077
|
-
readonly inputs: readonly [{
|
|
3078
|
-
readonly name: "token";
|
|
3079
|
-
readonly type: "address";
|
|
3080
|
-
readonly internalType: "address";
|
|
3081
|
-
}, {
|
|
3082
|
-
readonly name: "receiver";
|
|
3083
|
-
readonly type: "address";
|
|
3084
|
-
readonly internalType: "address";
|
|
3085
|
-
}, {
|
|
3086
|
-
readonly name: "amount";
|
|
3087
|
-
readonly type: "uint256";
|
|
3088
|
-
readonly internalType: "uint256";
|
|
3089
|
-
}];
|
|
3090
|
-
readonly outputs: readonly [];
|
|
3091
|
-
readonly stateMutability: "nonpayable";
|
|
3092
|
-
}, {
|
|
3093
|
-
readonly type: "function";
|
|
3094
|
-
readonly name: "nativeTransfer";
|
|
3095
|
-
readonly inputs: readonly [{
|
|
3096
|
-
readonly name: "receiver";
|
|
3097
|
-
readonly type: "address";
|
|
3098
|
-
readonly internalType: "address";
|
|
3099
|
-
}, {
|
|
3100
|
-
readonly name: "amount";
|
|
3101
|
-
readonly type: "uint256";
|
|
3102
|
-
readonly internalType: "uint256";
|
|
3103
|
-
}];
|
|
3104
|
-
readonly outputs: readonly [];
|
|
3105
|
-
readonly stateMutability: "nonpayable";
|
|
3106
|
-
}, {
|
|
3107
|
-
readonly type: "error";
|
|
3108
|
-
readonly name: "AdapterAddress";
|
|
3109
|
-
readonly inputs: readonly [];
|
|
3110
|
-
}, {
|
|
3111
|
-
readonly type: "error";
|
|
3112
|
-
readonly name: "FailedCall";
|
|
3113
|
-
readonly inputs: readonly [];
|
|
3114
|
-
}, {
|
|
3115
|
-
readonly type: "error";
|
|
3116
|
-
readonly name: "InsufficientBalance";
|
|
3117
|
-
readonly inputs: readonly [{
|
|
3118
|
-
readonly name: "balance";
|
|
3119
|
-
readonly type: "uint256";
|
|
3120
|
-
readonly internalType: "uint256";
|
|
3121
|
-
}, {
|
|
3122
|
-
readonly name: "needed";
|
|
3123
|
-
readonly type: "uint256";
|
|
3124
|
-
readonly internalType: "uint256";
|
|
3125
|
-
}];
|
|
3126
|
-
}, {
|
|
3127
|
-
readonly type: "error";
|
|
3128
|
-
readonly name: "SafeERC20FailedOperation";
|
|
3129
|
-
readonly inputs: readonly [{
|
|
3130
|
-
readonly name: "token";
|
|
3131
|
-
readonly type: "address";
|
|
3132
|
-
readonly internalType: "address";
|
|
3133
|
-
}];
|
|
3134
|
-
}, {
|
|
3135
|
-
readonly type: "error";
|
|
3136
|
-
readonly name: "UnauthorizedSender";
|
|
3137
|
-
readonly inputs: readonly [];
|
|
3138
|
-
}, {
|
|
3139
|
-
readonly type: "error";
|
|
3140
|
-
readonly name: "ZeroAddress";
|
|
3141
|
-
readonly inputs: readonly [];
|
|
3142
|
-
}, {
|
|
3143
|
-
readonly type: "error";
|
|
3144
|
-
readonly name: "ZeroAmount";
|
|
3145
|
-
readonly inputs: readonly [];
|
|
3146
|
-
}, {
|
|
3147
|
-
readonly type: "constructor";
|
|
3148
|
-
readonly inputs: readonly [{
|
|
3149
|
-
readonly name: "bundler3";
|
|
3150
|
-
readonly type: "address";
|
|
3151
|
-
readonly internalType: "address";
|
|
3152
|
-
}, {
|
|
3153
|
-
readonly name: "cEth";
|
|
3154
|
-
readonly type: "address";
|
|
3155
|
-
readonly internalType: "address";
|
|
3156
|
-
}];
|
|
3157
|
-
readonly stateMutability: "nonpayable";
|
|
3158
|
-
}, {
|
|
3159
|
-
readonly type: "function";
|
|
3160
|
-
readonly name: "C_ETH";
|
|
3161
|
-
readonly inputs: readonly [];
|
|
3162
|
-
readonly outputs: readonly [{
|
|
3163
|
-
readonly name: "";
|
|
3164
|
-
readonly type: "address";
|
|
3165
|
-
readonly internalType: "address";
|
|
3166
|
-
}];
|
|
3167
|
-
readonly stateMutability: "view";
|
|
3168
|
-
}, {
|
|
3169
|
-
readonly type: "function";
|
|
3170
|
-
readonly name: "compoundV2RedeemErc20";
|
|
3171
|
-
readonly inputs: readonly [{
|
|
3172
|
-
readonly name: "cToken";
|
|
3173
|
-
readonly type: "address";
|
|
3174
|
-
readonly internalType: "address";
|
|
3175
|
-
}, {
|
|
3176
|
-
readonly name: "amount";
|
|
3177
|
-
readonly type: "uint256";
|
|
3178
|
-
readonly internalType: "uint256";
|
|
3179
|
-
}, {
|
|
3180
|
-
readonly name: "receiver";
|
|
3181
|
-
readonly type: "address";
|
|
3182
|
-
readonly internalType: "address";
|
|
3183
|
-
}];
|
|
3184
|
-
readonly outputs: readonly [];
|
|
3185
|
-
readonly stateMutability: "nonpayable";
|
|
3186
|
-
}, {
|
|
3187
|
-
readonly type: "function";
|
|
3188
|
-
readonly name: "compoundV2RedeemEth";
|
|
3189
|
-
readonly inputs: readonly [{
|
|
3190
|
-
readonly name: "amount";
|
|
3191
|
-
readonly type: "uint256";
|
|
3192
|
-
readonly internalType: "uint256";
|
|
3193
|
-
}, {
|
|
3194
|
-
readonly name: "receiver";
|
|
3195
|
-
readonly type: "address";
|
|
3196
|
-
readonly internalType: "address";
|
|
3197
|
-
}];
|
|
3198
|
-
readonly outputs: readonly [];
|
|
3199
|
-
readonly stateMutability: "nonpayable";
|
|
3200
|
-
}, {
|
|
3201
|
-
readonly type: "function";
|
|
3202
|
-
readonly name: "compoundV2RepayErc20";
|
|
3203
|
-
readonly inputs: readonly [{
|
|
3204
|
-
readonly name: "cToken";
|
|
3205
|
-
readonly type: "address";
|
|
3206
|
-
readonly internalType: "address";
|
|
3207
|
-
}, {
|
|
3208
|
-
readonly name: "amount";
|
|
3209
|
-
readonly type: "uint256";
|
|
3210
|
-
readonly internalType: "uint256";
|
|
3211
|
-
}, {
|
|
3212
|
-
readonly name: "onBehalf";
|
|
3213
|
-
readonly type: "address";
|
|
3214
|
-
readonly internalType: "address";
|
|
3215
|
-
}];
|
|
3216
|
-
readonly outputs: readonly [];
|
|
3217
|
-
readonly stateMutability: "nonpayable";
|
|
3218
|
-
}, {
|
|
3219
|
-
readonly type: "function";
|
|
3220
|
-
readonly name: "compoundV2RepayEth";
|
|
3221
|
-
readonly inputs: readonly [{
|
|
3222
|
-
readonly name: "amount";
|
|
3223
|
-
readonly type: "uint256";
|
|
3224
|
-
readonly internalType: "uint256";
|
|
3225
|
-
}, {
|
|
3226
|
-
readonly name: "onBehalf";
|
|
3227
|
-
readonly type: "address";
|
|
3228
|
-
readonly internalType: "address";
|
|
3229
|
-
}];
|
|
3230
|
-
readonly outputs: readonly [];
|
|
3231
|
-
readonly stateMutability: "nonpayable";
|
|
3232
|
-
}];
|
|
3233
|
-
/** ABI for the Bundler3 Compound V3 migration adapter. */
|
|
3234
|
-
export declare const compoundV3MigrationAdapterAbi: readonly [{
|
|
3235
|
-
readonly type: "receive";
|
|
3236
|
-
readonly stateMutability: "payable";
|
|
3237
|
-
}, {
|
|
3238
|
-
readonly type: "function";
|
|
3239
|
-
readonly name: "BUNDLER3";
|
|
3240
|
-
readonly inputs: readonly [];
|
|
3241
|
-
readonly outputs: readonly [{
|
|
3242
|
-
readonly name: "";
|
|
3243
|
-
readonly type: "address";
|
|
3244
|
-
readonly internalType: "address";
|
|
3245
|
-
}];
|
|
3246
|
-
readonly stateMutability: "view";
|
|
3247
|
-
}, {
|
|
3248
|
-
readonly type: "function";
|
|
3249
|
-
readonly name: "erc20Transfer";
|
|
3250
|
-
readonly inputs: readonly [{
|
|
3251
|
-
readonly name: "token";
|
|
3252
|
-
readonly type: "address";
|
|
3253
|
-
readonly internalType: "address";
|
|
3254
|
-
}, {
|
|
3255
|
-
readonly name: "receiver";
|
|
3256
|
-
readonly type: "address";
|
|
3257
|
-
readonly internalType: "address";
|
|
3258
|
-
}, {
|
|
3259
|
-
readonly name: "amount";
|
|
3260
|
-
readonly type: "uint256";
|
|
3261
|
-
readonly internalType: "uint256";
|
|
3262
|
-
}];
|
|
3263
|
-
readonly outputs: readonly [];
|
|
3264
|
-
readonly stateMutability: "nonpayable";
|
|
3265
|
-
}, {
|
|
3266
|
-
readonly type: "function";
|
|
3267
|
-
readonly name: "nativeTransfer";
|
|
3268
|
-
readonly inputs: readonly [{
|
|
3269
|
-
readonly name: "receiver";
|
|
3270
|
-
readonly type: "address";
|
|
3271
|
-
readonly internalType: "address";
|
|
3272
|
-
}, {
|
|
3273
|
-
readonly name: "amount";
|
|
3274
|
-
readonly type: "uint256";
|
|
3275
|
-
readonly internalType: "uint256";
|
|
3276
|
-
}];
|
|
3277
|
-
readonly outputs: readonly [];
|
|
3278
|
-
readonly stateMutability: "nonpayable";
|
|
3279
|
-
}, {
|
|
3280
|
-
readonly type: "error";
|
|
3281
|
-
readonly name: "AdapterAddress";
|
|
3282
|
-
readonly inputs: readonly [];
|
|
3283
|
-
}, {
|
|
3284
|
-
readonly type: "error";
|
|
3285
|
-
readonly name: "FailedCall";
|
|
3286
|
-
readonly inputs: readonly [];
|
|
3287
|
-
}, {
|
|
3288
|
-
readonly type: "error";
|
|
3289
|
-
readonly name: "InsufficientBalance";
|
|
3290
|
-
readonly inputs: readonly [{
|
|
3291
|
-
readonly name: "balance";
|
|
3292
|
-
readonly type: "uint256";
|
|
3293
|
-
readonly internalType: "uint256";
|
|
3294
|
-
}, {
|
|
3295
|
-
readonly name: "needed";
|
|
3296
|
-
readonly type: "uint256";
|
|
3297
|
-
readonly internalType: "uint256";
|
|
3298
|
-
}];
|
|
3299
|
-
}, {
|
|
3300
|
-
readonly type: "error";
|
|
3301
|
-
readonly name: "SafeERC20FailedOperation";
|
|
3302
|
-
readonly inputs: readonly [{
|
|
3303
|
-
readonly name: "token";
|
|
3304
|
-
readonly type: "address";
|
|
3305
|
-
readonly internalType: "address";
|
|
3306
|
-
}];
|
|
3307
|
-
}, {
|
|
3308
|
-
readonly type: "error";
|
|
3309
|
-
readonly name: "UnauthorizedSender";
|
|
3310
|
-
readonly inputs: readonly [];
|
|
3311
|
-
}, {
|
|
3312
|
-
readonly type: "error";
|
|
3313
|
-
readonly name: "ZeroAddress";
|
|
3314
|
-
readonly inputs: readonly [];
|
|
3315
|
-
}, {
|
|
3316
|
-
readonly type: "error";
|
|
3317
|
-
readonly name: "ZeroAmount";
|
|
3318
|
-
readonly inputs: readonly [];
|
|
3319
|
-
}, {
|
|
3320
|
-
readonly type: "constructor";
|
|
3321
|
-
readonly inputs: readonly [{
|
|
3322
|
-
readonly name: "bundler3";
|
|
3323
|
-
readonly type: "address";
|
|
3324
|
-
readonly internalType: "address";
|
|
3325
|
-
}];
|
|
3326
|
-
readonly stateMutability: "nonpayable";
|
|
3327
|
-
}, {
|
|
3328
|
-
readonly type: "function";
|
|
3329
|
-
readonly name: "compoundV3Repay";
|
|
3330
|
-
readonly inputs: readonly [{
|
|
3331
|
-
readonly name: "instance";
|
|
3332
|
-
readonly type: "address";
|
|
3333
|
-
readonly internalType: "address";
|
|
3334
|
-
}, {
|
|
3335
|
-
readonly name: "amount";
|
|
3336
|
-
readonly type: "uint256";
|
|
3337
|
-
readonly internalType: "uint256";
|
|
3338
|
-
}, {
|
|
3339
|
-
readonly name: "onBehalf";
|
|
3340
|
-
readonly type: "address";
|
|
3341
|
-
readonly internalType: "address";
|
|
3342
|
-
}];
|
|
3343
|
-
readonly outputs: readonly [];
|
|
3344
|
-
readonly stateMutability: "nonpayable";
|
|
3345
|
-
}, {
|
|
3346
|
-
readonly type: "function";
|
|
3347
|
-
readonly name: "compoundV3WithdrawFrom";
|
|
3348
|
-
readonly inputs: readonly [{
|
|
3349
|
-
readonly name: "instance";
|
|
3350
|
-
readonly type: "address";
|
|
3351
|
-
readonly internalType: "address";
|
|
3352
|
-
}, {
|
|
3353
|
-
readonly name: "asset";
|
|
3354
|
-
readonly type: "address";
|
|
3355
|
-
readonly internalType: "address";
|
|
3356
|
-
}, {
|
|
3357
|
-
readonly name: "amount";
|
|
3358
|
-
readonly type: "uint256";
|
|
3359
|
-
readonly internalType: "uint256";
|
|
3360
|
-
}, {
|
|
3361
|
-
readonly name: "receiver";
|
|
3362
|
-
readonly type: "address";
|
|
3363
|
-
readonly internalType: "address";
|
|
3364
|
-
}];
|
|
3365
|
-
readonly outputs: readonly [];
|
|
3366
|
-
readonly stateMutability: "nonpayable";
|
|
3367
|
-
}];
|
|
3368
527
|
/**
|
|
3369
528
|
* Pinned ABI JSON for the five BlueBundlesV1 entrypoints used by high-level Morpho Blue writes.
|
|
3370
529
|
*
|