@gearbox-protocol/sdk 12.9.7 → 13.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/abi/310/iLinearInterestRateModelV310.js +92 -0
- package/dist/cjs/abi/errors.js +0 -145
- package/dist/cjs/dev/AccountOpener.js +3 -3
- package/dist/cjs/dev/ltUtils.js +4 -91
- package/dist/cjs/dev/migrateFaucet.js +25 -53
- package/dist/cjs/permissionless/bindings/instance-manager.js +1 -1
- package/dist/cjs/plugins/adapters/contracts/AbstractAdapter.js +23 -2
- package/dist/cjs/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +29 -4
- package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +6 -0
- package/dist/cjs/plugins/adapters/contracts/CamelotV3AdapterContract.js +9 -0
- package/dist/cjs/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +9 -0
- package/dist/cjs/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +11 -0
- package/dist/cjs/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +11 -0
- package/dist/cjs/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +11 -0
- package/dist/cjs/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +11 -0
- package/dist/cjs/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +12 -0
- package/dist/cjs/plugins/adapters/contracts/DaiUsdsAdapterContract.js +7 -0
- package/dist/cjs/plugins/adapters/contracts/ERC4626AdapterContract.js +7 -0
- package/dist/cjs/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +7 -0
- package/dist/cjs/plugins/adapters/contracts/FluidDexAdapterContract.js +7 -0
- package/dist/cjs/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +11 -0
- package/dist/cjs/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +8 -0
- package/dist/cjs/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +6 -0
- package/dist/cjs/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +9 -0
- package/dist/cjs/plugins/adapters/contracts/LidoV1AdapterContract.js +8 -0
- package/dist/cjs/plugins/adapters/contracts/MellowClaimerAdapterContract.js +8 -0
- package/dist/cjs/plugins/adapters/contracts/MellowDVVAdapterContract.js +7 -0
- package/dist/cjs/plugins/adapters/contracts/{deprecated/MellowDepositQueueAdapterContract.js → MellowDepositQueueAdapterContract.js} +10 -2
- package/dist/cjs/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +9 -1
- package/dist/cjs/plugins/adapters/contracts/{deprecated/MellowRedeemQueueAdapterContract.js → MellowRedeemQueueAdapterContract.js} +9 -2
- package/dist/cjs/plugins/adapters/contracts/MellowWrapperAdapterContract.js +6 -0
- package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +8 -0
- package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +11 -0
- package/dist/cjs/plugins/adapters/contracts/PendleRouterAdapterContract.js +29 -2
- package/dist/cjs/plugins/adapters/contracts/StakingRewardsAdapterContract.js +10 -1
- package/dist/cjs/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +20 -0
- package/dist/cjs/plugins/adapters/contracts/UniswapV2AdapterContract.js +9 -0
- package/dist/cjs/plugins/adapters/contracts/UniswapV3AdapterContract.js +10 -0
- package/dist/cjs/plugins/adapters/contracts/UniswapV4AdapterContract.js +12 -0
- package/dist/cjs/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +8 -0
- package/dist/cjs/plugins/adapters/contracts/VelodromeV2AdapterContract.js +11 -0
- package/dist/cjs/plugins/adapters/contracts/WstETHV1AdapterContract.js +6 -0
- package/dist/cjs/plugins/adapters/contracts/index.js +10 -4
- package/dist/cjs/plugins/adapters/createAdapter.js +3 -18
- package/dist/cjs/plugins/bots/PartialLiquidationBotV310Contract.js +4 -4
- package/dist/cjs/plugins/bots/abi/index.js +0 -2
- package/dist/cjs/plugins/pools-history/Pools7DAgoPlugin.js +1 -1
- package/dist/cjs/sdk/GearboxSDK.js +6 -12
- package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +19 -86
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +9 -9
- package/dist/cjs/sdk/accounts/createCreditAccountService.js +0 -4
- package/dist/cjs/sdk/accounts/index.js +0 -2
- package/dist/cjs/sdk/base/BaseContract.js +2 -2
- package/dist/cjs/sdk/base/ChainContractsRegister.js +0 -2
- package/dist/cjs/sdk/base/Construct.js +2 -2
- package/dist/cjs/sdk/chain/chains.js +9 -27
- package/dist/cjs/sdk/constants/addresses.js +2 -88
- package/dist/cjs/sdk/constants/networks.js +0 -32
- package/dist/cjs/sdk/constants/versions.js +0 -5
- package/dist/cjs/sdk/core/{address-provider/AbstractAddressProviderContract.js → AbstractAddressProviderContract.js} +3 -3
- package/dist/cjs/sdk/core/{address-provider/AddressProviderV310Contract.js → AddressProviderV310Contract.js} +1 -1
- package/dist/cjs/sdk/core/{address-provider/createAddressProvider.js → createAddressProvider.js} +4 -7
- package/dist/cjs/sdk/core/index.js +6 -6
- package/dist/cjs/sdk/index.js +0 -10
- package/dist/cjs/sdk/market/MarketRegister.js +0 -1
- package/dist/cjs/sdk/market/MarketSuite.js +1 -1
- package/dist/cjs/sdk/market/adapters/PlaceholderAdapterContracts.js +0 -1
- package/dist/cjs/sdk/market/credit/CreditManagerV310Contract.js +1 -4
- package/dist/cjs/sdk/market/credit/createCreditConfigurator.js +1 -4
- package/dist/cjs/sdk/market/credit/createCreditFacade.js +1 -4
- package/dist/cjs/sdk/market/credit/createCreditManager.js +1 -4
- package/dist/cjs/sdk/market/credit/index.js +0 -6
- package/dist/cjs/sdk/market/oracle/PriceOracleBaseContract.js +9 -57
- package/dist/cjs/sdk/market/oracle/createPriceOracle.js +7 -38
- package/dist/cjs/sdk/market/oracle/index.js +0 -2
- package/dist/cjs/sdk/market/pool/GaugeContract.js +3 -3
- package/dist/cjs/sdk/market/pool/LinearInterestRateModelContract.js +2 -2
- package/dist/cjs/sdk/market/pool/PoolV310Contract.js +1 -1
- package/dist/cjs/sdk/market/pool/createPool.js +0 -4
- package/dist/cjs/sdk/market/pool/createPoolQuotaKeeper.js +0 -4
- package/dist/cjs/sdk/market/pool/index.js +0 -4
- package/dist/cjs/sdk/market/pricefeeds/AbstractLPPriceFeed.js +14 -53
- package/dist/cjs/sdk/market/pricefeeds/RedstonePriceFeed.js +19 -46
- package/dist/cjs/sdk/plugins/index.js +1 -3
- package/dist/cjs/sdk/pools/AbstractPoolService.js +3 -3
- package/dist/cjs/sdk/pools/createPoolService.js +0 -4
- package/dist/cjs/sdk/router/AbstractRouterContract.js +0 -4
- package/dist/cjs/sdk/router/RouterV310Contract.js +3 -32
- package/dist/cjs/sdk/router/createRouter.js +0 -4
- package/dist/cjs/sdk/router/helpers.js +0 -5
- package/dist/cjs/sdk/router/index.js +0 -2
- package/dist/esm/abi/310/iLinearInterestRateModelV310.js +68 -0
- package/dist/esm/abi/errors.js +0 -143
- package/dist/esm/dev/AccountOpener.js +3 -3
- package/dist/esm/dev/ltUtils.js +7 -100
- package/dist/esm/dev/migrateFaucet.js +24 -51
- package/dist/esm/permissionless/bindings/instance-manager.js +1 -1
- package/dist/esm/plugins/adapters/contracts/AbstractAdapter.js +24 -2
- package/dist/esm/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +28 -4
- package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +6 -0
- package/dist/esm/plugins/adapters/contracts/CamelotV3AdapterContract.js +9 -0
- package/dist/esm/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +9 -0
- package/dist/esm/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +11 -0
- package/dist/esm/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +11 -0
- package/dist/esm/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +11 -0
- package/dist/esm/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +11 -0
- package/dist/esm/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +12 -0
- package/dist/esm/plugins/adapters/contracts/DaiUsdsAdapterContract.js +7 -0
- package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +7 -0
- package/dist/esm/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +7 -0
- package/dist/esm/plugins/adapters/contracts/FluidDexAdapterContract.js +7 -0
- package/dist/esm/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +11 -0
- package/dist/esm/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +8 -0
- package/dist/esm/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +6 -0
- package/dist/esm/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +9 -0
- package/dist/esm/plugins/adapters/contracts/LidoV1AdapterContract.js +8 -0
- package/dist/esm/plugins/adapters/contracts/MellowClaimerAdapterContract.js +8 -0
- package/dist/esm/plugins/adapters/contracts/MellowDVVAdapterContract.js +7 -0
- package/dist/esm/plugins/adapters/contracts/{deprecated/MellowDepositQueueAdapterContract.js → MellowDepositQueueAdapterContract.js} +10 -2
- package/dist/esm/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +9 -1
- package/dist/esm/plugins/adapters/contracts/{deprecated/MellowRedeemQueueAdapterContract.js → MellowRedeemQueueAdapterContract.js} +9 -2
- package/dist/esm/plugins/adapters/contracts/MellowWrapperAdapterContract.js +6 -0
- package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +8 -0
- package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +11 -0
- package/dist/esm/plugins/adapters/contracts/PendleRouterAdapterContract.js +26 -1
- package/dist/esm/plugins/adapters/contracts/StakingRewardsAdapterContract.js +10 -1
- package/dist/esm/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +19 -0
- package/dist/esm/plugins/adapters/contracts/UniswapV2AdapterContract.js +9 -0
- package/dist/esm/plugins/adapters/contracts/UniswapV3AdapterContract.js +10 -0
- package/dist/esm/plugins/adapters/contracts/UniswapV4AdapterContract.js +12 -0
- package/dist/esm/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +8 -0
- package/dist/esm/plugins/adapters/contracts/VelodromeV2AdapterContract.js +11 -0
- package/dist/esm/plugins/adapters/contracts/WstETHV1AdapterContract.js +6 -0
- package/dist/esm/plugins/adapters/contracts/index.js +5 -2
- package/dist/esm/plugins/adapters/createAdapter.js +4 -22
- package/dist/esm/plugins/bots/PartialLiquidationBotV310Contract.js +5 -8
- package/dist/esm/plugins/bots/abi/index.js +0 -1
- package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +1 -2
- package/dist/esm/sdk/GearboxSDK.js +7 -21
- package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +23 -91
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +9 -9
- package/dist/esm/sdk/accounts/createCreditAccountService.js +1 -5
- package/dist/esm/sdk/accounts/index.js +0 -1
- package/dist/esm/sdk/base/BaseContract.js +2 -2
- package/dist/esm/sdk/base/ChainContractsRegister.js +0 -2
- package/dist/esm/sdk/base/Construct.js +2 -2
- package/dist/esm/sdk/chain/chains.js +10 -27
- package/dist/esm/sdk/constants/addresses.js +1 -83
- package/dist/esm/sdk/constants/networks.js +0 -31
- package/dist/esm/sdk/constants/versions.js +0 -4
- package/dist/esm/sdk/core/{address-provider/AbstractAddressProviderContract.js → AbstractAddressProviderContract.js} +3 -3
- package/dist/esm/sdk/core/{address-provider/AddressProviderV310Contract.js → AddressProviderV310Contract.js} +1 -1
- package/dist/esm/sdk/core/{address-provider/createAddressProvider.js → createAddressProvider.js} +4 -8
- package/dist/esm/sdk/core/index.js +3 -3
- package/dist/esm/sdk/index.js +0 -5
- package/dist/esm/sdk/market/MarketRegister.js +0 -1
- package/dist/esm/sdk/market/MarketSuite.js +2 -2
- package/dist/esm/sdk/market/adapters/PlaceholderAdapterContracts.js +0 -1
- package/dist/esm/sdk/market/credit/CreditManagerV310Contract.js +1 -4
- package/dist/esm/sdk/market/credit/createCreditConfigurator.js +2 -5
- package/dist/esm/sdk/market/credit/createCreditFacade.js +2 -5
- package/dist/esm/sdk/market/credit/createCreditManager.js +2 -5
- package/dist/esm/sdk/market/credit/index.js +0 -3
- package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +10 -59
- package/dist/esm/sdk/market/oracle/createPriceOracle.js +7 -38
- package/dist/esm/sdk/market/oracle/index.js +0 -1
- package/dist/esm/sdk/market/pool/GaugeContract.js +3 -3
- package/dist/esm/sdk/market/pool/LinearInterestRateModelContract.js +2 -2
- package/dist/esm/sdk/market/pool/PoolV310Contract.js +1 -1
- package/dist/esm/sdk/market/pool/createPool.js +1 -5
- package/dist/esm/sdk/market/pool/createPoolQuotaKeeper.js +1 -5
- package/dist/esm/sdk/market/pool/index.js +0 -2
- package/dist/esm/sdk/market/pricefeeds/AbstractLPPriceFeed.js +14 -53
- package/dist/esm/sdk/market/pricefeeds/RedstonePriceFeed.js +20 -47
- package/dist/esm/sdk/plugins/index.js +0 -1
- package/dist/esm/sdk/pools/AbstractPoolService.js +3 -3
- package/dist/esm/sdk/pools/createPoolService.js +1 -5
- package/dist/esm/sdk/router/AbstractRouterContract.js +0 -4
- package/dist/esm/sdk/router/RouterV310Contract.js +3 -32
- package/dist/esm/sdk/router/createRouter.js +1 -5
- package/dist/esm/sdk/router/helpers.js +0 -4
- package/dist/esm/sdk/router/index.js +0 -1
- package/dist/types/abi/310/iLinearInterestRateModelV310.d.ts +111 -0
- package/dist/types/abi/errors.d.ts +186 -996
- package/dist/types/dev/migrateFaucet.d.ts +4 -5
- package/dist/types/plugins/adapters/contracts/AbstractAdapter.d.ts +3 -3
- package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +23 -5
- package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +8 -0
- package/dist/types/plugins/adapters/contracts/CamelotV3AdapterContract.d.ts +16 -4
- package/dist/types/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +11 -0
- package/dist/types/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +20 -6
- package/dist/types/plugins/adapters/contracts/Curve2AssetsAdapterContract.d.ts +13 -0
- package/dist/types/plugins/adapters/contracts/Curve3AssetsAdapterContract.d.ts +13 -0
- package/dist/types/plugins/adapters/contracts/Curve4AssetsAdapterContract.d.ts +13 -0
- package/dist/types/plugins/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +14 -0
- package/dist/types/plugins/adapters/contracts/DaiUsdsAdapterContract.d.ts +9 -0
- package/dist/types/plugins/adapters/contracts/ERC4626AdapterContract.d.ts +9 -0
- package/dist/types/plugins/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +9 -0
- package/dist/types/plugins/adapters/contracts/FluidDexAdapterContract.d.ts +9 -0
- package/dist/types/plugins/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +11 -0
- package/dist/types/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +8 -0
- package/dist/types/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +8 -0
- package/dist/types/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +11 -0
- package/dist/types/plugins/adapters/contracts/LidoV1AdapterContract.d.ts +10 -0
- package/dist/types/plugins/adapters/contracts/MellowClaimerAdapterContract.d.ts +8 -0
- package/dist/types/plugins/adapters/contracts/MellowDVVAdapterContract.d.ts +9 -0
- package/dist/types/plugins/adapters/contracts/{deprecated/MellowDepositQueueAdapterContract.d.ts → MellowDepositQueueAdapterContract.d.ts} +14 -4
- package/dist/types/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +10 -0
- package/dist/types/plugins/adapters/contracts/{deprecated/MellowRedeemQueueAdapterContract.d.ts → MellowRedeemQueueAdapterContract.d.ts} +13 -4
- package/dist/types/plugins/adapters/contracts/MellowWrapperAdapterContract.d.ts +8 -0
- package/dist/types/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +10 -0
- package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +13 -0
- package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +31 -13
- package/dist/types/plugins/adapters/contracts/StakingRewardsAdapterContract.d.ts +11 -0
- package/dist/types/plugins/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +26 -7
- package/dist/types/plugins/adapters/contracts/UniswapV2AdapterContract.d.ts +11 -0
- package/dist/types/plugins/adapters/contracts/UniswapV3AdapterContract.d.ts +12 -0
- package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +14 -0
- package/dist/types/plugins/adapters/contracts/UpshiftVaultAdapterContract.d.ts +10 -0
- package/dist/types/plugins/adapters/contracts/VelodromeV2AdapterContract.d.ts +13 -0
- package/dist/types/plugins/adapters/contracts/WstETHV1AdapterContract.d.ts +8 -0
- package/dist/types/plugins/adapters/contracts/index.d.ts +5 -2
- package/dist/types/plugins/adapters/createAdapter.d.ts +0 -2
- package/dist/types/plugins/adapters/types.d.ts +5 -1
- package/dist/types/plugins/bots/abi/index.d.ts +0 -1
- package/dist/types/sdk/GearboxSDK.d.ts +0 -3
- package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +3 -13
- package/dist/types/sdk/accounts/createCreditAccountService.d.ts +1 -1
- package/dist/types/sdk/accounts/index.d.ts +0 -1
- package/dist/types/sdk/accounts/types.d.ts +2 -22
- package/dist/types/sdk/base/BaseContract.d.ts +2 -2
- package/dist/types/sdk/base/Construct.d.ts +1 -1
- package/dist/types/sdk/base/types.d.ts +5 -0
- package/dist/types/sdk/constants/addresses.d.ts +0 -19
- package/dist/types/sdk/constants/networks.d.ts +0 -5
- package/dist/types/sdk/constants/versions.d.ts +0 -1
- package/dist/types/sdk/core/{address-provider/AbstractAddressProviderContract.d.ts → AbstractAddressProviderContract.d.ts} +4 -4
- package/dist/types/sdk/core/{address-provider/AddressProviderV310Contract.d.ts → AddressProviderV310Contract.d.ts} +1 -1
- package/dist/types/sdk/core/{address-provider/createAddressProvider.d.ts → createAddressProvider.d.ts} +1 -1
- package/dist/types/sdk/core/index.d.ts +3 -3
- package/dist/types/sdk/core/{address-provider/types.d.ts → types.d.ts} +3 -3
- package/dist/types/sdk/index.d.ts +0 -5
- package/dist/types/sdk/market/MarketRegister.d.ts +0 -1
- package/dist/types/sdk/market/adapters/PlaceholderAdapterContracts.d.ts +0 -1
- package/dist/types/sdk/market/credit/CreditConfiguratorV310Contract.d.ts +6 -2
- package/dist/types/sdk/market/credit/index.d.ts +0 -3
- package/dist/types/sdk/market/credit/types.d.ts +2 -3
- package/dist/types/sdk/market/loss-policy/createLossPolicy.d.ts +0 -12
- package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +2 -21
- package/dist/types/sdk/market/oracle/createPriceOracle.d.ts +1 -15
- package/dist/types/sdk/market/oracle/index.d.ts +0 -1
- package/dist/types/sdk/market/oracle/types.d.ts +3 -13
- package/dist/types/sdk/market/pool/GaugeContract.d.ts +116 -76
- package/dist/types/sdk/market/pool/LinearInterestRateModelContract.d.ts +20 -0
- package/dist/types/sdk/market/pool/index.d.ts +0 -2
- package/dist/types/sdk/market/pool/types.d.ts +2 -4
- package/dist/types/sdk/market/pricefeeds/AbstractLPPriceFeed.d.ts +0 -3
- package/dist/types/sdk/market/pricefeeds/types.d.ts +0 -9
- package/dist/types/sdk/plugins/index.d.ts +0 -1
- package/dist/types/sdk/pools/createPoolService.d.ts +0 -5
- package/dist/types/sdk/pools/types.d.ts +10 -6
- package/dist/types/sdk/router/AbstractRouterContract.d.ts +2 -7
- package/dist/types/sdk/router/RouterV310Contract.d.ts +1 -16
- package/dist/types/sdk/router/helpers.d.ts +2 -2
- package/dist/types/sdk/router/index.d.ts +0 -1
- package/dist/types/sdk/router/types.d.ts +2 -55
- package/dist/types/sdk/types/state-human.d.ts +1 -4
- package/package.json +1 -1
- package/dist/cjs/abi/iDegenDistributorV300.js +0 -100
- package/dist/cjs/abi/routerV300.js +0 -406
- package/dist/cjs/abi/v300.js +0 -4189
- package/dist/cjs/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.js +0 -585
- package/dist/cjs/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.js +0 -262
- package/dist/cjs/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.js +0 -296
- package/dist/cjs/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.js +0 -415
- package/dist/cjs/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.js +0 -233
- package/dist/cjs/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.js +0 -359
- package/dist/cjs/plugins/adapters/contracts/deprecated/index.js +0 -36
- package/dist/cjs/plugins/adapters/contracts/types.js +0 -68
- package/dist/cjs/plugins/bots/abi/iPartialLiquidationBotV300.js +0 -164
- package/dist/cjs/sdk/accountMigration/AbstractMigrateCreditAccountsService.js +0 -192
- package/dist/cjs/sdk/accountMigration/MigrateCreditAccountsServiceV300.js +0 -30
- package/dist/cjs/sdk/accountMigration/MigrateCreditAccountsServiceV310.js +0 -30
- package/dist/cjs/sdk/accountMigration/createMigrateCreditAccountsService.js +0 -41
- package/dist/cjs/sdk/accountMigration/index.js +0 -26
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV300.js +0 -454
- package/dist/cjs/sdk/core/BotListV3Contract.js +0 -101
- package/dist/cjs/sdk/core/GearStakingV3Contract.js +0 -83
- package/dist/cjs/sdk/core/address-provider/AddressProviderV300Contract.js +0 -116
- package/dist/cjs/sdk/core/address-provider/index.js +0 -28
- package/dist/cjs/sdk/core/address-provider/types.js +0 -16
- package/dist/cjs/sdk/gauges/GaugeStakingService.js +0 -118
- package/dist/cjs/sdk/gauges/index.js +0 -24
- package/dist/cjs/sdk/gauges/utils.js +0 -16
- package/dist/cjs/sdk/market/credit/CreditConfiguratorV300Contract.js +0 -139
- package/dist/cjs/sdk/market/credit/CreditFacadeV300Contract.js +0 -160
- package/dist/cjs/sdk/market/credit/CreditManagerV300Contract.js +0 -114
- package/dist/cjs/sdk/market/oracle/PriceOracleV300Contract.js +0 -129
- package/dist/cjs/sdk/market/pool/PoolQuotaKeeperV300Contract.js +0 -85
- package/dist/cjs/sdk/market/pool/PoolV300Contract.js +0 -135
- package/dist/cjs/sdk/plugins/V300StalenessPeriodPlugin.js +0 -131
- package/dist/cjs/sdk/poolMigration/index.js +0 -84
- package/dist/cjs/sdk/pools/PoolServiceV300.js +0 -30
- package/dist/cjs/sdk/router/PathOptionFactory.js +0 -105
- package/dist/cjs/sdk/router/RouterV300Contract.js +0 -390
- package/dist/cjs/sdk/sdk-gov-legacy/contracts/adapters.js +0 -67
- package/dist/cjs/sdk/sdk-gov-legacy/contracts/contracts.js +0 -2576
- package/dist/cjs/sdk/sdk-gov-legacy/contracts/index.js +0 -24
- package/dist/cjs/sdk/sdk-gov-legacy/contracts/protocols.js +0 -58
- package/dist/cjs/sdk/sdk-gov-legacy/index.js +0 -26
- package/dist/cjs/sdk/sdk-gov-legacy/oracles/PriceFeedType.js +0 -52
- package/dist/cjs/sdk/sdk-gov-legacy/oracles/index.js +0 -22
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/aave.js +0 -16
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/aura.js +0 -239
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/balancer.js +0 -339
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/compound.js +0 -16
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/convex.js +0 -450
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/curveLP.js +0 -394
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/erc4626.js +0 -16
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/gear.js +0 -16
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/index.js +0 -52
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/normal.js +0 -562
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/stakingRewards.js +0 -45
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/token.js +0 -1002
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/tokenData.js +0 -80
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/tokenType.js +0 -50
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/wrapped.js +0 -16
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/yearn.js +0 -95
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/zircuit.js +0 -16
- package/dist/cjs/sdk/sdk-legacy/core/assets.js +0 -150
- package/dist/cjs/sdk/sdk-legacy/core/creditAccount.js +0 -510
- package/dist/cjs/sdk/sdk-legacy/core/creditAccount.spec.js +0 -1802
- package/dist/cjs/sdk/sdk-legacy/core/creditManager.js +0 -263
- package/dist/cjs/sdk/sdk-legacy/core/creditSession.js +0 -256
- package/dist/cjs/sdk/sdk-legacy/core/endpoint.js +0 -137
- package/dist/cjs/sdk/sdk-legacy/core/eventOrTx.js +0 -87
- package/dist/cjs/sdk/sdk-legacy/core/pool.js +0 -334
- package/dist/cjs/sdk/sdk-legacy/core/transactions.js +0 -783
- package/dist/cjs/sdk/sdk-legacy/gearboxRewards/api.js +0 -368
- package/dist/cjs/sdk/sdk-legacy/gearboxRewards/apy.js +0 -176
- package/dist/cjs/sdk/sdk-legacy/gearboxRewards/extraAPY.js +0 -137
- package/dist/cjs/sdk/sdk-legacy/gearboxRewards/index.js +0 -26
- package/dist/cjs/sdk/sdk-legacy/gearboxRewards/merklAPI.js +0 -52
- package/dist/cjs/sdk/sdk-legacy/index.js +0 -52
- package/dist/cjs/sdk/sdk-legacy/payload/creditAccount.js +0 -16
- package/dist/cjs/sdk/sdk-legacy/payload/creditManager.js +0 -16
- package/dist/cjs/sdk/sdk-legacy/payload/creditSession.js +0 -16
- package/dist/cjs/sdk/sdk-legacy/payload/graphPayload.js +0 -16
- package/dist/cjs/sdk/sdk-legacy/payload/pool.js +0 -16
- package/dist/cjs/sdk/sdk-legacy/tokens/tokenData.js +0 -92
- package/dist/cjs/sdk/sdk-legacy/utils/formatter.js +0 -79
- package/dist/cjs/sdk/sdk-legacy/utils/index.js +0 -26
- package/dist/cjs/sdk/sdk-legacy/utils/math.js +0 -33
- package/dist/cjs/sdk/sdk-legacy/utils/price.js +0 -35
- package/dist/esm/abi/iDegenDistributorV300.js +0 -76
- package/dist/esm/abi/routerV300.js +0 -381
- package/dist/esm/abi/v300.js +0 -4154
- package/dist/esm/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.js +0 -559
- package/dist/esm/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.js +0 -236
- package/dist/esm/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.js +0 -272
- package/dist/esm/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.js +0 -390
- package/dist/esm/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.js +0 -209
- package/dist/esm/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.js +0 -336
- package/dist/esm/plugins/adapters/contracts/deprecated/index.js +0 -8
- package/dist/esm/plugins/adapters/contracts/types.js +0 -40
- package/dist/esm/plugins/bots/abi/iPartialLiquidationBotV300.js +0 -140
- package/dist/esm/sdk/accountMigration/AbstractMigrateCreditAccountsService.js +0 -171
- package/dist/esm/sdk/accountMigration/MigrateCreditAccountsServiceV300.js +0 -6
- package/dist/esm/sdk/accountMigration/MigrateCreditAccountsServiceV310.js +0 -6
- package/dist/esm/sdk/accountMigration/createMigrateCreditAccountsService.js +0 -17
- package/dist/esm/sdk/accountMigration/index.js +0 -3
- package/dist/esm/sdk/accounts/CreditAccountsServiceV300.js +0 -442
- package/dist/esm/sdk/core/BotListV3Contract.js +0 -77
- package/dist/esm/sdk/core/GearStakingV3Contract.js +0 -59
- package/dist/esm/sdk/core/address-provider/AddressProviderV300Contract.js +0 -82
- package/dist/esm/sdk/core/address-provider/index.js +0 -4
- package/dist/esm/sdk/core/address-provider/types.js +0 -0
- package/dist/esm/sdk/gauges/GaugeStakingService.js +0 -94
- package/dist/esm/sdk/gauges/index.js +0 -2
- package/dist/esm/sdk/gauges/utils.js +0 -0
- package/dist/esm/sdk/market/credit/CreditConfiguratorV300Contract.js +0 -115
- package/dist/esm/sdk/market/credit/CreditFacadeV300Contract.js +0 -143
- package/dist/esm/sdk/market/credit/CreditManagerV300Contract.js +0 -90
- package/dist/esm/sdk/market/oracle/PriceOracleV300Contract.js +0 -111
- package/dist/esm/sdk/market/pool/PoolQuotaKeeperV300Contract.js +0 -61
- package/dist/esm/sdk/market/pool/PoolV300Contract.js +0 -116
- package/dist/esm/sdk/plugins/V300StalenessPeriodPlugin.js +0 -107
- package/dist/esm/sdk/poolMigration/index.js +0 -60
- package/dist/esm/sdk/pools/PoolServiceV300.js +0 -6
- package/dist/esm/sdk/router/PathOptionFactory.js +0 -92
- package/dist/esm/sdk/router/RouterV300Contract.js +0 -374
- package/dist/esm/sdk/sdk-gov-legacy/contracts/adapters.js +0 -43
- package/dist/esm/sdk/sdk-gov-legacy/contracts/contracts.js +0 -2538
- package/dist/esm/sdk/sdk-gov-legacy/contracts/index.js +0 -2
- package/dist/esm/sdk/sdk-gov-legacy/contracts/protocols.js +0 -34
- package/dist/esm/sdk/sdk-gov-legacy/index.js +0 -3
- package/dist/esm/sdk/sdk-gov-legacy/oracles/PriceFeedType.js +0 -28
- package/dist/esm/sdk/sdk-gov-legacy/oracles/index.js +0 -1
- package/dist/esm/sdk/sdk-gov-legacy/tokens/aave.js +0 -0
- package/dist/esm/sdk/sdk-gov-legacy/tokens/aura.js +0 -213
- package/dist/esm/sdk/sdk-gov-legacy/tokens/balancer.js +0 -314
- package/dist/esm/sdk/sdk-gov-legacy/tokens/compound.js +0 -0
- package/dist/esm/sdk/sdk-gov-legacy/tokens/convex.js +0 -424
- package/dist/esm/sdk/sdk-gov-legacy/tokens/curveLP.js +0 -369
- package/dist/esm/sdk/sdk-gov-legacy/tokens/erc4626.js +0 -0
- package/dist/esm/sdk/sdk-gov-legacy/tokens/gear.js +0 -0
- package/dist/esm/sdk/sdk-gov-legacy/tokens/index.js +0 -16
- package/dist/esm/sdk/sdk-gov-legacy/tokens/normal.js +0 -538
- package/dist/esm/sdk/sdk-gov-legacy/tokens/stakingRewards.js +0 -20
- package/dist/esm/sdk/sdk-gov-legacy/tokens/token.js +0 -975
- package/dist/esm/sdk/sdk-gov-legacy/tokens/tokenData.js +0 -55
- package/dist/esm/sdk/sdk-gov-legacy/tokens/tokenType.js +0 -26
- package/dist/esm/sdk/sdk-gov-legacy/tokens/wrapped.js +0 -0
- package/dist/esm/sdk/sdk-gov-legacy/tokens/yearn.js +0 -71
- package/dist/esm/sdk/sdk-gov-legacy/tokens/zircuit.js +0 -0
- package/dist/esm/sdk/sdk-legacy/core/assets.js +0 -126
- package/dist/esm/sdk/sdk-legacy/core/creditAccount.js +0 -495
- package/dist/esm/sdk/sdk-legacy/core/creditAccount.spec.js +0 -1805
- package/dist/esm/sdk/sdk-legacy/core/creditManager.js +0 -242
- package/dist/esm/sdk/sdk-legacy/core/creditSession.js +0 -228
- package/dist/esm/sdk/sdk-legacy/core/endpoint.js +0 -107
- package/dist/esm/sdk/sdk-legacy/core/eventOrTx.js +0 -63
- package/dist/esm/sdk/sdk-legacy/core/pool.js +0 -311
- package/dist/esm/sdk/sdk-legacy/core/transactions.js +0 -732
- package/dist/esm/sdk/sdk-legacy/gearboxRewards/api.js +0 -334
- package/dist/esm/sdk/sdk-legacy/gearboxRewards/apy.js +0 -158
- package/dist/esm/sdk/sdk-legacy/gearboxRewards/extraAPY.js +0 -102
- package/dist/esm/sdk/sdk-legacy/gearboxRewards/index.js +0 -3
- package/dist/esm/sdk/sdk-legacy/gearboxRewards/merklAPI.js +0 -18
- package/dist/esm/sdk/sdk-legacy/index.js +0 -16
- package/dist/esm/sdk/sdk-legacy/payload/creditAccount.js +0 -0
- package/dist/esm/sdk/sdk-legacy/payload/creditManager.js +0 -0
- package/dist/esm/sdk/sdk-legacy/payload/creditSession.js +0 -0
- package/dist/esm/sdk/sdk-legacy/payload/graphPayload.js +0 -0
- package/dist/esm/sdk/sdk-legacy/payload/pool.js +0 -0
- package/dist/esm/sdk/sdk-legacy/tokens/tokenData.js +0 -68
- package/dist/esm/sdk/sdk-legacy/utils/formatter.js +0 -39
- package/dist/esm/sdk/sdk-legacy/utils/index.js +0 -3
- package/dist/esm/sdk/sdk-legacy/utils/math.js +0 -9
- package/dist/esm/sdk/sdk-legacy/utils/price.js +0 -11
- package/dist/types/abi/iDegenDistributorV300.d.ts +0 -87
- package/dist/types/abi/routerV300.d.ts +0 -585
- package/dist/types/abi/v300.d.ts +0 -5484
- package/dist/types/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.d.ts +0 -1664
- package/dist/types/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.d.ts +0 -611
- package/dist/types/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.d.ts +0 -686
- package/dist/types/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.d.ts +0 -1270
- package/dist/types/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.d.ts +0 -531
- package/dist/types/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.d.ts +0 -662
- package/dist/types/plugins/adapters/contracts/deprecated/index.d.ts +0 -8
- package/dist/types/plugins/adapters/contracts/types.d.ts +0 -28
- package/dist/types/plugins/bots/abi/iPartialLiquidationBotV300.d.ts +0 -210
- package/dist/types/sdk/accountMigration/AbstractMigrateCreditAccountsService.d.ts +0 -32
- package/dist/types/sdk/accountMigration/MigrateCreditAccountsServiceV300.d.ts +0 -4
- package/dist/types/sdk/accountMigration/MigrateCreditAccountsServiceV310.d.ts +0 -4
- package/dist/types/sdk/accountMigration/createMigrateCreditAccountsService.d.ts +0 -8
- package/dist/types/sdk/accountMigration/index.d.ts +0 -3
- package/dist/types/sdk/accountMigration/types.d.ts +0 -62
- package/dist/types/sdk/accounts/CreditAccountsServiceV300.d.ts +0 -32
- package/dist/types/sdk/core/BotListV3Contract.d.ts +0 -323
- package/dist/types/sdk/core/GearStakingV3Contract.d.ts +0 -520
- package/dist/types/sdk/core/address-provider/AddressProviderV300Contract.d.ts +0 -97
- package/dist/types/sdk/core/address-provider/index.d.ts +0 -4
- package/dist/types/sdk/gauges/GaugeStakingService.d.ts +0 -14
- package/dist/types/sdk/gauges/index.d.ts +0 -2
- package/dist/types/sdk/gauges/utils.d.ts +0 -22
- package/dist/types/sdk/market/credit/CreditConfiguratorV300Contract.d.ts +0 -648
- package/dist/types/sdk/market/credit/CreditFacadeV300Contract.d.ts +0 -788
- package/dist/types/sdk/market/credit/CreditManagerV300Contract.d.ts +0 -1043
- package/dist/types/sdk/market/oracle/PriceOracleV300Contract.d.ts +0 -369
- package/dist/types/sdk/market/pool/PoolQuotaKeeperV300Contract.d.ts +0 -448
- package/dist/types/sdk/market/pool/PoolV300Contract.d.ts +0 -1107
- package/dist/types/sdk/plugins/V300StalenessPeriodPlugin.d.ts +0 -29
- package/dist/types/sdk/poolMigration/index.d.ts +0 -11
- package/dist/types/sdk/pools/PoolServiceV300.d.ts +0 -4
- package/dist/types/sdk/router/PathOptionFactory.d.ts +0 -9
- package/dist/types/sdk/router/RouterV300Contract.d.ts +0 -39
- package/dist/types/sdk/sdk-gov-legacy/contracts/adapters.d.ts +0 -39
- package/dist/types/sdk/sdk-gov-legacy/contracts/contracts.d.ts +0 -194
- package/dist/types/sdk/sdk-gov-legacy/contracts/index.d.ts +0 -2
- package/dist/types/sdk/sdk-gov-legacy/contracts/protocols.d.ts +0 -30
- package/dist/types/sdk/sdk-gov-legacy/index.d.ts +0 -3
- package/dist/types/sdk/sdk-gov-legacy/oracles/PriceFeedType.d.ts +0 -24
- package/dist/types/sdk/sdk-gov-legacy/oracles/index.d.ts +0 -1
- package/dist/types/sdk/sdk-gov-legacy/tokens/aave.d.ts +0 -2
- package/dist/types/sdk/sdk-gov-legacy/tokens/aura.d.ts +0 -26
- package/dist/types/sdk/sdk-gov-legacy/tokens/balancer.d.ts +0 -15
- package/dist/types/sdk/sdk-gov-legacy/tokens/compound.d.ts +0 -1
- package/dist/types/sdk/sdk-gov-legacy/tokens/convex.d.ts +0 -31
- package/dist/types/sdk/sdk-gov-legacy/tokens/curveLP.d.ts +0 -25
- package/dist/types/sdk/sdk-gov-legacy/tokens/erc4626.d.ts +0 -1
- package/dist/types/sdk/sdk-gov-legacy/tokens/gear.d.ts +0 -5
- package/dist/types/sdk/sdk-gov-legacy/tokens/index.d.ts +0 -16
- package/dist/types/sdk/sdk-gov-legacy/tokens/normal.d.ts +0 -9
- package/dist/types/sdk/sdk-gov-legacy/tokens/stakingRewards.d.ts +0 -13
- package/dist/types/sdk/sdk-gov-legacy/tokens/token.d.ts +0 -34
- package/dist/types/sdk/sdk-gov-legacy/tokens/tokenData.d.ts +0 -5
- package/dist/types/sdk/sdk-gov-legacy/tokens/tokenType.d.ts +0 -24
- package/dist/types/sdk/sdk-gov-legacy/tokens/wrapped.d.ts +0 -7
- package/dist/types/sdk/sdk-gov-legacy/tokens/yearn.d.ts +0 -26
- package/dist/types/sdk/sdk-gov-legacy/tokens/zircuit.d.ts +0 -1
- package/dist/types/sdk/sdk-legacy/core/assets.d.ts +0 -39
- package/dist/types/sdk/sdk-legacy/core/creditAccount.d.ts +0 -152
- package/dist/types/sdk/sdk-legacy/core/creditAccount.spec.d.ts +0 -1
- package/dist/types/sdk/sdk-legacy/core/creditManager.d.ts +0 -92
- package/dist/types/sdk/sdk-legacy/core/creditSession.d.ts +0 -110
- package/dist/types/sdk/sdk-legacy/core/endpoint.d.ts +0 -24
- package/dist/types/sdk/sdk-legacy/core/eventOrTx.d.ts +0 -35
- package/dist/types/sdk/sdk-legacy/core/pool.d.ts +0 -144
- package/dist/types/sdk/sdk-legacy/core/transactions.d.ts +0 -348
- package/dist/types/sdk/sdk-legacy/gearboxRewards/api.d.ts +0 -88
- package/dist/types/sdk/sdk-legacy/gearboxRewards/apy.d.ts +0 -46
- package/dist/types/sdk/sdk-legacy/gearboxRewards/extraAPY.d.ts +0 -41
- package/dist/types/sdk/sdk-legacy/gearboxRewards/index.d.ts +0 -3
- package/dist/types/sdk/sdk-legacy/gearboxRewards/merklAPI.d.ts +0 -46
- package/dist/types/sdk/sdk-legacy/index.d.ts +0 -16
- package/dist/types/sdk/sdk-legacy/payload/creditAccount.d.ts +0 -47
- package/dist/types/sdk/sdk-legacy/payload/creditManager.d.ts +0 -109
- package/dist/types/sdk/sdk-legacy/payload/creditSession.d.ts +0 -111
- package/dist/types/sdk/sdk-legacy/payload/graphPayload.d.ts +0 -10
- package/dist/types/sdk/sdk-legacy/payload/pool.d.ts +0 -180
- package/dist/types/sdk/sdk-legacy/tokens/tokenData.d.ts +0 -21
- package/dist/types/sdk/sdk-legacy/utils/formatter.d.ts +0 -8
- package/dist/types/sdk/sdk-legacy/utils/index.d.ts +0 -3
- package/dist/types/sdk/sdk-legacy/utils/math.d.ts +0 -6
- package/dist/types/sdk/sdk-legacy/utils/price.d.ts +0 -9
- /package/dist/cjs/sdk/{accountMigration → core}/types.js +0 -0
- /package/dist/esm/sdk/{accountMigration → core}/types.js +0 -0
package/dist/types/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.d.ts
DELETED
|
@@ -1,1664 +0,0 @@
|
|
|
1
|
-
import type { ConstructOptions, ParsedCallV2 } from "../../../../sdk/index.js";
|
|
2
|
-
import type { LegacyAdapterOperation, Transfers } from "../../legacyAdapterOperations.js";
|
|
3
|
-
import type { ConcreteAdapterContractOptions } from "../AbstractAdapter.js";
|
|
4
|
-
import { AbstractAdapterContract } from "../AbstractAdapter.js";
|
|
5
|
-
import type { BalancerV2PoolStatus } from "../types.js";
|
|
6
|
-
export declare const iBalancerV2VaultAdapterAbi: readonly [{
|
|
7
|
-
readonly type: "function";
|
|
8
|
-
readonly name: "batchSwap";
|
|
9
|
-
readonly inputs: readonly [{
|
|
10
|
-
readonly name: "kind";
|
|
11
|
-
readonly type: "uint8";
|
|
12
|
-
readonly internalType: "enum SwapKind";
|
|
13
|
-
}, {
|
|
14
|
-
readonly name: "swaps";
|
|
15
|
-
readonly type: "tuple[]";
|
|
16
|
-
readonly internalType: "struct BatchSwapStep[]";
|
|
17
|
-
readonly components: readonly [{
|
|
18
|
-
readonly name: "poolId";
|
|
19
|
-
readonly type: "bytes32";
|
|
20
|
-
readonly internalType: "bytes32";
|
|
21
|
-
}, {
|
|
22
|
-
readonly name: "assetInIndex";
|
|
23
|
-
readonly type: "uint256";
|
|
24
|
-
readonly internalType: "uint256";
|
|
25
|
-
}, {
|
|
26
|
-
readonly name: "assetOutIndex";
|
|
27
|
-
readonly type: "uint256";
|
|
28
|
-
readonly internalType: "uint256";
|
|
29
|
-
}, {
|
|
30
|
-
readonly name: "amount";
|
|
31
|
-
readonly type: "uint256";
|
|
32
|
-
readonly internalType: "uint256";
|
|
33
|
-
}, {
|
|
34
|
-
readonly name: "userData";
|
|
35
|
-
readonly type: "bytes";
|
|
36
|
-
readonly internalType: "bytes";
|
|
37
|
-
}];
|
|
38
|
-
}, {
|
|
39
|
-
readonly name: "assets";
|
|
40
|
-
readonly type: "address[]";
|
|
41
|
-
readonly internalType: "contract IAsset[]";
|
|
42
|
-
}, {
|
|
43
|
-
readonly name: "";
|
|
44
|
-
readonly type: "tuple";
|
|
45
|
-
readonly internalType: "struct FundManagement";
|
|
46
|
-
readonly components: readonly [{
|
|
47
|
-
readonly name: "sender";
|
|
48
|
-
readonly type: "address";
|
|
49
|
-
readonly internalType: "address";
|
|
50
|
-
}, {
|
|
51
|
-
readonly name: "fromInternalBalance";
|
|
52
|
-
readonly type: "bool";
|
|
53
|
-
readonly internalType: "bool";
|
|
54
|
-
}, {
|
|
55
|
-
readonly name: "recipient";
|
|
56
|
-
readonly type: "address";
|
|
57
|
-
readonly internalType: "address payable";
|
|
58
|
-
}, {
|
|
59
|
-
readonly name: "toInternalBalance";
|
|
60
|
-
readonly type: "bool";
|
|
61
|
-
readonly internalType: "bool";
|
|
62
|
-
}];
|
|
63
|
-
}, {
|
|
64
|
-
readonly name: "limits";
|
|
65
|
-
readonly type: "int256[]";
|
|
66
|
-
readonly internalType: "int256[]";
|
|
67
|
-
}, {
|
|
68
|
-
readonly name: "deadline";
|
|
69
|
-
readonly type: "uint256";
|
|
70
|
-
readonly internalType: "uint256";
|
|
71
|
-
}];
|
|
72
|
-
readonly outputs: readonly [{
|
|
73
|
-
readonly name: "useSafePrices";
|
|
74
|
-
readonly type: "bool";
|
|
75
|
-
readonly internalType: "bool";
|
|
76
|
-
}];
|
|
77
|
-
readonly stateMutability: "nonpayable";
|
|
78
|
-
}, {
|
|
79
|
-
readonly type: "function";
|
|
80
|
-
readonly name: "contractType";
|
|
81
|
-
readonly inputs: readonly [];
|
|
82
|
-
readonly outputs: readonly [{
|
|
83
|
-
readonly name: "";
|
|
84
|
-
readonly type: "bytes32";
|
|
85
|
-
readonly internalType: "bytes32";
|
|
86
|
-
}];
|
|
87
|
-
readonly stateMutability: "view";
|
|
88
|
-
}, {
|
|
89
|
-
readonly type: "function";
|
|
90
|
-
readonly name: "creditManager";
|
|
91
|
-
readonly inputs: readonly [];
|
|
92
|
-
readonly outputs: readonly [{
|
|
93
|
-
readonly name: "";
|
|
94
|
-
readonly type: "address";
|
|
95
|
-
readonly internalType: "address";
|
|
96
|
-
}];
|
|
97
|
-
readonly stateMutability: "view";
|
|
98
|
-
}, {
|
|
99
|
-
readonly type: "function";
|
|
100
|
-
readonly name: "exitPool";
|
|
101
|
-
readonly inputs: readonly [{
|
|
102
|
-
readonly name: "poolId";
|
|
103
|
-
readonly type: "bytes32";
|
|
104
|
-
readonly internalType: "bytes32";
|
|
105
|
-
}, {
|
|
106
|
-
readonly name: "";
|
|
107
|
-
readonly type: "address";
|
|
108
|
-
readonly internalType: "address";
|
|
109
|
-
}, {
|
|
110
|
-
readonly name: "";
|
|
111
|
-
readonly type: "address";
|
|
112
|
-
readonly internalType: "address payable";
|
|
113
|
-
}, {
|
|
114
|
-
readonly name: "request";
|
|
115
|
-
readonly type: "tuple";
|
|
116
|
-
readonly internalType: "struct ExitPoolRequest";
|
|
117
|
-
readonly components: readonly [{
|
|
118
|
-
readonly name: "assets";
|
|
119
|
-
readonly type: "address[]";
|
|
120
|
-
readonly internalType: "contract IAsset[]";
|
|
121
|
-
}, {
|
|
122
|
-
readonly name: "minAmountsOut";
|
|
123
|
-
readonly type: "uint256[]";
|
|
124
|
-
readonly internalType: "uint256[]";
|
|
125
|
-
}, {
|
|
126
|
-
readonly name: "userData";
|
|
127
|
-
readonly type: "bytes";
|
|
128
|
-
readonly internalType: "bytes";
|
|
129
|
-
}, {
|
|
130
|
-
readonly name: "toInternalBalance";
|
|
131
|
-
readonly type: "bool";
|
|
132
|
-
readonly internalType: "bool";
|
|
133
|
-
}];
|
|
134
|
-
}];
|
|
135
|
-
readonly outputs: readonly [{
|
|
136
|
-
readonly name: "useSafePrices";
|
|
137
|
-
readonly type: "bool";
|
|
138
|
-
readonly internalType: "bool";
|
|
139
|
-
}];
|
|
140
|
-
readonly stateMutability: "nonpayable";
|
|
141
|
-
}, {
|
|
142
|
-
readonly type: "function";
|
|
143
|
-
readonly name: "exitPoolSingleAsset";
|
|
144
|
-
readonly inputs: readonly [{
|
|
145
|
-
readonly name: "poolId";
|
|
146
|
-
readonly type: "bytes32";
|
|
147
|
-
readonly internalType: "bytes32";
|
|
148
|
-
}, {
|
|
149
|
-
readonly name: "assetOut";
|
|
150
|
-
readonly type: "address";
|
|
151
|
-
readonly internalType: "contract IAsset";
|
|
152
|
-
}, {
|
|
153
|
-
readonly name: "amountIn";
|
|
154
|
-
readonly type: "uint256";
|
|
155
|
-
readonly internalType: "uint256";
|
|
156
|
-
}, {
|
|
157
|
-
readonly name: "minAmountOut";
|
|
158
|
-
readonly type: "uint256";
|
|
159
|
-
readonly internalType: "uint256";
|
|
160
|
-
}];
|
|
161
|
-
readonly outputs: readonly [{
|
|
162
|
-
readonly name: "useSafePrices";
|
|
163
|
-
readonly type: "bool";
|
|
164
|
-
readonly internalType: "bool";
|
|
165
|
-
}];
|
|
166
|
-
readonly stateMutability: "nonpayable";
|
|
167
|
-
}, {
|
|
168
|
-
readonly type: "function";
|
|
169
|
-
readonly name: "exitPoolSingleAssetDiff";
|
|
170
|
-
readonly inputs: readonly [{
|
|
171
|
-
readonly name: "poolId";
|
|
172
|
-
readonly type: "bytes32";
|
|
173
|
-
readonly internalType: "bytes32";
|
|
174
|
-
}, {
|
|
175
|
-
readonly name: "assetOut";
|
|
176
|
-
readonly type: "address";
|
|
177
|
-
readonly internalType: "contract IAsset";
|
|
178
|
-
}, {
|
|
179
|
-
readonly name: "leftoverAmount";
|
|
180
|
-
readonly type: "uint256";
|
|
181
|
-
readonly internalType: "uint256";
|
|
182
|
-
}, {
|
|
183
|
-
readonly name: "minRateRAY";
|
|
184
|
-
readonly type: "uint256";
|
|
185
|
-
readonly internalType: "uint256";
|
|
186
|
-
}];
|
|
187
|
-
readonly outputs: readonly [{
|
|
188
|
-
readonly name: "useSafePrices";
|
|
189
|
-
readonly type: "bool";
|
|
190
|
-
readonly internalType: "bool";
|
|
191
|
-
}];
|
|
192
|
-
readonly stateMutability: "nonpayable";
|
|
193
|
-
}, {
|
|
194
|
-
readonly type: "function";
|
|
195
|
-
readonly name: "joinPool";
|
|
196
|
-
readonly inputs: readonly [{
|
|
197
|
-
readonly name: "poolId";
|
|
198
|
-
readonly type: "bytes32";
|
|
199
|
-
readonly internalType: "bytes32";
|
|
200
|
-
}, {
|
|
201
|
-
readonly name: "";
|
|
202
|
-
readonly type: "address";
|
|
203
|
-
readonly internalType: "address";
|
|
204
|
-
}, {
|
|
205
|
-
readonly name: "";
|
|
206
|
-
readonly type: "address";
|
|
207
|
-
readonly internalType: "address";
|
|
208
|
-
}, {
|
|
209
|
-
readonly name: "request";
|
|
210
|
-
readonly type: "tuple";
|
|
211
|
-
readonly internalType: "struct JoinPoolRequest";
|
|
212
|
-
readonly components: readonly [{
|
|
213
|
-
readonly name: "assets";
|
|
214
|
-
readonly type: "address[]";
|
|
215
|
-
readonly internalType: "contract IAsset[]";
|
|
216
|
-
}, {
|
|
217
|
-
readonly name: "maxAmountsIn";
|
|
218
|
-
readonly type: "uint256[]";
|
|
219
|
-
readonly internalType: "uint256[]";
|
|
220
|
-
}, {
|
|
221
|
-
readonly name: "userData";
|
|
222
|
-
readonly type: "bytes";
|
|
223
|
-
readonly internalType: "bytes";
|
|
224
|
-
}, {
|
|
225
|
-
readonly name: "fromInternalBalance";
|
|
226
|
-
readonly type: "bool";
|
|
227
|
-
readonly internalType: "bool";
|
|
228
|
-
}];
|
|
229
|
-
}];
|
|
230
|
-
readonly outputs: readonly [{
|
|
231
|
-
readonly name: "useSafePrices";
|
|
232
|
-
readonly type: "bool";
|
|
233
|
-
readonly internalType: "bool";
|
|
234
|
-
}];
|
|
235
|
-
readonly stateMutability: "nonpayable";
|
|
236
|
-
}, {
|
|
237
|
-
readonly type: "function";
|
|
238
|
-
readonly name: "joinPoolSingleAsset";
|
|
239
|
-
readonly inputs: readonly [{
|
|
240
|
-
readonly name: "poolId";
|
|
241
|
-
readonly type: "bytes32";
|
|
242
|
-
readonly internalType: "bytes32";
|
|
243
|
-
}, {
|
|
244
|
-
readonly name: "assetIn";
|
|
245
|
-
readonly type: "address";
|
|
246
|
-
readonly internalType: "contract IAsset";
|
|
247
|
-
}, {
|
|
248
|
-
readonly name: "amountIn";
|
|
249
|
-
readonly type: "uint256";
|
|
250
|
-
readonly internalType: "uint256";
|
|
251
|
-
}, {
|
|
252
|
-
readonly name: "minAmountOut";
|
|
253
|
-
readonly type: "uint256";
|
|
254
|
-
readonly internalType: "uint256";
|
|
255
|
-
}];
|
|
256
|
-
readonly outputs: readonly [{
|
|
257
|
-
readonly name: "useSafePrices";
|
|
258
|
-
readonly type: "bool";
|
|
259
|
-
readonly internalType: "bool";
|
|
260
|
-
}];
|
|
261
|
-
readonly stateMutability: "nonpayable";
|
|
262
|
-
}, {
|
|
263
|
-
readonly type: "function";
|
|
264
|
-
readonly name: "joinPoolSingleAssetDiff";
|
|
265
|
-
readonly inputs: readonly [{
|
|
266
|
-
readonly name: "poolId";
|
|
267
|
-
readonly type: "bytes32";
|
|
268
|
-
readonly internalType: "bytes32";
|
|
269
|
-
}, {
|
|
270
|
-
readonly name: "assetIn";
|
|
271
|
-
readonly type: "address";
|
|
272
|
-
readonly internalType: "contract IAsset";
|
|
273
|
-
}, {
|
|
274
|
-
readonly name: "leftoverAmount";
|
|
275
|
-
readonly type: "uint256";
|
|
276
|
-
readonly internalType: "uint256";
|
|
277
|
-
}, {
|
|
278
|
-
readonly name: "minRateRAY";
|
|
279
|
-
readonly type: "uint256";
|
|
280
|
-
readonly internalType: "uint256";
|
|
281
|
-
}];
|
|
282
|
-
readonly outputs: readonly [{
|
|
283
|
-
readonly name: "useSafePrices";
|
|
284
|
-
readonly type: "bool";
|
|
285
|
-
readonly internalType: "bool";
|
|
286
|
-
}];
|
|
287
|
-
readonly stateMutability: "nonpayable";
|
|
288
|
-
}, {
|
|
289
|
-
readonly type: "function";
|
|
290
|
-
readonly name: "poolStatus";
|
|
291
|
-
readonly inputs: readonly [{
|
|
292
|
-
readonly name: "poolId";
|
|
293
|
-
readonly type: "bytes32";
|
|
294
|
-
readonly internalType: "bytes32";
|
|
295
|
-
}];
|
|
296
|
-
readonly outputs: readonly [{
|
|
297
|
-
readonly name: "";
|
|
298
|
-
readonly type: "uint8";
|
|
299
|
-
readonly internalType: "enum PoolStatus";
|
|
300
|
-
}];
|
|
301
|
-
readonly stateMutability: "view";
|
|
302
|
-
}, {
|
|
303
|
-
readonly type: "function";
|
|
304
|
-
readonly name: "serialize";
|
|
305
|
-
readonly inputs: readonly [];
|
|
306
|
-
readonly outputs: readonly [{
|
|
307
|
-
readonly name: "serializedData";
|
|
308
|
-
readonly type: "bytes";
|
|
309
|
-
readonly internalType: "bytes";
|
|
310
|
-
}];
|
|
311
|
-
readonly stateMutability: "view";
|
|
312
|
-
}, {
|
|
313
|
-
readonly type: "function";
|
|
314
|
-
readonly name: "setPoolStatus";
|
|
315
|
-
readonly inputs: readonly [{
|
|
316
|
-
readonly name: "poolId";
|
|
317
|
-
readonly type: "bytes32";
|
|
318
|
-
readonly internalType: "bytes32";
|
|
319
|
-
}, {
|
|
320
|
-
readonly name: "newStatus";
|
|
321
|
-
readonly type: "uint8";
|
|
322
|
-
readonly internalType: "enum PoolStatus";
|
|
323
|
-
}];
|
|
324
|
-
readonly outputs: readonly [];
|
|
325
|
-
readonly stateMutability: "nonpayable";
|
|
326
|
-
}, {
|
|
327
|
-
readonly type: "function";
|
|
328
|
-
readonly name: "swap";
|
|
329
|
-
readonly inputs: readonly [{
|
|
330
|
-
readonly name: "singleSwap";
|
|
331
|
-
readonly type: "tuple";
|
|
332
|
-
readonly internalType: "struct SingleSwap";
|
|
333
|
-
readonly components: readonly [{
|
|
334
|
-
readonly name: "poolId";
|
|
335
|
-
readonly type: "bytes32";
|
|
336
|
-
readonly internalType: "bytes32";
|
|
337
|
-
}, {
|
|
338
|
-
readonly name: "kind";
|
|
339
|
-
readonly type: "uint8";
|
|
340
|
-
readonly internalType: "enum SwapKind";
|
|
341
|
-
}, {
|
|
342
|
-
readonly name: "assetIn";
|
|
343
|
-
readonly type: "address";
|
|
344
|
-
readonly internalType: "contract IAsset";
|
|
345
|
-
}, {
|
|
346
|
-
readonly name: "assetOut";
|
|
347
|
-
readonly type: "address";
|
|
348
|
-
readonly internalType: "contract IAsset";
|
|
349
|
-
}, {
|
|
350
|
-
readonly name: "amount";
|
|
351
|
-
readonly type: "uint256";
|
|
352
|
-
readonly internalType: "uint256";
|
|
353
|
-
}, {
|
|
354
|
-
readonly name: "userData";
|
|
355
|
-
readonly type: "bytes";
|
|
356
|
-
readonly internalType: "bytes";
|
|
357
|
-
}];
|
|
358
|
-
}, {
|
|
359
|
-
readonly name: "";
|
|
360
|
-
readonly type: "tuple";
|
|
361
|
-
readonly internalType: "struct FundManagement";
|
|
362
|
-
readonly components: readonly [{
|
|
363
|
-
readonly name: "sender";
|
|
364
|
-
readonly type: "address";
|
|
365
|
-
readonly internalType: "address";
|
|
366
|
-
}, {
|
|
367
|
-
readonly name: "fromInternalBalance";
|
|
368
|
-
readonly type: "bool";
|
|
369
|
-
readonly internalType: "bool";
|
|
370
|
-
}, {
|
|
371
|
-
readonly name: "recipient";
|
|
372
|
-
readonly type: "address";
|
|
373
|
-
readonly internalType: "address payable";
|
|
374
|
-
}, {
|
|
375
|
-
readonly name: "toInternalBalance";
|
|
376
|
-
readonly type: "bool";
|
|
377
|
-
readonly internalType: "bool";
|
|
378
|
-
}];
|
|
379
|
-
}, {
|
|
380
|
-
readonly name: "limit";
|
|
381
|
-
readonly type: "uint256";
|
|
382
|
-
readonly internalType: "uint256";
|
|
383
|
-
}, {
|
|
384
|
-
readonly name: "deadline";
|
|
385
|
-
readonly type: "uint256";
|
|
386
|
-
readonly internalType: "uint256";
|
|
387
|
-
}];
|
|
388
|
-
readonly outputs: readonly [{
|
|
389
|
-
readonly name: "useSafePrices";
|
|
390
|
-
readonly type: "bool";
|
|
391
|
-
readonly internalType: "bool";
|
|
392
|
-
}];
|
|
393
|
-
readonly stateMutability: "nonpayable";
|
|
394
|
-
}, {
|
|
395
|
-
readonly type: "function";
|
|
396
|
-
readonly name: "swapDiff";
|
|
397
|
-
readonly inputs: readonly [{
|
|
398
|
-
readonly name: "singleSwapDiff";
|
|
399
|
-
readonly type: "tuple";
|
|
400
|
-
readonly internalType: "struct SingleSwapDiff";
|
|
401
|
-
readonly components: readonly [{
|
|
402
|
-
readonly name: "poolId";
|
|
403
|
-
readonly type: "bytes32";
|
|
404
|
-
readonly internalType: "bytes32";
|
|
405
|
-
}, {
|
|
406
|
-
readonly name: "leftoverAmount";
|
|
407
|
-
readonly type: "uint256";
|
|
408
|
-
readonly internalType: "uint256";
|
|
409
|
-
}, {
|
|
410
|
-
readonly name: "assetIn";
|
|
411
|
-
readonly type: "address";
|
|
412
|
-
readonly internalType: "contract IAsset";
|
|
413
|
-
}, {
|
|
414
|
-
readonly name: "assetOut";
|
|
415
|
-
readonly type: "address";
|
|
416
|
-
readonly internalType: "contract IAsset";
|
|
417
|
-
}, {
|
|
418
|
-
readonly name: "userData";
|
|
419
|
-
readonly type: "bytes";
|
|
420
|
-
readonly internalType: "bytes";
|
|
421
|
-
}];
|
|
422
|
-
}, {
|
|
423
|
-
readonly name: "limitRateRAY";
|
|
424
|
-
readonly type: "uint256";
|
|
425
|
-
readonly internalType: "uint256";
|
|
426
|
-
}, {
|
|
427
|
-
readonly name: "deadline";
|
|
428
|
-
readonly type: "uint256";
|
|
429
|
-
readonly internalType: "uint256";
|
|
430
|
-
}];
|
|
431
|
-
readonly outputs: readonly [{
|
|
432
|
-
readonly name: "useSafePrices";
|
|
433
|
-
readonly type: "bool";
|
|
434
|
-
readonly internalType: "bool";
|
|
435
|
-
}];
|
|
436
|
-
readonly stateMutability: "nonpayable";
|
|
437
|
-
}, {
|
|
438
|
-
readonly type: "function";
|
|
439
|
-
readonly name: "targetContract";
|
|
440
|
-
readonly inputs: readonly [];
|
|
441
|
-
readonly outputs: readonly [{
|
|
442
|
-
readonly name: "";
|
|
443
|
-
readonly type: "address";
|
|
444
|
-
readonly internalType: "address";
|
|
445
|
-
}];
|
|
446
|
-
readonly stateMutability: "view";
|
|
447
|
-
}, {
|
|
448
|
-
readonly type: "function";
|
|
449
|
-
readonly name: "version";
|
|
450
|
-
readonly inputs: readonly [];
|
|
451
|
-
readonly outputs: readonly [{
|
|
452
|
-
readonly name: "";
|
|
453
|
-
readonly type: "uint256";
|
|
454
|
-
readonly internalType: "uint256";
|
|
455
|
-
}];
|
|
456
|
-
readonly stateMutability: "view";
|
|
457
|
-
}, {
|
|
458
|
-
readonly type: "event";
|
|
459
|
-
readonly name: "SetPoolStatus";
|
|
460
|
-
readonly inputs: readonly [{
|
|
461
|
-
readonly name: "poolId";
|
|
462
|
-
readonly type: "bytes32";
|
|
463
|
-
readonly indexed: true;
|
|
464
|
-
readonly internalType: "bytes32";
|
|
465
|
-
}, {
|
|
466
|
-
readonly name: "newStatus";
|
|
467
|
-
readonly type: "uint8";
|
|
468
|
-
readonly indexed: false;
|
|
469
|
-
readonly internalType: "enum PoolStatus";
|
|
470
|
-
}];
|
|
471
|
-
readonly anonymous: false;
|
|
472
|
-
}, {
|
|
473
|
-
readonly type: "error";
|
|
474
|
-
readonly name: "PoolNotSupportedException";
|
|
475
|
-
readonly inputs: readonly [];
|
|
476
|
-
}];
|
|
477
|
-
export declare const iBalancerV2VaultAbi: readonly [{
|
|
478
|
-
readonly type: "function";
|
|
479
|
-
readonly name: "batchSwap";
|
|
480
|
-
readonly inputs: readonly [{
|
|
481
|
-
readonly name: "kind";
|
|
482
|
-
readonly type: "uint8";
|
|
483
|
-
readonly internalType: "enum SwapKind";
|
|
484
|
-
}, {
|
|
485
|
-
readonly name: "swaps";
|
|
486
|
-
readonly type: "tuple[]";
|
|
487
|
-
readonly internalType: "struct BatchSwapStep[]";
|
|
488
|
-
readonly components: readonly [{
|
|
489
|
-
readonly name: "poolId";
|
|
490
|
-
readonly type: "bytes32";
|
|
491
|
-
readonly internalType: "bytes32";
|
|
492
|
-
}, {
|
|
493
|
-
readonly name: "assetInIndex";
|
|
494
|
-
readonly type: "uint256";
|
|
495
|
-
readonly internalType: "uint256";
|
|
496
|
-
}, {
|
|
497
|
-
readonly name: "assetOutIndex";
|
|
498
|
-
readonly type: "uint256";
|
|
499
|
-
readonly internalType: "uint256";
|
|
500
|
-
}, {
|
|
501
|
-
readonly name: "amount";
|
|
502
|
-
readonly type: "uint256";
|
|
503
|
-
readonly internalType: "uint256";
|
|
504
|
-
}, {
|
|
505
|
-
readonly name: "userData";
|
|
506
|
-
readonly type: "bytes";
|
|
507
|
-
readonly internalType: "bytes";
|
|
508
|
-
}];
|
|
509
|
-
}, {
|
|
510
|
-
readonly name: "assets";
|
|
511
|
-
readonly type: "address[]";
|
|
512
|
-
readonly internalType: "contract IAsset[]";
|
|
513
|
-
}, {
|
|
514
|
-
readonly name: "funds";
|
|
515
|
-
readonly type: "tuple";
|
|
516
|
-
readonly internalType: "struct FundManagement";
|
|
517
|
-
readonly components: readonly [{
|
|
518
|
-
readonly name: "sender";
|
|
519
|
-
readonly type: "address";
|
|
520
|
-
readonly internalType: "address";
|
|
521
|
-
}, {
|
|
522
|
-
readonly name: "fromInternalBalance";
|
|
523
|
-
readonly type: "bool";
|
|
524
|
-
readonly internalType: "bool";
|
|
525
|
-
}, {
|
|
526
|
-
readonly name: "recipient";
|
|
527
|
-
readonly type: "address";
|
|
528
|
-
readonly internalType: "address payable";
|
|
529
|
-
}, {
|
|
530
|
-
readonly name: "toInternalBalance";
|
|
531
|
-
readonly type: "bool";
|
|
532
|
-
readonly internalType: "bool";
|
|
533
|
-
}];
|
|
534
|
-
}, {
|
|
535
|
-
readonly name: "limits";
|
|
536
|
-
readonly type: "int256[]";
|
|
537
|
-
readonly internalType: "int256[]";
|
|
538
|
-
}, {
|
|
539
|
-
readonly name: "deadline";
|
|
540
|
-
readonly type: "uint256";
|
|
541
|
-
readonly internalType: "uint256";
|
|
542
|
-
}];
|
|
543
|
-
readonly outputs: readonly [{
|
|
544
|
-
readonly name: "assetDeltas";
|
|
545
|
-
readonly type: "int256[]";
|
|
546
|
-
readonly internalType: "int256[]";
|
|
547
|
-
}];
|
|
548
|
-
readonly stateMutability: "nonpayable";
|
|
549
|
-
}, {
|
|
550
|
-
readonly type: "function";
|
|
551
|
-
readonly name: "exitPool";
|
|
552
|
-
readonly inputs: readonly [{
|
|
553
|
-
readonly name: "poolId";
|
|
554
|
-
readonly type: "bytes32";
|
|
555
|
-
readonly internalType: "bytes32";
|
|
556
|
-
}, {
|
|
557
|
-
readonly name: "sender";
|
|
558
|
-
readonly type: "address";
|
|
559
|
-
readonly internalType: "address";
|
|
560
|
-
}, {
|
|
561
|
-
readonly name: "recipient";
|
|
562
|
-
readonly type: "address";
|
|
563
|
-
readonly internalType: "address payable";
|
|
564
|
-
}, {
|
|
565
|
-
readonly name: "request";
|
|
566
|
-
readonly type: "tuple";
|
|
567
|
-
readonly internalType: "struct ExitPoolRequest";
|
|
568
|
-
readonly components: readonly [{
|
|
569
|
-
readonly name: "assets";
|
|
570
|
-
readonly type: "address[]";
|
|
571
|
-
readonly internalType: "contract IAsset[]";
|
|
572
|
-
}, {
|
|
573
|
-
readonly name: "minAmountsOut";
|
|
574
|
-
readonly type: "uint256[]";
|
|
575
|
-
readonly internalType: "uint256[]";
|
|
576
|
-
}, {
|
|
577
|
-
readonly name: "userData";
|
|
578
|
-
readonly type: "bytes";
|
|
579
|
-
readonly internalType: "bytes";
|
|
580
|
-
}, {
|
|
581
|
-
readonly name: "toInternalBalance";
|
|
582
|
-
readonly type: "bool";
|
|
583
|
-
readonly internalType: "bool";
|
|
584
|
-
}];
|
|
585
|
-
}];
|
|
586
|
-
readonly outputs: readonly [];
|
|
587
|
-
readonly stateMutability: "nonpayable";
|
|
588
|
-
}, {
|
|
589
|
-
readonly type: "function";
|
|
590
|
-
readonly name: "getPool";
|
|
591
|
-
readonly inputs: readonly [{
|
|
592
|
-
readonly name: "poolId";
|
|
593
|
-
readonly type: "bytes32";
|
|
594
|
-
readonly internalType: "bytes32";
|
|
595
|
-
}];
|
|
596
|
-
readonly outputs: readonly [{
|
|
597
|
-
readonly name: "";
|
|
598
|
-
readonly type: "address";
|
|
599
|
-
readonly internalType: "address";
|
|
600
|
-
}, {
|
|
601
|
-
readonly name: "";
|
|
602
|
-
readonly type: "uint8";
|
|
603
|
-
readonly internalType: "enum PoolSpecialization";
|
|
604
|
-
}];
|
|
605
|
-
readonly stateMutability: "view";
|
|
606
|
-
}, {
|
|
607
|
-
readonly type: "function";
|
|
608
|
-
readonly name: "getPoolTokenInfo";
|
|
609
|
-
readonly inputs: readonly [{
|
|
610
|
-
readonly name: "poolId";
|
|
611
|
-
readonly type: "bytes32";
|
|
612
|
-
readonly internalType: "bytes32";
|
|
613
|
-
}, {
|
|
614
|
-
readonly name: "token";
|
|
615
|
-
readonly type: "address";
|
|
616
|
-
readonly internalType: "contract IERC20";
|
|
617
|
-
}];
|
|
618
|
-
readonly outputs: readonly [{
|
|
619
|
-
readonly name: "cash";
|
|
620
|
-
readonly type: "uint256";
|
|
621
|
-
readonly internalType: "uint256";
|
|
622
|
-
}, {
|
|
623
|
-
readonly name: "managed";
|
|
624
|
-
readonly type: "uint256";
|
|
625
|
-
readonly internalType: "uint256";
|
|
626
|
-
}, {
|
|
627
|
-
readonly name: "lastChangeBlock";
|
|
628
|
-
readonly type: "uint256";
|
|
629
|
-
readonly internalType: "uint256";
|
|
630
|
-
}, {
|
|
631
|
-
readonly name: "assetManager";
|
|
632
|
-
readonly type: "address";
|
|
633
|
-
readonly internalType: "address";
|
|
634
|
-
}];
|
|
635
|
-
readonly stateMutability: "view";
|
|
636
|
-
}, {
|
|
637
|
-
readonly type: "function";
|
|
638
|
-
readonly name: "getPoolTokens";
|
|
639
|
-
readonly inputs: readonly [{
|
|
640
|
-
readonly name: "poolId";
|
|
641
|
-
readonly type: "bytes32";
|
|
642
|
-
readonly internalType: "bytes32";
|
|
643
|
-
}];
|
|
644
|
-
readonly outputs: readonly [{
|
|
645
|
-
readonly name: "tokens";
|
|
646
|
-
readonly type: "address[]";
|
|
647
|
-
readonly internalType: "contract IERC20[]";
|
|
648
|
-
}, {
|
|
649
|
-
readonly name: "balances";
|
|
650
|
-
readonly type: "uint256[]";
|
|
651
|
-
readonly internalType: "uint256[]";
|
|
652
|
-
}, {
|
|
653
|
-
readonly name: "lastChangeBlock";
|
|
654
|
-
readonly type: "uint256";
|
|
655
|
-
readonly internalType: "uint256";
|
|
656
|
-
}];
|
|
657
|
-
readonly stateMutability: "view";
|
|
658
|
-
}, {
|
|
659
|
-
readonly type: "function";
|
|
660
|
-
readonly name: "joinPool";
|
|
661
|
-
readonly inputs: readonly [{
|
|
662
|
-
readonly name: "poolId";
|
|
663
|
-
readonly type: "bytes32";
|
|
664
|
-
readonly internalType: "bytes32";
|
|
665
|
-
}, {
|
|
666
|
-
readonly name: "sender";
|
|
667
|
-
readonly type: "address";
|
|
668
|
-
readonly internalType: "address";
|
|
669
|
-
}, {
|
|
670
|
-
readonly name: "recipient";
|
|
671
|
-
readonly type: "address";
|
|
672
|
-
readonly internalType: "address";
|
|
673
|
-
}, {
|
|
674
|
-
readonly name: "request";
|
|
675
|
-
readonly type: "tuple";
|
|
676
|
-
readonly internalType: "struct JoinPoolRequest";
|
|
677
|
-
readonly components: readonly [{
|
|
678
|
-
readonly name: "assets";
|
|
679
|
-
readonly type: "address[]";
|
|
680
|
-
readonly internalType: "contract IAsset[]";
|
|
681
|
-
}, {
|
|
682
|
-
readonly name: "maxAmountsIn";
|
|
683
|
-
readonly type: "uint256[]";
|
|
684
|
-
readonly internalType: "uint256[]";
|
|
685
|
-
}, {
|
|
686
|
-
readonly name: "userData";
|
|
687
|
-
readonly type: "bytes";
|
|
688
|
-
readonly internalType: "bytes";
|
|
689
|
-
}, {
|
|
690
|
-
readonly name: "fromInternalBalance";
|
|
691
|
-
readonly type: "bool";
|
|
692
|
-
readonly internalType: "bool";
|
|
693
|
-
}];
|
|
694
|
-
}];
|
|
695
|
-
readonly outputs: readonly [];
|
|
696
|
-
readonly stateMutability: "nonpayable";
|
|
697
|
-
}, {
|
|
698
|
-
readonly type: "function";
|
|
699
|
-
readonly name: "queryBatchSwap";
|
|
700
|
-
readonly inputs: readonly [{
|
|
701
|
-
readonly name: "kind";
|
|
702
|
-
readonly type: "uint8";
|
|
703
|
-
readonly internalType: "enum SwapKind";
|
|
704
|
-
}, {
|
|
705
|
-
readonly name: "swaps";
|
|
706
|
-
readonly type: "tuple[]";
|
|
707
|
-
readonly internalType: "struct BatchSwapStep[]";
|
|
708
|
-
readonly components: readonly [{
|
|
709
|
-
readonly name: "poolId";
|
|
710
|
-
readonly type: "bytes32";
|
|
711
|
-
readonly internalType: "bytes32";
|
|
712
|
-
}, {
|
|
713
|
-
readonly name: "assetInIndex";
|
|
714
|
-
readonly type: "uint256";
|
|
715
|
-
readonly internalType: "uint256";
|
|
716
|
-
}, {
|
|
717
|
-
readonly name: "assetOutIndex";
|
|
718
|
-
readonly type: "uint256";
|
|
719
|
-
readonly internalType: "uint256";
|
|
720
|
-
}, {
|
|
721
|
-
readonly name: "amount";
|
|
722
|
-
readonly type: "uint256";
|
|
723
|
-
readonly internalType: "uint256";
|
|
724
|
-
}, {
|
|
725
|
-
readonly name: "userData";
|
|
726
|
-
readonly type: "bytes";
|
|
727
|
-
readonly internalType: "bytes";
|
|
728
|
-
}];
|
|
729
|
-
}, {
|
|
730
|
-
readonly name: "assets";
|
|
731
|
-
readonly type: "address[]";
|
|
732
|
-
readonly internalType: "contract IAsset[]";
|
|
733
|
-
}, {
|
|
734
|
-
readonly name: "funds";
|
|
735
|
-
readonly type: "tuple";
|
|
736
|
-
readonly internalType: "struct FundManagement";
|
|
737
|
-
readonly components: readonly [{
|
|
738
|
-
readonly name: "sender";
|
|
739
|
-
readonly type: "address";
|
|
740
|
-
readonly internalType: "address";
|
|
741
|
-
}, {
|
|
742
|
-
readonly name: "fromInternalBalance";
|
|
743
|
-
readonly type: "bool";
|
|
744
|
-
readonly internalType: "bool";
|
|
745
|
-
}, {
|
|
746
|
-
readonly name: "recipient";
|
|
747
|
-
readonly type: "address";
|
|
748
|
-
readonly internalType: "address payable";
|
|
749
|
-
}, {
|
|
750
|
-
readonly name: "toInternalBalance";
|
|
751
|
-
readonly type: "bool";
|
|
752
|
-
readonly internalType: "bool";
|
|
753
|
-
}];
|
|
754
|
-
}];
|
|
755
|
-
readonly outputs: readonly [{
|
|
756
|
-
readonly name: "assetDeltas";
|
|
757
|
-
readonly type: "int256[]";
|
|
758
|
-
readonly internalType: "int256[]";
|
|
759
|
-
}];
|
|
760
|
-
readonly stateMutability: "nonpayable";
|
|
761
|
-
}, {
|
|
762
|
-
readonly type: "function";
|
|
763
|
-
readonly name: "swap";
|
|
764
|
-
readonly inputs: readonly [{
|
|
765
|
-
readonly name: "singleSwap";
|
|
766
|
-
readonly type: "tuple";
|
|
767
|
-
readonly internalType: "struct SingleSwap";
|
|
768
|
-
readonly components: readonly [{
|
|
769
|
-
readonly name: "poolId";
|
|
770
|
-
readonly type: "bytes32";
|
|
771
|
-
readonly internalType: "bytes32";
|
|
772
|
-
}, {
|
|
773
|
-
readonly name: "kind";
|
|
774
|
-
readonly type: "uint8";
|
|
775
|
-
readonly internalType: "enum SwapKind";
|
|
776
|
-
}, {
|
|
777
|
-
readonly name: "assetIn";
|
|
778
|
-
readonly type: "address";
|
|
779
|
-
readonly internalType: "contract IAsset";
|
|
780
|
-
}, {
|
|
781
|
-
readonly name: "assetOut";
|
|
782
|
-
readonly type: "address";
|
|
783
|
-
readonly internalType: "contract IAsset";
|
|
784
|
-
}, {
|
|
785
|
-
readonly name: "amount";
|
|
786
|
-
readonly type: "uint256";
|
|
787
|
-
readonly internalType: "uint256";
|
|
788
|
-
}, {
|
|
789
|
-
readonly name: "userData";
|
|
790
|
-
readonly type: "bytes";
|
|
791
|
-
readonly internalType: "bytes";
|
|
792
|
-
}];
|
|
793
|
-
}, {
|
|
794
|
-
readonly name: "funds";
|
|
795
|
-
readonly type: "tuple";
|
|
796
|
-
readonly internalType: "struct FundManagement";
|
|
797
|
-
readonly components: readonly [{
|
|
798
|
-
readonly name: "sender";
|
|
799
|
-
readonly type: "address";
|
|
800
|
-
readonly internalType: "address";
|
|
801
|
-
}, {
|
|
802
|
-
readonly name: "fromInternalBalance";
|
|
803
|
-
readonly type: "bool";
|
|
804
|
-
readonly internalType: "bool";
|
|
805
|
-
}, {
|
|
806
|
-
readonly name: "recipient";
|
|
807
|
-
readonly type: "address";
|
|
808
|
-
readonly internalType: "address payable";
|
|
809
|
-
}, {
|
|
810
|
-
readonly name: "toInternalBalance";
|
|
811
|
-
readonly type: "bool";
|
|
812
|
-
readonly internalType: "bool";
|
|
813
|
-
}];
|
|
814
|
-
}, {
|
|
815
|
-
readonly name: "limit";
|
|
816
|
-
readonly type: "uint256";
|
|
817
|
-
readonly internalType: "uint256";
|
|
818
|
-
}, {
|
|
819
|
-
readonly name: "deadline";
|
|
820
|
-
readonly type: "uint256";
|
|
821
|
-
readonly internalType: "uint256";
|
|
822
|
-
}];
|
|
823
|
-
readonly outputs: readonly [{
|
|
824
|
-
readonly name: "amountCalculated";
|
|
825
|
-
readonly type: "uint256";
|
|
826
|
-
readonly internalType: "uint256";
|
|
827
|
-
}];
|
|
828
|
-
readonly stateMutability: "nonpayable";
|
|
829
|
-
}];
|
|
830
|
-
declare const abi: readonly [{
|
|
831
|
-
readonly type: "function";
|
|
832
|
-
readonly name: "batchSwap";
|
|
833
|
-
readonly inputs: readonly [{
|
|
834
|
-
readonly name: "kind";
|
|
835
|
-
readonly type: "uint8";
|
|
836
|
-
readonly internalType: "enum SwapKind";
|
|
837
|
-
}, {
|
|
838
|
-
readonly name: "swaps";
|
|
839
|
-
readonly type: "tuple[]";
|
|
840
|
-
readonly internalType: "struct BatchSwapStep[]";
|
|
841
|
-
readonly components: readonly [{
|
|
842
|
-
readonly name: "poolId";
|
|
843
|
-
readonly type: "bytes32";
|
|
844
|
-
readonly internalType: "bytes32";
|
|
845
|
-
}, {
|
|
846
|
-
readonly name: "assetInIndex";
|
|
847
|
-
readonly type: "uint256";
|
|
848
|
-
readonly internalType: "uint256";
|
|
849
|
-
}, {
|
|
850
|
-
readonly name: "assetOutIndex";
|
|
851
|
-
readonly type: "uint256";
|
|
852
|
-
readonly internalType: "uint256";
|
|
853
|
-
}, {
|
|
854
|
-
readonly name: "amount";
|
|
855
|
-
readonly type: "uint256";
|
|
856
|
-
readonly internalType: "uint256";
|
|
857
|
-
}, {
|
|
858
|
-
readonly name: "userData";
|
|
859
|
-
readonly type: "bytes";
|
|
860
|
-
readonly internalType: "bytes";
|
|
861
|
-
}];
|
|
862
|
-
}, {
|
|
863
|
-
readonly name: "assets";
|
|
864
|
-
readonly type: "address[]";
|
|
865
|
-
readonly internalType: "contract IAsset[]";
|
|
866
|
-
}, {
|
|
867
|
-
readonly name: "";
|
|
868
|
-
readonly type: "tuple";
|
|
869
|
-
readonly internalType: "struct FundManagement";
|
|
870
|
-
readonly components: readonly [{
|
|
871
|
-
readonly name: "sender";
|
|
872
|
-
readonly type: "address";
|
|
873
|
-
readonly internalType: "address";
|
|
874
|
-
}, {
|
|
875
|
-
readonly name: "fromInternalBalance";
|
|
876
|
-
readonly type: "bool";
|
|
877
|
-
readonly internalType: "bool";
|
|
878
|
-
}, {
|
|
879
|
-
readonly name: "recipient";
|
|
880
|
-
readonly type: "address";
|
|
881
|
-
readonly internalType: "address payable";
|
|
882
|
-
}, {
|
|
883
|
-
readonly name: "toInternalBalance";
|
|
884
|
-
readonly type: "bool";
|
|
885
|
-
readonly internalType: "bool";
|
|
886
|
-
}];
|
|
887
|
-
}, {
|
|
888
|
-
readonly name: "limits";
|
|
889
|
-
readonly type: "int256[]";
|
|
890
|
-
readonly internalType: "int256[]";
|
|
891
|
-
}, {
|
|
892
|
-
readonly name: "deadline";
|
|
893
|
-
readonly type: "uint256";
|
|
894
|
-
readonly internalType: "uint256";
|
|
895
|
-
}];
|
|
896
|
-
readonly outputs: readonly [{
|
|
897
|
-
readonly name: "useSafePrices";
|
|
898
|
-
readonly type: "bool";
|
|
899
|
-
readonly internalType: "bool";
|
|
900
|
-
}];
|
|
901
|
-
readonly stateMutability: "nonpayable";
|
|
902
|
-
}, {
|
|
903
|
-
readonly type: "function";
|
|
904
|
-
readonly name: "contractType";
|
|
905
|
-
readonly inputs: readonly [];
|
|
906
|
-
readonly outputs: readonly [{
|
|
907
|
-
readonly name: "";
|
|
908
|
-
readonly type: "bytes32";
|
|
909
|
-
readonly internalType: "bytes32";
|
|
910
|
-
}];
|
|
911
|
-
readonly stateMutability: "view";
|
|
912
|
-
}, {
|
|
913
|
-
readonly type: "function";
|
|
914
|
-
readonly name: "creditManager";
|
|
915
|
-
readonly inputs: readonly [];
|
|
916
|
-
readonly outputs: readonly [{
|
|
917
|
-
readonly name: "";
|
|
918
|
-
readonly type: "address";
|
|
919
|
-
readonly internalType: "address";
|
|
920
|
-
}];
|
|
921
|
-
readonly stateMutability: "view";
|
|
922
|
-
}, {
|
|
923
|
-
readonly type: "function";
|
|
924
|
-
readonly name: "exitPool";
|
|
925
|
-
readonly inputs: readonly [{
|
|
926
|
-
readonly name: "poolId";
|
|
927
|
-
readonly type: "bytes32";
|
|
928
|
-
readonly internalType: "bytes32";
|
|
929
|
-
}, {
|
|
930
|
-
readonly name: "";
|
|
931
|
-
readonly type: "address";
|
|
932
|
-
readonly internalType: "address";
|
|
933
|
-
}, {
|
|
934
|
-
readonly name: "";
|
|
935
|
-
readonly type: "address";
|
|
936
|
-
readonly internalType: "address payable";
|
|
937
|
-
}, {
|
|
938
|
-
readonly name: "request";
|
|
939
|
-
readonly type: "tuple";
|
|
940
|
-
readonly internalType: "struct ExitPoolRequest";
|
|
941
|
-
readonly components: readonly [{
|
|
942
|
-
readonly name: "assets";
|
|
943
|
-
readonly type: "address[]";
|
|
944
|
-
readonly internalType: "contract IAsset[]";
|
|
945
|
-
}, {
|
|
946
|
-
readonly name: "minAmountsOut";
|
|
947
|
-
readonly type: "uint256[]";
|
|
948
|
-
readonly internalType: "uint256[]";
|
|
949
|
-
}, {
|
|
950
|
-
readonly name: "userData";
|
|
951
|
-
readonly type: "bytes";
|
|
952
|
-
readonly internalType: "bytes";
|
|
953
|
-
}, {
|
|
954
|
-
readonly name: "toInternalBalance";
|
|
955
|
-
readonly type: "bool";
|
|
956
|
-
readonly internalType: "bool";
|
|
957
|
-
}];
|
|
958
|
-
}];
|
|
959
|
-
readonly outputs: readonly [{
|
|
960
|
-
readonly name: "useSafePrices";
|
|
961
|
-
readonly type: "bool";
|
|
962
|
-
readonly internalType: "bool";
|
|
963
|
-
}];
|
|
964
|
-
readonly stateMutability: "nonpayable";
|
|
965
|
-
}, {
|
|
966
|
-
readonly type: "function";
|
|
967
|
-
readonly name: "exitPoolSingleAsset";
|
|
968
|
-
readonly inputs: readonly [{
|
|
969
|
-
readonly name: "poolId";
|
|
970
|
-
readonly type: "bytes32";
|
|
971
|
-
readonly internalType: "bytes32";
|
|
972
|
-
}, {
|
|
973
|
-
readonly name: "assetOut";
|
|
974
|
-
readonly type: "address";
|
|
975
|
-
readonly internalType: "contract IAsset";
|
|
976
|
-
}, {
|
|
977
|
-
readonly name: "amountIn";
|
|
978
|
-
readonly type: "uint256";
|
|
979
|
-
readonly internalType: "uint256";
|
|
980
|
-
}, {
|
|
981
|
-
readonly name: "minAmountOut";
|
|
982
|
-
readonly type: "uint256";
|
|
983
|
-
readonly internalType: "uint256";
|
|
984
|
-
}];
|
|
985
|
-
readonly outputs: readonly [{
|
|
986
|
-
readonly name: "useSafePrices";
|
|
987
|
-
readonly type: "bool";
|
|
988
|
-
readonly internalType: "bool";
|
|
989
|
-
}];
|
|
990
|
-
readonly stateMutability: "nonpayable";
|
|
991
|
-
}, {
|
|
992
|
-
readonly type: "function";
|
|
993
|
-
readonly name: "exitPoolSingleAssetDiff";
|
|
994
|
-
readonly inputs: readonly [{
|
|
995
|
-
readonly name: "poolId";
|
|
996
|
-
readonly type: "bytes32";
|
|
997
|
-
readonly internalType: "bytes32";
|
|
998
|
-
}, {
|
|
999
|
-
readonly name: "assetOut";
|
|
1000
|
-
readonly type: "address";
|
|
1001
|
-
readonly internalType: "contract IAsset";
|
|
1002
|
-
}, {
|
|
1003
|
-
readonly name: "leftoverAmount";
|
|
1004
|
-
readonly type: "uint256";
|
|
1005
|
-
readonly internalType: "uint256";
|
|
1006
|
-
}, {
|
|
1007
|
-
readonly name: "minRateRAY";
|
|
1008
|
-
readonly type: "uint256";
|
|
1009
|
-
readonly internalType: "uint256";
|
|
1010
|
-
}];
|
|
1011
|
-
readonly outputs: readonly [{
|
|
1012
|
-
readonly name: "useSafePrices";
|
|
1013
|
-
readonly type: "bool";
|
|
1014
|
-
readonly internalType: "bool";
|
|
1015
|
-
}];
|
|
1016
|
-
readonly stateMutability: "nonpayable";
|
|
1017
|
-
}, {
|
|
1018
|
-
readonly type: "function";
|
|
1019
|
-
readonly name: "joinPool";
|
|
1020
|
-
readonly inputs: readonly [{
|
|
1021
|
-
readonly name: "poolId";
|
|
1022
|
-
readonly type: "bytes32";
|
|
1023
|
-
readonly internalType: "bytes32";
|
|
1024
|
-
}, {
|
|
1025
|
-
readonly name: "";
|
|
1026
|
-
readonly type: "address";
|
|
1027
|
-
readonly internalType: "address";
|
|
1028
|
-
}, {
|
|
1029
|
-
readonly name: "";
|
|
1030
|
-
readonly type: "address";
|
|
1031
|
-
readonly internalType: "address";
|
|
1032
|
-
}, {
|
|
1033
|
-
readonly name: "request";
|
|
1034
|
-
readonly type: "tuple";
|
|
1035
|
-
readonly internalType: "struct JoinPoolRequest";
|
|
1036
|
-
readonly components: readonly [{
|
|
1037
|
-
readonly name: "assets";
|
|
1038
|
-
readonly type: "address[]";
|
|
1039
|
-
readonly internalType: "contract IAsset[]";
|
|
1040
|
-
}, {
|
|
1041
|
-
readonly name: "maxAmountsIn";
|
|
1042
|
-
readonly type: "uint256[]";
|
|
1043
|
-
readonly internalType: "uint256[]";
|
|
1044
|
-
}, {
|
|
1045
|
-
readonly name: "userData";
|
|
1046
|
-
readonly type: "bytes";
|
|
1047
|
-
readonly internalType: "bytes";
|
|
1048
|
-
}, {
|
|
1049
|
-
readonly name: "fromInternalBalance";
|
|
1050
|
-
readonly type: "bool";
|
|
1051
|
-
readonly internalType: "bool";
|
|
1052
|
-
}];
|
|
1053
|
-
}];
|
|
1054
|
-
readonly outputs: readonly [{
|
|
1055
|
-
readonly name: "useSafePrices";
|
|
1056
|
-
readonly type: "bool";
|
|
1057
|
-
readonly internalType: "bool";
|
|
1058
|
-
}];
|
|
1059
|
-
readonly stateMutability: "nonpayable";
|
|
1060
|
-
}, {
|
|
1061
|
-
readonly type: "function";
|
|
1062
|
-
readonly name: "joinPoolSingleAsset";
|
|
1063
|
-
readonly inputs: readonly [{
|
|
1064
|
-
readonly name: "poolId";
|
|
1065
|
-
readonly type: "bytes32";
|
|
1066
|
-
readonly internalType: "bytes32";
|
|
1067
|
-
}, {
|
|
1068
|
-
readonly name: "assetIn";
|
|
1069
|
-
readonly type: "address";
|
|
1070
|
-
readonly internalType: "contract IAsset";
|
|
1071
|
-
}, {
|
|
1072
|
-
readonly name: "amountIn";
|
|
1073
|
-
readonly type: "uint256";
|
|
1074
|
-
readonly internalType: "uint256";
|
|
1075
|
-
}, {
|
|
1076
|
-
readonly name: "minAmountOut";
|
|
1077
|
-
readonly type: "uint256";
|
|
1078
|
-
readonly internalType: "uint256";
|
|
1079
|
-
}];
|
|
1080
|
-
readonly outputs: readonly [{
|
|
1081
|
-
readonly name: "useSafePrices";
|
|
1082
|
-
readonly type: "bool";
|
|
1083
|
-
readonly internalType: "bool";
|
|
1084
|
-
}];
|
|
1085
|
-
readonly stateMutability: "nonpayable";
|
|
1086
|
-
}, {
|
|
1087
|
-
readonly type: "function";
|
|
1088
|
-
readonly name: "joinPoolSingleAssetDiff";
|
|
1089
|
-
readonly inputs: readonly [{
|
|
1090
|
-
readonly name: "poolId";
|
|
1091
|
-
readonly type: "bytes32";
|
|
1092
|
-
readonly internalType: "bytes32";
|
|
1093
|
-
}, {
|
|
1094
|
-
readonly name: "assetIn";
|
|
1095
|
-
readonly type: "address";
|
|
1096
|
-
readonly internalType: "contract IAsset";
|
|
1097
|
-
}, {
|
|
1098
|
-
readonly name: "leftoverAmount";
|
|
1099
|
-
readonly type: "uint256";
|
|
1100
|
-
readonly internalType: "uint256";
|
|
1101
|
-
}, {
|
|
1102
|
-
readonly name: "minRateRAY";
|
|
1103
|
-
readonly type: "uint256";
|
|
1104
|
-
readonly internalType: "uint256";
|
|
1105
|
-
}];
|
|
1106
|
-
readonly outputs: readonly [{
|
|
1107
|
-
readonly name: "useSafePrices";
|
|
1108
|
-
readonly type: "bool";
|
|
1109
|
-
readonly internalType: "bool";
|
|
1110
|
-
}];
|
|
1111
|
-
readonly stateMutability: "nonpayable";
|
|
1112
|
-
}, {
|
|
1113
|
-
readonly type: "function";
|
|
1114
|
-
readonly name: "poolStatus";
|
|
1115
|
-
readonly inputs: readonly [{
|
|
1116
|
-
readonly name: "poolId";
|
|
1117
|
-
readonly type: "bytes32";
|
|
1118
|
-
readonly internalType: "bytes32";
|
|
1119
|
-
}];
|
|
1120
|
-
readonly outputs: readonly [{
|
|
1121
|
-
readonly name: "";
|
|
1122
|
-
readonly type: "uint8";
|
|
1123
|
-
readonly internalType: "enum PoolStatus";
|
|
1124
|
-
}];
|
|
1125
|
-
readonly stateMutability: "view";
|
|
1126
|
-
}, {
|
|
1127
|
-
readonly type: "function";
|
|
1128
|
-
readonly name: "serialize";
|
|
1129
|
-
readonly inputs: readonly [];
|
|
1130
|
-
readonly outputs: readonly [{
|
|
1131
|
-
readonly name: "serializedData";
|
|
1132
|
-
readonly type: "bytes";
|
|
1133
|
-
readonly internalType: "bytes";
|
|
1134
|
-
}];
|
|
1135
|
-
readonly stateMutability: "view";
|
|
1136
|
-
}, {
|
|
1137
|
-
readonly type: "function";
|
|
1138
|
-
readonly name: "setPoolStatus";
|
|
1139
|
-
readonly inputs: readonly [{
|
|
1140
|
-
readonly name: "poolId";
|
|
1141
|
-
readonly type: "bytes32";
|
|
1142
|
-
readonly internalType: "bytes32";
|
|
1143
|
-
}, {
|
|
1144
|
-
readonly name: "newStatus";
|
|
1145
|
-
readonly type: "uint8";
|
|
1146
|
-
readonly internalType: "enum PoolStatus";
|
|
1147
|
-
}];
|
|
1148
|
-
readonly outputs: readonly [];
|
|
1149
|
-
readonly stateMutability: "nonpayable";
|
|
1150
|
-
}, {
|
|
1151
|
-
readonly type: "function";
|
|
1152
|
-
readonly name: "swap";
|
|
1153
|
-
readonly inputs: readonly [{
|
|
1154
|
-
readonly name: "singleSwap";
|
|
1155
|
-
readonly type: "tuple";
|
|
1156
|
-
readonly internalType: "struct SingleSwap";
|
|
1157
|
-
readonly components: readonly [{
|
|
1158
|
-
readonly name: "poolId";
|
|
1159
|
-
readonly type: "bytes32";
|
|
1160
|
-
readonly internalType: "bytes32";
|
|
1161
|
-
}, {
|
|
1162
|
-
readonly name: "kind";
|
|
1163
|
-
readonly type: "uint8";
|
|
1164
|
-
readonly internalType: "enum SwapKind";
|
|
1165
|
-
}, {
|
|
1166
|
-
readonly name: "assetIn";
|
|
1167
|
-
readonly type: "address";
|
|
1168
|
-
readonly internalType: "contract IAsset";
|
|
1169
|
-
}, {
|
|
1170
|
-
readonly name: "assetOut";
|
|
1171
|
-
readonly type: "address";
|
|
1172
|
-
readonly internalType: "contract IAsset";
|
|
1173
|
-
}, {
|
|
1174
|
-
readonly name: "amount";
|
|
1175
|
-
readonly type: "uint256";
|
|
1176
|
-
readonly internalType: "uint256";
|
|
1177
|
-
}, {
|
|
1178
|
-
readonly name: "userData";
|
|
1179
|
-
readonly type: "bytes";
|
|
1180
|
-
readonly internalType: "bytes";
|
|
1181
|
-
}];
|
|
1182
|
-
}, {
|
|
1183
|
-
readonly name: "";
|
|
1184
|
-
readonly type: "tuple";
|
|
1185
|
-
readonly internalType: "struct FundManagement";
|
|
1186
|
-
readonly components: readonly [{
|
|
1187
|
-
readonly name: "sender";
|
|
1188
|
-
readonly type: "address";
|
|
1189
|
-
readonly internalType: "address";
|
|
1190
|
-
}, {
|
|
1191
|
-
readonly name: "fromInternalBalance";
|
|
1192
|
-
readonly type: "bool";
|
|
1193
|
-
readonly internalType: "bool";
|
|
1194
|
-
}, {
|
|
1195
|
-
readonly name: "recipient";
|
|
1196
|
-
readonly type: "address";
|
|
1197
|
-
readonly internalType: "address payable";
|
|
1198
|
-
}, {
|
|
1199
|
-
readonly name: "toInternalBalance";
|
|
1200
|
-
readonly type: "bool";
|
|
1201
|
-
readonly internalType: "bool";
|
|
1202
|
-
}];
|
|
1203
|
-
}, {
|
|
1204
|
-
readonly name: "limit";
|
|
1205
|
-
readonly type: "uint256";
|
|
1206
|
-
readonly internalType: "uint256";
|
|
1207
|
-
}, {
|
|
1208
|
-
readonly name: "deadline";
|
|
1209
|
-
readonly type: "uint256";
|
|
1210
|
-
readonly internalType: "uint256";
|
|
1211
|
-
}];
|
|
1212
|
-
readonly outputs: readonly [{
|
|
1213
|
-
readonly name: "useSafePrices";
|
|
1214
|
-
readonly type: "bool";
|
|
1215
|
-
readonly internalType: "bool";
|
|
1216
|
-
}];
|
|
1217
|
-
readonly stateMutability: "nonpayable";
|
|
1218
|
-
}, {
|
|
1219
|
-
readonly type: "function";
|
|
1220
|
-
readonly name: "swapDiff";
|
|
1221
|
-
readonly inputs: readonly [{
|
|
1222
|
-
readonly name: "singleSwapDiff";
|
|
1223
|
-
readonly type: "tuple";
|
|
1224
|
-
readonly internalType: "struct SingleSwapDiff";
|
|
1225
|
-
readonly components: readonly [{
|
|
1226
|
-
readonly name: "poolId";
|
|
1227
|
-
readonly type: "bytes32";
|
|
1228
|
-
readonly internalType: "bytes32";
|
|
1229
|
-
}, {
|
|
1230
|
-
readonly name: "leftoverAmount";
|
|
1231
|
-
readonly type: "uint256";
|
|
1232
|
-
readonly internalType: "uint256";
|
|
1233
|
-
}, {
|
|
1234
|
-
readonly name: "assetIn";
|
|
1235
|
-
readonly type: "address";
|
|
1236
|
-
readonly internalType: "contract IAsset";
|
|
1237
|
-
}, {
|
|
1238
|
-
readonly name: "assetOut";
|
|
1239
|
-
readonly type: "address";
|
|
1240
|
-
readonly internalType: "contract IAsset";
|
|
1241
|
-
}, {
|
|
1242
|
-
readonly name: "userData";
|
|
1243
|
-
readonly type: "bytes";
|
|
1244
|
-
readonly internalType: "bytes";
|
|
1245
|
-
}];
|
|
1246
|
-
}, {
|
|
1247
|
-
readonly name: "limitRateRAY";
|
|
1248
|
-
readonly type: "uint256";
|
|
1249
|
-
readonly internalType: "uint256";
|
|
1250
|
-
}, {
|
|
1251
|
-
readonly name: "deadline";
|
|
1252
|
-
readonly type: "uint256";
|
|
1253
|
-
readonly internalType: "uint256";
|
|
1254
|
-
}];
|
|
1255
|
-
readonly outputs: readonly [{
|
|
1256
|
-
readonly name: "useSafePrices";
|
|
1257
|
-
readonly type: "bool";
|
|
1258
|
-
readonly internalType: "bool";
|
|
1259
|
-
}];
|
|
1260
|
-
readonly stateMutability: "nonpayable";
|
|
1261
|
-
}, {
|
|
1262
|
-
readonly type: "function";
|
|
1263
|
-
readonly name: "targetContract";
|
|
1264
|
-
readonly inputs: readonly [];
|
|
1265
|
-
readonly outputs: readonly [{
|
|
1266
|
-
readonly name: "";
|
|
1267
|
-
readonly type: "address";
|
|
1268
|
-
readonly internalType: "address";
|
|
1269
|
-
}];
|
|
1270
|
-
readonly stateMutability: "view";
|
|
1271
|
-
}, {
|
|
1272
|
-
readonly type: "function";
|
|
1273
|
-
readonly name: "version";
|
|
1274
|
-
readonly inputs: readonly [];
|
|
1275
|
-
readonly outputs: readonly [{
|
|
1276
|
-
readonly name: "";
|
|
1277
|
-
readonly type: "uint256";
|
|
1278
|
-
readonly internalType: "uint256";
|
|
1279
|
-
}];
|
|
1280
|
-
readonly stateMutability: "view";
|
|
1281
|
-
}, {
|
|
1282
|
-
readonly type: "event";
|
|
1283
|
-
readonly name: "SetPoolStatus";
|
|
1284
|
-
readonly inputs: readonly [{
|
|
1285
|
-
readonly name: "poolId";
|
|
1286
|
-
readonly type: "bytes32";
|
|
1287
|
-
readonly indexed: true;
|
|
1288
|
-
readonly internalType: "bytes32";
|
|
1289
|
-
}, {
|
|
1290
|
-
readonly name: "newStatus";
|
|
1291
|
-
readonly type: "uint8";
|
|
1292
|
-
readonly indexed: false;
|
|
1293
|
-
readonly internalType: "enum PoolStatus";
|
|
1294
|
-
}];
|
|
1295
|
-
readonly anonymous: false;
|
|
1296
|
-
}, {
|
|
1297
|
-
readonly type: "error";
|
|
1298
|
-
readonly name: "PoolNotSupportedException";
|
|
1299
|
-
readonly inputs: readonly [];
|
|
1300
|
-
}];
|
|
1301
|
-
type abi = typeof abi;
|
|
1302
|
-
declare const protocolAbi: readonly [{
|
|
1303
|
-
readonly type: "function";
|
|
1304
|
-
readonly name: "batchSwap";
|
|
1305
|
-
readonly inputs: readonly [{
|
|
1306
|
-
readonly name: "kind";
|
|
1307
|
-
readonly type: "uint8";
|
|
1308
|
-
readonly internalType: "enum SwapKind";
|
|
1309
|
-
}, {
|
|
1310
|
-
readonly name: "swaps";
|
|
1311
|
-
readonly type: "tuple[]";
|
|
1312
|
-
readonly internalType: "struct BatchSwapStep[]";
|
|
1313
|
-
readonly components: readonly [{
|
|
1314
|
-
readonly name: "poolId";
|
|
1315
|
-
readonly type: "bytes32";
|
|
1316
|
-
readonly internalType: "bytes32";
|
|
1317
|
-
}, {
|
|
1318
|
-
readonly name: "assetInIndex";
|
|
1319
|
-
readonly type: "uint256";
|
|
1320
|
-
readonly internalType: "uint256";
|
|
1321
|
-
}, {
|
|
1322
|
-
readonly name: "assetOutIndex";
|
|
1323
|
-
readonly type: "uint256";
|
|
1324
|
-
readonly internalType: "uint256";
|
|
1325
|
-
}, {
|
|
1326
|
-
readonly name: "amount";
|
|
1327
|
-
readonly type: "uint256";
|
|
1328
|
-
readonly internalType: "uint256";
|
|
1329
|
-
}, {
|
|
1330
|
-
readonly name: "userData";
|
|
1331
|
-
readonly type: "bytes";
|
|
1332
|
-
readonly internalType: "bytes";
|
|
1333
|
-
}];
|
|
1334
|
-
}, {
|
|
1335
|
-
readonly name: "assets";
|
|
1336
|
-
readonly type: "address[]";
|
|
1337
|
-
readonly internalType: "contract IAsset[]";
|
|
1338
|
-
}, {
|
|
1339
|
-
readonly name: "funds";
|
|
1340
|
-
readonly type: "tuple";
|
|
1341
|
-
readonly internalType: "struct FundManagement";
|
|
1342
|
-
readonly components: readonly [{
|
|
1343
|
-
readonly name: "sender";
|
|
1344
|
-
readonly type: "address";
|
|
1345
|
-
readonly internalType: "address";
|
|
1346
|
-
}, {
|
|
1347
|
-
readonly name: "fromInternalBalance";
|
|
1348
|
-
readonly type: "bool";
|
|
1349
|
-
readonly internalType: "bool";
|
|
1350
|
-
}, {
|
|
1351
|
-
readonly name: "recipient";
|
|
1352
|
-
readonly type: "address";
|
|
1353
|
-
readonly internalType: "address payable";
|
|
1354
|
-
}, {
|
|
1355
|
-
readonly name: "toInternalBalance";
|
|
1356
|
-
readonly type: "bool";
|
|
1357
|
-
readonly internalType: "bool";
|
|
1358
|
-
}];
|
|
1359
|
-
}, {
|
|
1360
|
-
readonly name: "limits";
|
|
1361
|
-
readonly type: "int256[]";
|
|
1362
|
-
readonly internalType: "int256[]";
|
|
1363
|
-
}, {
|
|
1364
|
-
readonly name: "deadline";
|
|
1365
|
-
readonly type: "uint256";
|
|
1366
|
-
readonly internalType: "uint256";
|
|
1367
|
-
}];
|
|
1368
|
-
readonly outputs: readonly [{
|
|
1369
|
-
readonly name: "assetDeltas";
|
|
1370
|
-
readonly type: "int256[]";
|
|
1371
|
-
readonly internalType: "int256[]";
|
|
1372
|
-
}];
|
|
1373
|
-
readonly stateMutability: "nonpayable";
|
|
1374
|
-
}, {
|
|
1375
|
-
readonly type: "function";
|
|
1376
|
-
readonly name: "exitPool";
|
|
1377
|
-
readonly inputs: readonly [{
|
|
1378
|
-
readonly name: "poolId";
|
|
1379
|
-
readonly type: "bytes32";
|
|
1380
|
-
readonly internalType: "bytes32";
|
|
1381
|
-
}, {
|
|
1382
|
-
readonly name: "sender";
|
|
1383
|
-
readonly type: "address";
|
|
1384
|
-
readonly internalType: "address";
|
|
1385
|
-
}, {
|
|
1386
|
-
readonly name: "recipient";
|
|
1387
|
-
readonly type: "address";
|
|
1388
|
-
readonly internalType: "address payable";
|
|
1389
|
-
}, {
|
|
1390
|
-
readonly name: "request";
|
|
1391
|
-
readonly type: "tuple";
|
|
1392
|
-
readonly internalType: "struct ExitPoolRequest";
|
|
1393
|
-
readonly components: readonly [{
|
|
1394
|
-
readonly name: "assets";
|
|
1395
|
-
readonly type: "address[]";
|
|
1396
|
-
readonly internalType: "contract IAsset[]";
|
|
1397
|
-
}, {
|
|
1398
|
-
readonly name: "minAmountsOut";
|
|
1399
|
-
readonly type: "uint256[]";
|
|
1400
|
-
readonly internalType: "uint256[]";
|
|
1401
|
-
}, {
|
|
1402
|
-
readonly name: "userData";
|
|
1403
|
-
readonly type: "bytes";
|
|
1404
|
-
readonly internalType: "bytes";
|
|
1405
|
-
}, {
|
|
1406
|
-
readonly name: "toInternalBalance";
|
|
1407
|
-
readonly type: "bool";
|
|
1408
|
-
readonly internalType: "bool";
|
|
1409
|
-
}];
|
|
1410
|
-
}];
|
|
1411
|
-
readonly outputs: readonly [];
|
|
1412
|
-
readonly stateMutability: "nonpayable";
|
|
1413
|
-
}, {
|
|
1414
|
-
readonly type: "function";
|
|
1415
|
-
readonly name: "getPool";
|
|
1416
|
-
readonly inputs: readonly [{
|
|
1417
|
-
readonly name: "poolId";
|
|
1418
|
-
readonly type: "bytes32";
|
|
1419
|
-
readonly internalType: "bytes32";
|
|
1420
|
-
}];
|
|
1421
|
-
readonly outputs: readonly [{
|
|
1422
|
-
readonly name: "";
|
|
1423
|
-
readonly type: "address";
|
|
1424
|
-
readonly internalType: "address";
|
|
1425
|
-
}, {
|
|
1426
|
-
readonly name: "";
|
|
1427
|
-
readonly type: "uint8";
|
|
1428
|
-
readonly internalType: "enum PoolSpecialization";
|
|
1429
|
-
}];
|
|
1430
|
-
readonly stateMutability: "view";
|
|
1431
|
-
}, {
|
|
1432
|
-
readonly type: "function";
|
|
1433
|
-
readonly name: "getPoolTokenInfo";
|
|
1434
|
-
readonly inputs: readonly [{
|
|
1435
|
-
readonly name: "poolId";
|
|
1436
|
-
readonly type: "bytes32";
|
|
1437
|
-
readonly internalType: "bytes32";
|
|
1438
|
-
}, {
|
|
1439
|
-
readonly name: "token";
|
|
1440
|
-
readonly type: "address";
|
|
1441
|
-
readonly internalType: "contract IERC20";
|
|
1442
|
-
}];
|
|
1443
|
-
readonly outputs: readonly [{
|
|
1444
|
-
readonly name: "cash";
|
|
1445
|
-
readonly type: "uint256";
|
|
1446
|
-
readonly internalType: "uint256";
|
|
1447
|
-
}, {
|
|
1448
|
-
readonly name: "managed";
|
|
1449
|
-
readonly type: "uint256";
|
|
1450
|
-
readonly internalType: "uint256";
|
|
1451
|
-
}, {
|
|
1452
|
-
readonly name: "lastChangeBlock";
|
|
1453
|
-
readonly type: "uint256";
|
|
1454
|
-
readonly internalType: "uint256";
|
|
1455
|
-
}, {
|
|
1456
|
-
readonly name: "assetManager";
|
|
1457
|
-
readonly type: "address";
|
|
1458
|
-
readonly internalType: "address";
|
|
1459
|
-
}];
|
|
1460
|
-
readonly stateMutability: "view";
|
|
1461
|
-
}, {
|
|
1462
|
-
readonly type: "function";
|
|
1463
|
-
readonly name: "getPoolTokens";
|
|
1464
|
-
readonly inputs: readonly [{
|
|
1465
|
-
readonly name: "poolId";
|
|
1466
|
-
readonly type: "bytes32";
|
|
1467
|
-
readonly internalType: "bytes32";
|
|
1468
|
-
}];
|
|
1469
|
-
readonly outputs: readonly [{
|
|
1470
|
-
readonly name: "tokens";
|
|
1471
|
-
readonly type: "address[]";
|
|
1472
|
-
readonly internalType: "contract IERC20[]";
|
|
1473
|
-
}, {
|
|
1474
|
-
readonly name: "balances";
|
|
1475
|
-
readonly type: "uint256[]";
|
|
1476
|
-
readonly internalType: "uint256[]";
|
|
1477
|
-
}, {
|
|
1478
|
-
readonly name: "lastChangeBlock";
|
|
1479
|
-
readonly type: "uint256";
|
|
1480
|
-
readonly internalType: "uint256";
|
|
1481
|
-
}];
|
|
1482
|
-
readonly stateMutability: "view";
|
|
1483
|
-
}, {
|
|
1484
|
-
readonly type: "function";
|
|
1485
|
-
readonly name: "joinPool";
|
|
1486
|
-
readonly inputs: readonly [{
|
|
1487
|
-
readonly name: "poolId";
|
|
1488
|
-
readonly type: "bytes32";
|
|
1489
|
-
readonly internalType: "bytes32";
|
|
1490
|
-
}, {
|
|
1491
|
-
readonly name: "sender";
|
|
1492
|
-
readonly type: "address";
|
|
1493
|
-
readonly internalType: "address";
|
|
1494
|
-
}, {
|
|
1495
|
-
readonly name: "recipient";
|
|
1496
|
-
readonly type: "address";
|
|
1497
|
-
readonly internalType: "address";
|
|
1498
|
-
}, {
|
|
1499
|
-
readonly name: "request";
|
|
1500
|
-
readonly type: "tuple";
|
|
1501
|
-
readonly internalType: "struct JoinPoolRequest";
|
|
1502
|
-
readonly components: readonly [{
|
|
1503
|
-
readonly name: "assets";
|
|
1504
|
-
readonly type: "address[]";
|
|
1505
|
-
readonly internalType: "contract IAsset[]";
|
|
1506
|
-
}, {
|
|
1507
|
-
readonly name: "maxAmountsIn";
|
|
1508
|
-
readonly type: "uint256[]";
|
|
1509
|
-
readonly internalType: "uint256[]";
|
|
1510
|
-
}, {
|
|
1511
|
-
readonly name: "userData";
|
|
1512
|
-
readonly type: "bytes";
|
|
1513
|
-
readonly internalType: "bytes";
|
|
1514
|
-
}, {
|
|
1515
|
-
readonly name: "fromInternalBalance";
|
|
1516
|
-
readonly type: "bool";
|
|
1517
|
-
readonly internalType: "bool";
|
|
1518
|
-
}];
|
|
1519
|
-
}];
|
|
1520
|
-
readonly outputs: readonly [];
|
|
1521
|
-
readonly stateMutability: "nonpayable";
|
|
1522
|
-
}, {
|
|
1523
|
-
readonly type: "function";
|
|
1524
|
-
readonly name: "queryBatchSwap";
|
|
1525
|
-
readonly inputs: readonly [{
|
|
1526
|
-
readonly name: "kind";
|
|
1527
|
-
readonly type: "uint8";
|
|
1528
|
-
readonly internalType: "enum SwapKind";
|
|
1529
|
-
}, {
|
|
1530
|
-
readonly name: "swaps";
|
|
1531
|
-
readonly type: "tuple[]";
|
|
1532
|
-
readonly internalType: "struct BatchSwapStep[]";
|
|
1533
|
-
readonly components: readonly [{
|
|
1534
|
-
readonly name: "poolId";
|
|
1535
|
-
readonly type: "bytes32";
|
|
1536
|
-
readonly internalType: "bytes32";
|
|
1537
|
-
}, {
|
|
1538
|
-
readonly name: "assetInIndex";
|
|
1539
|
-
readonly type: "uint256";
|
|
1540
|
-
readonly internalType: "uint256";
|
|
1541
|
-
}, {
|
|
1542
|
-
readonly name: "assetOutIndex";
|
|
1543
|
-
readonly type: "uint256";
|
|
1544
|
-
readonly internalType: "uint256";
|
|
1545
|
-
}, {
|
|
1546
|
-
readonly name: "amount";
|
|
1547
|
-
readonly type: "uint256";
|
|
1548
|
-
readonly internalType: "uint256";
|
|
1549
|
-
}, {
|
|
1550
|
-
readonly name: "userData";
|
|
1551
|
-
readonly type: "bytes";
|
|
1552
|
-
readonly internalType: "bytes";
|
|
1553
|
-
}];
|
|
1554
|
-
}, {
|
|
1555
|
-
readonly name: "assets";
|
|
1556
|
-
readonly type: "address[]";
|
|
1557
|
-
readonly internalType: "contract IAsset[]";
|
|
1558
|
-
}, {
|
|
1559
|
-
readonly name: "funds";
|
|
1560
|
-
readonly type: "tuple";
|
|
1561
|
-
readonly internalType: "struct FundManagement";
|
|
1562
|
-
readonly components: readonly [{
|
|
1563
|
-
readonly name: "sender";
|
|
1564
|
-
readonly type: "address";
|
|
1565
|
-
readonly internalType: "address";
|
|
1566
|
-
}, {
|
|
1567
|
-
readonly name: "fromInternalBalance";
|
|
1568
|
-
readonly type: "bool";
|
|
1569
|
-
readonly internalType: "bool";
|
|
1570
|
-
}, {
|
|
1571
|
-
readonly name: "recipient";
|
|
1572
|
-
readonly type: "address";
|
|
1573
|
-
readonly internalType: "address payable";
|
|
1574
|
-
}, {
|
|
1575
|
-
readonly name: "toInternalBalance";
|
|
1576
|
-
readonly type: "bool";
|
|
1577
|
-
readonly internalType: "bool";
|
|
1578
|
-
}];
|
|
1579
|
-
}];
|
|
1580
|
-
readonly outputs: readonly [{
|
|
1581
|
-
readonly name: "assetDeltas";
|
|
1582
|
-
readonly type: "int256[]";
|
|
1583
|
-
readonly internalType: "int256[]";
|
|
1584
|
-
}];
|
|
1585
|
-
readonly stateMutability: "nonpayable";
|
|
1586
|
-
}, {
|
|
1587
|
-
readonly type: "function";
|
|
1588
|
-
readonly name: "swap";
|
|
1589
|
-
readonly inputs: readonly [{
|
|
1590
|
-
readonly name: "singleSwap";
|
|
1591
|
-
readonly type: "tuple";
|
|
1592
|
-
readonly internalType: "struct SingleSwap";
|
|
1593
|
-
readonly components: readonly [{
|
|
1594
|
-
readonly name: "poolId";
|
|
1595
|
-
readonly type: "bytes32";
|
|
1596
|
-
readonly internalType: "bytes32";
|
|
1597
|
-
}, {
|
|
1598
|
-
readonly name: "kind";
|
|
1599
|
-
readonly type: "uint8";
|
|
1600
|
-
readonly internalType: "enum SwapKind";
|
|
1601
|
-
}, {
|
|
1602
|
-
readonly name: "assetIn";
|
|
1603
|
-
readonly type: "address";
|
|
1604
|
-
readonly internalType: "contract IAsset";
|
|
1605
|
-
}, {
|
|
1606
|
-
readonly name: "assetOut";
|
|
1607
|
-
readonly type: "address";
|
|
1608
|
-
readonly internalType: "contract IAsset";
|
|
1609
|
-
}, {
|
|
1610
|
-
readonly name: "amount";
|
|
1611
|
-
readonly type: "uint256";
|
|
1612
|
-
readonly internalType: "uint256";
|
|
1613
|
-
}, {
|
|
1614
|
-
readonly name: "userData";
|
|
1615
|
-
readonly type: "bytes";
|
|
1616
|
-
readonly internalType: "bytes";
|
|
1617
|
-
}];
|
|
1618
|
-
}, {
|
|
1619
|
-
readonly name: "funds";
|
|
1620
|
-
readonly type: "tuple";
|
|
1621
|
-
readonly internalType: "struct FundManagement";
|
|
1622
|
-
readonly components: readonly [{
|
|
1623
|
-
readonly name: "sender";
|
|
1624
|
-
readonly type: "address";
|
|
1625
|
-
readonly internalType: "address";
|
|
1626
|
-
}, {
|
|
1627
|
-
readonly name: "fromInternalBalance";
|
|
1628
|
-
readonly type: "bool";
|
|
1629
|
-
readonly internalType: "bool";
|
|
1630
|
-
}, {
|
|
1631
|
-
readonly name: "recipient";
|
|
1632
|
-
readonly type: "address";
|
|
1633
|
-
readonly internalType: "address payable";
|
|
1634
|
-
}, {
|
|
1635
|
-
readonly name: "toInternalBalance";
|
|
1636
|
-
readonly type: "bool";
|
|
1637
|
-
readonly internalType: "bool";
|
|
1638
|
-
}];
|
|
1639
|
-
}, {
|
|
1640
|
-
readonly name: "limit";
|
|
1641
|
-
readonly type: "uint256";
|
|
1642
|
-
readonly internalType: "uint256";
|
|
1643
|
-
}, {
|
|
1644
|
-
readonly name: "deadline";
|
|
1645
|
-
readonly type: "uint256";
|
|
1646
|
-
readonly internalType: "uint256";
|
|
1647
|
-
}];
|
|
1648
|
-
readonly outputs: readonly [{
|
|
1649
|
-
readonly name: "amountCalculated";
|
|
1650
|
-
readonly type: "uint256";
|
|
1651
|
-
readonly internalType: "uint256";
|
|
1652
|
-
}];
|
|
1653
|
-
readonly stateMutability: "nonpayable";
|
|
1654
|
-
}];
|
|
1655
|
-
type protocolAbi = typeof protocolAbi;
|
|
1656
|
-
export declare class BalancerV2VaultAdapterContract extends AbstractAdapterContract<abi, protocolAbi> {
|
|
1657
|
-
#private;
|
|
1658
|
-
constructor(options: ConstructOptions, args: ConcreteAdapterContractOptions);
|
|
1659
|
-
get supportedPoolIds(): string[];
|
|
1660
|
-
get poolStatuses(): BalancerV2PoolStatus[];
|
|
1661
|
-
/** Legacy adapter not present in integrations-v3. Go: BalancerSwap via operation_type_v3.go L106-L125 */
|
|
1662
|
-
protected classifyLegacyOperation(_parsed: ParsedCallV2, _transfers: Transfers): LegacyAdapterOperation;
|
|
1663
|
-
}
|
|
1664
|
-
export {};
|