diff --git a/.github/workflows/task-foundry-tests.yml b/.github/workflows/task-foundry-tests.yml index a988d8fe..f9b82e8c 100644 --- a/.github/workflows/task-foundry-tests.yml +++ b/.github/workflows/task-foundry-tests.yml @@ -34,14 +34,6 @@ jobs: with: version: v1.4.3 - - name: Cache Foundry libraries - uses: actions/cache@v4 - with: - path: contracts/lib - key: ${{ runner.os }}-foundry-libs-${{ hashFiles('contracts/.gitmodules') }} - restore-keys: | - ${{ runner.os }}-foundry-libs- - - name: Cache Foundry build artifacts uses: actions/cache@v4 with: diff --git a/contracts/lib/eigenlayer-contracts b/contracts/lib/eigenlayer-contracts index d6c229b6..7ecc83c7 160000 --- a/contracts/lib/eigenlayer-contracts +++ b/contracts/lib/eigenlayer-contracts @@ -1 +1 @@ -Subproject commit d6c229b6a81b3ae2c5ef7788c328bcb6da37cb36 +Subproject commit 7ecc83c7b180850531bc5b8b953a7340adeecd43 diff --git a/contracts/script/deploy/DeployLocal.s.sol b/contracts/script/deploy/DeployLocal.s.sol index b63cde82..f4be3069 100644 --- a/contracts/script/deploy/DeployLocal.s.sol +++ b/contracts/script/deploy/DeployLocal.s.sol @@ -61,6 +61,7 @@ import { IRewardsCoordinatorTypes } from "eigenlayer-contracts/src/contracts/interfaces/IRewardsCoordinator.sol"; import {IStrategy} from "eigenlayer-contracts/src/contracts/interfaces/IStrategy.sol"; +import {EigenStrategy} from "eigenlayer-contracts/src/contracts/strategies/EigenStrategy.sol"; import {PauserRegistry} from "eigenlayer-contracts/src/contracts/permissions/PauserRegistry.sol"; import {EigenPod} from "eigenlayer-contracts/src/contracts/pods/EigenPod.sol"; import {EigenPodManager} from "eigenlayer-contracts/src/contracts/pods/EigenPodManager.sol"; @@ -92,6 +93,7 @@ contract DeployLocal is DeployBase { EigenPod public eigenPodImplementation; StrategyBaseTVLLimits public baseStrategyImplementation; StrategyInfo[] public deployedStrategies; + IStrategy public eigenStrategy; // EigenLayer required semver string public constant SEMVER = "v1.0.0"; @@ -135,15 +137,18 @@ contract DeployLocal is DeployBase { _deployProxies(proxyAdmin); Logging.logStep("Initial proxies deployed successfully"); + vm.broadcast(_deployerPrivateKey); + eigenStrategy = + IStrategy(address(new EigenStrategy(strategyManager, pauserRegistry, SEMVER))); + Logging.logContractDeployed("EigenStrategy", address(eigenStrategy)); + // Setup ETH2 deposit contract for EigenPod functionality ethPOSDeposit = IETHPOSDeposit(getETHPOSDepositAddress()); Logging.logContractDeployed("ETHPOSDeposit", address(ethPOSDeposit)); // Deploy EigenPod implementation and beacon vm.broadcast(_deployerPrivateKey); - eigenPodImplementation = new EigenPod( - ethPOSDeposit, eigenPodManager, eigenLayerConfig.beaconChainGenesisTimestamp, SEMVER - ); + eigenPodImplementation = new EigenPod(ethPOSDeposit, eigenPodManager, SEMVER); vm.broadcast(_deployerPrivateKey); eigenPodBeacon = new UpgradeableBeacon(address(eigenPodImplementation)); Logging.logContractDeployed("EigenPod Implementation", address(eigenPodImplementation)); @@ -231,6 +236,7 @@ contract DeployLocal is DeployBase { Logging.logContractDeployed("EigenPodBeacon", address(eigenPodBeacon)); Logging.logContractDeployed("RewardsCoordinator", address(rewardsCoordinator)); Logging.logContractDeployed("AllocationManager", address(allocationManager)); + Logging.logContractDeployed("EigenStrategy", address(eigenStrategy)); Logging.logContractDeployed("PermissionController", address(permissionController)); Logging.logContractDeployed("ETHPOSDeposit", address(ethPOSDeposit)); @@ -437,7 +443,8 @@ contract DeployLocal is DeployBase { ); vm.broadcast(_deployerPrivateKey); - strategyManagerImplementation = new StrategyManager(delegation, pauserRegistry, SEMVER); + strategyManagerImplementation = + new StrategyManager(allocationManager, delegation, pauserRegistry, SEMVER); Logging.logContractDeployed( "StrategyManager Implementation", address(strategyManagerImplementation) ); @@ -478,6 +485,7 @@ contract DeployLocal is DeployBase { vm.broadcast(_deployerPrivateKey); allocationManagerImplementation = new AllocationManager( delegation, + eigenStrategy, pauserRegistry, permissionController, config.deallocationDelay, @@ -500,25 +508,15 @@ contract DeployLocal is DeployBase { ProxyAdmin proxyAdmin ) internal { // Initialize DelegationManager - { - IStrategy[] memory strategies; - uint256[] memory withdrawalDelayBlocks; - - vm.broadcast(_deployerPrivateKey); - proxyAdmin.upgradeAndCall( - ITransparentUpgradeableProxy(payable(address(delegation))), - address(delegationImplementation), - abi.encodeWithSelector( - DelegationManager.initialize.selector, - config.executorMultisig, - config.delegationInitPausedStatus, - config.delegationWithdrawalDelayBlocks, - strategies, - withdrawalDelayBlocks - ) - ); - Logging.logStep("DelegationManager initialized"); - } + vm.broadcast(_deployerPrivateKey); + proxyAdmin.upgradeAndCall( + ITransparentUpgradeableProxy(payable(address(delegation))), + address(delegationImplementation), + abi.encodeWithSelector( + DelegationManager.initialize.selector, config.delegationInitPausedStatus + ) + ); + Logging.logStep("DelegationManager initialized"); // Initialize StrategyManager vm.broadcast(_deployerPrivateKey); @@ -582,9 +580,7 @@ contract DeployLocal is DeployBase { ITransparentUpgradeableProxy(payable(address(allocationManager))), address(allocationManagerImplementation), abi.encodeWithSelector( - AllocationManager.initialize.selector, - config.executorMultisig, - config.allocationManagerInitPausedStatus + AllocationManager.initialize.selector, config.allocationManagerInitPausedStatus ) ); Logging.logStep("AllocationManager initialized"); diff --git a/contracts/test/ServiceManagerRewardsRegistry.t.sol b/contracts/test/ServiceManagerRewardsRegistry.t.sol index a256bff9..f5676345 100644 --- a/contracts/test/ServiceManagerRewardsRegistry.t.sol +++ b/contracts/test/ServiceManagerRewardsRegistry.t.sol @@ -479,10 +479,10 @@ contract ServiceManagerRewardsRegistryTest is AVSDeployer { vm.prank(operatorAddress); vm.expectRevert(abi.encodeWithSelector(IRewardsRegistryErrors.ArrayLengthMismatch.selector)); - uint256[] memory numberOfLeaves = new uint256[](3); - numberOfLeaves[0] = 2; - numberOfLeaves[1] = 2; - numberOfLeaves[2] = 2; + uint256[] memory numLeaves = new uint256[](3); + numLeaves[0] = 2; + numLeaves[1] = 2; + numLeaves[2] = 2; uint256[] memory leafIndices = new uint256[](3); leafIndices[0] = 0; @@ -490,7 +490,7 @@ contract ServiceManagerRewardsRegistryTest is AVSDeployer { leafIndices[2] = 0; serviceManager.claimOperatorRewardsBatch( - operatorSetId, rootIndices, points, numberOfLeaves, leafIndices, proofs + operatorSetId, rootIndices, points, numLeaves, leafIndices, proofs ); } @@ -530,16 +530,16 @@ contract ServiceManagerRewardsRegistryTest is AVSDeployer { abi.encodeWithSelector(IRewardsRegistryErrors.RewardsAlreadyClaimedForIndex.selector) ); - uint256[] memory numberOfLeaves = new uint256[](2); - numberOfLeaves[0] = 2; - numberOfLeaves[1] = 2; + uint256[] memory numLeaves = new uint256[](2); + numLeaves[0] = 2; + numLeaves[1] = 2; uint256[] memory leafIndices = new uint256[](2); leafIndices[0] = 0; leafIndices[1] = 0; serviceManager.claimOperatorRewardsBatch( - operatorSetId, rootIndices, points, numberOfLeaves, leafIndices, proofs + operatorSetId, rootIndices, points, numLeaves, leafIndices, proofs ); } @@ -556,12 +556,12 @@ contract ServiceManagerRewardsRegistryTest is AVSDeployer { uint256 initialBalance = operatorAddress.balance; - uint256[] memory numberOfLeaves = new uint256[](0); + uint256[] memory numLeaves = new uint256[](0); uint256[] memory leafIndices = new uint256[](0); vm.prank(operatorAddress); serviceManager.claimOperatorRewardsBatch( - operatorSetId, rootIndices, points, numberOfLeaves, leafIndices, proofs + operatorSetId, rootIndices, points, numLeaves, leafIndices, proofs ); // Balance should remain unchanged diff --git a/contracts/test/SlasherBase.t.sol b/contracts/test/SlasherBase.t.sol index 044fd816..51c3fa33 100644 --- a/contracts/test/SlasherBase.t.sol +++ b/contracts/test/SlasherBase.t.sol @@ -84,12 +84,13 @@ contract SlasherBaseTest is AVSDeployer { }); // Mock the allocationManager.slashOperator call + uint256[] memory slashedShares = new uint256[](strategies.length); vm.mockCall( address(allocationManager), abi.encodeWithSelector( IAllocationManager.slashOperator.selector, serviceManager.avs(), params ), - abi.encode() + abi.encode(uint256(0), slashedShares) ); uint256 requestId = 5; @@ -136,12 +137,13 @@ contract SlasherBaseTest is AVSDeployer { }); // Mock the allocationManager.slashOperator call + uint256[] memory slashedShares = new uint256[](strategies.length); vm.mockCall( address(allocationManager), abi.encodeWithSelector( IAllocationManager.slashOperator.selector, serviceManager.avs(), params ), - abi.encode() + abi.encode(uint256(0), slashedShares) ); uint256 requestId = 2; @@ -175,12 +177,13 @@ contract SlasherBaseTest is AVSDeployer { }); // Mock the allocationManager.slashOperator call + uint256[] memory slashedShares = new uint256[](strategies.length); vm.mockCall( address(allocationManager), abi.encodeWithSelector( IAllocationManager.slashOperator.selector, serviceManager.avs(), params ), - abi.encode() + abi.encode(uint256(0), slashedShares) ); uint256 requestId = 3; diff --git a/contracts/test/VetoableSlasher.t.sol b/contracts/test/VetoableSlasher.t.sol index d72fbca5..3bb20c44 100644 --- a/contracts/test/VetoableSlasher.t.sol +++ b/contracts/test/VetoableSlasher.t.sol @@ -230,12 +230,13 @@ contract VetoableSlasherTest is AVSDeployer { IAllocationManagerTypes.SlashingParams memory params; (params,,) = _getSlashingRequest(requestId); + uint256[] memory slashedShares = new uint256[](params.strategies.length); vm.mockCall( address(allocationManager), abi.encodeWithSelector( IAllocationManager.slashOperator.selector, serviceManager.avs(), params ), - abi.encode() + abi.encode(uint256(0), slashedShares) ); // Fast forward past veto period @@ -324,12 +325,13 @@ contract VetoableSlasherTest is AVSDeployer { vetoableSlasher.cancelSlashingRequest(requestId1); // Setup the mock for slashing the second request + uint256[] memory slashedShares = new uint256[](params2.strategies.length); vm.mockCall( address(allocationManager), abi.encodeWithSelector( IAllocationManager.slashOperator.selector, serviceManager.avs(), params2 ), - abi.encode() + abi.encode(uint256(0), slashedShares) ); // Fast forward past veto period diff --git a/contracts/test/mocks/AllocationManagerMock.sol b/contracts/test/mocks/AllocationManagerMock.sol deleted file mode 100644 index 712665ff..00000000 --- a/contracts/test/mocks/AllocationManagerMock.sol +++ /dev/null @@ -1,190 +0,0 @@ -// SPDX-License-Identifier: BUSL-1.1 -pragma solidity ^0.8.27; - -import { - IAllocationManager, - OperatorSet -} from "eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol"; -import {IAVSRegistrar} from "eigenlayer-contracts/src/contracts/interfaces/IAVSRegistrar.sol"; -import {IStrategy} from "eigenlayer-contracts/src/contracts/interfaces/IStrategy.sol"; -import {IPauserRegistry} from "eigenlayer-contracts/src/contracts/interfaces/IPauserRegistry.sol"; - -contract AllocationManagerIntermediate is IAllocationManager { - function initialize( - address initialOwner, - uint256 initialPausedStatus - ) external virtual {} - - function slashOperator( - address avs, - SlashingParams calldata params - ) external virtual {} - - function modifyAllocations( - address operator, - AllocateParams[] calldata params - ) external virtual {} - - function clearDeallocationQueue( - address operator, - IStrategy[] calldata strategies, - uint16[] calldata numToClear - ) external virtual {} - - function registerForOperatorSets( - address operator, - RegisterParams calldata params - ) external virtual {} - - function deregisterFromOperatorSets( - DeregisterParams calldata params - ) external virtual {} - - function setAllocationDelay( - address operator, - uint32 delay - ) external virtual {} - - function setAVSRegistrar( - address avs, - IAVSRegistrar registrar - ) external virtual {} - - function updateAVSMetadataURI( - address avs, - string calldata metadataURI - ) external virtual {} - - function createOperatorSets( - address avs, - CreateSetParams[] calldata params - ) external virtual {} - - function addStrategiesToOperatorSet( - address avs, - uint32 operatorSetId, - IStrategy[] calldata strategies - ) external virtual {} - - function removeStrategiesFromOperatorSet( - address avs, - uint32 operatorSetId, - IStrategy[] calldata strategies - ) external virtual {} - - function getOperatorSetCount( - address avs - ) external view virtual returns (uint256) {} - - function getAllocatedSets( - address operator - ) external view virtual returns (OperatorSet[] memory) {} - - function getAllocatedStrategies( - address operator, - OperatorSet memory operatorSet - ) external view virtual returns (IStrategy[] memory) {} - - function getAllocation( - address operator, - OperatorSet memory operatorSet, - IStrategy strategy - ) external view virtual returns (Allocation memory) {} - - function getAllocations( - address[] memory operators, - OperatorSet memory operatorSet, - IStrategy strategy - ) external view virtual returns (Allocation[] memory) {} - - function getStrategyAllocations( - address operator, - IStrategy strategy - ) external view virtual returns (OperatorSet[] memory, Allocation[] memory) {} - - function getAllocatableMagnitude( - address operator, - IStrategy strategy - ) external view virtual returns (uint64) {} - - function getMaxMagnitude( - address operator, - IStrategy strategy - ) external view virtual returns (uint64) {} - - function getMaxMagnitudes( - address operator, - IStrategy[] calldata strategies - ) external view virtual returns (uint64[] memory) {} - - function getMaxMagnitudes( - address[] calldata operators, - IStrategy strategy - ) external view virtual returns (uint64[] memory) {} - - function getMaxMagnitudesAtBlock( - address operator, - IStrategy[] calldata strategies, - uint32 blockNumber - ) external view virtual returns (uint64[] memory) {} - - function getAllocationDelay( - address operator - ) external view virtual returns (bool isSet, uint32 delay) {} - - function getRegisteredSets( - address operator - ) external view virtual returns (OperatorSet[] memory operatorSets) {} - - function isOperatorSet( - OperatorSet memory operatorSet - ) external view virtual returns (bool) {} - - function getMembers( - OperatorSet memory operatorSet - ) external view virtual returns (address[] memory operators) {} - - function getMemberCount( - OperatorSet memory operatorSet - ) external view virtual returns (uint256) {} - - function getAVSRegistrar( - address avs - ) external view virtual returns (IAVSRegistrar) {} - - function getStrategiesInOperatorSet( - OperatorSet memory operatorSet - ) external view virtual returns (IStrategy[] memory strategies) {} - - function getMinimumSlashableStake( - OperatorSet memory operatorSet, - address[] memory operators, - IStrategy[] memory strategies, - uint32 futureBlock - ) external view virtual returns (uint256[][] memory slashableStake) {} - - function isMemberOfOperatorSet( - address operator, - OperatorSet memory operatorSet - ) external view virtual returns (bool) {} - - function version() external view override returns (string memory) {} - - function getEncumberedMagnitude( - address operator, - IStrategy strategy - ) external view override returns (uint64) {} - - function getAllocatedStake( - OperatorSet memory operatorSet, - address[] memory operators, - IStrategy[] memory strategies - ) external view override returns (uint256[][] memory slashableStake) {} - - function isOperatorSlashable( - address operator, - OperatorSet memory operatorSet - ) external view override returns (bool) {} -} - -contract AllocationManagerMock is AllocationManagerIntermediate {} diff --git a/contracts/test/utils/AVSDeployer.sol b/contracts/test/utils/AVSDeployer.sol index f7eacde4..a39ba845 100644 --- a/contracts/test/utils/AVSDeployer.sol +++ b/contracts/test/utils/AVSDeployer.sol @@ -24,6 +24,7 @@ import { } from "eigenlayer-contracts/src/contracts/interfaces/IRewardsCoordinator.sol"; import {EmptyContract} from "eigenlayer-contracts/src/test/mocks/EmptyContract.sol"; import {StrategyBase} from "eigenlayer-contracts/src/contracts/strategies/StrategyBase.sol"; +import {EigenStrategy} from "eigenlayer-contracts/src/contracts/strategies/EigenStrategy.sol"; import {EigenPodManagerMock} from "eigenlayer-contracts/src/test/mocks/EigenPodManagerMock.sol"; import {StrategyManager} from "eigenlayer-contracts/src/contracts/core/StrategyManager.sol"; import {IEigenPodManager} from "eigenlayer-contracts/src/contracts/interfaces/IEigenPodManager.sol"; @@ -36,7 +37,6 @@ import {DataHavenServiceManager} from "../../src/DataHavenServiceManager.sol"; // Mocks import {RewardsCoordinatorMock} from "../mocks/RewardsCoordinatorMock.sol"; import {PermissionControllerMock} from "../mocks/PermissionControllerMock.sol"; -import {AllocationManagerMock} from "../mocks/AllocationManagerMock.sol"; import {DelegationManager} from "eigenlayer-contracts/src/contracts/core/DelegationManager.sol"; import "forge-std/Test.sol"; @@ -71,6 +71,7 @@ contract AVSDeployer is Test { EigenPodManagerMock public eigenPodManagerMock; AllocationManager public allocationManager; AllocationManager public allocationManagerImplementation; + IStrategy public eigenStrategy; RewardsCoordinator public rewardsCoordinator; RewardsCoordinator public rewardsCoordinatorImplementation; RewardsCoordinatorMock public rewardsCoordinatorMock; @@ -143,6 +144,12 @@ contract AVSDeployer is Test { console.log("AllocationManager and StrategyManager proxy contracts deployed"); + cheats.prank(regularDeployer); + eigenStrategy = + IStrategy(address(new EigenStrategy(strategyManager, pauserRegistry, "v-mock"))); + + console.log("EigenStrategy deployed"); + // Deploying DelegationManager implementation and its proxy. cheats.prank(regularDeployer); delegationManagerImplementation = new DelegationManager( @@ -166,6 +173,7 @@ contract AVSDeployer is Test { cheats.prank(regularDeployer); allocationManagerImplementation = new AllocationManager( delegationManager, + eigenStrategy, pauserRegistry, permissionControllerMock, uint32(7 days), // DEALLOCATION_DELAY @@ -183,7 +191,7 @@ contract AVSDeployer is Test { // Deploying StrategyManager implementation and its proxy. cheats.prank(regularDeployer); strategyManagerImplementation = - new StrategyManager(delegationManager, pauserRegistry, "v-mock"); + new StrategyManager(allocationManager, delegationManager, pauserRegistry, "v-mock"); cheats.prank(proxyAdminOwner); uint256 allUnpaused = 0; proxyAdmin.upgradeAndCall( diff --git a/test/contract-bindings/generated.ts b/test/contract-bindings/generated.ts index add0dab5..d28315cd 100644 --- a/test/contract-bindings/generated.ts +++ b/test/contract-bindings/generated.ts @@ -453,6 +453,11 @@ export const allocationManagerAbi = [ internalType: 'contract IDelegationManager', type: 'address', }, + { + name: '_eigenStrategy', + internalType: 'contract IStrategy', + type: 'address', + }, { name: '_pauserRegistry', internalType: 'contract IPauserRegistry', @@ -539,6 +544,33 @@ export const allocationManagerAbi = [ outputs: [], stateMutability: 'nonpayable', }, + { + type: 'function', + inputs: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { + name: 'params', + internalType: 'struct IAllocationManagerTypes.CreateSetParams[]', + type: 'tuple[]', + components: [ + { name: 'operatorSetId', internalType: 'uint32', type: 'uint32' }, + { + name: 'strategies', + internalType: 'contract IStrategy[]', + type: 'address[]', + }, + ], + }, + { + name: 'redistributionRecipients', + internalType: 'address[]', + type: 'address[]', + }, + ], + name: 'createRedistributingOperatorSets', + outputs: [], + stateMutability: 'nonpayable', + }, { type: 'function', inputs: [], @@ -574,6 +606,15 @@ export const allocationManagerAbi = [ outputs: [], stateMutability: 'nonpayable', }, + { + type: 'function', + inputs: [], + name: 'eigenStrategy', + outputs: [ + { name: '', internalType: 'contract IStrategy', type: 'address' }, + ], + stateMutability: 'view', + }, { type: 'function', inputs: [{ name: 'avs', internalType: 'address', type: 'address' }], @@ -853,6 +894,23 @@ export const allocationManagerAbi = [ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, + { + type: 'function', + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + ], + name: 'getRedistributionRecipient', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + stateMutability: 'view', + }, { type: 'function', inputs: [{ name: 'operator', internalType: 'address', type: 'address' }], @@ -870,6 +928,23 @@ export const allocationManagerAbi = [ ], stateMutability: 'view', }, + { + type: 'function', + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + ], + name: 'getSlashCount', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, { type: 'function', inputs: [ @@ -922,7 +997,6 @@ export const allocationManagerAbi = [ { type: 'function', inputs: [ - { name: 'initialOwner', internalType: 'address', type: 'address' }, { name: 'initialPausedStatus', internalType: 'uint256', type: 'uint256' }, ], name: 'initialize', @@ -947,6 +1021,13 @@ export const allocationManagerAbi = [ outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, + { + type: 'function', + inputs: [{ name: 'operator', internalType: 'address', type: 'address' }], + name: 'isOperatorRedistributable', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, { type: 'function', inputs: [ @@ -982,6 +1063,23 @@ export const allocationManagerAbi = [ outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, + { + type: 'function', + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + ], + name: 'isRedistributingOperatorSet', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, { type: 'function', inputs: [ @@ -1013,13 +1111,6 @@ export const allocationManagerAbi = [ outputs: [], stateMutability: 'nonpayable', }, - { - type: 'function', - inputs: [], - name: 'owner', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', - }, { type: 'function', inputs: [ @@ -1110,13 +1201,6 @@ export const allocationManagerAbi = [ outputs: [], stateMutability: 'nonpayable', }, - { - type: 'function', - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - }, { type: 'function', inputs: [ @@ -1163,14 +1247,10 @@ export const allocationManagerAbi = [ }, ], name: 'slashOperator', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], - name: 'transferOwnership', - outputs: [], + outputs: [ + { name: '', internalType: 'uint256', type: 'uint256' }, + { name: '', internalType: 'uint256[]', type: 'uint256[]' }, + ], stateMutability: 'nonpayable', }, { @@ -1450,25 +1530,6 @@ export const allocationManagerAbi = [ ], name: 'OperatorSlashed', }, - { - type: 'event', - anonymous: false, - inputs: [ - { - name: 'previousOwner', - internalType: 'address', - type: 'address', - indexed: true, - }, - { - name: 'newOwner', - internalType: 'address', - type: 'address', - indexed: true, - }, - ], - name: 'OwnershipTransferred', - }, { type: 'event', anonymous: false, @@ -1488,6 +1549,29 @@ export const allocationManagerAbi = [ ], name: 'Paused', }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + indexed: false, + }, + { + name: 'redistributionRecipient', + internalType: 'address', + type: 'address', + indexed: false, + }, + ], + name: 'RedistributionAddressSet', + }, { type: 'event', anonymous: false, @@ -1565,8 +1649,10 @@ export const allocationManagerAbi = [ { type: 'error', inputs: [], name: 'InvalidOperator' }, { type: 'error', inputs: [], name: 'InvalidOperatorSet' }, { type: 'error', inputs: [], name: 'InvalidPermissions' }, + { type: 'error', inputs: [], name: 'InvalidRedistributionRecipient' }, { type: 'error', inputs: [], name: 'InvalidShortString' }, { type: 'error', inputs: [], name: 'InvalidSnapshotOrdering' }, + { type: 'error', inputs: [], name: 'InvalidStrategy' }, { type: 'error', inputs: [], name: 'InvalidWadToSlash' }, { type: 'error', inputs: [], name: 'ModificationAlreadyPending' }, { type: 'error', inputs: [], name: 'NonexistentAVSMetadata' }, @@ -3307,7 +3393,6 @@ export const delegationManagerAbi = [ { type: 'function', inputs: [ - { name: 'initialOwner', internalType: 'address', type: 'address' }, { name: 'initialPausedStatus', internalType: 'uint256', type: 'uint256' }, ], name: 'initialize', @@ -3359,13 +3444,6 @@ export const delegationManagerAbi = [ outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, - { - type: 'function', - inputs: [], - name: 'owner', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', - }, { type: 'function', inputs: [ @@ -3525,23 +3603,32 @@ export const delegationManagerAbi = [ outputs: [], stateMutability: 'nonpayable', }, - { - type: 'function', - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - }, { type: 'function', inputs: [ { name: 'operator', internalType: 'address', type: 'address' }, + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + { name: 'slashId', internalType: 'uint256', type: 'uint256' }, { name: 'strategy', internalType: 'contract IStrategy', type: 'address' }, { name: 'prevMaxMagnitude', internalType: 'uint64', type: 'uint64' }, { name: 'newMaxMagnitude', internalType: 'uint64', type: 'uint64' }, ], name: 'slashOperatorShares', - outputs: [], + outputs: [ + { + name: 'totalDepositSharesToSlash', + internalType: 'uint256', + type: 'uint256', + }, + ], stateMutability: 'nonpayable', }, { @@ -3553,13 +3640,6 @@ export const delegationManagerAbi = [ ], stateMutability: 'view', }, - { - type: 'function', - inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - }, { type: 'function', inputs: [{ name: 'staker', internalType: 'address', type: 'address' }], @@ -3772,25 +3852,6 @@ export const delegationManagerAbi = [ ], name: 'OperatorSharesSlashed', }, - { - type: 'event', - anonymous: false, - inputs: [ - { - name: 'previousOwner', - internalType: 'address', - type: 'address', - indexed: true, - }, - { - name: 'newOwner', - internalType: 'address', - type: 'address', - indexed: true, - }, - ], - name: 'OwnershipTransferred', - }, { type: 'event', anonymous: false, @@ -3948,6 +4009,7 @@ export const delegationManagerAbi = [ { type: 'error', inputs: [], name: 'InputAddressZero' }, { type: 'error', inputs: [], name: 'InputArrayLengthMismatch' }, { type: 'error', inputs: [], name: 'InputArrayLengthZero' }, + { type: 'error', inputs: [], name: 'InvalidDepositScalingFactor' }, { type: 'error', inputs: [], name: 'InvalidNewPausedStatus' }, { type: 'error', inputs: [], name: 'InvalidPermissions' }, { type: 'error', inputs: [], name: 'InvalidShortString' }, @@ -3991,19 +4053,11 @@ export const eigenPodAbi = [ internalType: 'contract IEigenPodManager', type: 'address', }, - { name: '_GENESIS_TIME', internalType: 'uint64', type: 'uint64' }, { name: '_version', internalType: 'string', type: 'string' }, ], stateMutability: 'nonpayable', }, { type: 'receive', stateMutability: 'payable' }, - { - type: 'function', - inputs: [], - name: 'GENESIS_TIME', - outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }], - stateMutability: 'view', - }, { type: 'function', inputs: [], @@ -4067,6 +4121,13 @@ export const eigenPodAbi = [ ], stateMutability: 'view', }, + { + type: 'function', + inputs: [], + name: 'getConsolidationRequestFee', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, { type: 'function', inputs: [{ name: 'timestamp', internalType: 'uint64', type: 'uint64' }], @@ -4074,6 +4135,13 @@ export const eigenPodAbi = [ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, + { + type: 'function', + inputs: [], + name: 'getWithdrawalRequestFee', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, { type: 'function', inputs: [{ name: '_podOwner', internalType: 'address', type: 'address' }], @@ -4121,6 +4189,40 @@ export const eigenPodAbi = [ outputs: [], stateMutability: 'nonpayable', }, + { + type: 'function', + inputs: [ + { + name: 'requests', + internalType: 'struct IEigenPodTypes.ConsolidationRequest[]', + type: 'tuple[]', + components: [ + { name: 'srcPubkey', internalType: 'bytes', type: 'bytes' }, + { name: 'targetPubkey', internalType: 'bytes', type: 'bytes' }, + ], + }, + ], + name: 'requestConsolidation', + outputs: [], + stateMutability: 'payable', + }, + { + type: 'function', + inputs: [ + { + name: 'requests', + internalType: 'struct IEigenPodTypes.WithdrawalRequest[]', + type: 'tuple[]', + components: [ + { name: 'pubkey', internalType: 'bytes', type: 'bytes' }, + { name: 'amountGwei', internalType: 'uint64', type: 'uint64' }, + ], + }, + ], + name: 'requestWithdrawal', + outputs: [], + stateMutability: 'payable', + }, { type: 'function', inputs: [ @@ -4401,10 +4503,47 @@ export const eigenPodAbi = [ type: 'event', anonymous: false, inputs: [ - { name: 'pubkey', internalType: 'bytes', type: 'bytes', indexed: false }, + { + name: 'sourcePubkeyHash', + internalType: 'bytes32', + type: 'bytes32', + indexed: true, + }, + { + name: 'targetPubkeyHash', + internalType: 'bytes32', + type: 'bytes32', + indexed: true, + }, + ], + name: 'ConsolidationRequested', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'pubkeyHash', + internalType: 'bytes32', + type: 'bytes32', + indexed: false, + }, ], name: 'EigenPodStaked', }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'validatorPubkeyHash', + internalType: 'bytes32', + type: 'bytes32', + indexed: true, + }, + ], + name: 'ExitRequested', + }, { type: 'event', anonymous: false, @@ -4469,9 +4608,22 @@ export const eigenPodAbi = [ anonymous: false, inputs: [ { - name: 'validatorIndex', - internalType: 'uint40', - type: 'uint40', + name: 'validatorPubkeyHash', + internalType: 'bytes32', + type: 'bytes32', + indexed: true, + }, + ], + name: 'SwitchToCompoundingRequested', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'pubkeyHash', + internalType: 'bytes32', + type: 'bytes32', indexed: false, }, { @@ -4500,9 +4652,9 @@ export const eigenPodAbi = [ indexed: true, }, { - name: 'validatorIndex', - internalType: 'uint40', - type: 'uint40', + name: 'pubkeyHash', + internalType: 'bytes32', + type: 'bytes32', indexed: true, }, ], @@ -4513,9 +4665,9 @@ export const eigenPodAbi = [ anonymous: false, inputs: [ { - name: 'validatorIndex', - internalType: 'uint40', - type: 'uint40', + name: 'pubkeyHash', + internalType: 'bytes32', + type: 'bytes32', indexed: false, }, ], @@ -4532,36 +4684,62 @@ export const eigenPodAbi = [ indexed: true, }, { - name: 'validatorIndex', - internalType: 'uint40', - type: 'uint40', + name: 'pubkeyHash', + internalType: 'bytes32', + type: 'bytes32', indexed: true, }, ], name: 'ValidatorWithdrawn', }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'validatorPubkeyHash', + internalType: 'bytes32', + type: 'bytes32', + indexed: true, + }, + { + name: 'withdrawalAmountGwei', + internalType: 'uint64', + type: 'uint64', + indexed: false, + }, + ], + name: 'WithdrawalRequested', + }, { type: 'error', inputs: [], name: 'BeaconTimestampTooFarInPast' }, { type: 'error', inputs: [], name: 'CannotCheckpointTwiceInSingleBlock' }, { type: 'error', inputs: [], name: 'CheckpointAlreadyActive' }, { type: 'error', inputs: [], name: 'CredentialsAlreadyVerified' }, { type: 'error', inputs: [], name: 'CurrentlyPaused' }, + { type: 'error', inputs: [], name: 'EmptyRoot' }, + { type: 'error', inputs: [], name: 'FeeQueryFailed' }, { type: 'error', inputs: [], name: 'ForkTimestampZero' }, { type: 'error', inputs: [], name: 'InputAddressZero' }, { type: 'error', inputs: [], name: 'InputArrayLengthMismatch' }, + { type: 'error', inputs: [], name: 'InsufficientFunds' }, { type: 'error', inputs: [], name: 'InsufficientWithdrawableBalance' }, { type: 'error', inputs: [], name: 'InvalidEIP4788Response' }, + { type: 'error', inputs: [], name: 'InvalidIndex' }, { type: 'error', inputs: [], name: 'InvalidProof' }, { type: 'error', inputs: [], name: 'InvalidProofLength' }, { type: 'error', inputs: [], name: 'InvalidProofLength' }, { type: 'error', inputs: [], name: 'InvalidPubKeyLength' }, { type: 'error', inputs: [], name: 'InvalidShortString' }, { type: 'error', inputs: [], name: 'InvalidValidatorFieldsLength' }, + { type: 'error', inputs: [], name: 'LeavesNotPowerOfTwo' }, { type: 'error', inputs: [], name: 'MsgValueNot32ETH' }, { type: 'error', inputs: [], name: 'NoActiveCheckpoint' }, { type: 'error', inputs: [], name: 'NoBalanceToCheckpoint' }, + { type: 'error', inputs: [], name: 'NotEnoughLeaves' }, { type: 'error', inputs: [], name: 'OnlyEigenPodManager' }, { type: 'error', inputs: [], name: 'OnlyEigenPodOwner' }, { type: 'error', inputs: [], name: 'OnlyEigenPodOwnerOrProofSubmitter' }, + { type: 'error', inputs: [], name: 'PredeployFailed' }, { type: 'error', inputs: [{ name: 'str', internalType: 'string', type: 'string' }], @@ -4699,10 +4877,20 @@ export const eigenPodManagerAbi = [ { type: 'function', inputs: [ + { + name: '', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + { name: '', internalType: 'uint256', type: 'uint256' }, { name: '', internalType: 'contract IStrategy', type: 'address' }, { name: 'addedSharesToBurn', internalType: 'uint256', type: 'uint256' }, ], - name: 'increaseBurnableShares', + name: 'increaseBurnOrRedistributableShares', outputs: [], stateMutability: 'nonpayable', }, @@ -8065,6 +8253,7 @@ export const rewardsCoordinatorAbi = [ { type: 'error', inputs: [], name: 'DurationExceedsMax' }, { type: 'error', inputs: [], name: 'DurationIsZero' }, { type: 'error', inputs: [], name: 'EarningsNotGreaterThanClaimed' }, + { type: 'error', inputs: [], name: 'EmptyRoot' }, { type: 'error', inputs: [], name: 'InputAddressZero' }, { type: 'error', inputs: [], name: 'InputArrayLengthMismatch' }, { type: 'error', inputs: [], name: 'InputArrayLengthZero' }, @@ -8083,6 +8272,7 @@ export const rewardsCoordinatorAbi = [ inputs: [], name: 'InvalidGenesisRewardsTimestampRemainder', }, + { type: 'error', inputs: [], name: 'InvalidIndex' }, { type: 'error', inputs: [], name: 'InvalidNewPausedStatus' }, { type: 'error', inputs: [], name: 'InvalidOperatorSet' }, { type: 'error', inputs: [], name: 'InvalidPermissions' }, @@ -8598,7 +8788,7 @@ export const strategyBaseTvlLimitsAbi = [ { name: 'amountShares', internalType: 'uint256', type: 'uint256' }, ], name: 'withdraw', - outputs: [], + outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }], stateMutability: 'nonpayable', }, { @@ -8745,6 +8935,11 @@ export const strategyManagerAbi = [ { type: 'constructor', inputs: [ + { + name: '_allocationManager', + internalType: 'contract IAllocationManager', + type: 'address', + }, { name: '_delegation', internalType: 'contract IDelegationManager', @@ -8800,6 +8995,19 @@ export const strategyManagerAbi = [ outputs: [], stateMutability: 'nonpayable', }, + { + type: 'function', + inputs: [], + name: 'allocationManager', + outputs: [ + { + name: '', + internalType: 'contract IAllocationManager', + type: 'address', + }, + ], + stateMutability: 'view', + }, { type: 'function', inputs: [ @@ -8823,6 +9031,43 @@ export const strategyManagerAbi = [ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, + { + type: 'function', + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + { name: 'slashId', internalType: 'uint256', type: 'uint256' }, + ], + name: 'clearBurnOrRedistributableShares', + outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + { name: 'slashId', internalType: 'uint256', type: 'uint256' }, + { name: 'strategy', internalType: 'contract IStrategy', type: 'address' }, + ], + name: 'clearBurnOrRedistributableSharesByStrategy', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'nonpayable', + }, { type: 'function', inputs: [], @@ -8872,6 +9117,64 @@ export const strategyManagerAbi = [ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, + { + type: 'function', + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + { name: 'slashId', internalType: 'uint256', type: 'uint256' }, + ], + name: 'getBurnOrRedistributableCount', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + { name: 'slashId', internalType: 'uint256', type: 'uint256' }, + ], + name: 'getBurnOrRedistributableShares', + outputs: [ + { name: '', internalType: 'contract IStrategy[]', type: 'address[]' }, + { name: '', internalType: 'uint256[]', type: 'uint256[]' }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + { name: 'slashId', internalType: 'uint256', type: 'uint256' }, + { name: 'strategy', internalType: 'contract IStrategy', type: 'address' }, + ], + name: 'getBurnOrRedistributableShares', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, { type: 'function', inputs: [ @@ -8891,6 +9194,40 @@ export const strategyManagerAbi = [ ], stateMutability: 'view', }, + { + type: 'function', + inputs: [], + name: 'getPendingOperatorSets', + outputs: [ + { + name: '', + internalType: 'struct OperatorSet[]', + type: 'tuple[]', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + ], + name: 'getPendingSlashIds', + outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }], + stateMutability: 'view', + }, { type: 'function', inputs: [{ name: 'staker', internalType: 'address', type: 'address' }], @@ -8913,10 +9250,20 @@ export const strategyManagerAbi = [ { type: 'function', inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + }, + { name: 'slashId', internalType: 'uint256', type: 'uint256' }, { name: 'strategy', internalType: 'contract IStrategy', type: 'address' }, - { name: 'addedSharesToBurn', internalType: 'uint256', type: 'uint256' }, + { name: 'sharesToBurn', internalType: 'uint256', type: 'uint256' }, ], - name: 'increaseBurnableShares', + name: 'increaseBurnOrRedistributableShares', outputs: [], stateMutability: 'nonpayable', }, @@ -9124,6 +9471,22 @@ export const strategyManagerAbi = [ type: 'event', anonymous: false, inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + indexed: false, + }, + { + name: 'slashId', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, { name: 'strategy', internalType: 'contract IStrategy', @@ -9137,7 +9500,42 @@ export const strategyManagerAbi = [ indexed: false, }, ], - name: 'BurnableSharesDecreased', + name: 'BurnOrRedistributableSharesDecreased', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'operatorSet', + internalType: 'struct OperatorSet', + type: 'tuple', + components: [ + { name: 'avs', internalType: 'address', type: 'address' }, + { name: 'id', internalType: 'uint32', type: 'uint32' }, + ], + indexed: false, + }, + { + name: 'slashId', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + { + name: 'strategy', + internalType: 'contract IStrategy', + type: 'address', + indexed: false, + }, + { + name: 'shares', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + ], + name: 'BurnOrRedistributableSharesIncreased', }, { type: 'event', @@ -9156,7 +9554,7 @@ export const strategyManagerAbi = [ indexed: false, }, ], - name: 'BurnableSharesIncreased', + name: 'BurnableSharesDecreased', }, { type: 'event', @@ -9307,6 +9705,7 @@ export const strategyManagerAbi = [ { type: 'error', inputs: [], name: 'SharesAmountZero' }, { type: 'error', inputs: [], name: 'SignatureExpired' }, { type: 'error', inputs: [], name: 'StakerAddressZero' }, + { type: 'error', inputs: [], name: 'StrategyAlreadyInSlash' }, { type: 'error', inputs: [], name: 'StrategyNotFound' }, { type: 'error', inputs: [], name: 'StrategyNotWhitelisted' }, { @@ -10266,6 +10665,15 @@ export const readAllocationManagerDelegation = /*#__PURE__*/ createReadContract( { abi: allocationManagerAbi, functionName: 'delegation' }, ) +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"eigenStrategy"` + */ +export const readAllocationManagerEigenStrategy = + /*#__PURE__*/ createReadContract({ + abi: allocationManagerAbi, + functionName: 'eigenStrategy', + }) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"getAVSRegistrar"` */ @@ -10408,6 +10816,15 @@ export const readAllocationManagerGetOperatorSetCount = functionName: 'getOperatorSetCount', }) +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"getRedistributionRecipient"` + */ +export const readAllocationManagerGetRedistributionRecipient = + /*#__PURE__*/ createReadContract({ + abi: allocationManagerAbi, + functionName: 'getRedistributionRecipient', + }) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"getRegisteredSets"` */ @@ -10417,6 +10834,15 @@ export const readAllocationManagerGetRegisteredSets = functionName: 'getRegisteredSets', }) +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"getSlashCount"` + */ +export const readAllocationManagerGetSlashCount = + /*#__PURE__*/ createReadContract({ + abi: allocationManagerAbi, + functionName: 'getSlashCount', + }) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"getStrategiesInOperatorSet"` */ @@ -10444,6 +10870,15 @@ export const readAllocationManagerIsMemberOfOperatorSet = functionName: 'isMemberOfOperatorSet', }) +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"isOperatorRedistributable"` + */ +export const readAllocationManagerIsOperatorRedistributable = + /*#__PURE__*/ createReadContract({ + abi: allocationManagerAbi, + functionName: 'isOperatorRedistributable', + }) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"isOperatorSet"` */ @@ -10463,12 +10898,13 @@ export const readAllocationManagerIsOperatorSlashable = }) /** - * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"owner"` + * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"isRedistributingOperatorSet"` */ -export const readAllocationManagerOwner = /*#__PURE__*/ createReadContract({ - abi: allocationManagerAbi, - functionName: 'owner', -}) +export const readAllocationManagerIsRedistributingOperatorSet = + /*#__PURE__*/ createReadContract({ + abi: allocationManagerAbi, + functionName: 'isRedistributingOperatorSet', + }) /** * Wraps __{@link readContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"paused"` @@ -10538,6 +10974,15 @@ export const writeAllocationManagerCreateOperatorSets = functionName: 'createOperatorSets', }) +/** + * Wraps __{@link writeContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"createRedistributingOperatorSets"` + */ +export const writeAllocationManagerCreateRedistributingOperatorSets = + /*#__PURE__*/ createWriteContract({ + abi: allocationManagerAbi, + functionName: 'createRedistributingOperatorSets', + }) + /** * Wraps __{@link writeContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"deregisterFromOperatorSets"` */ @@ -10598,15 +11043,6 @@ export const writeAllocationManagerRemoveStrategiesFromOperatorSet = functionName: 'removeStrategiesFromOperatorSet', }) -/** - * Wraps __{@link writeContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"renounceOwnership"` - */ -export const writeAllocationManagerRenounceOwnership = - /*#__PURE__*/ createWriteContract({ - abi: allocationManagerAbi, - functionName: 'renounceOwnership', - }) - /** * Wraps __{@link writeContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"setAVSRegistrar"` */ @@ -10634,15 +11070,6 @@ export const writeAllocationManagerSlashOperator = functionName: 'slashOperator', }) -/** - * Wraps __{@link writeContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"transferOwnership"` - */ -export const writeAllocationManagerTransferOwnership = - /*#__PURE__*/ createWriteContract({ - abi: allocationManagerAbi, - functionName: 'transferOwnership', - }) - /** * Wraps __{@link writeContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"unpause"` */ @@ -10694,6 +11121,15 @@ export const simulateAllocationManagerCreateOperatorSets = functionName: 'createOperatorSets', }) +/** + * Wraps __{@link simulateContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"createRedistributingOperatorSets"` + */ +export const simulateAllocationManagerCreateRedistributingOperatorSets = + /*#__PURE__*/ createSimulateContract({ + abi: allocationManagerAbi, + functionName: 'createRedistributingOperatorSets', + }) + /** * Wraps __{@link simulateContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"deregisterFromOperatorSets"` */ @@ -10757,15 +11193,6 @@ export const simulateAllocationManagerRemoveStrategiesFromOperatorSet = functionName: 'removeStrategiesFromOperatorSet', }) -/** - * Wraps __{@link simulateContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"renounceOwnership"` - */ -export const simulateAllocationManagerRenounceOwnership = - /*#__PURE__*/ createSimulateContract({ - abi: allocationManagerAbi, - functionName: 'renounceOwnership', - }) - /** * Wraps __{@link simulateContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"setAVSRegistrar"` */ @@ -10793,15 +11220,6 @@ export const simulateAllocationManagerSlashOperator = functionName: 'slashOperator', }) -/** - * Wraps __{@link simulateContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"transferOwnership"` - */ -export const simulateAllocationManagerTransferOwnership = - /*#__PURE__*/ createSimulateContract({ - abi: allocationManagerAbi, - functionName: 'transferOwnership', - }) - /** * Wraps __{@link simulateContract}__ with `abi` set to __{@link allocationManagerAbi}__ and `functionName` set to `"unpause"` */ @@ -10925,15 +11343,6 @@ export const watchAllocationManagerOperatorSlashedEvent = eventName: 'OperatorSlashed', }) -/** - * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link allocationManagerAbi}__ and `eventName` set to `"OwnershipTransferred"` - */ -export const watchAllocationManagerOwnershipTransferredEvent = - /*#__PURE__*/ createWatchContractEvent({ - abi: allocationManagerAbi, - eventName: 'OwnershipTransferred', - }) - /** * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link allocationManagerAbi}__ and `eventName` set to `"Paused"` */ @@ -10943,6 +11352,15 @@ export const watchAllocationManagerPausedEvent = eventName: 'Paused', }) +/** + * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link allocationManagerAbi}__ and `eventName` set to `"RedistributionAddressSet"` + */ +export const watchAllocationManagerRedistributionAddressSetEvent = + /*#__PURE__*/ createWatchContractEvent({ + abi: allocationManagerAbi, + eventName: 'RedistributionAddressSet', + }) + /** * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link allocationManagerAbi}__ and `eventName` set to `"StrategyAddedToOperatorSet"` */ @@ -12513,14 +12931,6 @@ export const readDelegationManagerOperatorShares = functionName: 'operatorShares', }) -/** - * Wraps __{@link readContract}__ with `abi` set to __{@link delegationManagerAbi}__ and `functionName` set to `"owner"` - */ -export const readDelegationManagerOwner = /*#__PURE__*/ createReadContract({ - abi: delegationManagerAbi, - functionName: 'owner', -}) - /** * Wraps __{@link readContract}__ with `abi` set to __{@link delegationManagerAbi}__ and `functionName` set to `"paused"` */ @@ -12694,15 +13104,6 @@ export const writeDelegationManagerRegisterAsOperator = functionName: 'registerAsOperator', }) -/** - * Wraps __{@link writeContract}__ with `abi` set to __{@link delegationManagerAbi}__ and `functionName` set to `"renounceOwnership"` - */ -export const writeDelegationManagerRenounceOwnership = - /*#__PURE__*/ createWriteContract({ - abi: delegationManagerAbi, - functionName: 'renounceOwnership', - }) - /** * Wraps __{@link writeContract}__ with `abi` set to __{@link delegationManagerAbi}__ and `functionName` set to `"slashOperatorShares"` */ @@ -12712,15 +13113,6 @@ export const writeDelegationManagerSlashOperatorShares = functionName: 'slashOperatorShares', }) -/** - * Wraps __{@link writeContract}__ with `abi` set to __{@link delegationManagerAbi}__ and `functionName` set to `"transferOwnership"` - */ -export const writeDelegationManagerTransferOwnership = - /*#__PURE__*/ createWriteContract({ - abi: delegationManagerAbi, - functionName: 'transferOwnership', - }) - /** * Wraps __{@link writeContract}__ with `abi` set to __{@link delegationManagerAbi}__ and `functionName` set to `"undelegate"` */ @@ -12862,15 +13254,6 @@ export const simulateDelegationManagerRegisterAsOperator = functionName: 'registerAsOperator', }) -/** - * Wraps __{@link simulateContract}__ with `abi` set to __{@link delegationManagerAbi}__ and `functionName` set to `"renounceOwnership"` - */ -export const simulateDelegationManagerRenounceOwnership = - /*#__PURE__*/ createSimulateContract({ - abi: delegationManagerAbi, - functionName: 'renounceOwnership', - }) - /** * Wraps __{@link simulateContract}__ with `abi` set to __{@link delegationManagerAbi}__ and `functionName` set to `"slashOperatorShares"` */ @@ -12880,15 +13263,6 @@ export const simulateDelegationManagerSlashOperatorShares = functionName: 'slashOperatorShares', }) -/** - * Wraps __{@link simulateContract}__ with `abi` set to __{@link delegationManagerAbi}__ and `functionName` set to `"transferOwnership"` - */ -export const simulateDelegationManagerTransferOwnership = - /*#__PURE__*/ createSimulateContract({ - abi: delegationManagerAbi, - functionName: 'transferOwnership', - }) - /** * Wraps __{@link simulateContract}__ with `abi` set to __{@link delegationManagerAbi}__ and `functionName` set to `"undelegate"` */ @@ -12994,15 +13368,6 @@ export const watchDelegationManagerOperatorSharesSlashedEvent = eventName: 'OperatorSharesSlashed', }) -/** - * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link delegationManagerAbi}__ and `eventName` set to `"OwnershipTransferred"` - */ -export const watchDelegationManagerOwnershipTransferredEvent = - /*#__PURE__*/ createWatchContractEvent({ - abi: delegationManagerAbi, - eventName: 'OwnershipTransferred', - }) - /** * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link delegationManagerAbi}__ and `eventName` set to `"Paused"` */ @@ -13073,14 +13438,6 @@ export const readEigenPod = /*#__PURE__*/ createReadContract({ abi: eigenPodAbi, }) -/** - * Wraps __{@link readContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"GENESIS_TIME"` - */ -export const readEigenPodGenesisTime = /*#__PURE__*/ createReadContract({ - abi: eigenPodAbi, - functionName: 'GENESIS_TIME', -}) - /** * Wraps __{@link readContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"activeValidatorCount"` */ @@ -13132,6 +13489,15 @@ export const readEigenPodEthPos = /*#__PURE__*/ createReadContract({ functionName: 'ethPOS', }) +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"getConsolidationRequestFee"` + */ +export const readEigenPodGetConsolidationRequestFee = + /*#__PURE__*/ createReadContract({ + abi: eigenPodAbi, + functionName: 'getConsolidationRequestFee', + }) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"getParentBlockRoot"` */ @@ -13140,6 +13506,15 @@ export const readEigenPodGetParentBlockRoot = /*#__PURE__*/ createReadContract({ functionName: 'getParentBlockRoot', }) +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"getWithdrawalRequestFee"` + */ +export const readEigenPodGetWithdrawalRequestFee = + /*#__PURE__*/ createReadContract({ + abi: eigenPodAbi, + functionName: 'getWithdrawalRequestFee', + }) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"lastCheckpointTimestamp"` */ @@ -13231,6 +13606,22 @@ export const writeEigenPodRecoverTokens = /*#__PURE__*/ createWriteContract({ functionName: 'recoverTokens', }) +/** + * Wraps __{@link writeContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"requestConsolidation"` + */ +export const writeEigenPodRequestConsolidation = + /*#__PURE__*/ createWriteContract({ + abi: eigenPodAbi, + functionName: 'requestConsolidation', + }) + +/** + * Wraps __{@link writeContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"requestWithdrawal"` + */ +export const writeEigenPodRequestWithdrawal = /*#__PURE__*/ createWriteContract( + { abi: eigenPodAbi, functionName: 'requestWithdrawal' }, +) + /** * Wraps __{@link writeContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"setProofSubmitter"` */ @@ -13314,6 +13705,24 @@ export const simulateEigenPodRecoverTokens = functionName: 'recoverTokens', }) +/** + * Wraps __{@link simulateContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"requestConsolidation"` + */ +export const simulateEigenPodRequestConsolidation = + /*#__PURE__*/ createSimulateContract({ + abi: eigenPodAbi, + functionName: 'requestConsolidation', + }) + +/** + * Wraps __{@link simulateContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"requestWithdrawal"` + */ +export const simulateEigenPodRequestWithdrawal = + /*#__PURE__*/ createSimulateContract({ + abi: eigenPodAbi, + functionName: 'requestWithdrawal', + }) + /** * Wraps __{@link simulateContract}__ with `abi` set to __{@link eigenPodAbi}__ and `functionName` set to `"setProofSubmitter"` */ @@ -13401,6 +13810,15 @@ export const watchEigenPodCheckpointFinalizedEvent = eventName: 'CheckpointFinalized', }) +/** + * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link eigenPodAbi}__ and `eventName` set to `"ConsolidationRequested"` + */ +export const watchEigenPodConsolidationRequestedEvent = + /*#__PURE__*/ createWatchContractEvent({ + abi: eigenPodAbi, + eventName: 'ConsolidationRequested', + }) + /** * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link eigenPodAbi}__ and `eventName` set to `"EigenPodStaked"` */ @@ -13410,6 +13828,15 @@ export const watchEigenPodEigenPodStakedEvent = eventName: 'EigenPodStaked', }) +/** + * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link eigenPodAbi}__ and `eventName` set to `"ExitRequested"` + */ +export const watchEigenPodExitRequestedEvent = + /*#__PURE__*/ createWatchContractEvent({ + abi: eigenPodAbi, + eventName: 'ExitRequested', + }) + /** * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link eigenPodAbi}__ and `eventName` set to `"Initialized"` */ @@ -13446,6 +13873,15 @@ export const watchEigenPodRestakedBeaconChainEthWithdrawnEvent = eventName: 'RestakedBeaconChainETHWithdrawn', }) +/** + * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link eigenPodAbi}__ and `eventName` set to `"SwitchToCompoundingRequested"` + */ +export const watchEigenPodSwitchToCompoundingRequestedEvent = + /*#__PURE__*/ createWatchContractEvent({ + abi: eigenPodAbi, + eventName: 'SwitchToCompoundingRequested', + }) + /** * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link eigenPodAbi}__ and `eventName` set to `"ValidatorBalanceUpdated"` */ @@ -13482,6 +13918,15 @@ export const watchEigenPodValidatorWithdrawnEvent = eventName: 'ValidatorWithdrawn', }) +/** + * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link eigenPodAbi}__ and `eventName` set to `"WithdrawalRequested"` + */ +export const watchEigenPodWithdrawalRequestedEvent = + /*#__PURE__*/ createWatchContractEvent({ + abi: eigenPodAbi, + eventName: 'WithdrawalRequested', + }) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link eigenPodManagerAbi}__ */ @@ -13667,12 +14112,12 @@ export const writeEigenPodManagerCreatePod = /*#__PURE__*/ createWriteContract({ }) /** - * Wraps __{@link writeContract}__ with `abi` set to __{@link eigenPodManagerAbi}__ and `functionName` set to `"increaseBurnableShares"` + * Wraps __{@link writeContract}__ with `abi` set to __{@link eigenPodManagerAbi}__ and `functionName` set to `"increaseBurnOrRedistributableShares"` */ -export const writeEigenPodManagerIncreaseBurnableShares = +export const writeEigenPodManagerIncreaseBurnOrRedistributableShares = /*#__PURE__*/ createWriteContract({ abi: eigenPodManagerAbi, - functionName: 'increaseBurnableShares', + functionName: 'increaseBurnOrRedistributableShares', }) /** @@ -13803,12 +14248,12 @@ export const simulateEigenPodManagerCreatePod = }) /** - * Wraps __{@link simulateContract}__ with `abi` set to __{@link eigenPodManagerAbi}__ and `functionName` set to `"increaseBurnableShares"` + * Wraps __{@link simulateContract}__ with `abi` set to __{@link eigenPodManagerAbi}__ and `functionName` set to `"increaseBurnOrRedistributableShares"` */ -export const simulateEigenPodManagerIncreaseBurnableShares = +export const simulateEigenPodManagerIncreaseBurnOrRedistributableShares = /*#__PURE__*/ createSimulateContract({ abi: eigenPodManagerAbi, - functionName: 'increaseBurnableShares', + functionName: 'increaseBurnOrRedistributableShares', }) /** @@ -16741,6 +17186,15 @@ export const readStrategyManagerDepositTypehash = functionName: 'DEPOSIT_TYPEHASH', }) +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"allocationManager"` + */ +export const readStrategyManagerAllocationManager = + /*#__PURE__*/ createReadContract({ + abi: strategyManagerAbi, + functionName: 'allocationManager', + }) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"calculateStrategyDepositDigestHash"` */ @@ -16767,6 +17221,24 @@ export const readStrategyManagerDomainSeparator = functionName: 'domainSeparator', }) +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"getBurnOrRedistributableCount"` + */ +export const readStrategyManagerGetBurnOrRedistributableCount = + /*#__PURE__*/ createReadContract({ + abi: strategyManagerAbi, + functionName: 'getBurnOrRedistributableCount', + }) + +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"getBurnOrRedistributableShares"` + */ +export const readStrategyManagerGetBurnOrRedistributableShares = + /*#__PURE__*/ createReadContract({ + abi: strategyManagerAbi, + functionName: 'getBurnOrRedistributableShares', + }) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"getBurnableShares"` */ @@ -16784,6 +17256,24 @@ export const readStrategyManagerGetDeposits = /*#__PURE__*/ createReadContract({ functionName: 'getDeposits', }) +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"getPendingOperatorSets"` + */ +export const readStrategyManagerGetPendingOperatorSets = + /*#__PURE__*/ createReadContract({ + abi: strategyManagerAbi, + functionName: 'getPendingOperatorSets', + }) + +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"getPendingSlashIds"` + */ +export const readStrategyManagerGetPendingSlashIds = + /*#__PURE__*/ createReadContract({ + abi: strategyManagerAbi, + functionName: 'getPendingSlashIds', + }) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"getStakerStrategyList"` */ @@ -16919,6 +17409,24 @@ export const writeStrategyManagerBurnShares = /*#__PURE__*/ createWriteContract( { abi: strategyManagerAbi, functionName: 'burnShares' }, ) +/** + * Wraps __{@link writeContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"clearBurnOrRedistributableShares"` + */ +export const writeStrategyManagerClearBurnOrRedistributableShares = + /*#__PURE__*/ createWriteContract({ + abi: strategyManagerAbi, + functionName: 'clearBurnOrRedistributableShares', + }) + +/** + * Wraps __{@link writeContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"clearBurnOrRedistributableSharesByStrategy"` + */ +export const writeStrategyManagerClearBurnOrRedistributableSharesByStrategy = + /*#__PURE__*/ createWriteContract({ + abi: strategyManagerAbi, + functionName: 'clearBurnOrRedistributableSharesByStrategy', + }) + /** * Wraps __{@link writeContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"depositIntoStrategy"` */ @@ -16938,12 +17446,12 @@ export const writeStrategyManagerDepositIntoStrategyWithSignature = }) /** - * Wraps __{@link writeContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"increaseBurnableShares"` + * Wraps __{@link writeContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"increaseBurnOrRedistributableShares"` */ -export const writeStrategyManagerIncreaseBurnableShares = +export const writeStrategyManagerIncreaseBurnOrRedistributableShares = /*#__PURE__*/ createWriteContract({ abi: strategyManagerAbi, - functionName: 'increaseBurnableShares', + functionName: 'increaseBurnOrRedistributableShares', }) /** @@ -17065,6 +17573,24 @@ export const simulateStrategyManagerBurnShares = functionName: 'burnShares', }) +/** + * Wraps __{@link simulateContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"clearBurnOrRedistributableShares"` + */ +export const simulateStrategyManagerClearBurnOrRedistributableShares = + /*#__PURE__*/ createSimulateContract({ + abi: strategyManagerAbi, + functionName: 'clearBurnOrRedistributableShares', + }) + +/** + * Wraps __{@link simulateContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"clearBurnOrRedistributableSharesByStrategy"` + */ +export const simulateStrategyManagerClearBurnOrRedistributableSharesByStrategy = + /*#__PURE__*/ createSimulateContract({ + abi: strategyManagerAbi, + functionName: 'clearBurnOrRedistributableSharesByStrategy', + }) + /** * Wraps __{@link simulateContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"depositIntoStrategy"` */ @@ -17084,12 +17610,12 @@ export const simulateStrategyManagerDepositIntoStrategyWithSignature = }) /** - * Wraps __{@link simulateContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"increaseBurnableShares"` + * Wraps __{@link simulateContract}__ with `abi` set to __{@link strategyManagerAbi}__ and `functionName` set to `"increaseBurnOrRedistributableShares"` */ -export const simulateStrategyManagerIncreaseBurnableShares = +export const simulateStrategyManagerIncreaseBurnOrRedistributableShares = /*#__PURE__*/ createSimulateContract({ abi: strategyManagerAbi, - functionName: 'increaseBurnableShares', + functionName: 'increaseBurnOrRedistributableShares', }) /** @@ -17189,6 +17715,24 @@ export const watchStrategyManagerEvent = /*#__PURE__*/ createWatchContractEvent( { abi: strategyManagerAbi }, ) +/** + * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link strategyManagerAbi}__ and `eventName` set to `"BurnOrRedistributableSharesDecreased"` + */ +export const watchStrategyManagerBurnOrRedistributableSharesDecreasedEvent = + /*#__PURE__*/ createWatchContractEvent({ + abi: strategyManagerAbi, + eventName: 'BurnOrRedistributableSharesDecreased', + }) + +/** + * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link strategyManagerAbi}__ and `eventName` set to `"BurnOrRedistributableSharesIncreased"` + */ +export const watchStrategyManagerBurnOrRedistributableSharesIncreasedEvent = + /*#__PURE__*/ createWatchContractEvent({ + abi: strategyManagerAbi, + eventName: 'BurnOrRedistributableSharesIncreased', + }) + /** * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link strategyManagerAbi}__ and `eventName` set to `"BurnableSharesDecreased"` */ @@ -17198,15 +17742,6 @@ export const watchStrategyManagerBurnableSharesDecreasedEvent = eventName: 'BurnableSharesDecreased', }) -/** - * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link strategyManagerAbi}__ and `eventName` set to `"BurnableSharesIncreased"` - */ -export const watchStrategyManagerBurnableSharesIncreasedEvent = - /*#__PURE__*/ createWatchContractEvent({ - abi: strategyManagerAbi, - eventName: 'BurnableSharesIncreased', - }) - /** * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link strategyManagerAbi}__ and `eventName` set to `"Deposit"` */