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

Implements

Constructors

  • Constructs a new Task.

    Parameters

    • Optional properties: ITask

      Properties to set

    Returns Task

Properties

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"

Task Task.

addTask?: IAddTask

Task addTask.

anchorFetchTask?: IAnchorFetchTask

Task anchorFetchTask.

boundTask?: IBoundTask

Task boundTask.

bufferLayoutParseTask?: IBufferLayoutParseTask

Task bufferLayoutParseTask.

cacheTask?: ICacheTask

Task cacheTask.

comparisonTask?: IComparisonTask

Task comparisonTask.

conditionalTask?: IConditionalTask

Task conditionalTask.

cronParseTask?: ICronParseTask

Task cronParseTask.

divideTask?: IDivideTask

Task divideTask.

ewmaTask?: IEwmaTask

Task ewmaTask.

historyFunctionTask?: IHistoryFunctionTask

Task historyFunctionTask.

httpTask?: IHttpTask

Task httpTask.

jsonParseTask?: IJsonParseTask

Task jsonParseTask.

jupiterSwapTask?: IJupiterSwapTask

Task jupiterSwapTask.

lendingRateTask?: ILendingRateTask

Task lendingRateTask.

lpExchangeRateTask?: ILpExchangeRateTask

Task lpExchangeRateTask.

lpTokenPriceTask?: ILpTokenPriceTask

Task lpTokenPriceTask.

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.

splStakePoolTask?: ISplStakePoolTask

Task splStakePoolTask.

splTokenParseTask?: ISplTokenParseTask

Task splTokenParseTask.

subtractTask?: ISubtractTask

Task subtractTask.

sushiswapExchangeRateTask?: ISushiswapExchangeRateTask

Task sushiswapExchangeRateTask.

sysclockOffsetTask?: ISysclockOffsetTask

Task sysclockOffsetTask.

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

    • [k: string]: any
  • Creates a new Task instance using the specified properties.

    Parameters

    • Optional properties: ITask

      Properties to set

    Returns Task

    Task instance

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

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    • Optional length: number

      Message length if known beforehand

    Returns Task

    Task

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

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

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns Task

    Task

    Throws

    If the payload is not a reader or valid buffer

    Throws

    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

    • Optional writer: 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

    • Optional writer: 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

      • [k: string]: any

    Returns Task

    Task

  • Gets the default type url for Task

    Parameters

    • Optional typeUrlPrefix: string

      your custom typeUrlPrefix(default "type.googleapis.com")

    Returns string

    The default type url

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

    Parameters

    • message: Task

      Task

    • Optional options: IConversionOptions

      Conversion options

    Returns {
        [k: string]: any;
    }

    Plain object

    • [k: string]: any
  • Verifies a Task message.

    Parameters

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

      Plain object to verify

      • [k: string]: any

    Returns string

    null if valid, otherwise the reason why it is not