Docs

Forecasters

Jobs & rounds

How forecast jobs are created and gated, which markets they may trade, what a round carries on-chain, and how a vault's engine reads it.

Markdown
On this page

A forecast job is a stream of rounds that one vault trades. A round is an on-chain attestation in HyperSignalBook: a sealed commitment to the round's forecasts (forecastsRoot) plus sparse target weights, in basis points, for the markets the job covers. Individual forecasts and forecaster identities never go on-chain.

Two kinds of job#

Verified job (Mode 1)Manager job (Mode 2)
Created byThe councilThe vault's live manager, or the council
Rounds posted byThe protocol poster (or the council)The manager, its custom scorer, or the council
Scored and paid byThe protocol scorerThe manager or its custom scorer
PotsUSDC; DGV too at token launchUSDC only
SlashingProtocol scorer and councilManager can only propose; the protocol executes
Paid days countedYes (paidDaysCount)No

Job 1 is the Flagship job. It exists from deployment, has no vault, and runs a 24-hour horizon on a 4-hour cadence. Every other job is bound to one vault. A vault's manager is resolved live: the vault's strategyManager(), else its admin(). If a vault changes manager, a custom scorer set by the previous manager stops counting.

Create a job#

Solidity
function createJob(
    address vault,
    bool verified,
    address customScorer,
    uint32 horizonSecs,
    uint32 cadenceSecs,
    string calldata specUri,
    JobEntryFilter calldata filter
) external returns (uint64 jobId);

struct JobEntryFilter {
    uint128 minBondUsdc;       // raises the global minimum; 0 = global only
    uint16 maxRecentSlashBps;  // 0 = no limit
    uint32 minPaidDays;        // paid days on verified jobs
    uint32 minBondAgeSecs;     // since the bond first met the global minimum
    bool whitelistOnly;        // only addresses set with setJobWhitelist
}
ParameterRule
vaultNon-zero; a factory vault or one the council allowed
verifiedtrue only from the council; verified jobs ignore customScorer
horizonSecs1 hour to 7 days; fixed for the job's life
cadenceSecsAt most 7 days; fixed for the job's life
specUriNon-empty. The job's own description of what to predict and how it scores
filter.maxRecentSlashBpsAt most 10,000

Job ids start at 2 and count up (nextJobId() returns the last one created). Reverts: ZeroAddress, Unauthorized (caller is not the council or the vault's manager, or a non-council caller sets verified), VaultNotAuthorized(vault), InvalidPolicy.

The owner can later call updateJob(jobId, customScorer, specUri, filter, active) to change the scorer (manager jobs only), the spec, the filter or the active flag, and setJobWhitelist(jobId, forecasters, allowed) to manage a private list. Horizon, cadence, vault and verified never change.

A vault trades a job through the forecastJobId in its fee config: job 1 or a job bound to that vault. With forecastJobId == 0 the engine reads job 1. Vault fees covers the forecast share that funds the job's pot.

Markets#

The council lists the markets that rounds may target, up to 256. Each market has a sleeve (0 core perp, 1 HIP-3 perp on trade.xyz), a curated weight cap, its size decimals, and a pause flag. A round can only target listed, unpaused markets.

Asset ids follow HyperCore: a core perp uses its index in the perp universe, and a HIP-3 perp uses 100000 + dex × 10000 + index.

const abi = parseAbi([
  "function marketCount() view returns (uint256)",
  "function marketIds(uint256 index) view returns (uint32)",
  "function markets(uint32 assetId) view returns (bool listed, bool paused, uint8 sleeve, uint16 maxWeightBps, uint8 szDecimals)",
]);
const n = await pub.readContract({ address: SIGNAL_BOOK, abi, functionName: "marketCount" });
for (let i = 0n; i < n; i++) {
  const id = await pub.readContract({ address: SIGNAL_BOOK, abi, functionName: "marketIds", args: [i] });
  const [listed, paused, sleeve, maxWeightBps] = await pub.readContract({
    address: SIGNAL_BOOK, abi, functionName: "markets", args: [id],
  });
  console.log(id, { listed, paused, sleeve, maxWeightBps });
}

What a round carries#

Solidity
function postJobRound(
    uint64 jobId,
    uint32 horizonSecs,
    uint64 ttlSecs,
    uint16 regimeStormBps,
    uint32 forecasterCount,
    bytes32 forecastsRoot,
    uint32[] calldata assetIds,
    int16[] calldata targetWeightsBps
) external returns (uint64 roundId);
FieldMeaningBound
horizonSecsHow far ahead this round predicts1 hour to 7 days
ttlSecsHow long the targets stay fresh; expiresAt = postedAt + ttlSecsAbove 0, at most 7 days
regimeStormBpsA market-stress reading attached to the roundAt most 10,000
forecasterCountHow many forecasts went into the roundAttested, not checked
forecastsRootCommitment to every forecast in the roundNon-zero
assetIds, targetWeightsBpsSparse target weights, signed, in bps of the vaultListed, unpaused, no duplicates, no zero weight

Verified jobs are posted by the protocol poster or the council; manager jobs by the manager, its live custom scorer or the council. Reverts: JobNotFound, JobNotActive, Unauthorized, InvalidPolicy, LengthMismatch, MarketNotListed, MarketPaused, DuplicateMarket, ZeroAmount (a zero weight). Each round emits JobRoundPosted with every field.

The contract keeps only the latest round's metadata (jobLatestRound) and every round's weights (jobRoundTargetBps(jobId, roundId, assetId)). roundId counts up per job from 1. Nothing on-chain enforces the cadence, and a round's horizon need not equal the job's.

How engines read a round#

A vault's engine steps each market toward the latest round of its job, while that round is fresh:

  1. Read jobLatestRound(job). If block.timestamp > expiresAt, the target is 0 and the engine steps the market to flat.
  2. Otherwise read jobRoundTargetBps(job, roundId, assetId). Markets the round omits have target 0.
  3. Clamp the target to the vault tier's cap for that market; Flagship vaults also apply the market's maxWeightBps.

jobTargetWeightOf(jobId, assetId) returns the same live answer in one call, as (weightBps, regimeStormBps, fresh). Use it to see what a vault is trading toward. The engine does not read regimeStormBps.

The UTC grid#

Pay runs on UTC days: HyperCrowdPay.today() is block.timestamp / 86400, and each job has one pot per day. The protocol poster runs verified jobs on a UTC grid: with cadence c, slot k opens at k × c seconds after the Unix epoch, so the Flagship's 4-hour cadence posts at 00:00, 04:00, 08:00 and so on, UTC. The grid is a poster convention. On-chain, roundId is a per-job counter, not the slot number.

Fig. 1Rounds on the UTC grid
postJobRound(...)commits forecastsRoot and target weights, sets expiresAthorizon ends: round r is scoredround r − 1round rround r + 1round r + 200:0004:0008:0012:0016:00expiresAtThe engine trades on round r while it is the newest fresh round.With no newer round, round r stays usable until expiresAt (TTL at most 7 days).Example: a 4-hour job. Horizons run from 1 hour to 7 days.Example: a 4-hour jobr − 1rr + 1r + 200:0004:0008:0012:0016:0004:00 UTCThe poster calls postJobRound: forecastsRoot,target weights, expiresAt (TTL ≤ 7 days).04:00 to 08:00The engine trades on round r while it isthe newest fresh round.08:00 UTCRound r + 1 posts and takes over. Round r'shorizon ends and it is scored.expiresAtWith no newer round, round r stopssteering the engine.
A job's rounds start at multiples of its horizon; each round steers the engine while it is the newest fresh round and is scored once its horizon ends.

Use the decoder to find the current slot and its start time for a cadence, and to convert a percentage weight into bps.

1. UTC round slot
horizonSecs
14,400
Slot = floor(now / horizonSecs)
...
Slot opened
...
Slot closes in
...
CrowdPay pot day = floor(now / 86400)
...

On chain, roundId counts up per job. The slot is the UTC grid a poster aligns rounds to. The cap is the vault tier cap, and for the Flagship also the market's maxWeightBps.

2. Percent to integer bps
Encoded bps450 bpsValid int16
Weight the engine trades450 bpsclamp to ±10,000
postJobRound(
  jobId,
  14400, // horizonSecs
  14400, // ttlSecs, 1..604800
  0, // regimeStormBps
  forecasterCount,
  FORECASTS_ROOT,
  [ASSET_ID],
  [450] // int16 targetWeightsBps
)

Forecasts for a slot must be in before it opens. A forecast posted publicly before its round starts can be copied, which costs you originality in scoring.

These docs describe the architecture and smart contracts across Hyperliquid L1 (HyperEVM) (chain id 999) and Robinhood Chain (chain id 4663). Nothing here is investment advice or a promise of returns. DegenHive is not affiliated with, endorsed by, or sponsored by Hyperliquid, Robinhood Markets, Inc., Nasdaq, Inc., or their affiliates.