Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

aHYPE Events Reference

Complete event reference for the AlphaHYPEManager contract.

Deposit Events

DepositQueued

Emitted when a user deposits HYPE to the queue.

event DepositQueued(address indexed depositor, uint256 amount);
ParameterTypeIndexedDescription
depositoraddressYesAddress that deposited HYPE
amountuint256NoAmount of HYPE deposited (wei)

DepositProcessed

Emitted when a queued deposit is processed and αHYPE is minted.

event DepositProcessed(address indexed depositor, uint256 amount, uint256 wrappedAmount);
ParameterTypeIndexedDescription
depositoraddressYesAddress receiving αHYPE
amountuint256NoHYPE amount deposited
wrappedAmountuint256NoαHYPE minted (after fee)

Withdrawal Events

WithdrawalQueued

Emitted when a user requests a withdrawal.

event WithdrawalQueued(address indexed withdrawer, uint256 wrappedAmount);
ParameterTypeIndexedDescription
withdraweraddressYesAddress requesting withdrawal
wrappedAmountuint256NoαHYPE amount to withdraw

WithdrawalProcessed

Emitted when a withdrawal request is settled.

event WithdrawalProcessed(address indexed withdrawer, uint256 amount, uint256 wrappedAmount);
ParameterTypeIndexedDescription
withdraweraddressYesAddress with processed withdrawal
amountuint256NoHYPE amount owed
wrappedAmountuint256NoαHYPE amount burned

WithdrawalClaimed

Emitted when a user claims their processed HYPE.

event WithdrawalClaimed(address indexed withdrawer, uint256 amount);
ParameterTypeIndexedDescription
withdraweraddressYesAddress claiming HYPE
amountuint256NoHYPE amount claimed (wei)

Bridging Events

EVMSend

Emitted when HYPE is sent within EVM.

event EVMSend(uint256 amount, address to);
ParameterTypeIndexedDescription
amountuint256NoAmount sent
toaddressNoRecipient address

SpotSend

Emitted when HYPE is bridged to/from Spot.

event SpotSend(uint256 amount, address to);
ParameterTypeIndexedDescription
amountuint256NoAmount bridged
toaddressNoRecipient address

Staking Events

StakingDeposit

Emitted when HYPE is deposited to staking.

event StakingDeposit(uint256 amount);
ParameterTypeIndexedDescription
amountuint256NoAmount deposited to staking

StakingWithdraw

Emitted when HYPE is withdrawn from staking.

event StakingWithdraw(uint256 amount);
ParameterTypeIndexedDescription
amountuint256NoAmount withdrawn from staking

TokenDelegate

Emitted when HYPE is delegated or undelegated to a validator.

event TokenDelegate(address indexed validator, uint256 amount, bool isUndelegate);
ParameterTypeIndexedDescription
validatoraddressYesValidator address
amountuint256NoAmount delegated/undelegated
isUndelegateboolNotrue if undelegating, false if delegating

Event Flow Examples

Complete Deposit Flow

1. User sends HYPE
   └── DepositQueued(user, 1000e18)
 
2. Processor calls processQueues()
   └── DepositProcessed(user, 1000e18, 999e8)  // minus 0.1% fee
   └── TokenDelegate(validator, 1000e8, false)  // delegate to staking

Complete Withdrawal Flow

1. User calls withdraw(100e8)
   └── WithdrawalQueued(user, 100e8)
 
2. Processor calls processQueues()
   └── StakingWithdraw(100e8)  // if needed
   └── SpotSend(100e8, contract)  // bridge if needed
   └── WithdrawalProcessed(user, 99.9e8, 100e8)  // minus 0.1% fee
 
3. User calls claimWithdrawal()
   └── WithdrawalClaimed(user, 99.9e18)  // scaled to 18 decimals

Monitoring Recommendations

Key Events for Integrators

Use CaseEvents to Monitor
Track depositsDepositQueued, DepositProcessed
Track withdrawalsWithdrawalQueued, WithdrawalProcessed, WithdrawalClaimed
Monitor TVL changesStakingDeposit, StakingWithdraw, TokenDelegate
Detect bridging activityEVMSend, SpotSend

Event Indexing

All address parameters with indexed modifier can be filtered efficiently:

  • depositor in deposit events
  • withdrawer in withdrawal events
  • validator in delegation events