pub struct StrategyManagerInstance<T, P, N = Ethereum> { /* private fields */ }
Expand description
A StrategyManager
instance.
Contains type-safe methods for interacting with an on-chain instance of the
[`StrategyManager`](self) contract located at a given `address`, using a given
provider `P`.
If the contract bytecode is available (see the [`sol!`](alloy_sol_types::sol!)
documentation on how to provide it), the `deploy` and `deploy_builder` methods can
be used to deploy a new instance of the contract.
See the [module-level documentation](self) for all the available methods.
Implementations§
Source§impl<T: Transport + Clone, P: Provider<T, N>, N: Network> StrategyManagerInstance<T, P, N>
impl<T: Transport + Clone, P: Provider<T, N>, N: Network> StrategyManagerInstance<T, P, N>
Instantiation and getters/setters.
Sourcepub const fn new(address: Address, provider: P) -> Self
pub const fn new(address: Address, provider: P) -> Self
Creates a new wrapper around an on-chain StrategyManager
contract instance.
See the [wrapper's documentation](`StrategyManagerInstance`) for more details.
Sourcepub async fn deploy(
provider: P,
_delegation: Address,
_eigenPodManager: Address,
_slasher: Address,
) -> Result<StrategyManagerInstance<T, P, N>>
pub async fn deploy( provider: P, _delegation: Address, _eigenPodManager: Address, _slasher: Address, ) -> Result<StrategyManagerInstance<T, P, N>>
Deploys this contract using the given provider
and constructor arguments, if any.
Returns a new instance of the contract, if the deployment was successful.
For more fine-grained control over the deployment process, use [`deploy_builder`] instead.
Sourcepub fn deploy_builder(
provider: P,
_delegation: Address,
_eigenPodManager: Address,
_slasher: Address,
) -> RawCallBuilder<T, P, N>
pub fn deploy_builder( provider: P, _delegation: Address, _eigenPodManager: Address, _slasher: Address, ) -> RawCallBuilder<T, P, N>
Creates a RawCallBuilder
for deploying this contract using the given provider
and constructor arguments, if any.
This is a simple wrapper around creating a `RawCallBuilder` with the data set to
the bytecode concatenated with the constructor's ABI-encoded arguments.
Sourcepub fn set_address(&mut self, address: Address)
pub fn set_address(&mut self, address: Address)
Sets the address.
Source§impl<T, P: Clone, N> StrategyManagerInstance<T, &P, N>
impl<T, P: Clone, N> StrategyManagerInstance<T, &P, N>
Sourcepub fn with_cloned_provider(self) -> StrategyManagerInstance<T, P, N>
pub fn with_cloned_provider(self) -> StrategyManagerInstance<T, P, N>
Clones the provider and returns a new instance with the cloned provider.
Source§impl<T: Transport + Clone, P: Provider<T, N>, N: Network> StrategyManagerInstance<T, P, N>
impl<T: Transport + Clone, P: Provider<T, N>, N: Network> StrategyManagerInstance<T, P, N>
Function calls.
Sourcepub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<T, &P, C, N>
pub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<T, &P, C, N>
Creates a new call builder using this contract instance’s provider and address.
Note that the call can be any function call, not just those defined in this contract. Prefer using the other methods for building type-safe contract calls.
Sourcepub fn DEPOSIT_TYPEHASH(&self) -> SolCallBuilder<T, &P, DEPOSIT_TYPEHASHCall, N>
pub fn DEPOSIT_TYPEHASH(&self) -> SolCallBuilder<T, &P, DEPOSIT_TYPEHASHCall, N>
Creates a new call builder for the [DEPOSIT_TYPEHASH
] function.
Sourcepub fn DOMAIN_TYPEHASH(&self) -> SolCallBuilder<T, &P, DOMAIN_TYPEHASHCall, N>
pub fn DOMAIN_TYPEHASH(&self) -> SolCallBuilder<T, &P, DOMAIN_TYPEHASHCall, N>
Creates a new call builder for the [DOMAIN_TYPEHASH
] function.
Creates a new call builder for the [addShares
] function.
Sourcepub fn addStrategiesToDepositWhitelist(
&self,
strategiesToWhitelist: Vec<Address>,
thirdPartyTransfersForbiddenValues: Vec<bool>,
) -> SolCallBuilder<T, &P, addStrategiesToDepositWhitelistCall, N>
pub fn addStrategiesToDepositWhitelist( &self, strategiesToWhitelist: Vec<Address>, thirdPartyTransfersForbiddenValues: Vec<bool>, ) -> SolCallBuilder<T, &P, addStrategiesToDepositWhitelistCall, N>
Creates a new call builder for the [addStrategiesToDepositWhitelist
] function.
Sourcepub fn delegation(&self) -> SolCallBuilder<T, &P, delegationCall, N>
pub fn delegation(&self) -> SolCallBuilder<T, &P, delegationCall, N>
Creates a new call builder for the [delegation
] function.
Sourcepub fn depositIntoStrategy(
&self,
strategy: Address,
token: Address,
amount: U256,
) -> SolCallBuilder<T, &P, depositIntoStrategyCall, N>
pub fn depositIntoStrategy( &self, strategy: Address, token: Address, amount: U256, ) -> SolCallBuilder<T, &P, depositIntoStrategyCall, N>
Creates a new call builder for the [depositIntoStrategy
] function.
Sourcepub fn depositIntoStrategyWithSignature(
&self,
strategy: Address,
token: Address,
amount: U256,
staker: Address,
expiry: U256,
signature: Bytes,
) -> SolCallBuilder<T, &P, depositIntoStrategyWithSignatureCall, N>
pub fn depositIntoStrategyWithSignature( &self, strategy: Address, token: Address, amount: U256, staker: Address, expiry: U256, signature: Bytes, ) -> SolCallBuilder<T, &P, depositIntoStrategyWithSignatureCall, N>
Creates a new call builder for the [depositIntoStrategyWithSignature
] function.
Sourcepub fn domainSeparator(&self) -> SolCallBuilder<T, &P, domainSeparatorCall, N>
pub fn domainSeparator(&self) -> SolCallBuilder<T, &P, domainSeparatorCall, N>
Creates a new call builder for the [domainSeparator
] function.
Sourcepub fn eigenPodManager(&self) -> SolCallBuilder<T, &P, eigenPodManagerCall, N>
pub fn eigenPodManager(&self) -> SolCallBuilder<T, &P, eigenPodManagerCall, N>
Creates a new call builder for the [eigenPodManager
] function.
Sourcepub fn getDeposits(
&self,
staker: Address,
) -> SolCallBuilder<T, &P, getDepositsCall, N>
pub fn getDeposits( &self, staker: Address, ) -> SolCallBuilder<T, &P, getDepositsCall, N>
Creates a new call builder for the [getDeposits
] function.
Sourcepub fn initialize(
&self,
initialOwner: Address,
initialStrategyWhitelister: Address,
_pauserRegistry: Address,
initialPausedStatus: U256,
) -> SolCallBuilder<T, &P, initializeCall, N>
pub fn initialize( &self, initialOwner: Address, initialStrategyWhitelister: Address, _pauserRegistry: Address, initialPausedStatus: U256, ) -> SolCallBuilder<T, &P, initializeCall, N>
Creates a new call builder for the [initialize
] function.
Sourcepub fn nonces(&self, _0: Address) -> SolCallBuilder<T, &P, noncesCall, N>
pub fn nonces(&self, _0: Address) -> SolCallBuilder<T, &P, noncesCall, N>
Creates a new call builder for the [nonces
] function.
Sourcepub fn owner(&self) -> SolCallBuilder<T, &P, ownerCall, N>
pub fn owner(&self) -> SolCallBuilder<T, &P, ownerCall, N>
Creates a new call builder for the [owner
] function.
Sourcepub fn pause(
&self,
newPausedStatus: U256,
) -> SolCallBuilder<T, &P, pauseCall, N>
pub fn pause( &self, newPausedStatus: U256, ) -> SolCallBuilder<T, &P, pauseCall, N>
Creates a new call builder for the [pause
] function.
Sourcepub fn pauseAll(&self) -> SolCallBuilder<T, &P, pauseAllCall, N>
pub fn pauseAll(&self) -> SolCallBuilder<T, &P, pauseAllCall, N>
Creates a new call builder for the [pauseAll
] function.
Sourcepub fn paused_0(&self, index: u8) -> SolCallBuilder<T, &P, paused_0Call, N>
pub fn paused_0(&self, index: u8) -> SolCallBuilder<T, &P, paused_0Call, N>
Creates a new call builder for the [paused_0
] function.
Sourcepub fn paused_1(&self) -> SolCallBuilder<T, &P, paused_1Call, N>
pub fn paused_1(&self) -> SolCallBuilder<T, &P, paused_1Call, N>
Creates a new call builder for the [paused_1
] function.
Sourcepub fn pauserRegistry(&self) -> SolCallBuilder<T, &P, pauserRegistryCall, N>
pub fn pauserRegistry(&self) -> SolCallBuilder<T, &P, pauserRegistryCall, N>
Creates a new call builder for the [pauserRegistry
] function.
Creates a new call builder for the [removeShares
] function.
Sourcepub fn removeStrategiesFromDepositWhitelist(
&self,
strategiesToRemoveFromWhitelist: Vec<Address>,
) -> SolCallBuilder<T, &P, removeStrategiesFromDepositWhitelistCall, N>
pub fn removeStrategiesFromDepositWhitelist( &self, strategiesToRemoveFromWhitelist: Vec<Address>, ) -> SolCallBuilder<T, &P, removeStrategiesFromDepositWhitelistCall, N>
Creates a new call builder for the [removeStrategiesFromDepositWhitelist
] function.
Sourcepub fn renounceOwnership(
&self,
) -> SolCallBuilder<T, &P, renounceOwnershipCall, N>
pub fn renounceOwnership( &self, ) -> SolCallBuilder<T, &P, renounceOwnershipCall, N>
Creates a new call builder for the [renounceOwnership
] function.
Sourcepub fn setPauserRegistry(
&self,
newPauserRegistry: Address,
) -> SolCallBuilder<T, &P, setPauserRegistryCall, N>
pub fn setPauserRegistry( &self, newPauserRegistry: Address, ) -> SolCallBuilder<T, &P, setPauserRegistryCall, N>
Creates a new call builder for the [setPauserRegistry
] function.
Sourcepub fn setStrategyWhitelister(
&self,
newStrategyWhitelister: Address,
) -> SolCallBuilder<T, &P, setStrategyWhitelisterCall, N>
pub fn setStrategyWhitelister( &self, newStrategyWhitelister: Address, ) -> SolCallBuilder<T, &P, setStrategyWhitelisterCall, N>
Creates a new call builder for the [setStrategyWhitelister
] function.
Sourcepub fn setThirdPartyTransfersForbidden(
&self,
strategy: Address,
value: bool,
) -> SolCallBuilder<T, &P, setThirdPartyTransfersForbiddenCall, N>
pub fn setThirdPartyTransfersForbidden( &self, strategy: Address, value: bool, ) -> SolCallBuilder<T, &P, setThirdPartyTransfersForbiddenCall, N>
Creates a new call builder for the [setThirdPartyTransfersForbidden
] function.
Sourcepub fn slasher(&self) -> SolCallBuilder<T, &P, slasherCall, N>
pub fn slasher(&self) -> SolCallBuilder<T, &P, slasherCall, N>
Creates a new call builder for the [slasher
] function.
Sourcepub fn stakerStrategyList(
&self,
_0: Address,
_1: U256,
) -> SolCallBuilder<T, &P, stakerStrategyListCall, N>
pub fn stakerStrategyList( &self, _0: Address, _1: U256, ) -> SolCallBuilder<T, &P, stakerStrategyListCall, N>
Creates a new call builder for the [stakerStrategyList
] function.
Sourcepub fn stakerStrategyListLength(
&self,
staker: Address,
) -> SolCallBuilder<T, &P, stakerStrategyListLengthCall, N>
pub fn stakerStrategyListLength( &self, staker: Address, ) -> SolCallBuilder<T, &P, stakerStrategyListLengthCall, N>
Creates a new call builder for the [stakerStrategyListLength
] function.
Creates a new call builder for the [stakerStrategyShares
] function.
Sourcepub fn strategyIsWhitelistedForDeposit(
&self,
_0: Address,
) -> SolCallBuilder<T, &P, strategyIsWhitelistedForDepositCall, N>
pub fn strategyIsWhitelistedForDeposit( &self, _0: Address, ) -> SolCallBuilder<T, &P, strategyIsWhitelistedForDepositCall, N>
Creates a new call builder for the [strategyIsWhitelistedForDeposit
] function.
Sourcepub fn strategyWhitelister(
&self,
) -> SolCallBuilder<T, &P, strategyWhitelisterCall, N>
pub fn strategyWhitelister( &self, ) -> SolCallBuilder<T, &P, strategyWhitelisterCall, N>
Creates a new call builder for the [strategyWhitelister
] function.
Sourcepub fn thirdPartyTransfersForbidden(
&self,
_0: Address,
) -> SolCallBuilder<T, &P, thirdPartyTransfersForbiddenCall, N>
pub fn thirdPartyTransfersForbidden( &self, _0: Address, ) -> SolCallBuilder<T, &P, thirdPartyTransfersForbiddenCall, N>
Creates a new call builder for the [thirdPartyTransfersForbidden
] function.
Sourcepub fn transferOwnership(
&self,
newOwner: Address,
) -> SolCallBuilder<T, &P, transferOwnershipCall, N>
pub fn transferOwnership( &self, newOwner: Address, ) -> SolCallBuilder<T, &P, transferOwnershipCall, N>
Creates a new call builder for the [transferOwnership
] function.
Sourcepub fn unpause(
&self,
newPausedStatus: U256,
) -> SolCallBuilder<T, &P, unpauseCall, N>
pub fn unpause( &self, newPausedStatus: U256, ) -> SolCallBuilder<T, &P, unpauseCall, N>
Creates a new call builder for the [unpause
] function.
Creates a new call builder for the [withdrawSharesAsTokens
] function.
Source§impl<T: Transport + Clone, P: Provider<T, N>, N: Network> StrategyManagerInstance<T, P, N>
impl<T: Transport + Clone, P: Provider<T, N>, N: Network> StrategyManagerInstance<T, P, N>
Event filters.
Sourcepub fn event_filter<E: SolEvent>(&self) -> Event<T, &P, E, N>
pub fn event_filter<E: SolEvent>(&self) -> Event<T, &P, E, N>
Creates a new event filter using this contract instance’s provider and address.
Note that the type can be any event, not just those defined in this contract. Prefer using the other methods for building type-safe event filters.
Sourcepub fn Deposit_filter(&self) -> Event<T, &P, Deposit, N>
pub fn Deposit_filter(&self) -> Event<T, &P, Deposit, N>
Creates a new event filter for the Deposit
event.
Sourcepub fn Initialized_filter(&self) -> Event<T, &P, Initialized, N>
pub fn Initialized_filter(&self) -> Event<T, &P, Initialized, N>
Creates a new event filter for the Initialized
event.
Sourcepub fn OwnershipTransferred_filter(
&self,
) -> Event<T, &P, OwnershipTransferred, N>
pub fn OwnershipTransferred_filter( &self, ) -> Event<T, &P, OwnershipTransferred, N>
Creates a new event filter for the OwnershipTransferred
event.
Sourcepub fn Paused_filter(&self) -> Event<T, &P, Paused, N>
pub fn Paused_filter(&self) -> Event<T, &P, Paused, N>
Creates a new event filter for the Paused
event.
Sourcepub fn PauserRegistrySet_filter(&self) -> Event<T, &P, PauserRegistrySet, N>
pub fn PauserRegistrySet_filter(&self) -> Event<T, &P, PauserRegistrySet, N>
Creates a new event filter for the PauserRegistrySet
event.
Sourcepub fn StrategyAddedToDepositWhitelist_filter(
&self,
) -> Event<T, &P, StrategyAddedToDepositWhitelist, N>
pub fn StrategyAddedToDepositWhitelist_filter( &self, ) -> Event<T, &P, StrategyAddedToDepositWhitelist, N>
Creates a new event filter for the StrategyAddedToDepositWhitelist
event.
Sourcepub fn StrategyRemovedFromDepositWhitelist_filter(
&self,
) -> Event<T, &P, StrategyRemovedFromDepositWhitelist, N>
pub fn StrategyRemovedFromDepositWhitelist_filter( &self, ) -> Event<T, &P, StrategyRemovedFromDepositWhitelist, N>
Creates a new event filter for the StrategyRemovedFromDepositWhitelist
event.
Sourcepub fn StrategyWhitelisterChanged_filter(
&self,
) -> Event<T, &P, StrategyWhitelisterChanged, N>
pub fn StrategyWhitelisterChanged_filter( &self, ) -> Event<T, &P, StrategyWhitelisterChanged, N>
Creates a new event filter for the StrategyWhitelisterChanged
event.
Sourcepub fn Unpaused_filter(&self) -> Event<T, &P, Unpaused, N>
pub fn Unpaused_filter(&self) -> Event<T, &P, Unpaused, N>
Creates a new event filter for the Unpaused
event.
Sourcepub fn UpdatedThirdPartyTransfersForbidden_filter(
&self,
) -> Event<T, &P, UpdatedThirdPartyTransfersForbidden, N>
pub fn UpdatedThirdPartyTransfersForbidden_filter( &self, ) -> Event<T, &P, UpdatedThirdPartyTransfersForbidden, N>
Creates a new event filter for the UpdatedThirdPartyTransfersForbidden
event.
Trait Implementations§
Auto Trait Implementations§
impl<T, P, N> Freeze for StrategyManagerInstance<T, P, N>where
P: Freeze,
impl<T, P, N> RefUnwindSafe for StrategyManagerInstance<T, P, N>
impl<T, P, N> Send for StrategyManagerInstance<T, P, N>
impl<T, P, N> Sync for StrategyManagerInstance<T, P, N>
impl<T, P, N> Unpin for StrategyManagerInstance<T, P, N>
impl<T, P, N> UnwindSafe for StrategyManagerInstance<T, P, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more