IStakeManager
manage deposits and stakes. deposit is just a balance used to pay for UserOperations (either by a paymaster or an account) stake is value locked for at least "unstakeDelay" by the staked entity.
Methods
addStake
add to the account's stake - amount and delay any pending unstake is first cancelled.
Parameters
_unstakeDelaySec
uint32
the new lock duration before the deposit can be withdrawn.
balanceOf
Parameters
account
address
undefined
Returns
_0
uint256
the deposit (for gas payment) of the account
depositTo
add to the deposit of the given account
Parameters
account
address
undefined
getDepositInfo
Parameters
account
address
undefined
Returns
info
IStakeManager.DepositInfo
- full deposit information of given account
unlockStake
attempt to unlock the stake. the value can be withdrawn (using withdrawStake) after the unstake delay.
withdrawStake
withdraw from the (unlocked) stake. must first call unlockStake and wait for the unstakeDelay to pass
Parameters
withdrawAddress
address payable
the address to send withdrawn value.
withdrawTo
withdraw from the deposit.
Parameters
withdrawAddress
address payable
the address to send withdrawn value.
withdrawAmount
uint256
the amount to withdraw.
Events
Deposited
Parameters
account indexed
address
undefined
totalDeposit
uint256
undefined
StakeLocked
Emitted when stake or unstake delay are modified
Parameters
account indexed
address
undefined
totalStaked
uint256
undefined
unstakeDelaySec
uint256
undefined
StakeUnlocked
Emitted once a stake is scheduled for withdrawal
Parameters
account indexed
address
undefined
withdrawTime
uint256
undefined
StakeWithdrawn
Parameters
account indexed
address
undefined
withdrawAddress
address
undefined
amount
uint256
undefined
Withdrawn
Parameters
account indexed
address
undefined
withdrawAddress
address
undefined
amount
uint256
undefined
Last updated