Skip to main content

Overview

GeodeTypes.sol defines all shared data structures, protocol constants, and EIP-712 typehashes. All structs are declared at file level for ergonomic imports across the codebase.

EIP-712 Constants

Protocol Constants

Structs

GeodeIntent

A user’s signed trade intent:

BatchState

Per-pool batch state — overwritten each settlement cycle:

SettlementResult

Output of the clearing price computation:

PoolConfig

Per-pool configuration — set once via geodeInitializePool:

LaunchState

Per-pool permanent curve state:

LaunchPhase

The LaunchPhase enum has only two values. The curve is permanent — there is no PendingGraduation or Graduated phase. Once Active, the curve operates forever.

Source

GeodeTypes.sol

View the full source code on GitHub (~157 lines).