@gearbox-protocol/sdk 13.0.0-next.29 → 13.0.0-next.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/abi/310/iSecuritizeDegenNFT.js +263 -0
- package/dist/cjs/abi/310/iSecuritizeKYCFactory.js +9 -87
- package/dist/cjs/history/assembleOperations.js +103 -0
- package/dist/cjs/history/classifyMulticallOperations.js +157 -0
- package/dist/cjs/history/errors.js +91 -0
- package/dist/cjs/history/extractProtocolCalls.js +53 -0
- package/dist/cjs/history/extractTransfers.js +168 -0
- package/dist/cjs/history/findFacadeCalls.js +84 -0
- package/dist/cjs/history/index.js +39 -0
- package/dist/cjs/history/inner-operations.js +16 -0
- package/dist/cjs/history/internal-types.js +16 -0
- package/dist/cjs/history/mapOperations.js +79 -0
- package/dist/cjs/history/package.json +1 -0
- package/dist/cjs/history/parseCreditAccountTransaction.js +86 -0
- package/dist/cjs/history/populateContractsRegister.js +68 -0
- package/dist/cjs/history/toLegacyOperation.js +182 -0
- package/dist/cjs/{plugins/adapters/contracts/YearnV2AdapterContract.js → history/trace-utils.js} +36 -21
- package/dist/cjs/history/types.js +16 -0
- package/dist/cjs/plugins/adapters/AdaptersPlugin.js +13 -106
- package/dist/cjs/plugins/adapters/abi/index.js +2 -0
- package/dist/cjs/plugins/adapters/abi/targetContractAbi.js +5168 -0
- package/dist/cjs/plugins/adapters/contracts/AbstractAdapter.js +102 -3
- package/dist/cjs/plugins/adapters/contracts/AccountMigratorAdapterContract.js +8 -1
- package/dist/cjs/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +40 -30
- package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +21 -11
- package/dist/cjs/plugins/adapters/contracts/CamelotV3AdapterContract.js +31 -21
- package/dist/cjs/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +91 -25
- package/dist/cjs/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +63 -25
- package/dist/cjs/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +68 -31
- package/dist/cjs/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +68 -31
- package/dist/cjs/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +73 -31
- package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterDeposit.js +80 -33
- package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +62 -26
- package/dist/cjs/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +80 -34
- package/dist/cjs/plugins/adapters/contracts/DaiUsdsAdapterContract.js +39 -14
- package/dist/cjs/plugins/adapters/contracts/ERC4626AdapterContract.js +55 -27
- package/dist/cjs/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +39 -14
- package/dist/cjs/plugins/adapters/contracts/FluidDexAdapterContract.js +27 -14
- package/dist/cjs/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +45 -23
- package/dist/cjs/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +23 -14
- package/dist/cjs/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +22 -12
- package/dist/cjs/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +26 -16
- package/dist/cjs/plugins/adapters/contracts/LidoV1AdapterContract.js +39 -17
- package/dist/cjs/plugins/adapters/contracts/MellowClaimerAdapterContract.js +21 -11
- package/dist/cjs/plugins/adapters/contracts/MellowDVVAdapterContract.js +38 -14
- package/dist/cjs/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +71 -42
- package/dist/cjs/plugins/adapters/contracts/MellowWrapperAdapterContract.js +21 -11
- package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +36 -17
- package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +38 -21
- package/dist/cjs/plugins/adapters/contracts/PendleRouterAdapterContract.js +63 -53
- package/dist/cjs/plugins/adapters/contracts/StakingRewardsAdapterContract.js +62 -37
- package/dist/cjs/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +35 -25
- package/dist/cjs/plugins/adapters/contracts/UniswapV2AdapterContract.js +35 -21
- package/dist/cjs/plugins/adapters/contracts/UniswapV3AdapterContract.js +32 -23
- package/dist/cjs/plugins/adapters/contracts/UniswapV4AdapterContract.js +41 -27
- package/dist/cjs/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +34 -17
- package/dist/cjs/plugins/adapters/contracts/VelodromeV2AdapterContract.js +35 -25
- package/dist/cjs/plugins/adapters/contracts/WstETHV1AdapterContract.js +31 -11
- package/dist/cjs/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.js +585 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.js +262 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.js +296 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.js +415 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/MellowDepositQueueAdapterContract.js +74 -0
- package/dist/cjs/plugins/adapters/contracts/{MellowRedeemQueueAdapterContract.js → deprecated/MellowRedeemQueueAdapterContract.js} +33 -14
- package/dist/cjs/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.js +233 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.js +359 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/index.js +36 -0
- package/dist/cjs/plugins/adapters/contracts/index.js +3 -17
- package/dist/cjs/plugins/adapters/contracts/types.js +0 -9
- package/dist/cjs/plugins/adapters/createAdapter.js +140 -0
- package/dist/cjs/plugins/adapters/index.js +6 -0
- package/dist/cjs/plugins/adapters/legacyAdapterOperations.js +16 -0
- package/dist/cjs/plugins/adapters/transferHelpers.js +127 -0
- package/dist/cjs/sdk/base/BaseContract.js +54 -3
- package/dist/cjs/sdk/base/ChainContractsRegister.js +33 -0
- package/dist/cjs/sdk/base/Construct.js +11 -3
- package/dist/cjs/sdk/base/PlaceholderContract.js +2 -2
- package/dist/cjs/sdk/base/errors.js +35 -0
- package/dist/cjs/sdk/base/index.js +2 -0
- package/dist/cjs/sdk/market/adapters/PlaceholderAdapterContracts.js +10 -4
- package/dist/cjs/sdk/market/adapters/{factory.js → createAdapter.js} +3 -3
- package/dist/cjs/sdk/market/adapters/index.js +2 -2
- package/dist/cjs/sdk/market/credit/CreditFacadeV310BaseContract.js +108 -0
- package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +3 -40
- package/dist/cjs/sdk/market/credit/index.js +2 -0
- package/dist/cjs/sdk/market/pool/SecuritizeKYCFactory.js +14 -1
- package/dist/cjs/sdk/utils/abi-decode.js +43 -2
- package/dist/esm/abi/310/iSecuritizeDegenNFT.js +239 -0
- package/dist/esm/abi/310/iSecuritizeKYCFactory.js +9 -87
- package/dist/esm/history/assembleOperations.js +79 -0
- package/dist/esm/history/classifyMulticallOperations.js +137 -0
- package/dist/esm/history/errors.js +62 -0
- package/dist/esm/history/extractProtocolCalls.js +32 -0
- package/dist/esm/history/extractTransfers.js +148 -0
- package/dist/esm/history/findFacadeCalls.js +63 -0
- package/dist/esm/history/index.js +9 -0
- package/dist/esm/history/inner-operations.js +0 -0
- package/dist/esm/history/internal-types.js +0 -0
- package/dist/esm/history/mapOperations.js +55 -0
- package/dist/esm/history/package.json +1 -0
- package/dist/esm/history/parseCreditAccountTransaction.js +62 -0
- package/dist/esm/history/populateContractsRegister.js +52 -0
- package/dist/esm/history/toLegacyOperation.js +157 -0
- package/dist/esm/history/trace-utils.js +36 -0
- package/dist/esm/history/types.js +0 -0
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +14 -148
- package/dist/esm/plugins/adapters/abi/index.js +1 -0
- package/dist/esm/plugins/adapters/abi/targetContractAbi.js +5113 -0
- package/dist/esm/plugins/adapters/contracts/AbstractAdapter.js +111 -4
- package/dist/esm/plugins/adapters/contracts/AccountMigratorAdapterContract.js +8 -1
- package/dist/esm/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +40 -30
- package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +21 -11
- package/dist/esm/plugins/adapters/contracts/CamelotV3AdapterContract.js +31 -21
- package/dist/esm/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +100 -26
- package/dist/esm/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +65 -25
- package/dist/esm/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +70 -31
- package/dist/esm/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +70 -31
- package/dist/esm/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +75 -31
- package/dist/esm/plugins/adapters/contracts/CurveV1AdapterDeposit.js +82 -33
- package/dist/esm/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +64 -26
- package/dist/esm/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +85 -34
- package/dist/esm/plugins/adapters/contracts/DaiUsdsAdapterContract.js +41 -14
- package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +57 -27
- package/dist/esm/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +41 -14
- package/dist/esm/plugins/adapters/contracts/FluidDexAdapterContract.js +29 -14
- package/dist/esm/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +47 -23
- package/dist/esm/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +29 -15
- package/dist/esm/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +27 -12
- package/dist/esm/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +31 -16
- package/dist/esm/plugins/adapters/contracts/LidoV1AdapterContract.js +41 -17
- package/dist/esm/plugins/adapters/contracts/MellowClaimerAdapterContract.js +23 -11
- package/dist/esm/plugins/adapters/contracts/MellowDVVAdapterContract.js +40 -14
- package/dist/esm/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +74 -43
- package/dist/esm/plugins/adapters/contracts/MellowWrapperAdapterContract.js +23 -11
- package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +38 -17
- package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +44 -22
- package/dist/esm/plugins/adapters/contracts/PendleRouterAdapterContract.js +65 -53
- package/dist/esm/plugins/adapters/contracts/StakingRewardsAdapterContract.js +64 -37
- package/dist/esm/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +35 -25
- package/dist/esm/plugins/adapters/contracts/UniswapV2AdapterContract.js +36 -22
- package/dist/esm/plugins/adapters/contracts/UniswapV3AdapterContract.js +33 -24
- package/dist/esm/plugins/adapters/contracts/UniswapV4AdapterContract.js +45 -28
- package/dist/esm/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +40 -18
- package/dist/esm/plugins/adapters/contracts/VelodromeV2AdapterContract.js +35 -25
- package/dist/esm/plugins/adapters/contracts/WstETHV1AdapterContract.js +33 -11
- package/dist/esm/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.js +559 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.js +236 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.js +272 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.js +390 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/MellowDepositQueueAdapterContract.js +52 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/MellowRedeemQueueAdapterContract.js +45 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.js +209 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.js +336 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/index.js +8 -0
- package/dist/esm/plugins/adapters/contracts/index.js +1 -8
- package/dist/esm/plugins/adapters/contracts/types.js +0 -8
- package/dist/esm/plugins/adapters/createAdapter.js +158 -0
- package/dist/esm/plugins/adapters/index.js +3 -0
- package/dist/esm/plugins/adapters/legacyAdapterOperations.js +0 -0
- package/dist/esm/plugins/adapters/transferHelpers.js +95 -0
- package/dist/esm/sdk/base/BaseContract.js +56 -3
- package/dist/esm/sdk/base/ChainContractsRegister.js +33 -0
- package/dist/esm/sdk/base/Construct.js +11 -3
- package/dist/esm/sdk/base/PlaceholderContract.js +2 -2
- package/dist/esm/sdk/base/errors.js +11 -0
- package/dist/esm/sdk/base/index.js +1 -0
- package/dist/esm/sdk/market/adapters/PlaceholderAdapterContracts.js +14 -5
- package/dist/esm/sdk/market/adapters/index.js +1 -1
- package/dist/esm/sdk/market/credit/CreditFacadeV310BaseContract.js +86 -0
- package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +3 -43
- package/dist/esm/sdk/market/credit/index.js +1 -0
- package/dist/esm/sdk/market/pool/SecuritizeKYCFactory.js +14 -1
- package/dist/esm/sdk/utils/abi-decode.js +43 -2
- package/dist/types/abi/310/iSecuritizeDegenNFT.d.ts +324 -0
- package/dist/types/abi/310/iSecuritizeKYCFactory.d.ts +12 -121
- package/dist/types/history/assembleOperations.d.ts +22 -0
- package/dist/types/history/classifyMulticallOperations.d.ts +35 -0
- package/dist/types/history/errors.d.ts +30 -0
- package/dist/types/history/extractProtocolCalls.d.ts +8 -0
- package/dist/types/history/extractTransfers.d.ts +22 -0
- package/dist/types/history/findFacadeCalls.d.ts +9 -0
- package/dist/types/history/index.d.ts +6 -0
- package/dist/types/history/inner-operations.d.ts +57 -0
- package/dist/types/history/internal-types.d.ts +47 -0
- package/dist/types/history/mapOperations.d.ts +27 -0
- package/dist/types/history/parseCreditAccountTransaction.d.ts +27 -0
- package/dist/types/history/populateContractsRegister.d.ts +19 -0
- package/dist/types/history/toLegacyOperation.d.ts +18 -0
- package/dist/types/history/trace-utils.d.ts +12 -0
- package/dist/types/history/types.d.ts +71 -0
- package/dist/types/plugins/adapters/abi/index.d.ts +1 -0
- package/dist/types/plugins/adapters/abi/targetContractAbi.d.ts +8262 -0
- package/dist/types/plugins/adapters/contracts/AbstractAdapter.d.ts +50 -8
- package/dist/types/plugins/adapters/contracts/AccountMigratorAdapterContract.d.ts +238 -4
- package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +113 -4
- package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +37 -4
- package/dist/types/plugins/adapters/contracts/CamelotV3AdapterContract.d.ts +210 -4
- package/dist/types/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +407 -8
- package/dist/types/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +208 -5
- package/dist/types/plugins/adapters/contracts/Curve2AssetsAdapterContract.d.ts +1244 -10
- package/dist/types/plugins/adapters/contracts/Curve3AssetsAdapterContract.d.ts +1244 -10
- package/dist/types/plugins/adapters/contracts/Curve4AssetsAdapterContract.d.ts +1244 -10
- package/dist/types/plugins/adapters/contracts/CurveV1AdapterDeposit.d.ts +575 -11
- package/dist/types/plugins/adapters/contracts/CurveV1AdapterStETHContract.d.ts +1244 -10
- package/dist/types/plugins/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +1213 -11
- package/dist/types/plugins/adapters/contracts/DaiUsdsAdapterContract.d.ts +60 -6
- package/dist/types/plugins/adapters/contracts/ERC4626AdapterContract.d.ts +483 -6
- package/dist/types/plugins/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +58 -6
- package/dist/types/plugins/adapters/contracts/FluidDexAdapterContract.d.ts +123 -6
- package/dist/types/plugins/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +133 -8
- package/dist/types/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +155 -5
- package/dist/types/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +240 -6
- package/dist/types/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +356 -6
- package/dist/types/plugins/adapters/contracts/LidoV1AdapterContract.d.ts +94 -7
- package/dist/types/plugins/adapters/contracts/MellowClaimerAdapterContract.d.ts +38 -5
- package/dist/types/plugins/adapters/contracts/MellowDVVAdapterContract.d.ts +479 -6
- package/dist/types/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +483 -7
- package/dist/types/plugins/adapters/contracts/MellowWrapperAdapterContract.d.ts +48 -5
- package/dist/types/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +42 -7
- package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +186 -7
- package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +1010 -5
- package/dist/types/plugins/adapters/contracts/StakingRewardsAdapterContract.d.ts +71 -8
- package/dist/types/plugins/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +123 -4
- package/dist/types/plugins/adapters/contracts/UniswapV2AdapterContract.d.ts +747 -5
- package/dist/types/plugins/adapters/contracts/UniswapV3AdapterContract.d.ts +171 -4
- package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +96 -5
- package/dist/types/plugins/adapters/contracts/UpshiftVaultAdapterContract.d.ts +74 -7
- package/dist/types/plugins/adapters/contracts/VelodromeV2AdapterContract.d.ts +109 -4
- package/dist/types/plugins/adapters/contracts/WstETHV1AdapterContract.d.ts +267 -5
- package/dist/types/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.d.ts +1664 -0
- package/dist/types/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.d.ts +611 -0
- package/dist/types/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.d.ts +686 -0
- package/dist/types/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.d.ts +1270 -0
- package/dist/types/plugins/adapters/contracts/deprecated/MellowDepositQueueAdapterContract.d.ts +19 -0
- package/dist/types/plugins/adapters/contracts/deprecated/MellowRedeemQueueAdapterContract.d.ts +18 -0
- package/dist/types/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.d.ts +531 -0
- package/dist/types/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.d.ts +662 -0
- package/dist/types/plugins/adapters/contracts/deprecated/index.d.ts +8 -0
- package/dist/types/plugins/adapters/contracts/index.d.ts +1 -8
- package/dist/types/plugins/adapters/contracts/types.d.ts +0 -6
- package/dist/types/plugins/adapters/createAdapter.d.ts +7 -0
- package/dist/types/plugins/adapters/index.d.ts +3 -0
- package/dist/types/plugins/adapters/legacyAdapterOperations.d.ts +200 -0
- package/dist/types/plugins/adapters/transferHelpers.d.ts +60 -0
- package/dist/types/plugins/adapters/types.d.ts +59 -1
- package/dist/types/sdk/base/BaseContract.d.ts +15 -2
- package/dist/types/sdk/base/ChainContractsRegister.d.ts +11 -1
- package/dist/types/sdk/base/Construct.d.ts +6 -3
- package/dist/types/sdk/base/PlaceholderContract.d.ts +2 -2
- package/dist/types/sdk/base/errors.d.ts +3 -0
- package/dist/types/sdk/base/index.d.ts +1 -0
- package/dist/types/sdk/base/types.d.ts +31 -0
- package/dist/types/sdk/market/adapters/PlaceholderAdapterContracts.d.ts +9 -4
- package/dist/types/sdk/market/adapters/index.d.ts +1 -1
- package/dist/types/sdk/market/credit/CreditFacadeV310BaseContract.d.ts +856 -0
- package/dist/types/sdk/market/credit/CreditFacadeV310Contract.d.ts +6 -848
- package/dist/types/sdk/market/credit/index.d.ts +1 -0
- package/dist/types/sdk/market/pool/SecuritizeKYCFactory.d.ts +14 -121
- package/dist/types/sdk/utils/abi-decode.d.ts +14 -1
- package/package.json +16 -11
- package/dist/cjs/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +0 -51
- package/dist/cjs/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +0 -58
- package/dist/cjs/plugins/adapters/contracts/InfraredVaultAdapterContract.js +0 -49
- package/dist/cjs/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +0 -56
- package/dist/cjs/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +0 -51
- package/dist/cjs/plugins/adapters/contracts/MellowVaultAdapterContract.js +0 -46
- package/dist/esm/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +0 -27
- package/dist/esm/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +0 -34
- package/dist/esm/plugins/adapters/contracts/InfraredVaultAdapterContract.js +0 -25
- package/dist/esm/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +0 -32
- package/dist/esm/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +0 -27
- package/dist/esm/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +0 -24
- package/dist/esm/plugins/adapters/contracts/MellowVaultAdapterContract.js +0 -22
- package/dist/esm/plugins/adapters/contracts/YearnV2AdapterContract.js +0 -22
- package/dist/types/plugins/adapters/contracts/BalancerV2VaultAdapterContract.d.ts +0 -482
- package/dist/types/plugins/adapters/contracts/EqualizerRouterAdapterContract.d.ts +0 -225
- package/dist/types/plugins/adapters/contracts/InfraredVaultAdapterContract.d.ts +0 -198
- package/dist/types/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.d.ts +0 -396
- package/dist/types/plugins/adapters/contracts/MellowDepositQueueAdapterContract.d.ts +0 -13
- package/dist/types/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.d.ts +0 -12
- package/dist/types/plugins/adapters/contracts/MellowVaultAdapterContract.d.ts +0 -203
- package/dist/types/plugins/adapters/contracts/YearnV2AdapterContract.d.ts +0 -185
- /package/dist/esm/sdk/market/adapters/{factory.js → createAdapter.js} +0 -0
- /package/dist/types/sdk/market/adapters/{factory.d.ts → createAdapter.d.ts} +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { iEqualizerRouterAdapterAbi } from "@gearbox-protocol/integrations-v3";
|
|
2
|
-
import { decodeAbiParameters } from "viem";
|
|
3
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
-
const abi = iEqualizerRouterAdapterAbi;
|
|
5
|
-
class EqualizerRouterAdapterContract extends AbstractAdapterContract {
|
|
6
|
-
supportedPools;
|
|
7
|
-
constructor(options, args) {
|
|
8
|
-
super(options, { ...args, abi });
|
|
9
|
-
const decoded = decodeAbiParameters(
|
|
10
|
-
[
|
|
11
|
-
{ type: "address", name: "creditManager" },
|
|
12
|
-
{ type: "address", name: "targetContract" },
|
|
13
|
-
{
|
|
14
|
-
type: "tuple[]",
|
|
15
|
-
name: "supportedPools",
|
|
16
|
-
components: [
|
|
17
|
-
{ type: "address", name: "token0" },
|
|
18
|
-
{ type: "address", name: "token1" },
|
|
19
|
-
{ type: "bool", name: "stable" }
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
args.baseParams.serializedParams
|
|
24
|
-
);
|
|
25
|
-
this.supportedPools = decoded[2].map((pool) => ({
|
|
26
|
-
token0: pool.token0,
|
|
27
|
-
token1: pool.token1,
|
|
28
|
-
stable: pool.stable
|
|
29
|
-
}));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
EqualizerRouterAdapterContract
|
|
34
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { iInfraredVaultAdapterAbi } from "@gearbox-protocol/integrations-v3";
|
|
2
|
-
import { decodeAbiParameters } from "viem";
|
|
3
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
-
const abi = iInfraredVaultAdapterAbi;
|
|
5
|
-
class InfraredVaultAdapterContract extends AbstractAdapterContract {
|
|
6
|
-
stakingToken;
|
|
7
|
-
stakedPhantomToken;
|
|
8
|
-
constructor(options, args) {
|
|
9
|
-
super(options, { ...args, abi });
|
|
10
|
-
const decoded = decodeAbiParameters(
|
|
11
|
-
[
|
|
12
|
-
{ type: "address", name: "creditManager" },
|
|
13
|
-
{ type: "address", name: "targetContract" },
|
|
14
|
-
{ type: "address", name: "stakingToken" },
|
|
15
|
-
{ type: "address", name: "stakedPhantomToken" }
|
|
16
|
-
],
|
|
17
|
-
args.baseParams.serializedParams
|
|
18
|
-
);
|
|
19
|
-
this.stakingToken = decoded[2];
|
|
20
|
-
this.stakedPhantomToken = decoded[3];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
InfraredVaultAdapterContract
|
|
25
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { iKodiakIslandGatewayAdapterAbi } from "@gearbox-protocol/integrations-v3";
|
|
2
|
-
import { decodeAbiParameters } from "viem";
|
|
3
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
-
const abi = iKodiakIslandGatewayAdapterAbi;
|
|
5
|
-
class KodiakIslandGatewayAdapterContract extends AbstractAdapterContract {
|
|
6
|
-
allowedIslands;
|
|
7
|
-
constructor(options, args) {
|
|
8
|
-
super(options, { ...args, abi });
|
|
9
|
-
const decoded = decodeAbiParameters(
|
|
10
|
-
[
|
|
11
|
-
{ type: "address", name: "creditManager" },
|
|
12
|
-
{ type: "address", name: "targetContract" },
|
|
13
|
-
{
|
|
14
|
-
type: "tuple[]",
|
|
15
|
-
name: "allowedIslands",
|
|
16
|
-
components: [
|
|
17
|
-
{ type: "address", name: "island" },
|
|
18
|
-
{ type: "uint8", name: "status" }
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
args.baseParams.serializedParams
|
|
23
|
-
);
|
|
24
|
-
this.allowedIslands = decoded[2].map(({ island, status }) => ({
|
|
25
|
-
island,
|
|
26
|
-
status
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
KodiakIslandGatewayAdapterContract
|
|
32
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { decodeAbiParameters } from "viem";
|
|
2
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
3
|
-
const abi = [];
|
|
4
|
-
class MellowDepositQueueAdapterContract extends AbstractAdapterContract {
|
|
5
|
-
asset;
|
|
6
|
-
phantomToken;
|
|
7
|
-
referral;
|
|
8
|
-
constructor(options, args) {
|
|
9
|
-
super(options, { ...args, abi });
|
|
10
|
-
const decoded = decodeAbiParameters(
|
|
11
|
-
[
|
|
12
|
-
{ type: "address", name: "creditManager" },
|
|
13
|
-
{ type: "address", name: "targetContract" },
|
|
14
|
-
{ type: "address", name: "asset" },
|
|
15
|
-
{ type: "address", name: "phantomToken" },
|
|
16
|
-
{ type: "address", name: "referral" }
|
|
17
|
-
],
|
|
18
|
-
args.baseParams.serializedParams
|
|
19
|
-
);
|
|
20
|
-
this.asset = decoded[2];
|
|
21
|
-
this.phantomToken = decoded[3];
|
|
22
|
-
this.referral = decoded[4];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
MellowDepositQueueAdapterContract
|
|
27
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { decodeAbiParameters } from "viem";
|
|
2
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
3
|
-
const abi = [];
|
|
4
|
-
class MellowRedeemQueueAdapterContract extends AbstractAdapterContract {
|
|
5
|
-
vaultToken;
|
|
6
|
-
phantomToken;
|
|
7
|
-
constructor(options, args) {
|
|
8
|
-
super(options, { ...args, abi });
|
|
9
|
-
const decoded = decodeAbiParameters(
|
|
10
|
-
[
|
|
11
|
-
{ type: "address", name: "creditManager" },
|
|
12
|
-
{ type: "address", name: "targetContract" },
|
|
13
|
-
{ type: "address", name: "vaultToken" },
|
|
14
|
-
{ type: "address", name: "phantomToken" }
|
|
15
|
-
],
|
|
16
|
-
args.baseParams.serializedParams
|
|
17
|
-
);
|
|
18
|
-
this.vaultToken = decoded[2];
|
|
19
|
-
this.phantomToken = decoded[3];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
MellowRedeemQueueAdapterContract
|
|
24
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { iMellowVaultAdapterAbi } from "@gearbox-protocol/integrations-v3";
|
|
2
|
-
import { decodeAbiParameters } from "viem";
|
|
3
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
-
const abi = iMellowVaultAdapterAbi;
|
|
5
|
-
class MellowVaultAdapterContract extends AbstractAdapterContract {
|
|
6
|
-
allowedUnderlyings;
|
|
7
|
-
constructor(options, args) {
|
|
8
|
-
super(options, { ...args, abi });
|
|
9
|
-
const decoded = decodeAbiParameters(
|
|
10
|
-
[
|
|
11
|
-
{ type: "address", name: "creditManager" },
|
|
12
|
-
{ type: "address", name: "targetContract" },
|
|
13
|
-
{ type: "address[]", name: "allowedUnderlyings" }
|
|
14
|
-
],
|
|
15
|
-
args.baseParams.serializedParams
|
|
16
|
-
);
|
|
17
|
-
this.allowedUnderlyings = [...decoded[2]];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
MellowVaultAdapterContract
|
|
22
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { iYearnV2AdapterAbi } from "@gearbox-protocol/integrations-v3";
|
|
2
|
-
import { decodeAbiParameters } from "viem";
|
|
3
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
-
const abi = iYearnV2AdapterAbi;
|
|
5
|
-
class YearnV2RouterAdapterContract extends AbstractAdapterContract {
|
|
6
|
-
token;
|
|
7
|
-
constructor(options, args) {
|
|
8
|
-
super(options, { ...args, abi });
|
|
9
|
-
const decoded = decodeAbiParameters(
|
|
10
|
-
[
|
|
11
|
-
{ type: "address", name: "creditManager" },
|
|
12
|
-
{ type: "address", name: "targetContract" },
|
|
13
|
-
{ type: "address", name: "token" }
|
|
14
|
-
],
|
|
15
|
-
args.baseParams.serializedParams
|
|
16
|
-
);
|
|
17
|
-
this.token = decoded[2];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
YearnV2RouterAdapterContract
|
|
22
|
-
};
|
|
@@ -1,482 +0,0 @@
|
|
|
1
|
-
import type { ConstructOptions } from "../../../sdk/index.js";
|
|
2
|
-
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
3
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
-
import type { BalancerV2PoolStatus } from "./types.js";
|
|
5
|
-
declare const abi: readonly [{
|
|
6
|
-
readonly type: "function";
|
|
7
|
-
readonly inputs: readonly [{
|
|
8
|
-
readonly name: "kind";
|
|
9
|
-
readonly internalType: "enum SwapKind";
|
|
10
|
-
readonly type: "uint8";
|
|
11
|
-
}, {
|
|
12
|
-
readonly name: "swaps";
|
|
13
|
-
readonly internalType: "struct BatchSwapStep[]";
|
|
14
|
-
readonly type: "tuple[]";
|
|
15
|
-
readonly components: readonly [{
|
|
16
|
-
readonly name: "poolId";
|
|
17
|
-
readonly internalType: "bytes32";
|
|
18
|
-
readonly type: "bytes32";
|
|
19
|
-
}, {
|
|
20
|
-
readonly name: "assetInIndex";
|
|
21
|
-
readonly internalType: "uint256";
|
|
22
|
-
readonly type: "uint256";
|
|
23
|
-
}, {
|
|
24
|
-
readonly name: "assetOutIndex";
|
|
25
|
-
readonly internalType: "uint256";
|
|
26
|
-
readonly type: "uint256";
|
|
27
|
-
}, {
|
|
28
|
-
readonly name: "amount";
|
|
29
|
-
readonly internalType: "uint256";
|
|
30
|
-
readonly type: "uint256";
|
|
31
|
-
}, {
|
|
32
|
-
readonly name: "userData";
|
|
33
|
-
readonly internalType: "bytes";
|
|
34
|
-
readonly type: "bytes";
|
|
35
|
-
}];
|
|
36
|
-
}, {
|
|
37
|
-
readonly name: "assets";
|
|
38
|
-
readonly internalType: "contract IAsset[]";
|
|
39
|
-
readonly type: "address[]";
|
|
40
|
-
}, {
|
|
41
|
-
readonly name: "";
|
|
42
|
-
readonly internalType: "struct FundManagement";
|
|
43
|
-
readonly type: "tuple";
|
|
44
|
-
readonly components: readonly [{
|
|
45
|
-
readonly name: "sender";
|
|
46
|
-
readonly internalType: "address";
|
|
47
|
-
readonly type: "address";
|
|
48
|
-
}, {
|
|
49
|
-
readonly name: "fromInternalBalance";
|
|
50
|
-
readonly internalType: "bool";
|
|
51
|
-
readonly type: "bool";
|
|
52
|
-
}, {
|
|
53
|
-
readonly name: "recipient";
|
|
54
|
-
readonly internalType: "address payable";
|
|
55
|
-
readonly type: "address";
|
|
56
|
-
}, {
|
|
57
|
-
readonly name: "toInternalBalance";
|
|
58
|
-
readonly internalType: "bool";
|
|
59
|
-
readonly type: "bool";
|
|
60
|
-
}];
|
|
61
|
-
}, {
|
|
62
|
-
readonly name: "limits";
|
|
63
|
-
readonly internalType: "int256[]";
|
|
64
|
-
readonly type: "int256[]";
|
|
65
|
-
}, {
|
|
66
|
-
readonly name: "deadline";
|
|
67
|
-
readonly internalType: "uint256";
|
|
68
|
-
readonly type: "uint256";
|
|
69
|
-
}];
|
|
70
|
-
readonly name: "batchSwap";
|
|
71
|
-
readonly outputs: readonly [{
|
|
72
|
-
readonly name: "useSafePrices";
|
|
73
|
-
readonly internalType: "bool";
|
|
74
|
-
readonly type: "bool";
|
|
75
|
-
}];
|
|
76
|
-
readonly stateMutability: "nonpayable";
|
|
77
|
-
}, {
|
|
78
|
-
readonly type: "function";
|
|
79
|
-
readonly inputs: readonly [];
|
|
80
|
-
readonly name: "contractType";
|
|
81
|
-
readonly outputs: readonly [{
|
|
82
|
-
readonly name: "";
|
|
83
|
-
readonly internalType: "bytes32";
|
|
84
|
-
readonly type: "bytes32";
|
|
85
|
-
}];
|
|
86
|
-
readonly stateMutability: "view";
|
|
87
|
-
}, {
|
|
88
|
-
readonly type: "function";
|
|
89
|
-
readonly inputs: readonly [];
|
|
90
|
-
readonly name: "creditManager";
|
|
91
|
-
readonly outputs: readonly [{
|
|
92
|
-
readonly name: "";
|
|
93
|
-
readonly internalType: "address";
|
|
94
|
-
readonly type: "address";
|
|
95
|
-
}];
|
|
96
|
-
readonly stateMutability: "view";
|
|
97
|
-
}, {
|
|
98
|
-
readonly type: "function";
|
|
99
|
-
readonly inputs: readonly [{
|
|
100
|
-
readonly name: "poolId";
|
|
101
|
-
readonly internalType: "bytes32";
|
|
102
|
-
readonly type: "bytes32";
|
|
103
|
-
}, {
|
|
104
|
-
readonly name: "";
|
|
105
|
-
readonly internalType: "address";
|
|
106
|
-
readonly type: "address";
|
|
107
|
-
}, {
|
|
108
|
-
readonly name: "";
|
|
109
|
-
readonly internalType: "address payable";
|
|
110
|
-
readonly type: "address";
|
|
111
|
-
}, {
|
|
112
|
-
readonly name: "request";
|
|
113
|
-
readonly internalType: "struct ExitPoolRequest";
|
|
114
|
-
readonly type: "tuple";
|
|
115
|
-
readonly components: readonly [{
|
|
116
|
-
readonly name: "assets";
|
|
117
|
-
readonly internalType: "contract IAsset[]";
|
|
118
|
-
readonly type: "address[]";
|
|
119
|
-
}, {
|
|
120
|
-
readonly name: "minAmountsOut";
|
|
121
|
-
readonly internalType: "uint256[]";
|
|
122
|
-
readonly type: "uint256[]";
|
|
123
|
-
}, {
|
|
124
|
-
readonly name: "userData";
|
|
125
|
-
readonly internalType: "bytes";
|
|
126
|
-
readonly type: "bytes";
|
|
127
|
-
}, {
|
|
128
|
-
readonly name: "toInternalBalance";
|
|
129
|
-
readonly internalType: "bool";
|
|
130
|
-
readonly type: "bool";
|
|
131
|
-
}];
|
|
132
|
-
}];
|
|
133
|
-
readonly name: "exitPool";
|
|
134
|
-
readonly outputs: readonly [{
|
|
135
|
-
readonly name: "useSafePrices";
|
|
136
|
-
readonly internalType: "bool";
|
|
137
|
-
readonly type: "bool";
|
|
138
|
-
}];
|
|
139
|
-
readonly stateMutability: "nonpayable";
|
|
140
|
-
}, {
|
|
141
|
-
readonly type: "function";
|
|
142
|
-
readonly inputs: readonly [{
|
|
143
|
-
readonly name: "poolId";
|
|
144
|
-
readonly internalType: "bytes32";
|
|
145
|
-
readonly type: "bytes32";
|
|
146
|
-
}, {
|
|
147
|
-
readonly name: "assetOut";
|
|
148
|
-
readonly internalType: "contract IAsset";
|
|
149
|
-
readonly type: "address";
|
|
150
|
-
}, {
|
|
151
|
-
readonly name: "amountIn";
|
|
152
|
-
readonly internalType: "uint256";
|
|
153
|
-
readonly type: "uint256";
|
|
154
|
-
}, {
|
|
155
|
-
readonly name: "minAmountOut";
|
|
156
|
-
readonly internalType: "uint256";
|
|
157
|
-
readonly type: "uint256";
|
|
158
|
-
}];
|
|
159
|
-
readonly name: "exitPoolSingleAsset";
|
|
160
|
-
readonly outputs: readonly [{
|
|
161
|
-
readonly name: "useSafePrices";
|
|
162
|
-
readonly internalType: "bool";
|
|
163
|
-
readonly type: "bool";
|
|
164
|
-
}];
|
|
165
|
-
readonly stateMutability: "nonpayable";
|
|
166
|
-
}, {
|
|
167
|
-
readonly type: "function";
|
|
168
|
-
readonly inputs: readonly [{
|
|
169
|
-
readonly name: "poolId";
|
|
170
|
-
readonly internalType: "bytes32";
|
|
171
|
-
readonly type: "bytes32";
|
|
172
|
-
}, {
|
|
173
|
-
readonly name: "assetOut";
|
|
174
|
-
readonly internalType: "contract IAsset";
|
|
175
|
-
readonly type: "address";
|
|
176
|
-
}, {
|
|
177
|
-
readonly name: "leftoverAmount";
|
|
178
|
-
readonly internalType: "uint256";
|
|
179
|
-
readonly type: "uint256";
|
|
180
|
-
}, {
|
|
181
|
-
readonly name: "minRateRAY";
|
|
182
|
-
readonly internalType: "uint256";
|
|
183
|
-
readonly type: "uint256";
|
|
184
|
-
}];
|
|
185
|
-
readonly name: "exitPoolSingleAssetDiff";
|
|
186
|
-
readonly outputs: readonly [{
|
|
187
|
-
readonly name: "useSafePrices";
|
|
188
|
-
readonly internalType: "bool";
|
|
189
|
-
readonly type: "bool";
|
|
190
|
-
}];
|
|
191
|
-
readonly stateMutability: "nonpayable";
|
|
192
|
-
}, {
|
|
193
|
-
readonly type: "function";
|
|
194
|
-
readonly inputs: readonly [{
|
|
195
|
-
readonly name: "poolId";
|
|
196
|
-
readonly internalType: "bytes32";
|
|
197
|
-
readonly type: "bytes32";
|
|
198
|
-
}, {
|
|
199
|
-
readonly name: "";
|
|
200
|
-
readonly internalType: "address";
|
|
201
|
-
readonly type: "address";
|
|
202
|
-
}, {
|
|
203
|
-
readonly name: "";
|
|
204
|
-
readonly internalType: "address";
|
|
205
|
-
readonly type: "address";
|
|
206
|
-
}, {
|
|
207
|
-
readonly name: "request";
|
|
208
|
-
readonly internalType: "struct JoinPoolRequest";
|
|
209
|
-
readonly type: "tuple";
|
|
210
|
-
readonly components: readonly [{
|
|
211
|
-
readonly name: "assets";
|
|
212
|
-
readonly internalType: "contract IAsset[]";
|
|
213
|
-
readonly type: "address[]";
|
|
214
|
-
}, {
|
|
215
|
-
readonly name: "maxAmountsIn";
|
|
216
|
-
readonly internalType: "uint256[]";
|
|
217
|
-
readonly type: "uint256[]";
|
|
218
|
-
}, {
|
|
219
|
-
readonly name: "userData";
|
|
220
|
-
readonly internalType: "bytes";
|
|
221
|
-
readonly type: "bytes";
|
|
222
|
-
}, {
|
|
223
|
-
readonly name: "fromInternalBalance";
|
|
224
|
-
readonly internalType: "bool";
|
|
225
|
-
readonly type: "bool";
|
|
226
|
-
}];
|
|
227
|
-
}];
|
|
228
|
-
readonly name: "joinPool";
|
|
229
|
-
readonly outputs: readonly [{
|
|
230
|
-
readonly name: "useSafePrices";
|
|
231
|
-
readonly internalType: "bool";
|
|
232
|
-
readonly type: "bool";
|
|
233
|
-
}];
|
|
234
|
-
readonly stateMutability: "nonpayable";
|
|
235
|
-
}, {
|
|
236
|
-
readonly type: "function";
|
|
237
|
-
readonly inputs: readonly [{
|
|
238
|
-
readonly name: "poolId";
|
|
239
|
-
readonly internalType: "bytes32";
|
|
240
|
-
readonly type: "bytes32";
|
|
241
|
-
}, {
|
|
242
|
-
readonly name: "assetIn";
|
|
243
|
-
readonly internalType: "contract IAsset";
|
|
244
|
-
readonly type: "address";
|
|
245
|
-
}, {
|
|
246
|
-
readonly name: "amountIn";
|
|
247
|
-
readonly internalType: "uint256";
|
|
248
|
-
readonly type: "uint256";
|
|
249
|
-
}, {
|
|
250
|
-
readonly name: "minAmountOut";
|
|
251
|
-
readonly internalType: "uint256";
|
|
252
|
-
readonly type: "uint256";
|
|
253
|
-
}];
|
|
254
|
-
readonly name: "joinPoolSingleAsset";
|
|
255
|
-
readonly outputs: readonly [{
|
|
256
|
-
readonly name: "useSafePrices";
|
|
257
|
-
readonly internalType: "bool";
|
|
258
|
-
readonly type: "bool";
|
|
259
|
-
}];
|
|
260
|
-
readonly stateMutability: "nonpayable";
|
|
261
|
-
}, {
|
|
262
|
-
readonly type: "function";
|
|
263
|
-
readonly inputs: readonly [{
|
|
264
|
-
readonly name: "poolId";
|
|
265
|
-
readonly internalType: "bytes32";
|
|
266
|
-
readonly type: "bytes32";
|
|
267
|
-
}, {
|
|
268
|
-
readonly name: "assetIn";
|
|
269
|
-
readonly internalType: "contract IAsset";
|
|
270
|
-
readonly type: "address";
|
|
271
|
-
}, {
|
|
272
|
-
readonly name: "leftoverAmount";
|
|
273
|
-
readonly internalType: "uint256";
|
|
274
|
-
readonly type: "uint256";
|
|
275
|
-
}, {
|
|
276
|
-
readonly name: "minRateRAY";
|
|
277
|
-
readonly internalType: "uint256";
|
|
278
|
-
readonly type: "uint256";
|
|
279
|
-
}];
|
|
280
|
-
readonly name: "joinPoolSingleAssetDiff";
|
|
281
|
-
readonly outputs: readonly [{
|
|
282
|
-
readonly name: "useSafePrices";
|
|
283
|
-
readonly internalType: "bool";
|
|
284
|
-
readonly type: "bool";
|
|
285
|
-
}];
|
|
286
|
-
readonly stateMutability: "nonpayable";
|
|
287
|
-
}, {
|
|
288
|
-
readonly type: "function";
|
|
289
|
-
readonly inputs: readonly [{
|
|
290
|
-
readonly name: "poolId";
|
|
291
|
-
readonly internalType: "bytes32";
|
|
292
|
-
readonly type: "bytes32";
|
|
293
|
-
}];
|
|
294
|
-
readonly name: "poolStatus";
|
|
295
|
-
readonly outputs: readonly [{
|
|
296
|
-
readonly name: "";
|
|
297
|
-
readonly internalType: "enum PoolStatus";
|
|
298
|
-
readonly type: "uint8";
|
|
299
|
-
}];
|
|
300
|
-
readonly stateMutability: "view";
|
|
301
|
-
}, {
|
|
302
|
-
readonly type: "function";
|
|
303
|
-
readonly inputs: readonly [];
|
|
304
|
-
readonly name: "serialize";
|
|
305
|
-
readonly outputs: readonly [{
|
|
306
|
-
readonly name: "serializedData";
|
|
307
|
-
readonly internalType: "bytes";
|
|
308
|
-
readonly type: "bytes";
|
|
309
|
-
}];
|
|
310
|
-
readonly stateMutability: "view";
|
|
311
|
-
}, {
|
|
312
|
-
readonly type: "function";
|
|
313
|
-
readonly inputs: readonly [{
|
|
314
|
-
readonly name: "poolId";
|
|
315
|
-
readonly internalType: "bytes32";
|
|
316
|
-
readonly type: "bytes32";
|
|
317
|
-
}, {
|
|
318
|
-
readonly name: "newStatus";
|
|
319
|
-
readonly internalType: "enum PoolStatus";
|
|
320
|
-
readonly type: "uint8";
|
|
321
|
-
}];
|
|
322
|
-
readonly name: "setPoolStatus";
|
|
323
|
-
readonly outputs: readonly [];
|
|
324
|
-
readonly stateMutability: "nonpayable";
|
|
325
|
-
}, {
|
|
326
|
-
readonly type: "function";
|
|
327
|
-
readonly inputs: readonly [{
|
|
328
|
-
readonly name: "singleSwap";
|
|
329
|
-
readonly internalType: "struct SingleSwap";
|
|
330
|
-
readonly type: "tuple";
|
|
331
|
-
readonly components: readonly [{
|
|
332
|
-
readonly name: "poolId";
|
|
333
|
-
readonly internalType: "bytes32";
|
|
334
|
-
readonly type: "bytes32";
|
|
335
|
-
}, {
|
|
336
|
-
readonly name: "kind";
|
|
337
|
-
readonly internalType: "enum SwapKind";
|
|
338
|
-
readonly type: "uint8";
|
|
339
|
-
}, {
|
|
340
|
-
readonly name: "assetIn";
|
|
341
|
-
readonly internalType: "contract IAsset";
|
|
342
|
-
readonly type: "address";
|
|
343
|
-
}, {
|
|
344
|
-
readonly name: "assetOut";
|
|
345
|
-
readonly internalType: "contract IAsset";
|
|
346
|
-
readonly type: "address";
|
|
347
|
-
}, {
|
|
348
|
-
readonly name: "amount";
|
|
349
|
-
readonly internalType: "uint256";
|
|
350
|
-
readonly type: "uint256";
|
|
351
|
-
}, {
|
|
352
|
-
readonly name: "userData";
|
|
353
|
-
readonly internalType: "bytes";
|
|
354
|
-
readonly type: "bytes";
|
|
355
|
-
}];
|
|
356
|
-
}, {
|
|
357
|
-
readonly name: "";
|
|
358
|
-
readonly internalType: "struct FundManagement";
|
|
359
|
-
readonly type: "tuple";
|
|
360
|
-
readonly components: readonly [{
|
|
361
|
-
readonly name: "sender";
|
|
362
|
-
readonly internalType: "address";
|
|
363
|
-
readonly type: "address";
|
|
364
|
-
}, {
|
|
365
|
-
readonly name: "fromInternalBalance";
|
|
366
|
-
readonly internalType: "bool";
|
|
367
|
-
readonly type: "bool";
|
|
368
|
-
}, {
|
|
369
|
-
readonly name: "recipient";
|
|
370
|
-
readonly internalType: "address payable";
|
|
371
|
-
readonly type: "address";
|
|
372
|
-
}, {
|
|
373
|
-
readonly name: "toInternalBalance";
|
|
374
|
-
readonly internalType: "bool";
|
|
375
|
-
readonly type: "bool";
|
|
376
|
-
}];
|
|
377
|
-
}, {
|
|
378
|
-
readonly name: "limit";
|
|
379
|
-
readonly internalType: "uint256";
|
|
380
|
-
readonly type: "uint256";
|
|
381
|
-
}, {
|
|
382
|
-
readonly name: "deadline";
|
|
383
|
-
readonly internalType: "uint256";
|
|
384
|
-
readonly type: "uint256";
|
|
385
|
-
}];
|
|
386
|
-
readonly name: "swap";
|
|
387
|
-
readonly outputs: readonly [{
|
|
388
|
-
readonly name: "useSafePrices";
|
|
389
|
-
readonly internalType: "bool";
|
|
390
|
-
readonly type: "bool";
|
|
391
|
-
}];
|
|
392
|
-
readonly stateMutability: "nonpayable";
|
|
393
|
-
}, {
|
|
394
|
-
readonly type: "function";
|
|
395
|
-
readonly inputs: readonly [{
|
|
396
|
-
readonly name: "singleSwapDiff";
|
|
397
|
-
readonly internalType: "struct SingleSwapDiff";
|
|
398
|
-
readonly type: "tuple";
|
|
399
|
-
readonly components: readonly [{
|
|
400
|
-
readonly name: "poolId";
|
|
401
|
-
readonly internalType: "bytes32";
|
|
402
|
-
readonly type: "bytes32";
|
|
403
|
-
}, {
|
|
404
|
-
readonly name: "leftoverAmount";
|
|
405
|
-
readonly internalType: "uint256";
|
|
406
|
-
readonly type: "uint256";
|
|
407
|
-
}, {
|
|
408
|
-
readonly name: "assetIn";
|
|
409
|
-
readonly internalType: "contract IAsset";
|
|
410
|
-
readonly type: "address";
|
|
411
|
-
}, {
|
|
412
|
-
readonly name: "assetOut";
|
|
413
|
-
readonly internalType: "contract IAsset";
|
|
414
|
-
readonly type: "address";
|
|
415
|
-
}, {
|
|
416
|
-
readonly name: "userData";
|
|
417
|
-
readonly internalType: "bytes";
|
|
418
|
-
readonly type: "bytes";
|
|
419
|
-
}];
|
|
420
|
-
}, {
|
|
421
|
-
readonly name: "limitRateRAY";
|
|
422
|
-
readonly internalType: "uint256";
|
|
423
|
-
readonly type: "uint256";
|
|
424
|
-
}, {
|
|
425
|
-
readonly name: "deadline";
|
|
426
|
-
readonly internalType: "uint256";
|
|
427
|
-
readonly type: "uint256";
|
|
428
|
-
}];
|
|
429
|
-
readonly name: "swapDiff";
|
|
430
|
-
readonly outputs: readonly [{
|
|
431
|
-
readonly name: "useSafePrices";
|
|
432
|
-
readonly internalType: "bool";
|
|
433
|
-
readonly type: "bool";
|
|
434
|
-
}];
|
|
435
|
-
readonly stateMutability: "nonpayable";
|
|
436
|
-
}, {
|
|
437
|
-
readonly type: "function";
|
|
438
|
-
readonly inputs: readonly [];
|
|
439
|
-
readonly name: "targetContract";
|
|
440
|
-
readonly outputs: readonly [{
|
|
441
|
-
readonly name: "";
|
|
442
|
-
readonly internalType: "address";
|
|
443
|
-
readonly type: "address";
|
|
444
|
-
}];
|
|
445
|
-
readonly stateMutability: "view";
|
|
446
|
-
}, {
|
|
447
|
-
readonly type: "function";
|
|
448
|
-
readonly inputs: readonly [];
|
|
449
|
-
readonly name: "version";
|
|
450
|
-
readonly outputs: readonly [{
|
|
451
|
-
readonly name: "";
|
|
452
|
-
readonly internalType: "uint256";
|
|
453
|
-
readonly type: "uint256";
|
|
454
|
-
}];
|
|
455
|
-
readonly stateMutability: "view";
|
|
456
|
-
}, {
|
|
457
|
-
readonly type: "event";
|
|
458
|
-
readonly anonymous: false;
|
|
459
|
-
readonly inputs: readonly [{
|
|
460
|
-
readonly name: "poolId";
|
|
461
|
-
readonly internalType: "bytes32";
|
|
462
|
-
readonly type: "bytes32";
|
|
463
|
-
readonly indexed: true;
|
|
464
|
-
}, {
|
|
465
|
-
readonly name: "newStatus";
|
|
466
|
-
readonly internalType: "enum PoolStatus";
|
|
467
|
-
readonly type: "uint8";
|
|
468
|
-
readonly indexed: false;
|
|
469
|
-
}];
|
|
470
|
-
readonly name: "SetPoolStatus";
|
|
471
|
-
}, {
|
|
472
|
-
readonly type: "error";
|
|
473
|
-
readonly inputs: readonly [];
|
|
474
|
-
readonly name: "PoolNotSupportedException";
|
|
475
|
-
}];
|
|
476
|
-
type abi = typeof abi;
|
|
477
|
-
export declare class BalancerV2VaultAdapterContract extends AbstractAdapterContract<abi> {
|
|
478
|
-
readonly supportedPoolIds: string[];
|
|
479
|
-
readonly poolStatuses: BalancerV2PoolStatus[];
|
|
480
|
-
constructor(options: ConstructOptions, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
481
|
-
}
|
|
482
|
-
export {};
|