@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,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreditConfiguratorV300Contract.js";
|
|
2
2
|
export * from "./CreditConfiguratorV310Contract.js";
|
|
3
3
|
export * from "./CreditFacadeV300Contract.js";
|
|
4
|
+
export * from "./CreditFacadeV310BaseContract.js";
|
|
4
5
|
export * from "./CreditFacadeV310Contract.js";
|
|
5
6
|
export * from "./CreditManagerV300Contract.js";
|
|
6
7
|
export * from "./CreditManagerV310Contract.js";
|
|
@@ -3,16 +3,6 @@ import type { ConstructOptions } from "../../base/index.js";
|
|
|
3
3
|
import { BaseContract } from "../../base/index.js";
|
|
4
4
|
import type { MultiCall, RawTx } from "../../types/index.js";
|
|
5
5
|
declare const abi: readonly [{
|
|
6
|
-
readonly type: "function";
|
|
7
|
-
readonly name: "addRegistrar";
|
|
8
|
-
readonly inputs: readonly [{
|
|
9
|
-
readonly name: "registrar";
|
|
10
|
-
readonly type: "address";
|
|
11
|
-
readonly internalType: "address";
|
|
12
|
-
}];
|
|
13
|
-
readonly outputs: readonly [];
|
|
14
|
-
readonly stateMutability: "nonpayable";
|
|
15
|
-
}, {
|
|
16
6
|
readonly type: "function";
|
|
17
7
|
readonly name: "contractType";
|
|
18
8
|
readonly inputs: readonly [];
|
|
@@ -22,16 +12,6 @@ declare const abi: readonly [{
|
|
|
22
12
|
readonly internalType: "bytes32";
|
|
23
13
|
}];
|
|
24
14
|
readonly stateMutability: "view";
|
|
25
|
-
}, {
|
|
26
|
-
readonly type: "function";
|
|
27
|
-
readonly name: "degenNFT";
|
|
28
|
-
readonly inputs: readonly [];
|
|
29
|
-
readonly outputs: readonly [{
|
|
30
|
-
readonly name: "";
|
|
31
|
-
readonly type: "address";
|
|
32
|
-
readonly internalType: "address";
|
|
33
|
-
}];
|
|
34
|
-
readonly stateMutability: "view";
|
|
35
15
|
}, {
|
|
36
16
|
readonly type: "function";
|
|
37
17
|
readonly name: "getCreditAccounts";
|
|
@@ -48,22 +28,8 @@ declare const abi: readonly [{
|
|
|
48
28
|
readonly stateMutability: "view";
|
|
49
29
|
}, {
|
|
50
30
|
readonly type: "function";
|
|
51
|
-
readonly name: "
|
|
31
|
+
readonly name: "getDegenNFT";
|
|
52
32
|
readonly inputs: readonly [];
|
|
53
|
-
readonly outputs: readonly [{
|
|
54
|
-
readonly name: "";
|
|
55
|
-
readonly type: "address[]";
|
|
56
|
-
readonly internalType: "address[]";
|
|
57
|
-
}];
|
|
58
|
-
readonly stateMutability: "view";
|
|
59
|
-
}, {
|
|
60
|
-
readonly type: "function";
|
|
61
|
-
readonly name: "getInvestor";
|
|
62
|
-
readonly inputs: readonly [{
|
|
63
|
-
readonly name: "creditAccount";
|
|
64
|
-
readonly type: "address";
|
|
65
|
-
readonly internalType: "address";
|
|
66
|
-
}];
|
|
67
33
|
readonly outputs: readonly [{
|
|
68
34
|
readonly name: "";
|
|
69
35
|
readonly type: "address";
|
|
@@ -72,26 +38,12 @@ declare const abi: readonly [{
|
|
|
72
38
|
readonly stateMutability: "view";
|
|
73
39
|
}, {
|
|
74
40
|
readonly type: "function";
|
|
75
|
-
readonly name: "
|
|
41
|
+
readonly name: "getInvestor";
|
|
76
42
|
readonly inputs: readonly [{
|
|
77
43
|
readonly name: "creditAccount";
|
|
78
44
|
readonly type: "address";
|
|
79
45
|
readonly internalType: "address";
|
|
80
46
|
}];
|
|
81
|
-
readonly outputs: readonly [{
|
|
82
|
-
readonly name: "";
|
|
83
|
-
readonly type: "address[]";
|
|
84
|
-
readonly internalType: "address[]";
|
|
85
|
-
}];
|
|
86
|
-
readonly stateMutability: "view";
|
|
87
|
-
}, {
|
|
88
|
-
readonly type: "function";
|
|
89
|
-
readonly name: "getRegistrar";
|
|
90
|
-
readonly inputs: readonly [{
|
|
91
|
-
readonly name: "token";
|
|
92
|
-
readonly type: "address";
|
|
93
|
-
readonly internalType: "address";
|
|
94
|
-
}];
|
|
95
47
|
readonly outputs: readonly [{
|
|
96
48
|
readonly name: "";
|
|
97
49
|
readonly type: "address";
|
|
@@ -112,20 +64,6 @@ declare const abi: readonly [{
|
|
|
112
64
|
readonly internalType: "address";
|
|
113
65
|
}];
|
|
114
66
|
readonly stateMutability: "view";
|
|
115
|
-
}, {
|
|
116
|
-
readonly type: "function";
|
|
117
|
-
readonly name: "isActiveCreditAccount";
|
|
118
|
-
readonly inputs: readonly [{
|
|
119
|
-
readonly name: "creditAccount";
|
|
120
|
-
readonly type: "address";
|
|
121
|
-
readonly internalType: "address";
|
|
122
|
-
}];
|
|
123
|
-
readonly outputs: readonly [{
|
|
124
|
-
readonly name: "";
|
|
125
|
-
readonly type: "bool";
|
|
126
|
-
readonly internalType: "bool";
|
|
127
|
-
}];
|
|
128
|
-
readonly stateMutability: "view";
|
|
129
67
|
}, {
|
|
130
68
|
readonly type: "function";
|
|
131
69
|
readonly name: "isCreditAccount";
|
|
@@ -154,20 +92,6 @@ declare const abi: readonly [{
|
|
|
154
92
|
readonly internalType: "bool";
|
|
155
93
|
}];
|
|
156
94
|
readonly stateMutability: "view";
|
|
157
|
-
}, {
|
|
158
|
-
readonly type: "function";
|
|
159
|
-
readonly name: "isInactiveCreditAccount";
|
|
160
|
-
readonly inputs: readonly [{
|
|
161
|
-
readonly name: "creditAccount";
|
|
162
|
-
readonly type: "address";
|
|
163
|
-
readonly internalType: "address";
|
|
164
|
-
}];
|
|
165
|
-
readonly outputs: readonly [{
|
|
166
|
-
readonly name: "";
|
|
167
|
-
readonly type: "bool";
|
|
168
|
-
readonly internalType: "bool";
|
|
169
|
-
}];
|
|
170
|
-
readonly stateMutability: "view";
|
|
171
95
|
}, {
|
|
172
96
|
readonly type: "function";
|
|
173
97
|
readonly name: "multicall";
|
|
@@ -248,6 +172,16 @@ declare const abi: readonly [{
|
|
|
248
172
|
readonly internalType: "address";
|
|
249
173
|
}];
|
|
250
174
|
readonly stateMutability: "view";
|
|
175
|
+
}, {
|
|
176
|
+
readonly type: "function";
|
|
177
|
+
readonly name: "serialize";
|
|
178
|
+
readonly inputs: readonly [];
|
|
179
|
+
readonly outputs: readonly [{
|
|
180
|
+
readonly name: "serializedData";
|
|
181
|
+
readonly type: "bytes";
|
|
182
|
+
readonly internalType: "bytes";
|
|
183
|
+
}];
|
|
184
|
+
readonly stateMutability: "view";
|
|
251
185
|
}, {
|
|
252
186
|
readonly type: "function";
|
|
253
187
|
readonly name: "setFrozenStatus";
|
|
@@ -341,29 +275,6 @@ declare const abi: readonly [{
|
|
|
341
275
|
readonly internalType: "address";
|
|
342
276
|
}];
|
|
343
277
|
readonly anonymous: false;
|
|
344
|
-
}, {
|
|
345
|
-
readonly type: "event";
|
|
346
|
-
readonly name: "SetRegistrar";
|
|
347
|
-
readonly inputs: readonly [{
|
|
348
|
-
readonly name: "token";
|
|
349
|
-
readonly type: "address";
|
|
350
|
-
readonly indexed: true;
|
|
351
|
-
readonly internalType: "address";
|
|
352
|
-
}, {
|
|
353
|
-
readonly name: "registrar";
|
|
354
|
-
readonly type: "address";
|
|
355
|
-
readonly indexed: true;
|
|
356
|
-
readonly internalType: "address";
|
|
357
|
-
}];
|
|
358
|
-
readonly anonymous: false;
|
|
359
|
-
}, {
|
|
360
|
-
readonly type: "error";
|
|
361
|
-
readonly name: "CallerIsNotInstanceOwnerException";
|
|
362
|
-
readonly inputs: readonly [{
|
|
363
|
-
readonly name: "caller";
|
|
364
|
-
readonly type: "address";
|
|
365
|
-
readonly internalType: "address";
|
|
366
|
-
}];
|
|
367
278
|
}, {
|
|
368
279
|
readonly type: "error";
|
|
369
280
|
readonly name: "CallerIsNotInvestorException";
|
|
@@ -400,14 +311,6 @@ declare const abi: readonly [{
|
|
|
400
311
|
readonly type: "address";
|
|
401
312
|
readonly internalType: "address";
|
|
402
313
|
}];
|
|
403
|
-
}, {
|
|
404
|
-
readonly type: "error";
|
|
405
|
-
readonly name: "RegistrarNotSetForTokenException";
|
|
406
|
-
readonly inputs: readonly [{
|
|
407
|
-
readonly name: "token";
|
|
408
|
-
readonly type: "address";
|
|
409
|
-
readonly internalType: "address";
|
|
410
|
-
}];
|
|
411
314
|
}, {
|
|
412
315
|
readonly type: "error";
|
|
413
316
|
readonly name: "UnknownCreditAccountException";
|
|
@@ -416,18 +319,6 @@ declare const abi: readonly [{
|
|
|
416
319
|
readonly type: "address";
|
|
417
320
|
readonly internalType: "address";
|
|
418
321
|
}];
|
|
419
|
-
}, {
|
|
420
|
-
readonly type: "error";
|
|
421
|
-
readonly name: "WalletCallExecutionFailedException";
|
|
422
|
-
readonly inputs: readonly [{
|
|
423
|
-
readonly name: "index";
|
|
424
|
-
readonly type: "uint256";
|
|
425
|
-
readonly internalType: "uint256";
|
|
426
|
-
}, {
|
|
427
|
-
readonly name: "reason";
|
|
428
|
-
readonly type: "bytes";
|
|
429
|
-
readonly internalType: "bytes";
|
|
430
|
-
}];
|
|
431
322
|
}, {
|
|
432
323
|
readonly type: "error";
|
|
433
324
|
readonly name: "ZeroAddressException";
|
|
@@ -435,6 +326,7 @@ declare const abi: readonly [{
|
|
|
435
326
|
}];
|
|
436
327
|
type abi = typeof abi;
|
|
437
328
|
export declare class SecuritizeKYCFactory extends BaseContract<abi> {
|
|
329
|
+
#private;
|
|
438
330
|
private investorCache;
|
|
439
331
|
constructor(options: ConstructOptions, address: Address);
|
|
440
332
|
precomputeWalletAddress(creditManager: Address, investor: Address): Promise<Address>;
|
|
@@ -448,5 +340,6 @@ export declare class SecuritizeKYCFactory extends BaseContract<abi> {
|
|
|
448
340
|
getDSTokens(): Promise<Address[]>;
|
|
449
341
|
multicall(creditAccount: Address, calls: MultiCall[], tokensToRegister: Address[]): RawTx;
|
|
450
342
|
openCreditAccount(creditManager: Address, calls: MultiCall[], tokensToRegister: Address[]): RawTx;
|
|
343
|
+
getDegenNFT(): Promise<Address>;
|
|
451
344
|
}
|
|
452
345
|
export {};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import { type Abi, type DecodeFunctionDataReturnType } from "viem";
|
|
1
|
+
import { type Abi, type DecodeFunctionDataReturnType, type Hex } from "viem";
|
|
2
|
+
/**
|
|
3
|
+
* Given an ABI and calldata (or 4-byte selector), returns the function
|
|
4
|
+
* signature (e.g. `"balanceOf(address)"`) by matching against selectors
|
|
5
|
+
* computed from the ABI's function items.
|
|
6
|
+
*
|
|
7
|
+
* @throws if no matching function is found in the ABI
|
|
8
|
+
*/
|
|
9
|
+
export declare function getFunctionSignature(abi: Abi | readonly unknown[], calldataOrSelector: Hex): string;
|
|
2
10
|
/**
|
|
3
11
|
* Converts decoded function args (as decoded by viem, i.e. as array) to named map of args
|
|
4
12
|
* Can return undefined if function is not found in ABI
|
|
@@ -8,3 +16,8 @@ import { type Abi, type DecodeFunctionDataReturnType } from "viem";
|
|
|
8
16
|
* @returns
|
|
9
17
|
*/
|
|
10
18
|
export declare function functionArgsToMap<T extends Abi | readonly unknown[]>(abi: T, functionName: string, args: DecodeFunctionDataReturnType<T>["args"]): Record<string, string>;
|
|
19
|
+
/**
|
|
20
|
+
* Converts decoded function args to a named record preserving original types.
|
|
21
|
+
* Unlike {@link functionArgsToMap}, values are not stringified.
|
|
22
|
+
*/
|
|
23
|
+
export declare function functionArgsToRecord<T extends Abi | readonly unknown[]>(abi: T, functionName: string, args: DecodeFunctionDataReturnType<T>["args"]): Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "13.0.0-next.
|
|
3
|
+
"version": "13.0.0-next.30",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/cjs/sdk/index.js",
|
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
"import": "./dist/esm/dev/index.js",
|
|
21
21
|
"default": "./dist/cjs/dev/index.js"
|
|
22
22
|
},
|
|
23
|
+
"./history": {
|
|
24
|
+
"types": "./dist/types/history/index.d.ts",
|
|
25
|
+
"import": "./dist/esm/history/index.js",
|
|
26
|
+
"default": "./dist/cjs/history/index.js"
|
|
27
|
+
},
|
|
23
28
|
"./plugins/*": {
|
|
24
29
|
"types": "./dist/types/plugins/*/index.d.ts",
|
|
25
30
|
"import": "./dist/esm/plugins/*/index.js",
|
|
@@ -51,14 +56,14 @@
|
|
|
51
56
|
"typecheck:ci": "tsc --noEmit"
|
|
52
57
|
},
|
|
53
58
|
"dependencies": {
|
|
54
|
-
"@gearbox-protocol/integrations-v3": "1.
|
|
59
|
+
"@gearbox-protocol/integrations-v3": "1.54.2",
|
|
55
60
|
"@redstone-finance/evm-connector": "^0.9.0",
|
|
56
61
|
"@redstone-finance/protocol": "^0.9.0",
|
|
57
62
|
"@redstone-finance/sdk": "^0.9.0",
|
|
58
63
|
"@redstone-finance/utils": "^0.9.0",
|
|
59
64
|
"@types/bn.js": "^5.2.0",
|
|
60
65
|
"abitype": "^1.2.3",
|
|
61
|
-
"bn.js": "^5.2.
|
|
66
|
+
"bn.js": "^5.2.3",
|
|
62
67
|
"buffer": "^6.0.3",
|
|
63
68
|
"date-fns": "^4.1.0",
|
|
64
69
|
"decimal.js-light": "^2.5.1",
|
|
@@ -66,22 +71,22 @@
|
|
|
66
71
|
"zod": "^4.3.6"
|
|
67
72
|
},
|
|
68
73
|
"devDependencies": {
|
|
69
|
-
"@biomejs/biome": "^2.4.
|
|
70
|
-
"@commitlint/cli": "^20.4.
|
|
71
|
-
"@commitlint/config-conventional": "^20.4.
|
|
72
|
-
"@gearbox-protocol/biome-config": "^1.0.
|
|
74
|
+
"@biomejs/biome": "^2.4.6",
|
|
75
|
+
"@commitlint/cli": "^20.4.4",
|
|
76
|
+
"@commitlint/config-conventional": "^20.4.4",
|
|
77
|
+
"@gearbox-protocol/biome-config": "^1.0.22",
|
|
73
78
|
"@types/cross-spawn": "^6.0.6",
|
|
74
|
-
"axios": "^1.13.
|
|
79
|
+
"axios": "^1.13.6",
|
|
75
80
|
"cross-spawn": "^7.0.6",
|
|
76
81
|
"husky": "^9.1.7",
|
|
77
|
-
"lint-staged": "^16.
|
|
78
|
-
"pino": "^10.3.
|
|
82
|
+
"lint-staged": "^16.3.3",
|
|
83
|
+
"pino": "^10.3.1",
|
|
79
84
|
"pino-pretty": "^13.1.3",
|
|
80
85
|
"tsup": "^8.5.1",
|
|
81
86
|
"tsx": "^4.21.0",
|
|
82
87
|
"typescript": "^5.9.3",
|
|
83
88
|
"viem-deal": "^2.0.4",
|
|
84
|
-
"vitest": "^4.0
|
|
89
|
+
"vitest": "^4.1.0"
|
|
85
90
|
},
|
|
86
91
|
"peerDependencies": {
|
|
87
92
|
"axios": "^1.0.0",
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var BalancerV2VaultAdapterContract_exports = {};
|
|
20
|
-
__export(BalancerV2VaultAdapterContract_exports, {
|
|
21
|
-
BalancerV2VaultAdapterContract: () => BalancerV2VaultAdapterContract
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(BalancerV2VaultAdapterContract_exports);
|
|
24
|
-
var import_integrations_v3 = require("@gearbox-protocol/integrations-v3");
|
|
25
|
-
var import_viem = require("viem");
|
|
26
|
-
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
27
|
-
const abi = import_integrations_v3.iBalancerV2VaultAdapterAbi;
|
|
28
|
-
class BalancerV2VaultAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
29
|
-
supportedPoolIds;
|
|
30
|
-
poolStatuses;
|
|
31
|
-
constructor(options, args) {
|
|
32
|
-
super(options, { ...args, abi });
|
|
33
|
-
const decoded = (0, import_viem.decodeAbiParameters)(
|
|
34
|
-
[
|
|
35
|
-
{ type: "address", name: "creditManager" },
|
|
36
|
-
{ type: "address", name: "targetContract" },
|
|
37
|
-
{ type: "bytes32[]", name: "supportedPoolIds" },
|
|
38
|
-
{ type: "uint8[]", name: "poolStatuses" }
|
|
39
|
-
],
|
|
40
|
-
args.baseParams.serializedParams
|
|
41
|
-
);
|
|
42
|
-
this.supportedPoolIds = [...decoded[2]];
|
|
43
|
-
this.poolStatuses = decoded[3].map(
|
|
44
|
-
(status) => status
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
-
0 && (module.exports = {
|
|
50
|
-
BalancerV2VaultAdapterContract
|
|
51
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var EqualizerRouterAdapterContract_exports = {};
|
|
20
|
-
__export(EqualizerRouterAdapterContract_exports, {
|
|
21
|
-
EqualizerRouterAdapterContract: () => EqualizerRouterAdapterContract
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(EqualizerRouterAdapterContract_exports);
|
|
24
|
-
var import_integrations_v3 = require("@gearbox-protocol/integrations-v3");
|
|
25
|
-
var import_viem = require("viem");
|
|
26
|
-
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
27
|
-
const abi = import_integrations_v3.iEqualizerRouterAdapterAbi;
|
|
28
|
-
class EqualizerRouterAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
29
|
-
supportedPools;
|
|
30
|
-
constructor(options, args) {
|
|
31
|
-
super(options, { ...args, abi });
|
|
32
|
-
const decoded = (0, import_viem.decodeAbiParameters)(
|
|
33
|
-
[
|
|
34
|
-
{ type: "address", name: "creditManager" },
|
|
35
|
-
{ type: "address", name: "targetContract" },
|
|
36
|
-
{
|
|
37
|
-
type: "tuple[]",
|
|
38
|
-
name: "supportedPools",
|
|
39
|
-
components: [
|
|
40
|
-
{ type: "address", name: "token0" },
|
|
41
|
-
{ type: "address", name: "token1" },
|
|
42
|
-
{ type: "bool", name: "stable" }
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
args.baseParams.serializedParams
|
|
47
|
-
);
|
|
48
|
-
this.supportedPools = decoded[2].map((pool) => ({
|
|
49
|
-
token0: pool.token0,
|
|
50
|
-
token1: pool.token1,
|
|
51
|
-
stable: pool.stable
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
-
0 && (module.exports = {
|
|
57
|
-
EqualizerRouterAdapterContract
|
|
58
|
-
});
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var InfraredVaultAdapterContract_exports = {};
|
|
20
|
-
__export(InfraredVaultAdapterContract_exports, {
|
|
21
|
-
InfraredVaultAdapterContract: () => InfraredVaultAdapterContract
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(InfraredVaultAdapterContract_exports);
|
|
24
|
-
var import_integrations_v3 = require("@gearbox-protocol/integrations-v3");
|
|
25
|
-
var import_viem = require("viem");
|
|
26
|
-
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
27
|
-
const abi = import_integrations_v3.iInfraredVaultAdapterAbi;
|
|
28
|
-
class InfraredVaultAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
29
|
-
stakingToken;
|
|
30
|
-
stakedPhantomToken;
|
|
31
|
-
constructor(options, args) {
|
|
32
|
-
super(options, { ...args, abi });
|
|
33
|
-
const decoded = (0, import_viem.decodeAbiParameters)(
|
|
34
|
-
[
|
|
35
|
-
{ type: "address", name: "creditManager" },
|
|
36
|
-
{ type: "address", name: "targetContract" },
|
|
37
|
-
{ type: "address", name: "stakingToken" },
|
|
38
|
-
{ type: "address", name: "stakedPhantomToken" }
|
|
39
|
-
],
|
|
40
|
-
args.baseParams.serializedParams
|
|
41
|
-
);
|
|
42
|
-
this.stakingToken = decoded[2];
|
|
43
|
-
this.stakedPhantomToken = decoded[3];
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
-
0 && (module.exports = {
|
|
48
|
-
InfraredVaultAdapterContract
|
|
49
|
-
});
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var KodiakIslandGatewayAdapterContract_exports = {};
|
|
20
|
-
__export(KodiakIslandGatewayAdapterContract_exports, {
|
|
21
|
-
KodiakIslandGatewayAdapterContract: () => KodiakIslandGatewayAdapterContract
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(KodiakIslandGatewayAdapterContract_exports);
|
|
24
|
-
var import_integrations_v3 = require("@gearbox-protocol/integrations-v3");
|
|
25
|
-
var import_viem = require("viem");
|
|
26
|
-
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
27
|
-
const abi = import_integrations_v3.iKodiakIslandGatewayAdapterAbi;
|
|
28
|
-
class KodiakIslandGatewayAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
29
|
-
allowedIslands;
|
|
30
|
-
constructor(options, args) {
|
|
31
|
-
super(options, { ...args, abi });
|
|
32
|
-
const decoded = (0, import_viem.decodeAbiParameters)(
|
|
33
|
-
[
|
|
34
|
-
{ type: "address", name: "creditManager" },
|
|
35
|
-
{ type: "address", name: "targetContract" },
|
|
36
|
-
{
|
|
37
|
-
type: "tuple[]",
|
|
38
|
-
name: "allowedIslands",
|
|
39
|
-
components: [
|
|
40
|
-
{ type: "address", name: "island" },
|
|
41
|
-
{ type: "uint8", name: "status" }
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
args.baseParams.serializedParams
|
|
46
|
-
);
|
|
47
|
-
this.allowedIslands = decoded[2].map(({ island, status }) => ({
|
|
48
|
-
island,
|
|
49
|
-
status
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
-
0 && (module.exports = {
|
|
55
|
-
KodiakIslandGatewayAdapterContract
|
|
56
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var MellowDepositQueueAdapterContract_exports = {};
|
|
20
|
-
__export(MellowDepositQueueAdapterContract_exports, {
|
|
21
|
-
MellowDepositQueueAdapterContract: () => MellowDepositQueueAdapterContract
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(MellowDepositQueueAdapterContract_exports);
|
|
24
|
-
var import_viem = require("viem");
|
|
25
|
-
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
26
|
-
const abi = [];
|
|
27
|
-
class MellowDepositQueueAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
28
|
-
asset;
|
|
29
|
-
phantomToken;
|
|
30
|
-
referral;
|
|
31
|
-
constructor(options, args) {
|
|
32
|
-
super(options, { ...args, abi });
|
|
33
|
-
const decoded = (0, import_viem.decodeAbiParameters)(
|
|
34
|
-
[
|
|
35
|
-
{ type: "address", name: "creditManager" },
|
|
36
|
-
{ type: "address", name: "targetContract" },
|
|
37
|
-
{ type: "address", name: "asset" },
|
|
38
|
-
{ type: "address", name: "phantomToken" },
|
|
39
|
-
{ type: "address", name: "referral" }
|
|
40
|
-
],
|
|
41
|
-
args.baseParams.serializedParams
|
|
42
|
-
);
|
|
43
|
-
this.asset = decoded[2];
|
|
44
|
-
this.phantomToken = decoded[3];
|
|
45
|
-
this.referral = decoded[4];
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
-
0 && (module.exports = {
|
|
50
|
-
MellowDepositQueueAdapterContract
|
|
51
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var MellowVaultAdapterContract_exports = {};
|
|
20
|
-
__export(MellowVaultAdapterContract_exports, {
|
|
21
|
-
MellowVaultAdapterContract: () => MellowVaultAdapterContract
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(MellowVaultAdapterContract_exports);
|
|
24
|
-
var import_integrations_v3 = require("@gearbox-protocol/integrations-v3");
|
|
25
|
-
var import_viem = require("viem");
|
|
26
|
-
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
27
|
-
const abi = import_integrations_v3.iMellowVaultAdapterAbi;
|
|
28
|
-
class MellowVaultAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
29
|
-
allowedUnderlyings;
|
|
30
|
-
constructor(options, args) {
|
|
31
|
-
super(options, { ...args, abi });
|
|
32
|
-
const decoded = (0, import_viem.decodeAbiParameters)(
|
|
33
|
-
[
|
|
34
|
-
{ type: "address", name: "creditManager" },
|
|
35
|
-
{ type: "address", name: "targetContract" },
|
|
36
|
-
{ type: "address[]", name: "allowedUnderlyings" }
|
|
37
|
-
],
|
|
38
|
-
args.baseParams.serializedParams
|
|
39
|
-
);
|
|
40
|
-
this.allowedUnderlyings = [...decoded[2]];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
-
0 && (module.exports = {
|
|
45
|
-
MellowVaultAdapterContract
|
|
46
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { iBalancerV2VaultAdapterAbi } from "@gearbox-protocol/integrations-v3";
|
|
2
|
-
import { decodeAbiParameters } from "viem";
|
|
3
|
-
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
-
const abi = iBalancerV2VaultAdapterAbi;
|
|
5
|
-
class BalancerV2VaultAdapterContract extends AbstractAdapterContract {
|
|
6
|
-
supportedPoolIds;
|
|
7
|
-
poolStatuses;
|
|
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: "bytes32[]", name: "supportedPoolIds" },
|
|
15
|
-
{ type: "uint8[]", name: "poolStatuses" }
|
|
16
|
-
],
|
|
17
|
-
args.baseParams.serializedParams
|
|
18
|
-
);
|
|
19
|
-
this.supportedPoolIds = [...decoded[2]];
|
|
20
|
-
this.poolStatuses = decoded[3].map(
|
|
21
|
-
(status) => status
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
BalancerV2VaultAdapterContract
|
|
27
|
-
};
|