Properties of an OracleTask.

interface IOracleTask {
    chainlinkAddress?: string;
    chainlinkConfigs?: IChainlinkConfigs;
    pythAddress?: string;
    pythAllowedConfidenceInterval?: number;
    pythConfigs?: IPythConfigs;
    switchboardAddress?: string;
}

Implemented by

Properties

chainlinkAddress?: string

Mainnet address for a Chainlink feed. A full list can be found here: https://docs.chain.link/docs/solana/data-feeds-solana

chainlinkConfigs?: IChainlinkConfigs

OracleTask chainlinkConfigs

pythAddress?: string

Mainnet address for a Pyth feed. A full list can be found here: https://pyth.network/price-feeds/

pythAllowedConfidenceInterval?: number

Value (as a percentage) that the lower bound confidence interval is of the actual value. Confidence intervals that are larger that this treshold are rejected.

The confidence interval should be provided as a raw percentage value. For example, to represent 10%, enter the value as 10, not 0.1.

pythConfigs?: IPythConfigs

OracleTask pythConfigs

switchboardAddress?: string

Mainnet address of a Switchboard feed. Switchboard is decentralized and allows anyone to build their own feed.

Generated using TypeDoc