├── .gitignore ├── .gitmodules ├── LICENSE ├── README.md ├── foundry.lock ├── foundry.toml ├── remappings.txt ├── script └── PrecompileScript.sol ├── src ├── CoreWriterLib.sol ├── PrecompileLib.sol ├── common │ ├── HLConstants.sol │ └── HLConversions.sol ├── examples │ ├── BridgingExample.sol │ ├── README.md │ ├── StakingExample.sol │ ├── TradingExample.sol │ └── VaultExample.sol ├── interfaces │ ├── ICoreWriter.sol │ └── ITokenRegistry.sol └── registry │ ├── README.md │ └── TokenRegistry.sol └── test ├── BaseSimulatorTest.sol ├── PrecompileLibTests.t.sol ├── simulation ├── CoreSimulatorLib.sol ├── CoreWriterSim.sol ├── HyperCore.sol ├── PrecompileSim.sol └── hyper-core │ ├── CoreExecution.sol │ ├── CoreState.sol │ └── CoreView.sol ├── unit-tests ├── CoreSimulatorTest.t.sol └── StakingTest.t.sol └── utils ├── HypeTradingContract.sol ├── L1Read.sol ├── PrecompileSimulator.sol └── RealL1Read.sol /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/.gitmodules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/README.md -------------------------------------------------------------------------------- /foundry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/foundry.lock -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/foundry.toml -------------------------------------------------------------------------------- /remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/remappings.txt -------------------------------------------------------------------------------- /script/PrecompileScript.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/script/PrecompileScript.sol -------------------------------------------------------------------------------- /src/CoreWriterLib.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/CoreWriterLib.sol -------------------------------------------------------------------------------- /src/PrecompileLib.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/PrecompileLib.sol -------------------------------------------------------------------------------- /src/common/HLConstants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/common/HLConstants.sol -------------------------------------------------------------------------------- /src/common/HLConversions.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/common/HLConversions.sol -------------------------------------------------------------------------------- /src/examples/BridgingExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/examples/BridgingExample.sol -------------------------------------------------------------------------------- /src/examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/examples/README.md -------------------------------------------------------------------------------- /src/examples/StakingExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/examples/StakingExample.sol -------------------------------------------------------------------------------- /src/examples/TradingExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/examples/TradingExample.sol -------------------------------------------------------------------------------- /src/examples/VaultExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/examples/VaultExample.sol -------------------------------------------------------------------------------- /src/interfaces/ICoreWriter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/interfaces/ICoreWriter.sol -------------------------------------------------------------------------------- /src/interfaces/ITokenRegistry.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/interfaces/ITokenRegistry.sol -------------------------------------------------------------------------------- /src/registry/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/registry/README.md -------------------------------------------------------------------------------- /src/registry/TokenRegistry.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/src/registry/TokenRegistry.sol -------------------------------------------------------------------------------- /test/BaseSimulatorTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/BaseSimulatorTest.sol -------------------------------------------------------------------------------- /test/PrecompileLibTests.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/PrecompileLibTests.t.sol -------------------------------------------------------------------------------- /test/simulation/CoreSimulatorLib.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/simulation/CoreSimulatorLib.sol -------------------------------------------------------------------------------- /test/simulation/CoreWriterSim.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/simulation/CoreWriterSim.sol -------------------------------------------------------------------------------- /test/simulation/HyperCore.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/simulation/HyperCore.sol -------------------------------------------------------------------------------- /test/simulation/PrecompileSim.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/simulation/PrecompileSim.sol -------------------------------------------------------------------------------- /test/simulation/hyper-core/CoreExecution.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/simulation/hyper-core/CoreExecution.sol -------------------------------------------------------------------------------- /test/simulation/hyper-core/CoreState.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/simulation/hyper-core/CoreState.sol -------------------------------------------------------------------------------- /test/simulation/hyper-core/CoreView.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/simulation/hyper-core/CoreView.sol -------------------------------------------------------------------------------- /test/unit-tests/CoreSimulatorTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/unit-tests/CoreSimulatorTest.t.sol -------------------------------------------------------------------------------- /test/unit-tests/StakingTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/unit-tests/StakingTest.t.sol -------------------------------------------------------------------------------- /test/utils/HypeTradingContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/utils/HypeTradingContract.sol -------------------------------------------------------------------------------- /test/utils/L1Read.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/utils/L1Read.sol -------------------------------------------------------------------------------- /test/utils/PrecompileSimulator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/utils/PrecompileSimulator.sol -------------------------------------------------------------------------------- /test/utils/RealL1Read.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperliquid-dev/hyper-evm-lib/HEAD/test/utils/RealL1Read.sol --------------------------------------------------------------------------------