diff --git a/package.json b/package.json index a40ce484..61b90dbf 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@morpho-org/morpho-blue-bundlers", "description": "Morpho Blue Bundlers", "license": "GPL-2.0-or-later", - "version": "1.0.0", + "version": "1.1.0", "repository": { "type": "git", "url": "git+https://github.com/morpho-labs/morpho-blue-bundlers.git" diff --git a/pkg/BundlerAction.ts b/pkg/BundlerAction.ts index f003a7d6..4956ffda 100644 --- a/pkg/BundlerAction.ts +++ b/pkg/BundlerAction.ts @@ -18,7 +18,7 @@ import { IAllowanceTransfer, ERC20WrapperBundler__factory, } from "../types"; -import { AuthorizationStruct, MarketParamsStruct } from "../types/src/MorphoBundler"; +import { AuthorizationStruct, MarketParamsStruct, WithdrawalStruct } from "../types/src/MorphoBundler"; export type BundlerCall = string; @@ -279,6 +279,22 @@ export class BundlerAction { ]); } + static metaMorphoReallocateTo( + publicAllocator: string, + vault: string, + value: BigNumberish, + withdrawals: WithdrawalStruct[], + supplyMarketParams: MarketParamsStruct, + ): BundlerCall { + return BundlerAction.MORPHO_BUNDLER_IFC.encodeFunctionData("reallocateTo", [ + publicAllocator, + vault, + value, + withdrawals, + supplyMarketParams, + ]); + } + /* Universal Rewards Distributor */ static urdClaim(