@somnia-chain/markets-sdk / index / SomniaMarketsAddresses
Interface: SomniaMarketsAddresses
Defined in: config.ts:9
Protocol contract addresses (all optional — features degrade if unset).
Properties
fakeOracle?
optionalfakeOracle?:`0x${string}`
Defined in: config.ts:11
FakeOracle resolver (demo resolve/void).
collateral?
optionalcollateral?:`0x${string}`
Defined in: config.ts:15
Per-venue collateral ERC-20 (the venue's quote/collateral token; on test
environments this is the faucet-capable TestUSDC). Preferred over
testUsdc, which remains as the legacy/fallback alias.
testUsdc?
optionaltestUsdc?:`0x${string}`
Defined in: config.ts:18
TestUSDC collateral (faucet + balances). Legacy/fallback alias for SomniaMarketsAddresses.collateral.
binaryModule?
optionalbinaryModule?:`0x${string}`
Defined in: config.ts:19
marketCreator?
optionalmarketCreator?:`0x${string}`
Defined in: config.ts:22
MarketCreator factory. When set, the live tail watches MarketCreated and picks up new binary markets the block they deploy — no indexer round-trip.
clobFactory?
optionalclobFactory?:`0x${string}`
Defined in: config.ts:23
binaryPoolImpl?
optionalbinaryPoolImpl?:`0x${string}`
Defined in: config.ts:24
binarySettlement?
optionalbinarySettlement?:`0x${string}`
Defined in: config.ts:30
The permanent BinarySettlement singleton (settlement-extraction v2). Every
pool finalizes its markets into it and every redemption routes through it,
so a pool can be recycled onto the next market. Needed by the low-level
redeemDirect / claimOwed / getSettlement trader methods, which throw
if it is unset. Absent on pre-v2 (pool-redeem) deploys.
operatorPermissionsRegistry?
optionaloperatorPermissionsRegistry?:`0x${string}`
Defined in: config.ts:33
Shared OperatorPermissionsRegistry — users operator-approve a SpotStopOrderRegistry here (once, globally) so it can place their stop order via the pool at trigger time.
marketsCore?
optionalmarketsCore?:`0x${string}`
Defined in: config.ts:37
MarketsCore — the control-plane registry of operators, typed venues, and
the module binding per market type. Needed by the operator/venue admin
reads + createOperatorAdmin writes.
collateralRouter?
optionalcollateralRouter?:`0x${string}`
Defined in: config.ts:42
CollateralRouter periphery — the native-token (wrap/unwrap) + Permit2 entry over BinaryMarketsModule's complete-set flow. May be absent for an environment where only the plain-ERC-20 path is deployed; the router-based trader methods throw if it is unset rather than sending to the zero address.
marketCreatorFactory?
optionalmarketCreatorFactory?:`0x${string}`
Defined in: config.ts:46
MarketCreatorFactory — stamps out per-operator/venue MarketCreator (+ its
policy) instances, the operator "market machinery" layer. Needed by
createMarketCreatorAdmin writes; the admin throws if it is unset.
oracleHub?
optionaloracleHub?:`0x${string}`
Defined in: config.ts:55
The OracleHub proxy (Oracle v2 §8e) — the protocol's ONE
governance-approved oracle adapter. Every market creation binds through it
(content-addressed scheduleQuestion dedup, earmark-at-creation resolution
funding + bounded-drain exact metering, payout-vector delivery). Needed by
the OracleHub reads (quoteCreateMarketValue, getSchedulingCost,
earmarkedOf, resolveReserve) and the createOracleHubAdmin writes; those throw if it
is unset. Also the default adapter for
createMarketCreatorAdmin.createMarketCreator.
oracleAdapterFactory?
optionaloracleAdapterFactory?:`0x${string}`
Defined in: config.ts:59
Deprecated
LEGACY (pre-oracle-v2): OracleAdapterFactory. The factory contract was deleted in Oracle v2 — use SomniaMarketsAddresses.oracleHub. Kept only so old configs keep type-checking; nothing in the SDK reads it.
sharedOracleAdapter?
optionalsharedOracleAdapter?:`0x${string}`
Defined in: config.ts:63
Deprecated
LEGACY (pre-oracle-v2): the shared ProphecyOracleAdapter proxy. Replaced by SomniaMarketsAddresses.oracleHub. Kept only so old configs keep type-checking; nothing in the SDK reads it.