Skip to main content

Type Alias: OracleSettlementConfig

type OracleSettlementConfig = object;

Defined in: solana-client/src/settlement-layer.ts:82

Decoded SolanaOracleLayer config account. Mirrors the on-chain OracleSettlementConfig struct: the two mints, each mint's oracle binding (kind + 32-byte feed id), and the settlement policy. Every field is baked into the config PDA's seeds, so the address alone fully identifies it.

Properties

collateralDecimals?

optional collateralDecimals?: number;

Defined in: solana-client/src/settlement-layer.ts:95

The mints' decimals, as the config account caches them.

Optional because they are the one part of a config nobody has to state: initialize_config reads them off the two mint accounts itself, and they are not seed-encoded, so they do not enter the PDA. So SolanaOracleLayer.read fills them in and a config being deployed for the first time — including the one SolanaOracleLayer.defaultConfig derives — leaves them out.


collateralMint

collateralMint: Bytes32;

Defined in: solana-client/src/settlement-layer.ts:84


collateralOracleId

collateralOracleId: number;

Defined in: solana-client/src/settlement-layer.ts:98


collateralOracleKind

collateralOracleKind: OracleKindByte;

Defined in: solana-client/src/settlement-layer.ts:97


exerciseMode

exerciseMode: ExerciseModeByte;

Defined in: solana-client/src/settlement-layer.ts:107


intrinsicResolution

intrinsicResolution: boolean;

Defined in: solana-client/src/settlement-layer.ts:106

true = intrinsic (cash-settled); false = physical proportional settlement.


kind

kind: "oracle";

Defined in: solana-client/src/settlement-layer.ts:83


maxConfBps

maxConfBps: number;

Defined in: solana-client/src/settlement-layer.ts:104

Max oracle confidence interval, in basis points of the price.


maxStalenessSecs

maxStalenessSecs: number;

Defined in: solana-client/src/settlement-layer.ts:102

Max age (seconds) an oracle price may have before settlement rejects it.


settlementDecimals?

optional settlementDecimals?: number;

Defined in: solana-client/src/settlement-layer.ts:96


settlementMint

settlementMint: Bytes32;

Defined in: solana-client/src/settlement-layer.ts:85


settlementOracleId

settlementOracleId: number;

Defined in: solana-client/src/settlement-layer.ts:100


settlementOracleKind

settlementOracleKind: OracleKindByte;

Defined in: solana-client/src/settlement-layer.ts:99