Represents a singular operation performed by an oracle to yield an eventual numerical result.

Implements

Constructors

  • Constructs a new Task.

    Parameters

    • Optionalproperties: ITask

      Properties to set

    Returns OracleJob.Task

Properties

addTask?: IAddTask

Task addTask.

aftermathTask?: IAftermathTask

Task aftermathTask.

anchorFetchTask?: IAnchorFetchTask

Task anchorFetchTask.

bitFluxTask?: IBitFluxTask

Task bitFluxTask.

boundTask?: IBoundTask

Task boundTask.

bufferLayoutParseTask?: IBufferLayoutParseTask

Task bufferLayoutParseTask.

cacheTask?: ICacheTask

Task cacheTask.

comparisonTask?: IComparisonTask

Task comparisonTask.

conditionalTask?: IConditionalTask

Task conditionalTask.

corexTask?: ICorexTask

Task corexTask.

cronParseTask?: ICronParseTask

Task cronParseTask.

curveFinanceTask?: ICurveFinanceTask

Task curveFinanceTask.

divideTask?: IDivideTask

Task divideTask.

etherfuseTask?: IEtherfuseTask

Task etherfuseTask.

ewmaTask?: IEwmaTask

Task ewmaTask.

fragmetricTask?: IFragmetricTask

Task fragmetricTask.

glyphTask?: IGlyphTask

Task glyphTask.

historyFunctionTask?: IHistoryFunctionTask

Task historyFunctionTask.

httpTask?: IHttpTask

Task httpTask.

jsonParseTask?: IJsonParseTask

Task jsonParseTask.

jupiterSwapTask?: IJupiterSwapTask

Task jupiterSwapTask.

lendingRateTask?: ILendingRateTask

Task lendingRateTask.

llmTask?: ILlmTask

Task llmTask.

lpExchangeRateTask?: ILpExchangeRateTask

Task lpExchangeRateTask.

lpTokenPriceTask?: ILpTokenPriceTask

Task lpTokenPriceTask.

lstHistoricalYieldTask?: ILstHistoricalYieldTask

Task lstHistoricalYieldTask.

mangoPerpMarketTask?: IMangoPerpMarketTask

Task mangoPerpMarketTask.

mapleFinanceTask?: IMapleFinanceTask

Task mapleFinanceTask.

marinadeStateTask?: IMarinadeStateTask

Task marinadeStateTask.

maxTask?: IMaxTask

Task maxTask.

meanTask?: IMeanTask

Task meanTask.

medianTask?: IMedianTask

Task medianTask.

meteoraSwapTask?: IMeteoraSwapTask

Task meteoraSwapTask.

minTask?: IMinTask

Task minTask.

multiplyTask?: IMultiplyTask

Task multiplyTask.

ondoUsdyTask?: IOndoUsdyTask

Task ondoUsdyTask.

oracleTask?: IOracleTask

Task oracleTask.

pancakeswapExchangeRateTask?: IPancakeswapExchangeRateTask

Task pancakeswapExchangeRateTask.

perpMarketTask?: IPerpMarketTask

Task perpMarketTask.

powTask?: IPowTask

Task powTask.

regexExtractTask?: IRegexExtractTask

Task regexExtractTask.

roundTask?: IRoundTask

Task roundTask.

sanctumLstPriceTask?: ISanctumLstPriceTask

Task sanctumLstPriceTask.

secretsTask?: ISecretsTask

Task secretsTask.

serumSwapTask?: ISerumSwapTask

Task serumSwapTask.

solanaAccountDataFetchTask?: ISolanaAccountDataFetchTask

Task solanaAccountDataFetchTask.

solayerSusdTask?: ISolayerSusdTask

Task solayerSusdTask.

splStakePoolTask?: ISplStakePoolTask

Task splStakePoolTask.

splTokenParseTask?: ISplTokenParseTask

Task splTokenParseTask.

subtractTask?: ISubtractTask

Task subtractTask.

sushiswapExchangeRateTask?: ISushiswapExchangeRateTask

Task sushiswapExchangeRateTask.

sysclockOffsetTask?: ISysclockOffsetTask

Task sysclockOffsetTask.

Task?:
    | "httpTask"
    | "jsonParseTask"
    | "medianTask"
    | "meanTask"
    | "websocketTask"
    | "divideTask"
    | "multiplyTask"
    | "lpTokenPriceTask"
    | "lpExchangeRateTask"
    | "conditionalTask"
    | "valueTask"
    | "maxTask"
    | "regexExtractTask"
    | "xstepPriceTask"
    | "addTask"
    | "subtractTask"
    | "twapTask"
    | "serumSwapTask"
    | "powTask"
    | "lendingRateTask"
    | "mangoPerpMarketTask"
    | "jupiterSwapTask"
    | "perpMarketTask"
    | "oracleTask"
    | "anchorFetchTask"
    | "splStakePoolTask"
    | "splTokenParseTask"
    | "uniswapExchangeRateTask"
    | "sushiswapExchangeRateTask"
    | "pancakeswapExchangeRateTask"
    | "cacheTask"
    | "sysclockOffsetTask"
    | "marinadeStateTask"
    | "solanaAccountDataFetchTask"
    | "bufferLayoutParseTask"
    | "cronParseTask"
    | "minTask"
    | "historyFunctionTask"
    | "vwapTask"
    | "ewmaTask"
    | "comparisonTask"
    | "roundTask"
    | "boundTask"
    | "secretsTask"
    | "sanctumLstPriceTask"
    | "ondoUsdyTask"
    | "meteoraSwapTask"
    | "unixTimeTask"
    | "mapleFinanceTask"
    | "glyphTask"
    | "corexTask"
    | "llmTask"
    | "solayerSusdTask"
    | "curveFinanceTask"
    | "turboEthRedemptionRateTask"
    | "bitFluxTask"
    | "fragmetricTask"
    | "aftermathTask"
    | "etherfuseTask"
    | "lstHistoricalYieldTask"

Task Task.

turboEthRedemptionRateTask?: ITurboEthRedemptionRateTask

Task turboEthRedemptionRateTask.

twapTask?: ITwapTask

Task twapTask.

uniswapExchangeRateTask?: IUniswapExchangeRateTask

Task uniswapExchangeRateTask.

unixTimeTask?: IUnixTimeTask

Task unixTimeTask.

valueTask?: IValueTask

Task valueTask.

vwapTask?: IVwapTask

Task vwapTask.

websocketTask?: IWebsocketTask

Task websocketTask.

xstepPriceTask?: IXStepPriceTask

Task xstepPriceTask.

Methods

  • Converts this Task to JSON.

    Returns { [k: string]: any }

    JSON object

  • Creates a new Task instance using the specified properties.

    Parameters

    • Optionalproperties: ITask

      Properties to set

    Returns OracleJob.Task

    Task instance

  • Decodes a Task message from the specified reader or buffer.

    Parameters

    • reader: Uint8Array<ArrayBufferLike> | Reader

      Reader or buffer to decode from

    • Optionallength: number

      Message length if known beforehand

    Returns OracleJob.Task

    Task

    If the payload is not a reader or valid buffer

    If required fields are missing

  • Decodes a Task message from the specified reader or buffer, length delimited.

    Parameters

    • reader: Uint8Array<ArrayBufferLike> | Reader

      Reader or buffer to decode from

    Returns OracleJob.Task

    Task

    If the payload is not a reader or valid buffer

    If required fields are missing

  • Encodes the specified Task message. Does not implicitly verify messages.

    Parameters

    • message: ITask

      Task message or plain object to encode

    • Optionalwriter: Writer

      Writer to encode to

    Returns Writer

    Writer

  • Encodes the specified Task message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: ITask

      Task message or plain object to encode

    • Optionalwriter: Writer

      Writer to encode to

    Returns Writer

    Writer

  • Creates a Task message from a plain object. Also converts values to their respective internal types.

    Parameters

    • object: { [k: string]: any }

      Plain object

    Returns OracleJob.Task

    Task

  • Gets the default type url for Task

    Parameters

    Returns string

    The default type url

  • Creates a plain object from a Task message. Also converts values to other types if specified.

    Parameters

    • message: OracleJob.Task

      Task

    • Optionaloptions: IConversionOptions

      Conversion options

    Returns { [k: string]: any }

    Plain object

  • Verifies a Task message.

    Parameters

    • message: { [k: string]: any }

      Plain object to verify

    Returns string

    null if valid, otherwise the reason why it is not