Interface GetOracleObjectReturnType

Hierarchy

Properties

abiVersion: string
extendOracle: Function
getQuery: Function
id: `ok_${string}`
pollQueries: ((cb) => (() => void))

Type declaration

    • (cb): (() => void)
    • Parameters

      • cb: ((query) => void)
          • (query): void
          • Parameters

            • query: {
                  fee: bigint;
                  id: string;
                  oracleId: string;
                  query: string;
                  response: string;
                  responseTtl: { type: TTLType; value: string; };
                  senderId: string;
                  senderNonce: string;
                  ttl: number;
              }
              • fee: bigint
              • id: string

                Base58Check encoded tagged value

              • oracleId: string

                Base58Check encoded tagged pubkey

              • query: string
              • response: string
              • responseTtl: { type: TTLType; value: string; }
              • senderId: string

                Base58Check encoded tagged pubkey

              • senderNonce: string
              • ttl: number

            Returns void

      Returns (() => void)

        • (): void
        • Poll for oracle queries

          Returns void

          Callback to stop polling function

          Category

          oracle

postQuery: Function
queries: {
    fee: bigint;
    id: string;
    oracleId: string;
    query: string;
    response: string;
    responseTtl: { type: TTLType; value: string; };
    senderId: string;
    senderNonce: string;
    ttl: number;
}[]

Type declaration

  • fee: bigint
  • id: string

    Base58Check encoded tagged value

  • oracleId: string

    Base58Check encoded tagged pubkey

  • query: string
  • response: string
  • responseTtl: { type: TTLType; value: string; }
  • senderId: string

    Base58Check encoded tagged pubkey

  • senderNonce: string
  • ttl: number
queryFee: bigint
queryFormat: string
respondToQuery: Function
responseFormat: string
ttl: number

Generated using TypeDoc