Skip to main content
Root values and utilities from @voiz/markets-sdk (not class methods). Product types live beside the methods that return them (client / market / pool / user). VoizMarket / VoizPool / VoizUser come from client.market|pool|user, not the package root.

Chains

getAddresses

Resolves the known-chain address map, with optional overrides.

Seed quote

normalizeOddsBps

Normalizes raw odds to bigint basis points that sum to 10_000 (each outcome 1%–99%).

quoteSeed

Seed collateral totals without needing outcome tokens (safe before create). Naming aligns with pool.quoteTrade.
Share half (splitAmount), pool-side collateral, and total credits to lock.

Display helpers

resolvedDisplayRows

Fixed 0 / 1 display price rows for a resolved market (winner = 100%).

marketImagePath

Deterministic blob pathname for a market or outcome image.

aggregateOutcomeCollateral

Sums liquidity or volume across outcome stats. Returns null if any row is missing.

ABI

erc20Abi

ERC-20 fragment for front-end wallet paths (balanceOf / allowance / approve / decimals / symbol).