Skip to content

Glossary

Terminology and definitions used throughout Kaizen Core.

Core Concepts

TermDescription
BoxThesis type observing price range over entire time window. User wins if price stays within range.
LineThesis type checking price only at a specific point in time (future support).
RFQRequest for Quote - the thesis flow where users request quotes from solvers.
SolverMarket maker that provides quotes and takes opposite positions to users.
Challenge WindowTime period after observation where settlement can occur. Settler service monitors and settles during this time.
BreachState where price exits the specified range.
OIOpen Interest - total bet amount of open positions in a market.
Ring BufferFixed-size circular buffer for oracle prices, overwrites oldest data.
JMTJellyfish Merkle Tree - efficient merkle tree implementation from Aptos.
STFState Transition Function - pure function that transforms state given a block.
DAData Availability layer for submitting finalized blocks.
CheckpointPeriodic operation (every 100ms) that commits state, updates oracle, and creates block.
Streaming ExecutionExecution model where transactions execute immediately, not in batches.

Thesis Lifecycle

StateDescription
CreatedThesis submitted, waiting for start time.
ActiveWithin observation period, monitoring for breaches.
InChallengeWindowObservation ended, in settlement window.
SettledUserWinUser won - price stayed in range.
SettledSolverWinSolver won - breach was proven.
CancelledThesis cancelled before start.

Node Types

TypeDescription
Write NodeSequencer that produces blocks and executes transactions. Single instance.
Read NodeReplica that syncs from write node, serves queries. Horizontally scalable.
Oracle ServiceExternal service that provides price feeds from exchanges.
SettlerExternal service that monitors theses and submits settlement transactions.

Transaction Types

Account Operations

TypeDescription
TransferMove balance between accounts within Kaizen.
NominateApiWalletRegister a delegated API wallet for trading.
RevokeApiWalletRemove an API wallet.

Bridge Operations

TypeDescription
DepositCredit funds from external chain deposit (Relayer only).
WithdrawRequest withdrawal to external chain.
ProcessWithdrawalMark withdrawal as completed (Relayer only).

RFQ Operations

TypeDescription
RfqSubmitCreate new prediction thesis with solver quote.
RfqSettleFinalize thesis after settlement window.

Oracle Operations

TypeDescription
OracleFeedSubmit price data (Feeder only, deprecated - now uses pull model).
OracleBackfillBackfill historical price data (Admin only).
SystemSettleSettlement transaction submitted by Settler service. Settles RFQ theses.

Admin Operations

TypeDescription
MarketUpdateCreate or update market configuration.
SetUserLimitsSet per-user trading limits.
SetBlacklistAdd/remove address from blacklist.
SetSystemPausePause/unpause entire system.

Permissions

RoleDescriptionAllowed Operations
UserNormal userTrade, transfer, API wallets
RelayerBridge relayerDeposit, ProcessWithdrawal
FeederOracle feederOracleFeed
AdminAdministratorAll admin operations

Technical Terms

Cryptography

TermDescription
EIP-712Ethereum typed structured data signing standard.
secp256k1Elliptic curve used for signatures (same as Ethereum).
keccak256Hash function used for addresses and signatures.
ECDSAElliptic Curve Digital Signature Algorithm.

State Management

TermDescription
State RootMerkle root hash of entire state at a block height.
VersionSequential number for state snapshots (same as block height).
SnapshotFull state dump at a specific version for bootstrapping.
PruningRemoving old state versions to save storage.
Event SourcingArchitecture where events are the source of truth for queryable state.
WALWrite-Ahead Log - durable append-only log for crash recovery.
IndexerService that stores events to PostgreSQL for fast queries.

Blockchain

TermDescription
Block HeightSequential block number (1, 2, 3, ...).
TimestampTransaction timestamp used for replay protection (Hyperliquid-style).
MempoolPool of pending transactions (used in batch mode, not streaming).
Column FamilyRocksDB logical data partition for different data types.

Networking

TermDescription
JSON-RPCRemote procedure call protocol used for API.
WebSocketFull-duplex connection for real-time subscriptions.
gRPCHigh-performance RPC for block sync between nodes.

Crate Architecture

CratePurpose
kaizen-coreCore traits and abstractions (Payload, StateReader, etc.)
kaizen-typesCommon type definitions (Address, Block, RfqThesis, etc.)
kaizen-txTransaction structures and EIP-712 encoding
kaizen-authSignature verification and API wallet authorization
kaizen-stateRocksDB + JMT state management
kaizen-engineBusiness logic and modular STF executors
kaizen-appServer, RPC, WebSocket, and node runtime
kaizen-metricsPrometheus and Sentry integration
kaizen-macrosDerive macros for serialization

Executor Modules

ModuleResponsibility
AccountExecutorTransfer, API wallet management
BridgeExecutorDeposit, withdrawal processing
RfqExecutorThesis submission, settlement
OracleExecutorPrice feed processing, backfill
AdminExecutorSystem configuration, limits, pause

Units and Constants

UnitValueDescription
USDC6 decimals1 USDC = 1,000,000 base units
TimestampUnix millisecondsAll timestamps in milliseconds
Block Interval100msCheckpoint frequency
Ring Buffer Size65,536 slots~1.8 hours of price history
Max Staleness3,000msMaximum oracle age for trading
Challenge WindowConfigurableTime period for auto-settlement

Events

EventDescription
TransferBalance transferred between accounts
DepositFunds deposited from external chain
WithdrawRequestedWithdrawal request created
WithdrawProcessedWithdrawal completed
RfqSubmittedNew thesis created
RfqSettledThesis settled with winner
RfqCancelledThesis cancelled
OraclePriceUpdatedNew price recorded
OracleBackfilledHistorical data added
SystemPausedSystem paused by admin
SystemUnpausedSystem resumed

API Wallet

TermDescription
Main WalletUser's primary wallet that controls the account
API WalletDelegated wallet that can trade but not withdraw
ExpiryTimestamp when API wallet authorization ends
NominationProcess of registering an API wallet
RevocationProcess of removing an API wallet

Quote Structure

FieldDescription
bet_amountAmount user is betting
payoutTotal amount winner receives
solver_collateralpayout - bet_amount (solver's stake)
price_rangeLower and upper bounds for prediction
start_timeWhen observation period begins
end_timeWhen observation period ends
deadlineUser must submit before this time