Skip to main content

Module evm

Module evm 

Source
Expand description

HyperCore and HyperEVM, linked. A linked spot token crosses between Core and EVM spot through its system address: 0x2222...2222 for HYPE, 0x20, zeros and the token index for any other. Core to EVM is a spotSend or sendAsset to Linked::system; EVM to Core is a HyperEVM transaction to the same address (Linked::to_core). A send to a system address leaves Core rather than reaching a person, so a transfer checks for them.

Structs§

Linked
A spot token as it is linked to HyperEVM. Its contract can hold arbitrary code; nothing here checks its supply or what its transfer does.

Constants§

HYPE_SYSTEM
HYPE’s system address, 0x2222...2222: HYPE is the native coin on HyperEVM.

Functions§

is_system_address
Whether a send to address crosses between Core and HyperEVM rather than reaching a person: 0x2222...2222, or 0x20, zeros and a token index.
system_address
The address a linked spot token crosses through: 0x20, then the token index big-endian in the low bytes. Token 200 is 0x2000...00c8.
system_token
The token index a 0x20 system address stands for; None for HYPE’s, which crosses natively.