Options
All
  • Public
  • Public/Protected
  • All
Menu

A Switchboard account representing a job for an oracle to perform, stored as a protocol buffer.

Hierarchy

  • JobAccount

Index

Constructors

Properties

keypair?: Keypair
program: Program<Idl>
publicKey: PublicKey

Methods

  • loadData(): Promise<any>
  • Load and parse JobAccount data based on the program IDL.

    Returns Promise<any>

    JobAccount data parsed in accordance with the Switchboard IDL.

  • Load and parse the protobuf from the raw buffer stored in the JobAccount.

    Returns Promise<OracleJob>

    OracleJob

  • Create and initialize the JobAccount.

    Parameters

    • program: Program<Idl>

      Switchboard program representation holding connection and IDL.

    • params: JobInitParams

    Returns Promise<JobAccount>

    newly generated JobAccount.

  • decode(program: Program<Idl>, accountInfo: AccountInfo<Buffer>): any
  • Parameters

    • program: Program<Idl>
    • accountInfo: AccountInfo<Buffer>

    Returns any

  • decodeJob(program: Program<Idl>, accountInfo: AccountInfo<Buffer>): OracleJob

Generated using TypeDoc