UnsupportedOracle represents an oracle that is not supported.

Parameters

import { Bytes, Oracle } from "@blueprintsfi/blueprints.js";

declare class UnsupportedOracle extends Oracle {
    readonly oracleAddress: string;
    readonly feedIdBytes: Bytes;
    constructor(oracleAddress: string, feedIdBytes: Bytes);
}

UnsupportedOracle takes two parameters – the address of the oracle and the feed id, which must be 32 bytes long.

Examples

import { RawBytes, UnsupportedOracle } from "@blueprintsfi/blueprints.js";
import assert from "node:assert";

const unsupportedOracle = new UnsupportedOracle(
    "0xBFFeA64641Ba47AD959ae1D53C9c2C24BC5cE4d1",
    new RawBytes("24e2f8ffb75ed49e89a9a2208f31d4186bf8e50a60c2868ac9073d0ccb69d2dc"),
);
assert.strictEqual(
    unsupportedOracle.toString(),
    "UnsupportedOracle<0xBFFeA64641Ba47AD959ae1D53C9c2C24BC5cE4d1, 0x24e2f8ffb75ed49e89a9a2208f31d4186bf8e50a60c2868ac9073d0ccb69d2dc>",
);

See also