Skip to content

Modules

These pages are for readers who know Python but are new to smart contracts. Each page walks through the real source code step by step and ends with questions so you can check your understanding.

The code on these pages comes straight from src/hyper_vyper/, and a test checks that each quoted block still starts at the correct line.

Start with concepts, then read the pages in this order:

Order Module What you learn
1 constants.vy Addresses, action headers, token indices and units
2 precompiles.vy How a contract reads HyperCore state
3 core_writer.vy How a contract sends actions to HyperCore
4 conversions.vy How amounts change between EVM, Core and order units
5 bridge.vy How funds move between HyperEVM and HyperCore