Class IOracleAdapter__factory

Hierarchy

  • IOracleAdapter__factory

Constructors

Properties

Methods

Constructors

Properties

abi: readonly [{
    inputs: readonly [{
        internalType: "uint256";
        name: "arrayLength";
        type: "uint256";
    }, {
        internalType: "uint256";
        name: "size";
        type: "uint256";
    }];
    name: "OracleAdapter__ArrayCannotExpand";
    type: "error";
}, {
    inputs: readonly [{
        internalType: "int256";
        name: "price";
        type: "int256";
    }];
    name: "OracleAdapter__InvalidPrice";
    type: "error";
}, {
    inputs: readonly [{
        internalType: "uint256";
        name: "target";
        type: "uint256";
    }, {
        internalType: "uint256";
        name: "blockTimestamp";
        type: "uint256";
    }];
    name: "OracleAdapter__InvalidTarget";
    type: "error";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "tokenA";
        type: "address";
    }, {
        internalType: "address";
        name: "tokenB";
        type: "address";
    }];
    name: "OracleAdapter__PairCannotBeSupported";
    type: "error";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "tokenA";
        type: "address";
    }, {
        internalType: "address";
        name: "tokenB";
        type: "address";
    }];
    name: "OracleAdapter__PairNotSupported";
    type: "error";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "tokenA";
        type: "address";
    }, {
        internalType: "address";
        name: "tokenB";
        type: "address";
    }];
    name: "OracleAdapter__TokensAreSame";
    type: "error";
}, {
    inputs: readonly [];
    name: "OracleAdapter__ZeroAddress";
    type: "error";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "token";
        type: "address";
    }];
    name: "describePricingPath";
    outputs: readonly [{
        internalType: "enum IOracleAdapter.AdapterType";
        name: "adapterType";
        type: "uint8";
    }, {
        internalType: "address[][]";
        name: "path";
        type: "address[][]";
    }, {
        internalType: "uint8[]";
        name: "decimals";
        type: "uint8[]";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "tokenIn";
        type: "address";
    }, {
        internalType: "address";
        name: "tokenOut";
        type: "address";
    }];
    name: "getPrice";
    outputs: readonly [{
        internalType: "UD60x18";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "tokenIn";
        type: "address";
    }, {
        internalType: "address";
        name: "tokenOut";
        type: "address";
    }, {
        internalType: "uint256";
        name: "target";
        type: "uint256";
    }];
    name: "getPriceAt";
    outputs: readonly [{
        internalType: "UD60x18";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "tokenA";
        type: "address";
    }, {
        internalType: "address";
        name: "tokenB";
        type: "address";
    }];
    name: "isPairSupported";
    outputs: readonly [{
        internalType: "bool";
        name: "isCached";
        type: "bool";
    }, {
        internalType: "bool";
        name: "hasPath";
        type: "bool";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "tokenA";
        type: "address";
    }, {
        internalType: "address";
        name: "tokenB";
        type: "address";
    }];
    name: "upsertPair";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}] = _abi

Methods

  • Parameters

    • address: string
    • Optional runner: null | ContractRunner

    Returns IOracleAdapter

  • Returns IOracleAdapterInterface

Generated using TypeDoc